Skip to content

Commit a52cee0

Browse files
yoshi-automationchingor13
authored andcommitted
Regenerate dataproc client (googleapis#2796)
1 parent 5a3c082 commit a52cee0

File tree

57 files changed

+28930
-16408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+28930
-16408
lines changed

clients/google-api-services-dataproc/v1.metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"maven": {
33
"groupId": "com.google.apis",
44
"artifactId": "google-api-services-dataproc",
5-
"version": "v1-rev20190823-1.30.3"
5+
"version": "v1-rev20190905-1.30.3"
66
}
77
}

clients/google-api-services-dataproc/v1/1.28.0/com/google/api/services/dataproc/Dataproc.java

Lines changed: 3167 additions & 483 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dataproc.model;
18+
19+
/**
20+
* Autoscaling Policy config associated with the cluster.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AutoscalingConfig extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. The autoscaling policy used by the cluster.Only resource names including projectid
34+
* and location (region) are valid. Examples: https://www.googleapis.com/compute/v1/projects/[proj
35+
* ect_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
36+
* projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the
37+
* policy must be in the same project and Cloud Dataproc region.
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.lang.String policyUri;
42+
43+
/**
44+
* Optional. The autoscaling policy used by the cluster.Only resource names including projectid
45+
* and location (region) are valid. Examples: https://www.googleapis.com/compute/v1/projects/[proj
46+
* ect_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
47+
* projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the
48+
* policy must be in the same project and Cloud Dataproc region.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getPolicyUri() {
52+
return policyUri;
53+
}
54+
55+
/**
56+
* Optional. The autoscaling policy used by the cluster.Only resource names including projectid
57+
* and location (region) are valid. Examples: https://www.googleapis.com/compute/v1/projects/[proj
58+
* ect_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]
59+
* projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[policy_id]Note that the
60+
* policy must be in the same project and Cloud Dataproc region.
61+
* @param policyUri policyUri or {@code null} for none
62+
*/
63+
public AutoscalingConfig setPolicyUri(java.lang.String policyUri) {
64+
this.policyUri = policyUri;
65+
return this;
66+
}
67+
68+
@Override
69+
public AutoscalingConfig set(String fieldName, Object value) {
70+
return (AutoscalingConfig) super.set(fieldName, value);
71+
}
72+
73+
@Override
74+
public AutoscalingConfig clone() {
75+
return (AutoscalingConfig) super.clone();
76+
}
77+
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dataproc.model;
18+
19+
/**
20+
* Describes an autoscaling policy for Dataproc cluster autoscaler.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AutoscalingPolicy extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* The value may be {@code null}.
34+
*/
35+
@com.google.api.client.util.Key
36+
private BasicAutoscalingAlgorithm basicAlgorithm;
37+
38+
/**
39+
* Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
40+
* (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3
41+
* and 50 characters.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String id;
46+
47+
/**
48+
* Output only. The "resource name" of the autoscaling policy, as described in
49+
* https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies,
50+
* the resource name of the policy has the following format:
51+
* projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For
52+
* projects.locations.autoscalingPolicies, the resource name of the policy has the following
53+
* format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
54+
* The value may be {@code null}.
55+
*/
56+
@com.google.api.client.util.Key
57+
private java.lang.String name;
58+
59+
/**
60+
* Optional. Describes how the autoscaler will operate for secondary workers.
61+
* The value may be {@code null}.
62+
*/
63+
@com.google.api.client.util.Key
64+
private InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig;
65+
66+
/**
67+
* Required. Describes how the autoscaler will operate for primary workers.
68+
* The value may be {@code null}.
69+
*/
70+
@com.google.api.client.util.Key
71+
private InstanceGroupAutoscalingPolicyConfig workerConfig;
72+
73+
/**
74+
* @return value or {@code null} for none
75+
*/
76+
public BasicAutoscalingAlgorithm getBasicAlgorithm() {
77+
return basicAlgorithm;
78+
}
79+
80+
/**
81+
* @param basicAlgorithm basicAlgorithm or {@code null} for none
82+
*/
83+
public AutoscalingPolicy setBasicAlgorithm(BasicAutoscalingAlgorithm basicAlgorithm) {
84+
this.basicAlgorithm = basicAlgorithm;
85+
return this;
86+
}
87+
88+
/**
89+
* Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
90+
* (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3
91+
* and 50 characters.
92+
* @return value or {@code null} for none
93+
*/
94+
public java.lang.String getId() {
95+
return id;
96+
}
97+
98+
/**
99+
* Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (0-9), underscores
100+
* (_), and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between 3
101+
* and 50 characters.
102+
* @param id id or {@code null} for none
103+
*/
104+
public AutoscalingPolicy setId(java.lang.String id) {
105+
this.id = id;
106+
return this;
107+
}
108+
109+
/**
110+
* Output only. The "resource name" of the autoscaling policy, as described in
111+
* https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies,
112+
* the resource name of the policy has the following format:
113+
* projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For
114+
* projects.locations.autoscalingPolicies, the resource name of the policy has the following
115+
* format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
116+
* @return value or {@code null} for none
117+
*/
118+
public java.lang.String getName() {
119+
return name;
120+
}
121+
122+
/**
123+
* Output only. The "resource name" of the autoscaling policy, as described in
124+
* https://cloud.google.com/apis/design/resource_names. For projects.regions.autoscalingPolicies,
125+
* the resource name of the policy has the following format:
126+
* projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id} For
127+
* projects.locations.autoscalingPolicies, the resource name of the policy has the following
128+
* format: projects/{project_id}/locations/{location}/autoscalingPolicies/{policy_id}
129+
* @param name name or {@code null} for none
130+
*/
131+
public AutoscalingPolicy setName(java.lang.String name) {
132+
this.name = name;
133+
return this;
134+
}
135+
136+
/**
137+
* Optional. Describes how the autoscaler will operate for secondary workers.
138+
* @return value or {@code null} for none
139+
*/
140+
public InstanceGroupAutoscalingPolicyConfig getSecondaryWorkerConfig() {
141+
return secondaryWorkerConfig;
142+
}
143+
144+
/**
145+
* Optional. Describes how the autoscaler will operate for secondary workers.
146+
* @param secondaryWorkerConfig secondaryWorkerConfig or {@code null} for none
147+
*/
148+
public AutoscalingPolicy setSecondaryWorkerConfig(InstanceGroupAutoscalingPolicyConfig secondaryWorkerConfig) {
149+
this.secondaryWorkerConfig = secondaryWorkerConfig;
150+
return this;
151+
}
152+
153+
/**
154+
* Required. Describes how the autoscaler will operate for primary workers.
155+
* @return value or {@code null} for none
156+
*/
157+
public InstanceGroupAutoscalingPolicyConfig getWorkerConfig() {
158+
return workerConfig;
159+
}
160+
161+
/**
162+
* Required. Describes how the autoscaler will operate for primary workers.
163+
* @param workerConfig workerConfig or {@code null} for none
164+
*/
165+
public AutoscalingPolicy setWorkerConfig(InstanceGroupAutoscalingPolicyConfig workerConfig) {
166+
this.workerConfig = workerConfig;
167+
return this;
168+
}
169+
170+
@Override
171+
public AutoscalingPolicy set(String fieldName, Object value) {
172+
return (AutoscalingPolicy) super.set(fieldName, value);
173+
}
174+
175+
@Override
176+
public AutoscalingPolicy clone() {
177+
return (AutoscalingPolicy) super.clone();
178+
}
179+
180+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.dataproc.model;
18+
19+
/**
20+
* Basic algorithm for autoscaling.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class BasicAutoscalingAlgorithm extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Duration between scaling events. A scaling period starts after the update operation
34+
* from the previous event has completed.Bounds: 2m, 1d. Default: 2m.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private String cooldownPeriod;
39+
40+
/**
41+
* Required. YARN autoscaling configuration.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private BasicYarnAutoscalingConfig yarnConfig;
46+
47+
/**
48+
* Optional. Duration between scaling events. A scaling period starts after the update operation
49+
* from the previous event has completed.Bounds: 2m, 1d. Default: 2m.
50+
* @return value or {@code null} for none
51+
*/
52+
public String getCooldownPeriod() {
53+
return cooldownPeriod;
54+
}
55+
56+
/**
57+
* Optional. Duration between scaling events. A scaling period starts after the update operation
58+
* from the previous event has completed.Bounds: 2m, 1d. Default: 2m.
59+
* @param cooldownPeriod cooldownPeriod or {@code null} for none
60+
*/
61+
public BasicAutoscalingAlgorithm setCooldownPeriod(String cooldownPeriod) {
62+
this.cooldownPeriod = cooldownPeriod;
63+
return this;
64+
}
65+
66+
/**
67+
* Required. YARN autoscaling configuration.
68+
* @return value or {@code null} for none
69+
*/
70+
public BasicYarnAutoscalingConfig getYarnConfig() {
71+
return yarnConfig;
72+
}
73+
74+
/**
75+
* Required. YARN autoscaling configuration.
76+
* @param yarnConfig yarnConfig or {@code null} for none
77+
*/
78+
public BasicAutoscalingAlgorithm setYarnConfig(BasicYarnAutoscalingConfig yarnConfig) {
79+
this.yarnConfig = yarnConfig;
80+
return this;
81+
}
82+
83+
@Override
84+
public BasicAutoscalingAlgorithm set(String fieldName, Object value) {
85+
return (BasicAutoscalingAlgorithm) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public BasicAutoscalingAlgorithm clone() {
90+
return (BasicAutoscalingAlgorithm) super.clone();
91+
}
92+
93+
}

0 commit comments

Comments
 (0)