OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.container.v1; | 3 library googleapis.container.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client container/v1'; | 15 const core.String USER_AGENT = 'dart-api-client container/v1'; |
16 | 16 |
17 /** | 17 /// The Google Container Engine API is used for building and managing container |
18 * The Google Container Engine API is used for building and managing container | 18 /// based applications, powered by the open source Kubernetes technology. |
19 * based applications, powered by the open source Kubernetes technology. | |
20 */ | |
21 class ContainerApi { | 19 class ContainerApi { |
22 /** View and manage your data across Google Cloud Platform services */ | 20 /// View and manage your data across Google Cloud Platform services |
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 21 static const CloudPlatformScope = |
24 | 22 "https://www.googleapis.com/auth/cloud-platform"; |
25 | 23 |
26 final commons.ApiRequester _requester; | 24 final commons.ApiRequester _requester; |
27 | 25 |
28 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 26 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
29 | 27 |
30 ContainerApi(http.Client client, {core.String rootUrl: "https://container.goog
leapis.com/", core.String servicePath: ""}) : | 28 ContainerApi(http.Client client, |
31 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 29 {core.String rootUrl: "https://container.googleapis.com/", |
| 30 core.String servicePath: ""}) |
| 31 : _requester = |
| 32 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
32 } | 33 } |
33 | 34 |
34 | |
35 class ProjectsResourceApi { | 35 class ProjectsResourceApi { |
36 final commons.ApiRequester _requester; | 36 final commons.ApiRequester _requester; |
37 | 37 |
38 ProjectsZonesResourceApi get zones => new ProjectsZonesResourceApi(_requester)
; | 38 ProjectsZonesResourceApi get zones => |
| 39 new ProjectsZonesResourceApi(_requester); |
39 | 40 |
40 ProjectsResourceApi(commons.ApiRequester client) : | 41 ProjectsResourceApi(commons.ApiRequester client) : _requester = client; |
41 _requester = client; | |
42 } | 42 } |
43 | 43 |
44 | |
45 class ProjectsZonesResourceApi { | 44 class ProjectsZonesResourceApi { |
46 final commons.ApiRequester _requester; | 45 final commons.ApiRequester _requester; |
47 | 46 |
48 ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersReso
urceApi(_requester); | 47 ProjectsZonesClustersResourceApi get clusters => |
49 ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperatio
nsResourceApi(_requester); | 48 new ProjectsZonesClustersResourceApi(_requester); |
| 49 ProjectsZonesOperationsResourceApi get operations => |
| 50 new ProjectsZonesOperationsResourceApi(_requester); |
50 | 51 |
51 ProjectsZonesResourceApi(commons.ApiRequester client) : | 52 ProjectsZonesResourceApi(commons.ApiRequester client) : _requester = client; |
52 _requester = client; | |
53 | 53 |
54 /** | 54 /// Returns configuration info about the Container Engine service. |
55 * Returns configuration info about the Container Engine service. | 55 /// |
56 * | 56 /// Request parameters: |
57 * Request parameters: | 57 /// |
58 * | 58 /// [projectId] - The Google Developers Console [project ID or project |
59 * [projectId] - The Google Developers Console [project ID or project | 59 /// number](https://support.google.com/cloud/answer/6158840). |
60 * number](https://support.google.com/cloud/answer/6158840). | 60 /// |
61 * | 61 /// [zone] - The name of the Google Compute Engine |
62 * [zone] - The name of the Google Compute Engine | 62 /// [zone](/compute/docs/zones#available) |
63 * [zone](/compute/docs/zones#available) | 63 /// to return operations for. |
64 * to return operations for. | 64 /// |
65 * | 65 /// Completes with a [ServerConfig]. |
66 * Completes with a [ServerConfig]. | 66 /// |
67 * | 67 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 68 /// an error. |
69 * error. | 69 /// |
70 * | 70 /// If the used [http.Client] completes with an error when making a REST |
71 * If the used [http.Client] completes with an error when making a REST call, | 71 /// call, this method will complete with the same error. |
72 * this method will complete with the same error. | 72 async.Future<ServerConfig> getServerconfig( |
73 */ | 73 core.String projectId, core.String zone) { |
74 async.Future<ServerConfig> getServerconfig(core.String projectId, core.String
zone) { | |
75 var _url = null; | 74 var _url = null; |
76 var _queryParams = new core.Map(); | 75 var _queryParams = new core.Map(); |
77 var _uploadMedia = null; | 76 var _uploadMedia = null; |
78 var _uploadOptions = null; | 77 var _uploadOptions = null; |
79 var _downloadOptions = commons.DownloadOptions.Metadata; | 78 var _downloadOptions = commons.DownloadOptions.Metadata; |
80 var _body = null; | 79 var _body = null; |
81 | 80 |
82 if (projectId == null) { | 81 if (projectId == null) { |
83 throw new core.ArgumentError("Parameter projectId is required."); | 82 throw new core.ArgumentError("Parameter projectId is required."); |
84 } | 83 } |
85 if (zone == null) { | 84 if (zone == null) { |
86 throw new core.ArgumentError("Parameter zone is required."); | 85 throw new core.ArgumentError("Parameter zone is required."); |
87 } | 86 } |
88 | 87 |
89 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/serverconfig'; | 88 _url = 'v1/projects/' + |
| 89 commons.Escaper.ecapeVariable('$projectId') + |
| 90 '/zones/' + |
| 91 commons.Escaper.ecapeVariable('$zone') + |
| 92 '/serverconfig'; |
90 | 93 |
91 var _response = _requester.request(_url, | 94 var _response = _requester.request(_url, "GET", |
92 "GET", | 95 body: _body, |
93 body: _body, | 96 queryParams: _queryParams, |
94 queryParams: _queryParams, | 97 uploadOptions: _uploadOptions, |
95 uploadOptions: _uploadOptions, | 98 uploadMedia: _uploadMedia, |
96 uploadMedia: _uploadMedia, | 99 downloadOptions: _downloadOptions); |
97 downloadOptions: _downloadOptions); | |
98 return _response.then((data) => new ServerConfig.fromJson(data)); | 100 return _response.then((data) => new ServerConfig.fromJson(data)); |
99 } | 101 } |
100 | |
101 } | 102 } |
102 | 103 |
103 | |
104 class ProjectsZonesClustersResourceApi { | 104 class ProjectsZonesClustersResourceApi { |
105 final commons.ApiRequester _requester; | 105 final commons.ApiRequester _requester; |
106 | 106 |
107 ProjectsZonesClustersNodePoolsResourceApi get nodePools => new ProjectsZonesCl
ustersNodePoolsResourceApi(_requester); | 107 ProjectsZonesClustersNodePoolsResourceApi get nodePools => |
| 108 new ProjectsZonesClustersNodePoolsResourceApi(_requester); |
108 | 109 |
109 ProjectsZonesClustersResourceApi(commons.ApiRequester client) : | 110 ProjectsZonesClustersResourceApi(commons.ApiRequester client) |
110 _requester = client; | 111 : _requester = client; |
111 | 112 |
112 /** | 113 /// Sets the addons of a specific cluster. |
113 * Sets the addons of a specific cluster. | 114 /// |
114 * | 115 /// [request] - The metadata request object. |
115 * [request] - The metadata request object. | 116 /// |
116 * | 117 /// Request parameters: |
117 * Request parameters: | 118 /// |
118 * | 119 /// [projectId] - The Google Developers Console [project ID or project |
119 * [projectId] - The Google Developers Console [project ID or project | 120 /// number](https://support.google.com/cloud/answer/6158840). |
120 * number](https://support.google.com/cloud/answer/6158840). | 121 /// |
121 * | 122 /// [zone] - The name of the Google Compute Engine |
122 * [zone] - The name of the Google Compute Engine | 123 /// [zone](/compute/docs/zones#available) in which the cluster |
123 * [zone](/compute/docs/zones#available) in which the cluster | 124 /// resides. |
124 * resides. | 125 /// |
125 * | 126 /// [clusterId] - The name of the cluster to upgrade. |
126 * [clusterId] - The name of the cluster to upgrade. | 127 /// |
127 * | 128 /// Completes with a [Operation]. |
128 * Completes with a [Operation]. | 129 /// |
129 * | 130 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
130 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 131 /// an error. |
131 * error. | 132 /// |
132 * | 133 /// If the used [http.Client] completes with an error when making a REST |
133 * If the used [http.Client] completes with an error when making a REST call, | 134 /// call, this method will complete with the same error. |
134 * this method will complete with the same error. | 135 async.Future<Operation> addons(SetAddonsConfigRequest request, |
135 */ | 136 core.String projectId, core.String zone, core.String clusterId) { |
136 async.Future<Operation> addons(SetAddonsConfigRequest request, core.String pro
jectId, core.String zone, core.String clusterId) { | |
137 var _url = null; | 137 var _url = null; |
138 var _queryParams = new core.Map(); | 138 var _queryParams = new core.Map(); |
139 var _uploadMedia = null; | 139 var _uploadMedia = null; |
140 var _uploadOptions = null; | 140 var _uploadOptions = null; |
141 var _downloadOptions = commons.DownloadOptions.Metadata; | 141 var _downloadOptions = commons.DownloadOptions.Metadata; |
142 var _body = null; | 142 var _body = null; |
143 | 143 |
144 if (request != null) { | 144 if (request != null) { |
145 _body = convert.JSON.encode((request).toJson()); | 145 _body = convert.JSON.encode((request).toJson()); |
146 } | 146 } |
147 if (projectId == null) { | 147 if (projectId == null) { |
148 throw new core.ArgumentError("Parameter projectId is required."); | 148 throw new core.ArgumentError("Parameter projectId is required."); |
149 } | 149 } |
150 if (zone == null) { | 150 if (zone == null) { |
151 throw new core.ArgumentError("Parameter zone is required."); | 151 throw new core.ArgumentError("Parameter zone is required."); |
152 } | 152 } |
153 if (clusterId == null) { | 153 if (clusterId == null) { |
154 throw new core.ArgumentError("Parameter clusterId is required."); | 154 throw new core.ArgumentError("Parameter clusterId is required."); |
155 } | 155 } |
156 | 156 |
157 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/addons'; | 157 _url = 'v1/projects/' + |
| 158 commons.Escaper.ecapeVariable('$projectId') + |
| 159 '/zones/' + |
| 160 commons.Escaper.ecapeVariable('$zone') + |
| 161 '/clusters/' + |
| 162 commons.Escaper.ecapeVariable('$clusterId') + |
| 163 '/addons'; |
158 | 164 |
159 var _response = _requester.request(_url, | 165 var _response = _requester.request(_url, "POST", |
160 "POST", | 166 body: _body, |
161 body: _body, | 167 queryParams: _queryParams, |
162 queryParams: _queryParams, | 168 uploadOptions: _uploadOptions, |
163 uploadOptions: _uploadOptions, | 169 uploadMedia: _uploadMedia, |
164 uploadMedia: _uploadMedia, | 170 downloadOptions: _downloadOptions); |
165 downloadOptions: _downloadOptions); | |
166 return _response.then((data) => new Operation.fromJson(data)); | 171 return _response.then((data) => new Operation.fromJson(data)); |
167 } | 172 } |
168 | 173 |
169 /** | 174 /// Completes master IP rotation. |
170 * Completes master IP rotation. | 175 /// |
171 * | 176 /// [request] - The metadata request object. |
172 * [request] - The metadata request object. | 177 /// |
173 * | 178 /// Request parameters: |
174 * Request parameters: | 179 /// |
175 * | 180 /// [projectId] - The Google Developers Console [project ID or project |
176 * [projectId] - The Google Developers Console [project ID or project | 181 /// number](https://developers.google.com/console/help/new/#projectnumber). |
177 * number](https://developers.google.com/console/help/new/#projectnumber). | 182 /// |
178 * | 183 /// [zone] - The name of the Google Compute Engine |
179 * [zone] - The name of the Google Compute Engine | 184 /// [zone](/compute/docs/zones#available) in which the cluster |
180 * [zone](/compute/docs/zones#available) in which the cluster | 185 /// resides. |
181 * resides. | 186 /// |
182 * | 187 /// [clusterId] - The name of the cluster. |
183 * [clusterId] - The name of the cluster. | 188 /// |
184 * | 189 /// Completes with a [Operation]. |
185 * Completes with a [Operation]. | 190 /// |
186 * | 191 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
187 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 192 /// an error. |
188 * error. | 193 /// |
189 * | 194 /// If the used [http.Client] completes with an error when making a REST |
190 * If the used [http.Client] completes with an error when making a REST call, | 195 /// call, this method will complete with the same error. |
191 * this method will complete with the same error. | 196 async.Future<Operation> completeIpRotation(CompleteIPRotationRequest request, |
192 */ | 197 core.String projectId, core.String zone, core.String clusterId) { |
193 async.Future<Operation> completeIpRotation(CompleteIPRotationRequest request,
core.String projectId, core.String zone, core.String clusterId) { | |
194 var _url = null; | 198 var _url = null; |
195 var _queryParams = new core.Map(); | 199 var _queryParams = new core.Map(); |
196 var _uploadMedia = null; | 200 var _uploadMedia = null; |
197 var _uploadOptions = null; | 201 var _uploadOptions = null; |
198 var _downloadOptions = commons.DownloadOptions.Metadata; | 202 var _downloadOptions = commons.DownloadOptions.Metadata; |
199 var _body = null; | 203 var _body = null; |
200 | 204 |
201 if (request != null) { | 205 if (request != null) { |
202 _body = convert.JSON.encode((request).toJson()); | 206 _body = convert.JSON.encode((request).toJson()); |
203 } | 207 } |
204 if (projectId == null) { | 208 if (projectId == null) { |
205 throw new core.ArgumentError("Parameter projectId is required."); | 209 throw new core.ArgumentError("Parameter projectId is required."); |
206 } | 210 } |
207 if (zone == null) { | 211 if (zone == null) { |
208 throw new core.ArgumentError("Parameter zone is required."); | 212 throw new core.ArgumentError("Parameter zone is required."); |
209 } | 213 } |
210 if (clusterId == null) { | 214 if (clusterId == null) { |
211 throw new core.ArgumentError("Parameter clusterId is required."); | 215 throw new core.ArgumentError("Parameter clusterId is required."); |
212 } | 216 } |
213 | 217 |
214 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + ':completeIpRotation'; | 218 _url = 'v1/projects/' + |
| 219 commons.Escaper.ecapeVariable('$projectId') + |
| 220 '/zones/' + |
| 221 commons.Escaper.ecapeVariable('$zone') + |
| 222 '/clusters/' + |
| 223 commons.Escaper.ecapeVariable('$clusterId') + |
| 224 ':completeIpRotation'; |
215 | 225 |
216 var _response = _requester.request(_url, | 226 var _response = _requester.request(_url, "POST", |
217 "POST", | 227 body: _body, |
218 body: _body, | 228 queryParams: _queryParams, |
219 queryParams: _queryParams, | 229 uploadOptions: _uploadOptions, |
220 uploadOptions: _uploadOptions, | 230 uploadMedia: _uploadMedia, |
221 uploadMedia: _uploadMedia, | 231 downloadOptions: _downloadOptions); |
222 downloadOptions: _downloadOptions); | |
223 return _response.then((data) => new Operation.fromJson(data)); | 232 return _response.then((data) => new Operation.fromJson(data)); |
224 } | 233 } |
225 | 234 |
226 /** | 235 /// Creates a cluster, consisting of the specified number and type of Google |
227 * Creates a cluster, consisting of the specified number and type of Google | 236 /// Compute Engine instances. |
228 * Compute Engine instances. | 237 /// |
229 * | 238 /// By default, the cluster is created in the project's |
230 * By default, the cluster is created in the project's | 239 /// [default network](/compute/docs/networks-and-firewalls#networks). |
231 * [default network](/compute/docs/networks-and-firewalls#networks). | 240 /// |
232 * | 241 /// One firewall is added for the cluster. After cluster creation, |
233 * One firewall is added for the cluster. After cluster creation, | 242 /// the cluster creates routes for each node to allow the containers |
234 * the cluster creates routes for each node to allow the containers | 243 /// on that node to communicate with all other instances in the |
235 * on that node to communicate with all other instances in the | 244 /// cluster. |
236 * cluster. | 245 /// |
237 * | 246 /// Finally, an entry is added to the project's global metadata indicating |
238 * Finally, an entry is added to the project's global metadata indicating | 247 /// which CIDR range is being used by the cluster. |
239 * which CIDR range is being used by the cluster. | 248 /// |
240 * | 249 /// [request] - The metadata request object. |
241 * [request] - The metadata request object. | 250 /// |
242 * | 251 /// Request parameters: |
243 * Request parameters: | 252 /// |
244 * | 253 /// [projectId] - The Google Developers Console [project ID or project |
245 * [projectId] - The Google Developers Console [project ID or project | 254 /// number](https://support.google.com/cloud/answer/6158840). |
246 * number](https://support.google.com/cloud/answer/6158840). | 255 /// |
247 * | 256 /// [zone] - The name of the Google Compute Engine |
248 * [zone] - The name of the Google Compute Engine | 257 /// [zone](/compute/docs/zones#available) in which the cluster |
249 * [zone](/compute/docs/zones#available) in which the cluster | 258 /// resides. |
250 * resides. | 259 /// |
251 * | 260 /// Completes with a [Operation]. |
252 * Completes with a [Operation]. | 261 /// |
253 * | 262 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
254 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 263 /// an error. |
255 * error. | 264 /// |
256 * | 265 /// If the used [http.Client] completes with an error when making a REST |
257 * If the used [http.Client] completes with an error when making a REST call, | 266 /// call, this method will complete with the same error. |
258 * this method will complete with the same error. | 267 async.Future<Operation> create( |
259 */ | 268 CreateClusterRequest request, core.String projectId, core.String zone) { |
260 async.Future<Operation> create(CreateClusterRequest request, core.String proje
ctId, core.String zone) { | |
261 var _url = null; | 269 var _url = null; |
262 var _queryParams = new core.Map(); | 270 var _queryParams = new core.Map(); |
263 var _uploadMedia = null; | 271 var _uploadMedia = null; |
264 var _uploadOptions = null; | 272 var _uploadOptions = null; |
265 var _downloadOptions = commons.DownloadOptions.Metadata; | 273 var _downloadOptions = commons.DownloadOptions.Metadata; |
266 var _body = null; | 274 var _body = null; |
267 | 275 |
268 if (request != null) { | 276 if (request != null) { |
269 _body = convert.JSON.encode((request).toJson()); | 277 _body = convert.JSON.encode((request).toJson()); |
270 } | 278 } |
271 if (projectId == null) { | 279 if (projectId == null) { |
272 throw new core.ArgumentError("Parameter projectId is required."); | 280 throw new core.ArgumentError("Parameter projectId is required."); |
273 } | 281 } |
274 if (zone == null) { | 282 if (zone == null) { |
275 throw new core.ArgumentError("Parameter zone is required."); | 283 throw new core.ArgumentError("Parameter zone is required."); |
276 } | 284 } |
277 | 285 |
278 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters'; | 286 _url = 'v1/projects/' + |
| 287 commons.Escaper.ecapeVariable('$projectId') + |
| 288 '/zones/' + |
| 289 commons.Escaper.ecapeVariable('$zone') + |
| 290 '/clusters'; |
279 | 291 |
280 var _response = _requester.request(_url, | 292 var _response = _requester.request(_url, "POST", |
281 "POST", | 293 body: _body, |
282 body: _body, | 294 queryParams: _queryParams, |
283 queryParams: _queryParams, | 295 uploadOptions: _uploadOptions, |
284 uploadOptions: _uploadOptions, | 296 uploadMedia: _uploadMedia, |
285 uploadMedia: _uploadMedia, | 297 downloadOptions: _downloadOptions); |
286 downloadOptions: _downloadOptions); | |
287 return _response.then((data) => new Operation.fromJson(data)); | 298 return _response.then((data) => new Operation.fromJson(data)); |
288 } | 299 } |
289 | 300 |
290 /** | 301 /// Deletes the cluster, including the Kubernetes endpoint and all worker |
291 * Deletes the cluster, including the Kubernetes endpoint and all worker | 302 /// nodes. |
292 * nodes. | 303 /// |
293 * | 304 /// Firewalls and routes that were configured during cluster creation |
294 * Firewalls and routes that were configured during cluster creation | 305 /// are also deleted. |
295 * are also deleted. | 306 /// |
296 * | 307 /// Other Google Compute Engine resources that might be in use by the cluster |
297 * Other Google Compute Engine resources that might be in use by the cluster | 308 /// (e.g. load balancer resources) will not be deleted if they weren't |
298 * (e.g. load balancer resources) will not be deleted if they weren't present | 309 /// present |
299 * at the initial create time. | 310 /// at the initial create time. |
300 * | 311 /// |
301 * Request parameters: | 312 /// Request parameters: |
302 * | 313 /// |
303 * [projectId] - The Google Developers Console [project ID or project | 314 /// [projectId] - The Google Developers Console [project ID or project |
304 * number](https://support.google.com/cloud/answer/6158840). | 315 /// number](https://support.google.com/cloud/answer/6158840). |
305 * | 316 /// |
306 * [zone] - The name of the Google Compute Engine | 317 /// [zone] - The name of the Google Compute Engine |
307 * [zone](/compute/docs/zones#available) in which the cluster | 318 /// [zone](/compute/docs/zones#available) in which the cluster |
308 * resides. | 319 /// resides. |
309 * | 320 /// |
310 * [clusterId] - The name of the cluster to delete. | 321 /// [clusterId] - The name of the cluster to delete. |
311 * | 322 /// |
312 * Completes with a [Operation]. | 323 /// Completes with a [Operation]. |
313 * | 324 /// |
314 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 325 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
315 * error. | 326 /// an error. |
316 * | 327 /// |
317 * If the used [http.Client] completes with an error when making a REST call, | 328 /// If the used [http.Client] completes with an error when making a REST |
318 * this method will complete with the same error. | 329 /// call, this method will complete with the same error. |
319 */ | 330 async.Future<Operation> delete( |
320 async.Future<Operation> delete(core.String projectId, core.String zone, core.S
tring clusterId) { | 331 core.String projectId, core.String zone, core.String clusterId) { |
321 var _url = null; | 332 var _url = null; |
322 var _queryParams = new core.Map(); | 333 var _queryParams = new core.Map(); |
323 var _uploadMedia = null; | 334 var _uploadMedia = null; |
324 var _uploadOptions = null; | 335 var _uploadOptions = null; |
325 var _downloadOptions = commons.DownloadOptions.Metadata; | 336 var _downloadOptions = commons.DownloadOptions.Metadata; |
326 var _body = null; | 337 var _body = null; |
327 | 338 |
328 if (projectId == null) { | 339 if (projectId == null) { |
329 throw new core.ArgumentError("Parameter projectId is required."); | 340 throw new core.ArgumentError("Parameter projectId is required."); |
330 } | 341 } |
331 if (zone == null) { | 342 if (zone == null) { |
332 throw new core.ArgumentError("Parameter zone is required."); | 343 throw new core.ArgumentError("Parameter zone is required."); |
333 } | 344 } |
334 if (clusterId == null) { | 345 if (clusterId == null) { |
335 throw new core.ArgumentError("Parameter clusterId is required."); | 346 throw new core.ArgumentError("Parameter clusterId is required."); |
336 } | 347 } |
337 | 348 |
338 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId'); | 349 _url = 'v1/projects/' + |
| 350 commons.Escaper.ecapeVariable('$projectId') + |
| 351 '/zones/' + |
| 352 commons.Escaper.ecapeVariable('$zone') + |
| 353 '/clusters/' + |
| 354 commons.Escaper.ecapeVariable('$clusterId'); |
339 | 355 |
340 var _response = _requester.request(_url, | 356 var _response = _requester.request(_url, "DELETE", |
341 "DELETE", | 357 body: _body, |
342 body: _body, | 358 queryParams: _queryParams, |
343 queryParams: _queryParams, | 359 uploadOptions: _uploadOptions, |
344 uploadOptions: _uploadOptions, | 360 uploadMedia: _uploadMedia, |
345 uploadMedia: _uploadMedia, | 361 downloadOptions: _downloadOptions); |
346 downloadOptions: _downloadOptions); | |
347 return _response.then((data) => new Operation.fromJson(data)); | 362 return _response.then((data) => new Operation.fromJson(data)); |
348 } | 363 } |
349 | 364 |
350 /** | 365 /// Gets the details of a specific cluster. |
351 * Gets the details of a specific cluster. | 366 /// |
352 * | 367 /// Request parameters: |
353 * Request parameters: | 368 /// |
354 * | 369 /// [projectId] - The Google Developers Console [project ID or project |
355 * [projectId] - The Google Developers Console [project ID or project | 370 /// number](https://support.google.com/cloud/answer/6158840). |
356 * number](https://support.google.com/cloud/answer/6158840). | 371 /// |
357 * | 372 /// [zone] - The name of the Google Compute Engine |
358 * [zone] - The name of the Google Compute Engine | 373 /// [zone](/compute/docs/zones#available) in which the cluster |
359 * [zone](/compute/docs/zones#available) in which the cluster | 374 /// resides. |
360 * resides. | 375 /// |
361 * | 376 /// [clusterId] - The name of the cluster to retrieve. |
362 * [clusterId] - The name of the cluster to retrieve. | 377 /// |
363 * | 378 /// Completes with a [Cluster]. |
364 * Completes with a [Cluster]. | 379 /// |
365 * | 380 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 381 /// an error. |
367 * error. | 382 /// |
368 * | 383 /// If the used [http.Client] completes with an error when making a REST |
369 * If the used [http.Client] completes with an error when making a REST call, | 384 /// call, this method will complete with the same error. |
370 * this method will complete with the same error. | 385 async.Future<Cluster> get( |
371 */ | 386 core.String projectId, core.String zone, core.String clusterId) { |
372 async.Future<Cluster> get(core.String projectId, core.String zone, core.String
clusterId) { | |
373 var _url = null; | 387 var _url = null; |
374 var _queryParams = new core.Map(); | 388 var _queryParams = new core.Map(); |
375 var _uploadMedia = null; | 389 var _uploadMedia = null; |
376 var _uploadOptions = null; | 390 var _uploadOptions = null; |
377 var _downloadOptions = commons.DownloadOptions.Metadata; | 391 var _downloadOptions = commons.DownloadOptions.Metadata; |
378 var _body = null; | 392 var _body = null; |
379 | 393 |
380 if (projectId == null) { | 394 if (projectId == null) { |
381 throw new core.ArgumentError("Parameter projectId is required."); | 395 throw new core.ArgumentError("Parameter projectId is required."); |
382 } | 396 } |
383 if (zone == null) { | 397 if (zone == null) { |
384 throw new core.ArgumentError("Parameter zone is required."); | 398 throw new core.ArgumentError("Parameter zone is required."); |
385 } | 399 } |
386 if (clusterId == null) { | 400 if (clusterId == null) { |
387 throw new core.ArgumentError("Parameter clusterId is required."); | 401 throw new core.ArgumentError("Parameter clusterId is required."); |
388 } | 402 } |
389 | 403 |
390 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId'); | 404 _url = 'v1/projects/' + |
| 405 commons.Escaper.ecapeVariable('$projectId') + |
| 406 '/zones/' + |
| 407 commons.Escaper.ecapeVariable('$zone') + |
| 408 '/clusters/' + |
| 409 commons.Escaper.ecapeVariable('$clusterId'); |
391 | 410 |
392 var _response = _requester.request(_url, | 411 var _response = _requester.request(_url, "GET", |
393 "GET", | 412 body: _body, |
394 body: _body, | 413 queryParams: _queryParams, |
395 queryParams: _queryParams, | 414 uploadOptions: _uploadOptions, |
396 uploadOptions: _uploadOptions, | 415 uploadMedia: _uploadMedia, |
397 uploadMedia: _uploadMedia, | 416 downloadOptions: _downloadOptions); |
398 downloadOptions: _downloadOptions); | |
399 return _response.then((data) => new Cluster.fromJson(data)); | 417 return _response.then((data) => new Cluster.fromJson(data)); |
400 } | 418 } |
401 | 419 |
402 /** | 420 /// Enables or disables the ABAC authorization mechanism on a cluster. |
403 * Enables or disables the ABAC authorization mechanism on a cluster. | 421 /// |
404 * | 422 /// [request] - The metadata request object. |
405 * [request] - The metadata request object. | 423 /// |
406 * | 424 /// Request parameters: |
407 * Request parameters: | 425 /// |
408 * | 426 /// [projectId] - The Google Developers Console [project ID or project |
409 * [projectId] - The Google Developers Console [project ID or project | 427 /// number](https://support.google.com/cloud/answer/6158840). |
410 * number](https://support.google.com/cloud/answer/6158840). | 428 /// |
411 * | 429 /// [zone] - The name of the Google Compute Engine |
412 * [zone] - The name of the Google Compute Engine | 430 /// [zone](/compute/docs/zones#available) in which the cluster |
413 * [zone](/compute/docs/zones#available) in which the cluster | 431 /// resides. |
414 * resides. | 432 /// |
415 * | 433 /// [clusterId] - The name of the cluster to update. |
416 * [clusterId] - The name of the cluster to update. | 434 /// |
417 * | 435 /// Completes with a [Operation]. |
418 * Completes with a [Operation]. | 436 /// |
419 * | 437 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
420 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 438 /// an error. |
421 * error. | 439 /// |
422 * | 440 /// If the used [http.Client] completes with an error when making a REST |
423 * If the used [http.Client] completes with an error when making a REST call, | 441 /// call, this method will complete with the same error. |
424 * this method will complete with the same error. | 442 async.Future<Operation> legacyAbac(SetLegacyAbacRequest request, |
425 */ | 443 core.String projectId, core.String zone, core.String clusterId) { |
426 async.Future<Operation> legacyAbac(SetLegacyAbacRequest request, core.String p
rojectId, core.String zone, core.String clusterId) { | |
427 var _url = null; | 444 var _url = null; |
428 var _queryParams = new core.Map(); | 445 var _queryParams = new core.Map(); |
429 var _uploadMedia = null; | 446 var _uploadMedia = null; |
430 var _uploadOptions = null; | 447 var _uploadOptions = null; |
431 var _downloadOptions = commons.DownloadOptions.Metadata; | 448 var _downloadOptions = commons.DownloadOptions.Metadata; |
432 var _body = null; | 449 var _body = null; |
433 | 450 |
434 if (request != null) { | 451 if (request != null) { |
435 _body = convert.JSON.encode((request).toJson()); | 452 _body = convert.JSON.encode((request).toJson()); |
436 } | 453 } |
437 if (projectId == null) { | 454 if (projectId == null) { |
438 throw new core.ArgumentError("Parameter projectId is required."); | 455 throw new core.ArgumentError("Parameter projectId is required."); |
439 } | 456 } |
440 if (zone == null) { | 457 if (zone == null) { |
441 throw new core.ArgumentError("Parameter zone is required."); | 458 throw new core.ArgumentError("Parameter zone is required."); |
442 } | 459 } |
443 if (clusterId == null) { | 460 if (clusterId == null) { |
444 throw new core.ArgumentError("Parameter clusterId is required."); | 461 throw new core.ArgumentError("Parameter clusterId is required."); |
445 } | 462 } |
446 | 463 |
447 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/legacyAbac'; | 464 _url = 'v1/projects/' + |
| 465 commons.Escaper.ecapeVariable('$projectId') + |
| 466 '/zones/' + |
| 467 commons.Escaper.ecapeVariable('$zone') + |
| 468 '/clusters/' + |
| 469 commons.Escaper.ecapeVariable('$clusterId') + |
| 470 '/legacyAbac'; |
448 | 471 |
449 var _response = _requester.request(_url, | 472 var _response = _requester.request(_url, "POST", |
450 "POST", | 473 body: _body, |
451 body: _body, | 474 queryParams: _queryParams, |
452 queryParams: _queryParams, | 475 uploadOptions: _uploadOptions, |
453 uploadOptions: _uploadOptions, | 476 uploadMedia: _uploadMedia, |
454 uploadMedia: _uploadMedia, | 477 downloadOptions: _downloadOptions); |
455 downloadOptions: _downloadOptions); | |
456 return _response.then((data) => new Operation.fromJson(data)); | 478 return _response.then((data) => new Operation.fromJson(data)); |
457 } | 479 } |
458 | 480 |
459 /** | 481 /// Lists all clusters owned by a project in either the specified zone or all |
460 * Lists all clusters owned by a project in either the specified zone or all | 482 /// zones. |
461 * zones. | 483 /// |
462 * | 484 /// Request parameters: |
463 * Request parameters: | 485 /// |
464 * | 486 /// [projectId] - The Google Developers Console [project ID or project |
465 * [projectId] - The Google Developers Console [project ID or project | 487 /// number](https://support.google.com/cloud/answer/6158840). |
466 * number](https://support.google.com/cloud/answer/6158840). | 488 /// |
467 * | 489 /// [zone] - The name of the Google Compute Engine |
468 * [zone] - The name of the Google Compute Engine | 490 /// [zone](/compute/docs/zones#available) in which the cluster |
469 * [zone](/compute/docs/zones#available) in which the cluster | 491 /// resides, or "-" for all zones. |
470 * resides, or "-" for all zones. | 492 /// |
471 * | 493 /// Completes with a [ListClustersResponse]. |
472 * Completes with a [ListClustersResponse]. | 494 /// |
473 * | 495 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
474 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 496 /// an error. |
475 * error. | 497 /// |
476 * | 498 /// If the used [http.Client] completes with an error when making a REST |
477 * If the used [http.Client] completes with an error when making a REST call, | 499 /// call, this method will complete with the same error. |
478 * this method will complete with the same error. | 500 async.Future<ListClustersResponse> list( |
479 */ | 501 core.String projectId, core.String zone) { |
480 async.Future<ListClustersResponse> list(core.String projectId, core.String zon
e) { | |
481 var _url = null; | 502 var _url = null; |
482 var _queryParams = new core.Map(); | 503 var _queryParams = new core.Map(); |
483 var _uploadMedia = null; | 504 var _uploadMedia = null; |
484 var _uploadOptions = null; | 505 var _uploadOptions = null; |
485 var _downloadOptions = commons.DownloadOptions.Metadata; | 506 var _downloadOptions = commons.DownloadOptions.Metadata; |
486 var _body = null; | 507 var _body = null; |
487 | 508 |
488 if (projectId == null) { | 509 if (projectId == null) { |
489 throw new core.ArgumentError("Parameter projectId is required."); | 510 throw new core.ArgumentError("Parameter projectId is required."); |
490 } | 511 } |
491 if (zone == null) { | 512 if (zone == null) { |
492 throw new core.ArgumentError("Parameter zone is required."); | 513 throw new core.ArgumentError("Parameter zone is required."); |
493 } | 514 } |
494 | 515 |
495 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters'; | 516 _url = 'v1/projects/' + |
| 517 commons.Escaper.ecapeVariable('$projectId') + |
| 518 '/zones/' + |
| 519 commons.Escaper.ecapeVariable('$zone') + |
| 520 '/clusters'; |
496 | 521 |
497 var _response = _requester.request(_url, | 522 var _response = _requester.request(_url, "GET", |
498 "GET", | 523 body: _body, |
499 body: _body, | 524 queryParams: _queryParams, |
500 queryParams: _queryParams, | 525 uploadOptions: _uploadOptions, |
501 uploadOptions: _uploadOptions, | 526 uploadMedia: _uploadMedia, |
502 uploadMedia: _uploadMedia, | 527 downloadOptions: _downloadOptions); |
503 downloadOptions: _downloadOptions); | |
504 return _response.then((data) => new ListClustersResponse.fromJson(data)); | 528 return _response.then((data) => new ListClustersResponse.fromJson(data)); |
505 } | 529 } |
506 | 530 |
507 /** | 531 /// Sets the locations of a specific cluster. |
508 * Sets the locations of a specific cluster. | 532 /// |
509 * | 533 /// [request] - The metadata request object. |
510 * [request] - The metadata request object. | 534 /// |
511 * | 535 /// Request parameters: |
512 * Request parameters: | 536 /// |
513 * | 537 /// [projectId] - The Google Developers Console [project ID or project |
514 * [projectId] - The Google Developers Console [project ID or project | 538 /// number](https://support.google.com/cloud/answer/6158840). |
515 * number](https://support.google.com/cloud/answer/6158840). | 539 /// |
516 * | 540 /// [zone] - The name of the Google Compute Engine |
517 * [zone] - The name of the Google Compute Engine | 541 /// [zone](/compute/docs/zones#available) in which the cluster |
518 * [zone](/compute/docs/zones#available) in which the cluster | 542 /// resides. |
519 * resides. | 543 /// |
520 * | 544 /// [clusterId] - The name of the cluster to upgrade. |
521 * [clusterId] - The name of the cluster to upgrade. | 545 /// |
522 * | 546 /// Completes with a [Operation]. |
523 * Completes with a [Operation]. | 547 /// |
524 * | 548 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
525 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 549 /// an error. |
526 * error. | 550 /// |
527 * | 551 /// If the used [http.Client] completes with an error when making a REST |
528 * If the used [http.Client] completes with an error when making a REST call, | 552 /// call, this method will complete with the same error. |
529 * this method will complete with the same error. | 553 async.Future<Operation> locations(SetLocationsRequest request, |
530 */ | 554 core.String projectId, core.String zone, core.String clusterId) { |
531 async.Future<Operation> locations(SetLocationsRequest request, core.String pro
jectId, core.String zone, core.String clusterId) { | |
532 var _url = null; | 555 var _url = null; |
533 var _queryParams = new core.Map(); | 556 var _queryParams = new core.Map(); |
534 var _uploadMedia = null; | 557 var _uploadMedia = null; |
535 var _uploadOptions = null; | 558 var _uploadOptions = null; |
536 var _downloadOptions = commons.DownloadOptions.Metadata; | 559 var _downloadOptions = commons.DownloadOptions.Metadata; |
537 var _body = null; | 560 var _body = null; |
538 | 561 |
539 if (request != null) { | 562 if (request != null) { |
540 _body = convert.JSON.encode((request).toJson()); | 563 _body = convert.JSON.encode((request).toJson()); |
541 } | 564 } |
542 if (projectId == null) { | 565 if (projectId == null) { |
543 throw new core.ArgumentError("Parameter projectId is required."); | 566 throw new core.ArgumentError("Parameter projectId is required."); |
544 } | 567 } |
545 if (zone == null) { | 568 if (zone == null) { |
546 throw new core.ArgumentError("Parameter zone is required."); | 569 throw new core.ArgumentError("Parameter zone is required."); |
547 } | 570 } |
548 if (clusterId == null) { | 571 if (clusterId == null) { |
549 throw new core.ArgumentError("Parameter clusterId is required."); | 572 throw new core.ArgumentError("Parameter clusterId is required."); |
550 } | 573 } |
551 | 574 |
552 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/locations'; | 575 _url = 'v1/projects/' + |
| 576 commons.Escaper.ecapeVariable('$projectId') + |
| 577 '/zones/' + |
| 578 commons.Escaper.ecapeVariable('$zone') + |
| 579 '/clusters/' + |
| 580 commons.Escaper.ecapeVariable('$clusterId') + |
| 581 '/locations'; |
553 | 582 |
554 var _response = _requester.request(_url, | 583 var _response = _requester.request(_url, "POST", |
555 "POST", | 584 body: _body, |
556 body: _body, | 585 queryParams: _queryParams, |
557 queryParams: _queryParams, | 586 uploadOptions: _uploadOptions, |
558 uploadOptions: _uploadOptions, | 587 uploadMedia: _uploadMedia, |
559 uploadMedia: _uploadMedia, | 588 downloadOptions: _downloadOptions); |
560 downloadOptions: _downloadOptions); | |
561 return _response.then((data) => new Operation.fromJson(data)); | 589 return _response.then((data) => new Operation.fromJson(data)); |
562 } | 590 } |
563 | 591 |
564 /** | 592 /// Sets the logging service of a specific cluster. |
565 * Sets the logging service of a specific cluster. | 593 /// |
566 * | 594 /// [request] - The metadata request object. |
567 * [request] - The metadata request object. | 595 /// |
568 * | 596 /// Request parameters: |
569 * Request parameters: | 597 /// |
570 * | 598 /// [projectId] - The Google Developers Console [project ID or project |
571 * [projectId] - The Google Developers Console [project ID or project | 599 /// number](https://support.google.com/cloud/answer/6158840). |
572 * number](https://support.google.com/cloud/answer/6158840). | 600 /// |
573 * | 601 /// [zone] - The name of the Google Compute Engine |
574 * [zone] - The name of the Google Compute Engine | 602 /// [zone](/compute/docs/zones#available) in which the cluster |
575 * [zone](/compute/docs/zones#available) in which the cluster | 603 /// resides. |
576 * resides. | 604 /// |
577 * | 605 /// [clusterId] - The name of the cluster to upgrade. |
578 * [clusterId] - The name of the cluster to upgrade. | 606 /// |
579 * | 607 /// Completes with a [Operation]. |
580 * Completes with a [Operation]. | 608 /// |
581 * | 609 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
582 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 610 /// an error. |
583 * error. | 611 /// |
584 * | 612 /// If the used [http.Client] completes with an error when making a REST |
585 * If the used [http.Client] completes with an error when making a REST call, | 613 /// call, this method will complete with the same error. |
586 * this method will complete with the same error. | 614 async.Future<Operation> logging(SetLoggingServiceRequest request, |
587 */ | 615 core.String projectId, core.String zone, core.String clusterId) { |
588 async.Future<Operation> logging(SetLoggingServiceRequest request, core.String
projectId, core.String zone, core.String clusterId) { | |
589 var _url = null; | 616 var _url = null; |
590 var _queryParams = new core.Map(); | 617 var _queryParams = new core.Map(); |
591 var _uploadMedia = null; | 618 var _uploadMedia = null; |
592 var _uploadOptions = null; | 619 var _uploadOptions = null; |
593 var _downloadOptions = commons.DownloadOptions.Metadata; | 620 var _downloadOptions = commons.DownloadOptions.Metadata; |
594 var _body = null; | 621 var _body = null; |
595 | 622 |
596 if (request != null) { | 623 if (request != null) { |
597 _body = convert.JSON.encode((request).toJson()); | 624 _body = convert.JSON.encode((request).toJson()); |
598 } | 625 } |
599 if (projectId == null) { | 626 if (projectId == null) { |
600 throw new core.ArgumentError("Parameter projectId is required."); | 627 throw new core.ArgumentError("Parameter projectId is required."); |
601 } | 628 } |
602 if (zone == null) { | 629 if (zone == null) { |
603 throw new core.ArgumentError("Parameter zone is required."); | 630 throw new core.ArgumentError("Parameter zone is required."); |
604 } | 631 } |
605 if (clusterId == null) { | 632 if (clusterId == null) { |
606 throw new core.ArgumentError("Parameter clusterId is required."); | 633 throw new core.ArgumentError("Parameter clusterId is required."); |
607 } | 634 } |
608 | 635 |
609 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/logging'; | 636 _url = 'v1/projects/' + |
| 637 commons.Escaper.ecapeVariable('$projectId') + |
| 638 '/zones/' + |
| 639 commons.Escaper.ecapeVariable('$zone') + |
| 640 '/clusters/' + |
| 641 commons.Escaper.ecapeVariable('$clusterId') + |
| 642 '/logging'; |
610 | 643 |
611 var _response = _requester.request(_url, | 644 var _response = _requester.request(_url, "POST", |
612 "POST", | 645 body: _body, |
613 body: _body, | 646 queryParams: _queryParams, |
614 queryParams: _queryParams, | 647 uploadOptions: _uploadOptions, |
615 uploadOptions: _uploadOptions, | 648 uploadMedia: _uploadMedia, |
616 uploadMedia: _uploadMedia, | 649 downloadOptions: _downloadOptions); |
617 downloadOptions: _downloadOptions); | |
618 return _response.then((data) => new Operation.fromJson(data)); | 650 return _response.then((data) => new Operation.fromJson(data)); |
619 } | 651 } |
620 | 652 |
621 /** | 653 /// Updates the master of a specific cluster. |
622 * Updates the master of a specific cluster. | 654 /// |
623 * | 655 /// [request] - The metadata request object. |
624 * [request] - The metadata request object. | 656 /// |
625 * | 657 /// Request parameters: |
626 * Request parameters: | 658 /// |
627 * | 659 /// [projectId] - The Google Developers Console [project ID or project |
628 * [projectId] - The Google Developers Console [project ID or project | 660 /// number](https://support.google.com/cloud/answer/6158840). |
629 * number](https://support.google.com/cloud/answer/6158840). | 661 /// |
630 * | 662 /// [zone] - The name of the Google Compute Engine |
631 * [zone] - The name of the Google Compute Engine | 663 /// [zone](/compute/docs/zones#available) in which the cluster |
632 * [zone](/compute/docs/zones#available) in which the cluster | 664 /// resides. |
633 * resides. | 665 /// |
634 * | 666 /// [clusterId] - The name of the cluster to upgrade. |
635 * [clusterId] - The name of the cluster to upgrade. | 667 /// |
636 * | 668 /// Completes with a [Operation]. |
637 * Completes with a [Operation]. | 669 /// |
638 * | 670 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 671 /// an error. |
640 * error. | 672 /// |
641 * | 673 /// If the used [http.Client] completes with an error when making a REST |
642 * If the used [http.Client] completes with an error when making a REST call, | 674 /// call, this method will complete with the same error. |
643 * this method will complete with the same error. | 675 async.Future<Operation> master(UpdateMasterRequest request, |
644 */ | 676 core.String projectId, core.String zone, core.String clusterId) { |
645 async.Future<Operation> master(UpdateMasterRequest request, core.String projec
tId, core.String zone, core.String clusterId) { | |
646 var _url = null; | 677 var _url = null; |
647 var _queryParams = new core.Map(); | 678 var _queryParams = new core.Map(); |
648 var _uploadMedia = null; | 679 var _uploadMedia = null; |
649 var _uploadOptions = null; | 680 var _uploadOptions = null; |
650 var _downloadOptions = commons.DownloadOptions.Metadata; | 681 var _downloadOptions = commons.DownloadOptions.Metadata; |
651 var _body = null; | 682 var _body = null; |
652 | 683 |
653 if (request != null) { | 684 if (request != null) { |
654 _body = convert.JSON.encode((request).toJson()); | 685 _body = convert.JSON.encode((request).toJson()); |
655 } | 686 } |
656 if (projectId == null) { | 687 if (projectId == null) { |
657 throw new core.ArgumentError("Parameter projectId is required."); | 688 throw new core.ArgumentError("Parameter projectId is required."); |
658 } | 689 } |
659 if (zone == null) { | 690 if (zone == null) { |
660 throw new core.ArgumentError("Parameter zone is required."); | 691 throw new core.ArgumentError("Parameter zone is required."); |
661 } | 692 } |
662 if (clusterId == null) { | 693 if (clusterId == null) { |
663 throw new core.ArgumentError("Parameter clusterId is required."); | 694 throw new core.ArgumentError("Parameter clusterId is required."); |
664 } | 695 } |
665 | 696 |
666 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/master'; | 697 _url = 'v1/projects/' + |
| 698 commons.Escaper.ecapeVariable('$projectId') + |
| 699 '/zones/' + |
| 700 commons.Escaper.ecapeVariable('$zone') + |
| 701 '/clusters/' + |
| 702 commons.Escaper.ecapeVariable('$clusterId') + |
| 703 '/master'; |
667 | 704 |
668 var _response = _requester.request(_url, | 705 var _response = _requester.request(_url, "POST", |
669 "POST", | 706 body: _body, |
670 body: _body, | 707 queryParams: _queryParams, |
671 queryParams: _queryParams, | 708 uploadOptions: _uploadOptions, |
672 uploadOptions: _uploadOptions, | 709 uploadMedia: _uploadMedia, |
673 uploadMedia: _uploadMedia, | 710 downloadOptions: _downloadOptions); |
674 downloadOptions: _downloadOptions); | |
675 return _response.then((data) => new Operation.fromJson(data)); | 711 return _response.then((data) => new Operation.fromJson(data)); |
676 } | 712 } |
677 | 713 |
678 /** | 714 /// Sets the monitoring service of a specific cluster. |
679 * Sets the monitoring service of a specific cluster. | 715 /// |
680 * | 716 /// [request] - The metadata request object. |
681 * [request] - The metadata request object. | 717 /// |
682 * | 718 /// Request parameters: |
683 * Request parameters: | 719 /// |
684 * | 720 /// [projectId] - The Google Developers Console [project ID or project |
685 * [projectId] - The Google Developers Console [project ID or project | 721 /// number](https://support.google.com/cloud/answer/6158840). |
686 * number](https://support.google.com/cloud/answer/6158840). | 722 /// |
687 * | 723 /// [zone] - The name of the Google Compute Engine |
688 * [zone] - The name of the Google Compute Engine | 724 /// [zone](/compute/docs/zones#available) in which the cluster |
689 * [zone](/compute/docs/zones#available) in which the cluster | 725 /// resides. |
690 * resides. | 726 /// |
691 * | 727 /// [clusterId] - The name of the cluster to upgrade. |
692 * [clusterId] - The name of the cluster to upgrade. | 728 /// |
693 * | 729 /// Completes with a [Operation]. |
694 * Completes with a [Operation]. | 730 /// |
695 * | 731 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
696 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 732 /// an error. |
697 * error. | 733 /// |
698 * | 734 /// If the used [http.Client] completes with an error when making a REST |
699 * If the used [http.Client] completes with an error when making a REST call, | 735 /// call, this method will complete with the same error. |
700 * this method will complete with the same error. | 736 async.Future<Operation> monitoring(SetMonitoringServiceRequest request, |
701 */ | 737 core.String projectId, core.String zone, core.String clusterId) { |
702 async.Future<Operation> monitoring(SetMonitoringServiceRequest request, core.S
tring projectId, core.String zone, core.String clusterId) { | |
703 var _url = null; | 738 var _url = null; |
704 var _queryParams = new core.Map(); | 739 var _queryParams = new core.Map(); |
705 var _uploadMedia = null; | 740 var _uploadMedia = null; |
706 var _uploadOptions = null; | 741 var _uploadOptions = null; |
707 var _downloadOptions = commons.DownloadOptions.Metadata; | 742 var _downloadOptions = commons.DownloadOptions.Metadata; |
708 var _body = null; | 743 var _body = null; |
709 | 744 |
710 if (request != null) { | 745 if (request != null) { |
711 _body = convert.JSON.encode((request).toJson()); | 746 _body = convert.JSON.encode((request).toJson()); |
712 } | 747 } |
713 if (projectId == null) { | 748 if (projectId == null) { |
714 throw new core.ArgumentError("Parameter projectId is required."); | 749 throw new core.ArgumentError("Parameter projectId is required."); |
715 } | 750 } |
716 if (zone == null) { | 751 if (zone == null) { |
717 throw new core.ArgumentError("Parameter zone is required."); | 752 throw new core.ArgumentError("Parameter zone is required."); |
718 } | 753 } |
719 if (clusterId == null) { | 754 if (clusterId == null) { |
720 throw new core.ArgumentError("Parameter clusterId is required."); | 755 throw new core.ArgumentError("Parameter clusterId is required."); |
721 } | 756 } |
722 | 757 |
723 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/monitoring'; | 758 _url = 'v1/projects/' + |
| 759 commons.Escaper.ecapeVariable('$projectId') + |
| 760 '/zones/' + |
| 761 commons.Escaper.ecapeVariable('$zone') + |
| 762 '/clusters/' + |
| 763 commons.Escaper.ecapeVariable('$clusterId') + |
| 764 '/monitoring'; |
724 | 765 |
725 var _response = _requester.request(_url, | 766 var _response = _requester.request(_url, "POST", |
726 "POST", | 767 body: _body, |
727 body: _body, | 768 queryParams: _queryParams, |
728 queryParams: _queryParams, | 769 uploadOptions: _uploadOptions, |
729 uploadOptions: _uploadOptions, | 770 uploadMedia: _uploadMedia, |
730 uploadMedia: _uploadMedia, | 771 downloadOptions: _downloadOptions); |
731 downloadOptions: _downloadOptions); | |
732 return _response.then((data) => new Operation.fromJson(data)); | 772 return _response.then((data) => new Operation.fromJson(data)); |
733 } | 773 } |
734 | 774 |
735 /** | 775 /// Sets labels on a cluster. |
736 * Sets labels on a cluster. | 776 /// |
737 * | 777 /// [request] - The metadata request object. |
738 * [request] - The metadata request object. | 778 /// |
739 * | 779 /// Request parameters: |
740 * Request parameters: | 780 /// |
741 * | 781 /// [projectId] - The Google Developers Console [project ID or project |
742 * [projectId] - The Google Developers Console [project ID or project | 782 /// number](https://developers.google.com/console/help/new/#projectnumber). |
743 * number](https://developers.google.com/console/help/new/#projectnumber). | 783 /// |
744 * | 784 /// [zone] - The name of the Google Compute Engine |
745 * [zone] - The name of the Google Compute Engine | 785 /// [zone](/compute/docs/zones#available) in which the cluster |
746 * [zone](/compute/docs/zones#available) in which the cluster | 786 /// resides. |
747 * resides. | 787 /// |
748 * | 788 /// [clusterId] - The name of the cluster. |
749 * [clusterId] - The name of the cluster. | 789 /// |
750 * | 790 /// Completes with a [Operation]. |
751 * Completes with a [Operation]. | 791 /// |
752 * | 792 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
753 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 793 /// an error. |
754 * error. | 794 /// |
755 * | 795 /// If the used [http.Client] completes with an error when making a REST |
756 * If the used [http.Client] completes with an error when making a REST call, | 796 /// call, this method will complete with the same error. |
757 * this method will complete with the same error. | 797 async.Future<Operation> resourceLabels(SetLabelsRequest request, |
758 */ | 798 core.String projectId, core.String zone, core.String clusterId) { |
759 async.Future<Operation> resourceLabels(SetLabelsRequest request, core.String p
rojectId, core.String zone, core.String clusterId) { | |
760 var _url = null; | 799 var _url = null; |
761 var _queryParams = new core.Map(); | 800 var _queryParams = new core.Map(); |
762 var _uploadMedia = null; | 801 var _uploadMedia = null; |
763 var _uploadOptions = null; | 802 var _uploadOptions = null; |
764 var _downloadOptions = commons.DownloadOptions.Metadata; | 803 var _downloadOptions = commons.DownloadOptions.Metadata; |
765 var _body = null; | 804 var _body = null; |
766 | 805 |
767 if (request != null) { | 806 if (request != null) { |
768 _body = convert.JSON.encode((request).toJson()); | 807 _body = convert.JSON.encode((request).toJson()); |
769 } | 808 } |
770 if (projectId == null) { | 809 if (projectId == null) { |
771 throw new core.ArgumentError("Parameter projectId is required."); | 810 throw new core.ArgumentError("Parameter projectId is required."); |
772 } | 811 } |
773 if (zone == null) { | 812 if (zone == null) { |
774 throw new core.ArgumentError("Parameter zone is required."); | 813 throw new core.ArgumentError("Parameter zone is required."); |
775 } | 814 } |
776 if (clusterId == null) { | 815 if (clusterId == null) { |
777 throw new core.ArgumentError("Parameter clusterId is required."); | 816 throw new core.ArgumentError("Parameter clusterId is required."); |
778 } | 817 } |
779 | 818 |
780 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/resourceLabels'; | 819 _url = 'v1/projects/' + |
| 820 commons.Escaper.ecapeVariable('$projectId') + |
| 821 '/zones/' + |
| 822 commons.Escaper.ecapeVariable('$zone') + |
| 823 '/clusters/' + |
| 824 commons.Escaper.ecapeVariable('$clusterId') + |
| 825 '/resourceLabels'; |
781 | 826 |
782 var _response = _requester.request(_url, | 827 var _response = _requester.request(_url, "POST", |
783 "POST", | 828 body: _body, |
784 body: _body, | 829 queryParams: _queryParams, |
785 queryParams: _queryParams, | 830 uploadOptions: _uploadOptions, |
786 uploadOptions: _uploadOptions, | 831 uploadMedia: _uploadMedia, |
787 uploadMedia: _uploadMedia, | 832 downloadOptions: _downloadOptions); |
788 downloadOptions: _downloadOptions); | |
789 return _response.then((data) => new Operation.fromJson(data)); | 833 return _response.then((data) => new Operation.fromJson(data)); |
790 } | 834 } |
791 | 835 |
792 /** | 836 /// Used to set master auth materials. Currently supports :- |
793 * Used to set master auth materials. Currently supports :- | 837 /// Changing the admin password of a specific cluster. |
794 * Changing the admin password of a specific cluster. | 838 /// This can be either via password generation or explicitly set the |
795 * This can be either via password generation or explicitly set the password. | 839 /// password. |
796 * | 840 /// |
797 * [request] - The metadata request object. | 841 /// [request] - The metadata request object. |
798 * | 842 /// |
799 * Request parameters: | 843 /// Request parameters: |
800 * | 844 /// |
801 * [projectId] - The Google Developers Console [project ID or project | 845 /// [projectId] - The Google Developers Console [project ID or project |
802 * number](https://support.google.com/cloud/answer/6158840). | 846 /// number](https://support.google.com/cloud/answer/6158840). |
803 * | 847 /// |
804 * [zone] - The name of the Google Compute Engine | 848 /// [zone] - The name of the Google Compute Engine |
805 * [zone](/compute/docs/zones#available) in which the cluster | 849 /// [zone](/compute/docs/zones#available) in which the cluster |
806 * resides. | 850 /// resides. |
807 * | 851 /// |
808 * [clusterId] - The name of the cluster to upgrade. | 852 /// [clusterId] - The name of the cluster to upgrade. |
809 * | 853 /// |
810 * Completes with a [Operation]. | 854 /// Completes with a [Operation]. |
811 * | 855 /// |
812 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 856 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
813 * error. | 857 /// an error. |
814 * | 858 /// |
815 * If the used [http.Client] completes with an error when making a REST call, | 859 /// If the used [http.Client] completes with an error when making a REST |
816 * this method will complete with the same error. | 860 /// call, this method will complete with the same error. |
817 */ | 861 async.Future<Operation> setMasterAuth(SetMasterAuthRequest request, |
818 async.Future<Operation> setMasterAuth(SetMasterAuthRequest request, core.Strin
g projectId, core.String zone, core.String clusterId) { | 862 core.String projectId, core.String zone, core.String clusterId) { |
819 var _url = null; | 863 var _url = null; |
820 var _queryParams = new core.Map(); | 864 var _queryParams = new core.Map(); |
821 var _uploadMedia = null; | 865 var _uploadMedia = null; |
822 var _uploadOptions = null; | 866 var _uploadOptions = null; |
823 var _downloadOptions = commons.DownloadOptions.Metadata; | 867 var _downloadOptions = commons.DownloadOptions.Metadata; |
824 var _body = null; | 868 var _body = null; |
825 | 869 |
826 if (request != null) { | 870 if (request != null) { |
827 _body = convert.JSON.encode((request).toJson()); | 871 _body = convert.JSON.encode((request).toJson()); |
828 } | 872 } |
829 if (projectId == null) { | 873 if (projectId == null) { |
830 throw new core.ArgumentError("Parameter projectId is required."); | 874 throw new core.ArgumentError("Parameter projectId is required."); |
831 } | 875 } |
832 if (zone == null) { | 876 if (zone == null) { |
833 throw new core.ArgumentError("Parameter zone is required."); | 877 throw new core.ArgumentError("Parameter zone is required."); |
834 } | 878 } |
835 if (clusterId == null) { | 879 if (clusterId == null) { |
836 throw new core.ArgumentError("Parameter clusterId is required."); | 880 throw new core.ArgumentError("Parameter clusterId is required."); |
837 } | 881 } |
838 | 882 |
839 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + ':setMasterAuth'; | 883 _url = 'v1/projects/' + |
| 884 commons.Escaper.ecapeVariable('$projectId') + |
| 885 '/zones/' + |
| 886 commons.Escaper.ecapeVariable('$zone') + |
| 887 '/clusters/' + |
| 888 commons.Escaper.ecapeVariable('$clusterId') + |
| 889 ':setMasterAuth'; |
840 | 890 |
841 var _response = _requester.request(_url, | 891 var _response = _requester.request(_url, "POST", |
842 "POST", | 892 body: _body, |
843 body: _body, | 893 queryParams: _queryParams, |
844 queryParams: _queryParams, | 894 uploadOptions: _uploadOptions, |
845 uploadOptions: _uploadOptions, | 895 uploadMedia: _uploadMedia, |
846 uploadMedia: _uploadMedia, | 896 downloadOptions: _downloadOptions); |
847 downloadOptions: _downloadOptions); | |
848 return _response.then((data) => new Operation.fromJson(data)); | 897 return _response.then((data) => new Operation.fromJson(data)); |
849 } | 898 } |
850 | 899 |
851 /** | 900 /// Enables/Disables Network Policy for a cluster. |
852 * Enables/Disables Network Policy for a cluster. | 901 /// |
853 * | 902 /// [request] - The metadata request object. |
854 * [request] - The metadata request object. | 903 /// |
855 * | 904 /// Request parameters: |
856 * Request parameters: | 905 /// |
857 * | 906 /// [projectId] - The Google Developers Console [project ID or project |
858 * [projectId] - The Google Developers Console [project ID or project | 907 /// number](https://developers.google.com/console/help/new/#projectnumber). |
859 * number](https://developers.google.com/console/help/new/#projectnumber). | 908 /// |
860 * | 909 /// [zone] - The name of the Google Compute Engine |
861 * [zone] - The name of the Google Compute Engine | 910 /// [zone](/compute/docs/zones#available) in which the cluster |
862 * [zone](/compute/docs/zones#available) in which the cluster | 911 /// resides. |
863 * resides. | 912 /// |
864 * | 913 /// [clusterId] - The name of the cluster. |
865 * [clusterId] - The name of the cluster. | 914 /// |
866 * | 915 /// Completes with a [Operation]. |
867 * Completes with a [Operation]. | 916 /// |
868 * | 917 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
869 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 918 /// an error. |
870 * error. | 919 /// |
871 * | 920 /// If the used [http.Client] completes with an error when making a REST |
872 * If the used [http.Client] completes with an error when making a REST call, | 921 /// call, this method will complete with the same error. |
873 * this method will complete with the same error. | 922 async.Future<Operation> setNetworkPolicy(SetNetworkPolicyRequest request, |
874 */ | 923 core.String projectId, core.String zone, core.String clusterId) { |
875 async.Future<Operation> setNetworkPolicy(SetNetworkPolicyRequest request, core
.String projectId, core.String zone, core.String clusterId) { | |
876 var _url = null; | 924 var _url = null; |
877 var _queryParams = new core.Map(); | 925 var _queryParams = new core.Map(); |
878 var _uploadMedia = null; | 926 var _uploadMedia = null; |
879 var _uploadOptions = null; | 927 var _uploadOptions = null; |
880 var _downloadOptions = commons.DownloadOptions.Metadata; | 928 var _downloadOptions = commons.DownloadOptions.Metadata; |
881 var _body = null; | 929 var _body = null; |
882 | 930 |
883 if (request != null) { | 931 if (request != null) { |
884 _body = convert.JSON.encode((request).toJson()); | 932 _body = convert.JSON.encode((request).toJson()); |
885 } | 933 } |
886 if (projectId == null) { | 934 if (projectId == null) { |
887 throw new core.ArgumentError("Parameter projectId is required."); | 935 throw new core.ArgumentError("Parameter projectId is required."); |
888 } | 936 } |
889 if (zone == null) { | 937 if (zone == null) { |
890 throw new core.ArgumentError("Parameter zone is required."); | 938 throw new core.ArgumentError("Parameter zone is required."); |
891 } | 939 } |
892 if (clusterId == null) { | 940 if (clusterId == null) { |
893 throw new core.ArgumentError("Parameter clusterId is required."); | 941 throw new core.ArgumentError("Parameter clusterId is required."); |
894 } | 942 } |
895 | 943 |
896 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + ':setNetworkPolicy'; | 944 _url = 'v1/projects/' + |
| 945 commons.Escaper.ecapeVariable('$projectId') + |
| 946 '/zones/' + |
| 947 commons.Escaper.ecapeVariable('$zone') + |
| 948 '/clusters/' + |
| 949 commons.Escaper.ecapeVariable('$clusterId') + |
| 950 ':setNetworkPolicy'; |
897 | 951 |
898 var _response = _requester.request(_url, | 952 var _response = _requester.request(_url, "POST", |
899 "POST", | 953 body: _body, |
900 body: _body, | 954 queryParams: _queryParams, |
901 queryParams: _queryParams, | 955 uploadOptions: _uploadOptions, |
902 uploadOptions: _uploadOptions, | 956 uploadMedia: _uploadMedia, |
903 uploadMedia: _uploadMedia, | 957 downloadOptions: _downloadOptions); |
904 downloadOptions: _downloadOptions); | |
905 return _response.then((data) => new Operation.fromJson(data)); | 958 return _response.then((data) => new Operation.fromJson(data)); |
906 } | 959 } |
907 | 960 |
908 /** | 961 /// Start master IP rotation. |
909 * Start master IP rotation. | 962 /// |
910 * | 963 /// [request] - The metadata request object. |
911 * [request] - The metadata request object. | 964 /// |
912 * | 965 /// Request parameters: |
913 * Request parameters: | 966 /// |
914 * | 967 /// [projectId] - The Google Developers Console [project ID or project |
915 * [projectId] - The Google Developers Console [project ID or project | 968 /// number](https://developers.google.com/console/help/new/#projectnumber). |
916 * number](https://developers.google.com/console/help/new/#projectnumber). | 969 /// |
917 * | 970 /// [zone] - The name of the Google Compute Engine |
918 * [zone] - The name of the Google Compute Engine | 971 /// [zone](/compute/docs/zones#available) in which the cluster |
919 * [zone](/compute/docs/zones#available) in which the cluster | 972 /// resides. |
920 * resides. | 973 /// |
921 * | 974 /// [clusterId] - The name of the cluster. |
922 * [clusterId] - The name of the cluster. | 975 /// |
923 * | 976 /// Completes with a [Operation]. |
924 * Completes with a [Operation]. | 977 /// |
925 * | 978 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
926 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 979 /// an error. |
927 * error. | 980 /// |
928 * | 981 /// If the used [http.Client] completes with an error when making a REST |
929 * If the used [http.Client] completes with an error when making a REST call, | 982 /// call, this method will complete with the same error. |
930 * this method will complete with the same error. | 983 async.Future<Operation> startIpRotation(StartIPRotationRequest request, |
931 */ | 984 core.String projectId, core.String zone, core.String clusterId) { |
932 async.Future<Operation> startIpRotation(StartIPRotationRequest request, core.S
tring projectId, core.String zone, core.String clusterId) { | |
933 var _url = null; | 985 var _url = null; |
934 var _queryParams = new core.Map(); | 986 var _queryParams = new core.Map(); |
935 var _uploadMedia = null; | 987 var _uploadMedia = null; |
936 var _uploadOptions = null; | 988 var _uploadOptions = null; |
937 var _downloadOptions = commons.DownloadOptions.Metadata; | 989 var _downloadOptions = commons.DownloadOptions.Metadata; |
938 var _body = null; | 990 var _body = null; |
939 | 991 |
940 if (request != null) { | 992 if (request != null) { |
941 _body = convert.JSON.encode((request).toJson()); | 993 _body = convert.JSON.encode((request).toJson()); |
942 } | 994 } |
943 if (projectId == null) { | 995 if (projectId == null) { |
944 throw new core.ArgumentError("Parameter projectId is required."); | 996 throw new core.ArgumentError("Parameter projectId is required."); |
945 } | 997 } |
946 if (zone == null) { | 998 if (zone == null) { |
947 throw new core.ArgumentError("Parameter zone is required."); | 999 throw new core.ArgumentError("Parameter zone is required."); |
948 } | 1000 } |
949 if (clusterId == null) { | 1001 if (clusterId == null) { |
950 throw new core.ArgumentError("Parameter clusterId is required."); | 1002 throw new core.ArgumentError("Parameter clusterId is required."); |
951 } | 1003 } |
952 | 1004 |
953 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + ':startIpRotation'; | 1005 _url = 'v1/projects/' + |
| 1006 commons.Escaper.ecapeVariable('$projectId') + |
| 1007 '/zones/' + |
| 1008 commons.Escaper.ecapeVariable('$zone') + |
| 1009 '/clusters/' + |
| 1010 commons.Escaper.ecapeVariable('$clusterId') + |
| 1011 ':startIpRotation'; |
954 | 1012 |
955 var _response = _requester.request(_url, | 1013 var _response = _requester.request(_url, "POST", |
956 "POST", | 1014 body: _body, |
957 body: _body, | 1015 queryParams: _queryParams, |
958 queryParams: _queryParams, | 1016 uploadOptions: _uploadOptions, |
959 uploadOptions: _uploadOptions, | 1017 uploadMedia: _uploadMedia, |
960 uploadMedia: _uploadMedia, | 1018 downloadOptions: _downloadOptions); |
961 downloadOptions: _downloadOptions); | |
962 return _response.then((data) => new Operation.fromJson(data)); | 1019 return _response.then((data) => new Operation.fromJson(data)); |
963 } | 1020 } |
964 | 1021 |
965 /** | 1022 /// Updates the settings of a specific cluster. |
966 * Updates the settings of a specific cluster. | 1023 /// |
967 * | 1024 /// [request] - The metadata request object. |
968 * [request] - The metadata request object. | 1025 /// |
969 * | 1026 /// Request parameters: |
970 * Request parameters: | 1027 /// |
971 * | 1028 /// [projectId] - The Google Developers Console [project ID or project |
972 * [projectId] - The Google Developers Console [project ID or project | 1029 /// number](https://support.google.com/cloud/answer/6158840). |
973 * number](https://support.google.com/cloud/answer/6158840). | 1030 /// |
974 * | 1031 /// [zone] - The name of the Google Compute Engine |
975 * [zone] - The name of the Google Compute Engine | 1032 /// [zone](/compute/docs/zones#available) in which the cluster |
976 * [zone](/compute/docs/zones#available) in which the cluster | 1033 /// resides. |
977 * resides. | 1034 /// |
978 * | 1035 /// [clusterId] - The name of the cluster to upgrade. |
979 * [clusterId] - The name of the cluster to upgrade. | 1036 /// |
980 * | 1037 /// Completes with a [Operation]. |
981 * Completes with a [Operation]. | 1038 /// |
982 * | 1039 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1040 /// an error. |
984 * error. | 1041 /// |
985 * | 1042 /// If the used [http.Client] completes with an error when making a REST |
986 * If the used [http.Client] completes with an error when making a REST call, | 1043 /// call, this method will complete with the same error. |
987 * this method will complete with the same error. | 1044 async.Future<Operation> update(UpdateClusterRequest request, |
988 */ | 1045 core.String projectId, core.String zone, core.String clusterId) { |
989 async.Future<Operation> update(UpdateClusterRequest request, core.String proje
ctId, core.String zone, core.String clusterId) { | |
990 var _url = null; | 1046 var _url = null; |
991 var _queryParams = new core.Map(); | 1047 var _queryParams = new core.Map(); |
992 var _uploadMedia = null; | 1048 var _uploadMedia = null; |
993 var _uploadOptions = null; | 1049 var _uploadOptions = null; |
994 var _downloadOptions = commons.DownloadOptions.Metadata; | 1050 var _downloadOptions = commons.DownloadOptions.Metadata; |
995 var _body = null; | 1051 var _body = null; |
996 | 1052 |
997 if (request != null) { | 1053 if (request != null) { |
998 _body = convert.JSON.encode((request).toJson()); | 1054 _body = convert.JSON.encode((request).toJson()); |
999 } | 1055 } |
1000 if (projectId == null) { | 1056 if (projectId == null) { |
1001 throw new core.ArgumentError("Parameter projectId is required."); | 1057 throw new core.ArgumentError("Parameter projectId is required."); |
1002 } | 1058 } |
1003 if (zone == null) { | 1059 if (zone == null) { |
1004 throw new core.ArgumentError("Parameter zone is required."); | 1060 throw new core.ArgumentError("Parameter zone is required."); |
1005 } | 1061 } |
1006 if (clusterId == null) { | 1062 if (clusterId == null) { |
1007 throw new core.ArgumentError("Parameter clusterId is required."); | 1063 throw new core.ArgumentError("Parameter clusterId is required."); |
1008 } | 1064 } |
1009 | 1065 |
1010 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId'); | 1066 _url = 'v1/projects/' + |
| 1067 commons.Escaper.ecapeVariable('$projectId') + |
| 1068 '/zones/' + |
| 1069 commons.Escaper.ecapeVariable('$zone') + |
| 1070 '/clusters/' + |
| 1071 commons.Escaper.ecapeVariable('$clusterId'); |
1011 | 1072 |
1012 var _response = _requester.request(_url, | 1073 var _response = _requester.request(_url, "PUT", |
1013 "PUT", | 1074 body: _body, |
1014 body: _body, | 1075 queryParams: _queryParams, |
1015 queryParams: _queryParams, | 1076 uploadOptions: _uploadOptions, |
1016 uploadOptions: _uploadOptions, | 1077 uploadMedia: _uploadMedia, |
1017 uploadMedia: _uploadMedia, | 1078 downloadOptions: _downloadOptions); |
1018 downloadOptions: _downloadOptions); | |
1019 return _response.then((data) => new Operation.fromJson(data)); | 1079 return _response.then((data) => new Operation.fromJson(data)); |
1020 } | 1080 } |
1021 | |
1022 } | 1081 } |
1023 | 1082 |
1024 | |
1025 class ProjectsZonesClustersNodePoolsResourceApi { | 1083 class ProjectsZonesClustersNodePoolsResourceApi { |
1026 final commons.ApiRequester _requester; | 1084 final commons.ApiRequester _requester; |
1027 | 1085 |
1028 ProjectsZonesClustersNodePoolsResourceApi(commons.ApiRequester client) : | 1086 ProjectsZonesClustersNodePoolsResourceApi(commons.ApiRequester client) |
1029 _requester = client; | 1087 : _requester = client; |
1030 | 1088 |
1031 /** | 1089 /// Sets the autoscaling settings of a specific node pool. |
1032 * Sets the autoscaling settings of a specific node pool. | 1090 /// |
1033 * | 1091 /// [request] - The metadata request object. |
1034 * [request] - The metadata request object. | 1092 /// |
1035 * | 1093 /// Request parameters: |
1036 * Request parameters: | 1094 /// |
1037 * | 1095 /// [projectId] - The Google Developers Console [project ID or project |
1038 * [projectId] - The Google Developers Console [project ID or project | 1096 /// number](https://support.google.com/cloud/answer/6158840). |
1039 * number](https://support.google.com/cloud/answer/6158840). | 1097 /// |
1040 * | 1098 /// [zone] - The name of the Google Compute Engine |
1041 * [zone] - The name of the Google Compute Engine | 1099 /// [zone](/compute/docs/zones#available) in which the cluster |
1042 * [zone](/compute/docs/zones#available) in which the cluster | 1100 /// resides. |
1043 * resides. | 1101 /// |
1044 * | 1102 /// [clusterId] - The name of the cluster to upgrade. |
1045 * [clusterId] - The name of the cluster to upgrade. | 1103 /// |
1046 * | 1104 /// [nodePoolId] - The name of the node pool to upgrade. |
1047 * [nodePoolId] - The name of the node pool to upgrade. | 1105 /// |
1048 * | 1106 /// Completes with a [Operation]. |
1049 * Completes with a [Operation]. | 1107 /// |
1050 * | 1108 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1051 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1109 /// an error. |
1052 * error. | 1110 /// |
1053 * | 1111 /// If the used [http.Client] completes with an error when making a REST |
1054 * If the used [http.Client] completes with an error when making a REST call, | 1112 /// call, this method will complete with the same error. |
1055 * this method will complete with the same error. | 1113 async.Future<Operation> autoscaling( |
1056 */ | 1114 SetNodePoolAutoscalingRequest request, |
1057 async.Future<Operation> autoscaling(SetNodePoolAutoscalingRequest request, cor
e.String projectId, core.String zone, core.String clusterId, core.String nodePoo
lId) { | 1115 core.String projectId, |
| 1116 core.String zone, |
| 1117 core.String clusterId, |
| 1118 core.String nodePoolId) { |
1058 var _url = null; | 1119 var _url = null; |
1059 var _queryParams = new core.Map(); | 1120 var _queryParams = new core.Map(); |
1060 var _uploadMedia = null; | 1121 var _uploadMedia = null; |
1061 var _uploadOptions = null; | 1122 var _uploadOptions = null; |
1062 var _downloadOptions = commons.DownloadOptions.Metadata; | 1123 var _downloadOptions = commons.DownloadOptions.Metadata; |
1063 var _body = null; | 1124 var _body = null; |
1064 | 1125 |
1065 if (request != null) { | 1126 if (request != null) { |
1066 _body = convert.JSON.encode((request).toJson()); | 1127 _body = convert.JSON.encode((request).toJson()); |
1067 } | 1128 } |
1068 if (projectId == null) { | 1129 if (projectId == null) { |
1069 throw new core.ArgumentError("Parameter projectId is required."); | 1130 throw new core.ArgumentError("Parameter projectId is required."); |
1070 } | 1131 } |
1071 if (zone == null) { | 1132 if (zone == null) { |
1072 throw new core.ArgumentError("Parameter zone is required."); | 1133 throw new core.ArgumentError("Parameter zone is required."); |
1073 } | 1134 } |
1074 if (clusterId == null) { | 1135 if (clusterId == null) { |
1075 throw new core.ArgumentError("Parameter clusterId is required."); | 1136 throw new core.ArgumentError("Parameter clusterId is required."); |
1076 } | 1137 } |
1077 if (nodePoolId == null) { | 1138 if (nodePoolId == null) { |
1078 throw new core.ArgumentError("Parameter nodePoolId is required."); | 1139 throw new core.ArgumentError("Parameter nodePoolId is required."); |
1079 } | 1140 } |
1080 | 1141 |
1081 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node
PoolId') + '/autoscaling'; | 1142 _url = 'v1/projects/' + |
| 1143 commons.Escaper.ecapeVariable('$projectId') + |
| 1144 '/zones/' + |
| 1145 commons.Escaper.ecapeVariable('$zone') + |
| 1146 '/clusters/' + |
| 1147 commons.Escaper.ecapeVariable('$clusterId') + |
| 1148 '/nodePools/' + |
| 1149 commons.Escaper.ecapeVariable('$nodePoolId') + |
| 1150 '/autoscaling'; |
1082 | 1151 |
1083 var _response = _requester.request(_url, | 1152 var _response = _requester.request(_url, "POST", |
1084 "POST", | 1153 body: _body, |
1085 body: _body, | 1154 queryParams: _queryParams, |
1086 queryParams: _queryParams, | 1155 uploadOptions: _uploadOptions, |
1087 uploadOptions: _uploadOptions, | 1156 uploadMedia: _uploadMedia, |
1088 uploadMedia: _uploadMedia, | 1157 downloadOptions: _downloadOptions); |
1089 downloadOptions: _downloadOptions); | |
1090 return _response.then((data) => new Operation.fromJson(data)); | 1158 return _response.then((data) => new Operation.fromJson(data)); |
1091 } | 1159 } |
1092 | 1160 |
1093 /** | 1161 /// Creates a node pool for a cluster. |
1094 * Creates a node pool for a cluster. | 1162 /// |
1095 * | 1163 /// [request] - The metadata request object. |
1096 * [request] - The metadata request object. | 1164 /// |
1097 * | 1165 /// Request parameters: |
1098 * Request parameters: | 1166 /// |
1099 * | 1167 /// [projectId] - The Google Developers Console [project ID or project |
1100 * [projectId] - The Google Developers Console [project ID or project | 1168 /// number](https://developers.google.com/console/help/new/#projectnumber). |
1101 * number](https://developers.google.com/console/help/new/#projectnumber). | 1169 /// |
1102 * | 1170 /// [zone] - The name of the Google Compute Engine |
1103 * [zone] - The name of the Google Compute Engine | 1171 /// [zone](/compute/docs/zones#available) in which the cluster |
1104 * [zone](/compute/docs/zones#available) in which the cluster | 1172 /// resides. |
1105 * resides. | 1173 /// |
1106 * | 1174 /// [clusterId] - The name of the cluster. |
1107 * [clusterId] - The name of the cluster. | 1175 /// |
1108 * | 1176 /// Completes with a [Operation]. |
1109 * Completes with a [Operation]. | 1177 /// |
1110 * | 1178 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1111 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1179 /// an error. |
1112 * error. | 1180 /// |
1113 * | 1181 /// If the used [http.Client] completes with an error when making a REST |
1114 * If the used [http.Client] completes with an error when making a REST call, | 1182 /// call, this method will complete with the same error. |
1115 * this method will complete with the same error. | 1183 async.Future<Operation> create(CreateNodePoolRequest request, |
1116 */ | 1184 core.String projectId, core.String zone, core.String clusterId) { |
1117 async.Future<Operation> create(CreateNodePoolRequest request, core.String proj
ectId, core.String zone, core.String clusterId) { | |
1118 var _url = null; | 1185 var _url = null; |
1119 var _queryParams = new core.Map(); | 1186 var _queryParams = new core.Map(); |
1120 var _uploadMedia = null; | 1187 var _uploadMedia = null; |
1121 var _uploadOptions = null; | 1188 var _uploadOptions = null; |
1122 var _downloadOptions = commons.DownloadOptions.Metadata; | 1189 var _downloadOptions = commons.DownloadOptions.Metadata; |
1123 var _body = null; | 1190 var _body = null; |
1124 | 1191 |
1125 if (request != null) { | 1192 if (request != null) { |
1126 _body = convert.JSON.encode((request).toJson()); | 1193 _body = convert.JSON.encode((request).toJson()); |
1127 } | 1194 } |
1128 if (projectId == null) { | 1195 if (projectId == null) { |
1129 throw new core.ArgumentError("Parameter projectId is required."); | 1196 throw new core.ArgumentError("Parameter projectId is required."); |
1130 } | 1197 } |
1131 if (zone == null) { | 1198 if (zone == null) { |
1132 throw new core.ArgumentError("Parameter zone is required."); | 1199 throw new core.ArgumentError("Parameter zone is required."); |
1133 } | 1200 } |
1134 if (clusterId == null) { | 1201 if (clusterId == null) { |
1135 throw new core.ArgumentError("Parameter clusterId is required."); | 1202 throw new core.ArgumentError("Parameter clusterId is required."); |
1136 } | 1203 } |
1137 | 1204 |
1138 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools'; | 1205 _url = 'v1/projects/' + |
| 1206 commons.Escaper.ecapeVariable('$projectId') + |
| 1207 '/zones/' + |
| 1208 commons.Escaper.ecapeVariable('$zone') + |
| 1209 '/clusters/' + |
| 1210 commons.Escaper.ecapeVariable('$clusterId') + |
| 1211 '/nodePools'; |
1139 | 1212 |
1140 var _response = _requester.request(_url, | 1213 var _response = _requester.request(_url, "POST", |
1141 "POST", | 1214 body: _body, |
1142 body: _body, | 1215 queryParams: _queryParams, |
1143 queryParams: _queryParams, | 1216 uploadOptions: _uploadOptions, |
1144 uploadOptions: _uploadOptions, | 1217 uploadMedia: _uploadMedia, |
1145 uploadMedia: _uploadMedia, | 1218 downloadOptions: _downloadOptions); |
1146 downloadOptions: _downloadOptions); | |
1147 return _response.then((data) => new Operation.fromJson(data)); | 1219 return _response.then((data) => new Operation.fromJson(data)); |
1148 } | 1220 } |
1149 | 1221 |
1150 /** | 1222 /// Deletes a node pool from a cluster. |
1151 * Deletes a node pool from a cluster. | 1223 /// |
1152 * | 1224 /// Request parameters: |
1153 * Request parameters: | 1225 /// |
1154 * | 1226 /// [projectId] - The Google Developers Console [project ID or project |
1155 * [projectId] - The Google Developers Console [project ID or project | 1227 /// number](https://developers.google.com/console/help/new/#projectnumber). |
1156 * number](https://developers.google.com/console/help/new/#projectnumber). | 1228 /// |
1157 * | 1229 /// [zone] - The name of the Google Compute Engine |
1158 * [zone] - The name of the Google Compute Engine | 1230 /// [zone](/compute/docs/zones#available) in which the cluster |
1159 * [zone](/compute/docs/zones#available) in which the cluster | 1231 /// resides. |
1160 * resides. | 1232 /// |
1161 * | 1233 /// [clusterId] - The name of the cluster. |
1162 * [clusterId] - The name of the cluster. | 1234 /// |
1163 * | 1235 /// [nodePoolId] - The name of the node pool to delete. |
1164 * [nodePoolId] - The name of the node pool to delete. | 1236 /// |
1165 * | 1237 /// Completes with a [Operation]. |
1166 * Completes with a [Operation]. | 1238 /// |
1167 * | 1239 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1168 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1240 /// an error. |
1169 * error. | 1241 /// |
1170 * | 1242 /// If the used [http.Client] completes with an error when making a REST |
1171 * If the used [http.Client] completes with an error when making a REST call, | 1243 /// call, this method will complete with the same error. |
1172 * this method will complete with the same error. | 1244 async.Future<Operation> delete(core.String projectId, core.String zone, |
1173 */ | 1245 core.String clusterId, core.String nodePoolId) { |
1174 async.Future<Operation> delete(core.String projectId, core.String zone, core.S
tring clusterId, core.String nodePoolId) { | |
1175 var _url = null; | 1246 var _url = null; |
1176 var _queryParams = new core.Map(); | 1247 var _queryParams = new core.Map(); |
1177 var _uploadMedia = null; | 1248 var _uploadMedia = null; |
1178 var _uploadOptions = null; | 1249 var _uploadOptions = null; |
1179 var _downloadOptions = commons.DownloadOptions.Metadata; | 1250 var _downloadOptions = commons.DownloadOptions.Metadata; |
1180 var _body = null; | 1251 var _body = null; |
1181 | 1252 |
1182 if (projectId == null) { | 1253 if (projectId == null) { |
1183 throw new core.ArgumentError("Parameter projectId is required."); | 1254 throw new core.ArgumentError("Parameter projectId is required."); |
1184 } | 1255 } |
1185 if (zone == null) { | 1256 if (zone == null) { |
1186 throw new core.ArgumentError("Parameter zone is required."); | 1257 throw new core.ArgumentError("Parameter zone is required."); |
1187 } | 1258 } |
1188 if (clusterId == null) { | 1259 if (clusterId == null) { |
1189 throw new core.ArgumentError("Parameter clusterId is required."); | 1260 throw new core.ArgumentError("Parameter clusterId is required."); |
1190 } | 1261 } |
1191 if (nodePoolId == null) { | 1262 if (nodePoolId == null) { |
1192 throw new core.ArgumentError("Parameter nodePoolId is required."); | 1263 throw new core.ArgumentError("Parameter nodePoolId is required."); |
1193 } | 1264 } |
1194 | 1265 |
1195 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node
PoolId'); | 1266 _url = 'v1/projects/' + |
| 1267 commons.Escaper.ecapeVariable('$projectId') + |
| 1268 '/zones/' + |
| 1269 commons.Escaper.ecapeVariable('$zone') + |
| 1270 '/clusters/' + |
| 1271 commons.Escaper.ecapeVariable('$clusterId') + |
| 1272 '/nodePools/' + |
| 1273 commons.Escaper.ecapeVariable('$nodePoolId'); |
1196 | 1274 |
1197 var _response = _requester.request(_url, | 1275 var _response = _requester.request(_url, "DELETE", |
1198 "DELETE", | 1276 body: _body, |
1199 body: _body, | 1277 queryParams: _queryParams, |
1200 queryParams: _queryParams, | 1278 uploadOptions: _uploadOptions, |
1201 uploadOptions: _uploadOptions, | 1279 uploadMedia: _uploadMedia, |
1202 uploadMedia: _uploadMedia, | 1280 downloadOptions: _downloadOptions); |
1203 downloadOptions: _downloadOptions); | |
1204 return _response.then((data) => new Operation.fromJson(data)); | 1281 return _response.then((data) => new Operation.fromJson(data)); |
1205 } | 1282 } |
1206 | 1283 |
1207 /** | 1284 /// Retrieves the node pool requested. |
1208 * Retrieves the node pool requested. | 1285 /// |
1209 * | 1286 /// Request parameters: |
1210 * Request parameters: | 1287 /// |
1211 * | 1288 /// [projectId] - The Google Developers Console [project ID or project |
1212 * [projectId] - The Google Developers Console [project ID or project | 1289 /// number](https://developers.google.com/console/help/new/#projectnumber). |
1213 * number](https://developers.google.com/console/help/new/#projectnumber). | 1290 /// |
1214 * | 1291 /// [zone] - The name of the Google Compute Engine |
1215 * [zone] - The name of the Google Compute Engine | 1292 /// [zone](/compute/docs/zones#available) in which the cluster |
1216 * [zone](/compute/docs/zones#available) in which the cluster | 1293 /// resides. |
1217 * resides. | 1294 /// |
1218 * | 1295 /// [clusterId] - The name of the cluster. |
1219 * [clusterId] - The name of the cluster. | 1296 /// |
1220 * | 1297 /// [nodePoolId] - The name of the node pool. |
1221 * [nodePoolId] - The name of the node pool. | 1298 /// |
1222 * | 1299 /// Completes with a [NodePool]. |
1223 * Completes with a [NodePool]. | 1300 /// |
1224 * | 1301 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1225 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1302 /// an error. |
1226 * error. | 1303 /// |
1227 * | 1304 /// If the used [http.Client] completes with an error when making a REST |
1228 * If the used [http.Client] completes with an error when making a REST call, | 1305 /// call, this method will complete with the same error. |
1229 * this method will complete with the same error. | 1306 async.Future<NodePool> get(core.String projectId, core.String zone, |
1230 */ | 1307 core.String clusterId, core.String nodePoolId) { |
1231 async.Future<NodePool> get(core.String projectId, core.String zone, core.Strin
g clusterId, core.String nodePoolId) { | |
1232 var _url = null; | 1308 var _url = null; |
1233 var _queryParams = new core.Map(); | 1309 var _queryParams = new core.Map(); |
1234 var _uploadMedia = null; | 1310 var _uploadMedia = null; |
1235 var _uploadOptions = null; | 1311 var _uploadOptions = null; |
1236 var _downloadOptions = commons.DownloadOptions.Metadata; | 1312 var _downloadOptions = commons.DownloadOptions.Metadata; |
1237 var _body = null; | 1313 var _body = null; |
1238 | 1314 |
1239 if (projectId == null) { | 1315 if (projectId == null) { |
1240 throw new core.ArgumentError("Parameter projectId is required."); | 1316 throw new core.ArgumentError("Parameter projectId is required."); |
1241 } | 1317 } |
1242 if (zone == null) { | 1318 if (zone == null) { |
1243 throw new core.ArgumentError("Parameter zone is required."); | 1319 throw new core.ArgumentError("Parameter zone is required."); |
1244 } | 1320 } |
1245 if (clusterId == null) { | 1321 if (clusterId == null) { |
1246 throw new core.ArgumentError("Parameter clusterId is required."); | 1322 throw new core.ArgumentError("Parameter clusterId is required."); |
1247 } | 1323 } |
1248 if (nodePoolId == null) { | 1324 if (nodePoolId == null) { |
1249 throw new core.ArgumentError("Parameter nodePoolId is required."); | 1325 throw new core.ArgumentError("Parameter nodePoolId is required."); |
1250 } | 1326 } |
1251 | 1327 |
1252 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node
PoolId'); | 1328 _url = 'v1/projects/' + |
| 1329 commons.Escaper.ecapeVariable('$projectId') + |
| 1330 '/zones/' + |
| 1331 commons.Escaper.ecapeVariable('$zone') + |
| 1332 '/clusters/' + |
| 1333 commons.Escaper.ecapeVariable('$clusterId') + |
| 1334 '/nodePools/' + |
| 1335 commons.Escaper.ecapeVariable('$nodePoolId'); |
1253 | 1336 |
1254 var _response = _requester.request(_url, | 1337 var _response = _requester.request(_url, "GET", |
1255 "GET", | 1338 body: _body, |
1256 body: _body, | 1339 queryParams: _queryParams, |
1257 queryParams: _queryParams, | 1340 uploadOptions: _uploadOptions, |
1258 uploadOptions: _uploadOptions, | 1341 uploadMedia: _uploadMedia, |
1259 uploadMedia: _uploadMedia, | 1342 downloadOptions: _downloadOptions); |
1260 downloadOptions: _downloadOptions); | |
1261 return _response.then((data) => new NodePool.fromJson(data)); | 1343 return _response.then((data) => new NodePool.fromJson(data)); |
1262 } | 1344 } |
1263 | 1345 |
1264 /** | 1346 /// Lists the node pools for a cluster. |
1265 * Lists the node pools for a cluster. | 1347 /// |
1266 * | 1348 /// Request parameters: |
1267 * Request parameters: | 1349 /// |
1268 * | 1350 /// [projectId] - The Google Developers Console [project ID or project |
1269 * [projectId] - The Google Developers Console [project ID or project | 1351 /// number](https://developers.google.com/console/help/new/#projectnumber). |
1270 * number](https://developers.google.com/console/help/new/#projectnumber). | 1352 /// |
1271 * | 1353 /// [zone] - The name of the Google Compute Engine |
1272 * [zone] - The name of the Google Compute Engine | 1354 /// [zone](/compute/docs/zones#available) in which the cluster |
1273 * [zone](/compute/docs/zones#available) in which the cluster | 1355 /// resides. |
1274 * resides. | 1356 /// |
1275 * | 1357 /// [clusterId] - The name of the cluster. |
1276 * [clusterId] - The name of the cluster. | 1358 /// |
1277 * | 1359 /// Completes with a [ListNodePoolsResponse]. |
1278 * Completes with a [ListNodePoolsResponse]. | 1360 /// |
1279 * | 1361 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1280 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1362 /// an error. |
1281 * error. | 1363 /// |
1282 * | 1364 /// If the used [http.Client] completes with an error when making a REST |
1283 * If the used [http.Client] completes with an error when making a REST call, | 1365 /// call, this method will complete with the same error. |
1284 * this method will complete with the same error. | 1366 async.Future<ListNodePoolsResponse> list( |
1285 */ | 1367 core.String projectId, core.String zone, core.String clusterId) { |
1286 async.Future<ListNodePoolsResponse> list(core.String projectId, core.String zo
ne, core.String clusterId) { | |
1287 var _url = null; | 1368 var _url = null; |
1288 var _queryParams = new core.Map(); | 1369 var _queryParams = new core.Map(); |
1289 var _uploadMedia = null; | 1370 var _uploadMedia = null; |
1290 var _uploadOptions = null; | 1371 var _uploadOptions = null; |
1291 var _downloadOptions = commons.DownloadOptions.Metadata; | 1372 var _downloadOptions = commons.DownloadOptions.Metadata; |
1292 var _body = null; | 1373 var _body = null; |
1293 | 1374 |
1294 if (projectId == null) { | 1375 if (projectId == null) { |
1295 throw new core.ArgumentError("Parameter projectId is required."); | 1376 throw new core.ArgumentError("Parameter projectId is required."); |
1296 } | 1377 } |
1297 if (zone == null) { | 1378 if (zone == null) { |
1298 throw new core.ArgumentError("Parameter zone is required."); | 1379 throw new core.ArgumentError("Parameter zone is required."); |
1299 } | 1380 } |
1300 if (clusterId == null) { | 1381 if (clusterId == null) { |
1301 throw new core.ArgumentError("Parameter clusterId is required."); | 1382 throw new core.ArgumentError("Parameter clusterId is required."); |
1302 } | 1383 } |
1303 | 1384 |
1304 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools'; | 1385 _url = 'v1/projects/' + |
| 1386 commons.Escaper.ecapeVariable('$projectId') + |
| 1387 '/zones/' + |
| 1388 commons.Escaper.ecapeVariable('$zone') + |
| 1389 '/clusters/' + |
| 1390 commons.Escaper.ecapeVariable('$clusterId') + |
| 1391 '/nodePools'; |
1305 | 1392 |
1306 var _response = _requester.request(_url, | 1393 var _response = _requester.request(_url, "GET", |
1307 "GET", | 1394 body: _body, |
1308 body: _body, | 1395 queryParams: _queryParams, |
1309 queryParams: _queryParams, | 1396 uploadOptions: _uploadOptions, |
1310 uploadOptions: _uploadOptions, | 1397 uploadMedia: _uploadMedia, |
1311 uploadMedia: _uploadMedia, | 1398 downloadOptions: _downloadOptions); |
1312 downloadOptions: _downloadOptions); | |
1313 return _response.then((data) => new ListNodePoolsResponse.fromJson(data)); | 1399 return _response.then((data) => new ListNodePoolsResponse.fromJson(data)); |
1314 } | 1400 } |
1315 | 1401 |
1316 /** | 1402 /// Roll back the previously Aborted or Failed NodePool upgrade. |
1317 * Roll back the previously Aborted or Failed NodePool upgrade. | 1403 /// This will be an no-op if the last upgrade successfully completed. |
1318 * This will be an no-op if the last upgrade successfully completed. | 1404 /// |
1319 * | 1405 /// [request] - The metadata request object. |
1320 * [request] - The metadata request object. | 1406 /// |
1321 * | 1407 /// Request parameters: |
1322 * Request parameters: | 1408 /// |
1323 * | 1409 /// [projectId] - The Google Developers Console [project ID or project |
1324 * [projectId] - The Google Developers Console [project ID or project | 1410 /// number](https://support.google.com/cloud/answer/6158840). |
1325 * number](https://support.google.com/cloud/answer/6158840). | 1411 /// |
1326 * | 1412 /// [zone] - The name of the Google Compute Engine |
1327 * [zone] - The name of the Google Compute Engine | 1413 /// [zone](/compute/docs/zones#available) in which the cluster |
1328 * [zone](/compute/docs/zones#available) in which the cluster | 1414 /// resides. |
1329 * resides. | 1415 /// |
1330 * | 1416 /// [clusterId] - The name of the cluster to rollback. |
1331 * [clusterId] - The name of the cluster to rollback. | 1417 /// |
1332 * | 1418 /// [nodePoolId] - The name of the node pool to rollback. |
1333 * [nodePoolId] - The name of the node pool to rollback. | 1419 /// |
1334 * | 1420 /// Completes with a [Operation]. |
1335 * Completes with a [Operation]. | 1421 /// |
1336 * | 1422 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1337 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1423 /// an error. |
1338 * error. | 1424 /// |
1339 * | 1425 /// If the used [http.Client] completes with an error when making a REST |
1340 * If the used [http.Client] completes with an error when making a REST call, | 1426 /// call, this method will complete with the same error. |
1341 * this method will complete with the same error. | 1427 async.Future<Operation> rollback( |
1342 */ | 1428 RollbackNodePoolUpgradeRequest request, |
1343 async.Future<Operation> rollback(RollbackNodePoolUpgradeRequest request, core.
String projectId, core.String zone, core.String clusterId, core.String nodePoolI
d) { | 1429 core.String projectId, |
| 1430 core.String zone, |
| 1431 core.String clusterId, |
| 1432 core.String nodePoolId) { |
1344 var _url = null; | 1433 var _url = null; |
1345 var _queryParams = new core.Map(); | 1434 var _queryParams = new core.Map(); |
1346 var _uploadMedia = null; | 1435 var _uploadMedia = null; |
1347 var _uploadOptions = null; | 1436 var _uploadOptions = null; |
1348 var _downloadOptions = commons.DownloadOptions.Metadata; | 1437 var _downloadOptions = commons.DownloadOptions.Metadata; |
1349 var _body = null; | 1438 var _body = null; |
1350 | 1439 |
1351 if (request != null) { | 1440 if (request != null) { |
1352 _body = convert.JSON.encode((request).toJson()); | 1441 _body = convert.JSON.encode((request).toJson()); |
1353 } | 1442 } |
1354 if (projectId == null) { | 1443 if (projectId == null) { |
1355 throw new core.ArgumentError("Parameter projectId is required."); | 1444 throw new core.ArgumentError("Parameter projectId is required."); |
1356 } | 1445 } |
1357 if (zone == null) { | 1446 if (zone == null) { |
1358 throw new core.ArgumentError("Parameter zone is required."); | 1447 throw new core.ArgumentError("Parameter zone is required."); |
1359 } | 1448 } |
1360 if (clusterId == null) { | 1449 if (clusterId == null) { |
1361 throw new core.ArgumentError("Parameter clusterId is required."); | 1450 throw new core.ArgumentError("Parameter clusterId is required."); |
1362 } | 1451 } |
1363 if (nodePoolId == null) { | 1452 if (nodePoolId == null) { |
1364 throw new core.ArgumentError("Parameter nodePoolId is required."); | 1453 throw new core.ArgumentError("Parameter nodePoolId is required."); |
1365 } | 1454 } |
1366 | 1455 |
1367 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node
PoolId') + ':rollback'; | 1456 _url = 'v1/projects/' + |
| 1457 commons.Escaper.ecapeVariable('$projectId') + |
| 1458 '/zones/' + |
| 1459 commons.Escaper.ecapeVariable('$zone') + |
| 1460 '/clusters/' + |
| 1461 commons.Escaper.ecapeVariable('$clusterId') + |
| 1462 '/nodePools/' + |
| 1463 commons.Escaper.ecapeVariable('$nodePoolId') + |
| 1464 ':rollback'; |
1368 | 1465 |
1369 var _response = _requester.request(_url, | 1466 var _response = _requester.request(_url, "POST", |
1370 "POST", | 1467 body: _body, |
1371 body: _body, | 1468 queryParams: _queryParams, |
1372 queryParams: _queryParams, | 1469 uploadOptions: _uploadOptions, |
1373 uploadOptions: _uploadOptions, | 1470 uploadMedia: _uploadMedia, |
1374 uploadMedia: _uploadMedia, | 1471 downloadOptions: _downloadOptions); |
1375 downloadOptions: _downloadOptions); | |
1376 return _response.then((data) => new Operation.fromJson(data)); | 1472 return _response.then((data) => new Operation.fromJson(data)); |
1377 } | 1473 } |
1378 | 1474 |
1379 /** | 1475 /// Sets the NodeManagement options for a node pool. |
1380 * Sets the NodeManagement options for a node pool. | 1476 /// |
1381 * | 1477 /// [request] - The metadata request object. |
1382 * [request] - The metadata request object. | 1478 /// |
1383 * | 1479 /// Request parameters: |
1384 * Request parameters: | 1480 /// |
1385 * | 1481 /// [projectId] - The Google Developers Console [project ID or project |
1386 * [projectId] - The Google Developers Console [project ID or project | 1482 /// number](https://support.google.com/cloud/answer/6158840). |
1387 * number](https://support.google.com/cloud/answer/6158840). | 1483 /// |
1388 * | 1484 /// [zone] - The name of the Google Compute Engine |
1389 * [zone] - The name of the Google Compute Engine | 1485 /// [zone](/compute/docs/zones#available) in which the cluster |
1390 * [zone](/compute/docs/zones#available) in which the cluster | 1486 /// resides. |
1391 * resides. | 1487 /// |
1392 * | 1488 /// [clusterId] - The name of the cluster to update. |
1393 * [clusterId] - The name of the cluster to update. | 1489 /// |
1394 * | 1490 /// [nodePoolId] - The name of the node pool to update. |
1395 * [nodePoolId] - The name of the node pool to update. | 1491 /// |
1396 * | 1492 /// Completes with a [Operation]. |
1397 * Completes with a [Operation]. | 1493 /// |
1398 * | 1494 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1399 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1495 /// an error. |
1400 * error. | 1496 /// |
1401 * | 1497 /// If the used [http.Client] completes with an error when making a REST |
1402 * If the used [http.Client] completes with an error when making a REST call, | 1498 /// call, this method will complete with the same error. |
1403 * this method will complete with the same error. | 1499 async.Future<Operation> setManagement( |
1404 */ | 1500 SetNodePoolManagementRequest request, |
1405 async.Future<Operation> setManagement(SetNodePoolManagementRequest request, co
re.String projectId, core.String zone, core.String clusterId, core.String nodePo
olId) { | 1501 core.String projectId, |
| 1502 core.String zone, |
| 1503 core.String clusterId, |
| 1504 core.String nodePoolId) { |
1406 var _url = null; | 1505 var _url = null; |
1407 var _queryParams = new core.Map(); | 1506 var _queryParams = new core.Map(); |
1408 var _uploadMedia = null; | 1507 var _uploadMedia = null; |
1409 var _uploadOptions = null; | 1508 var _uploadOptions = null; |
1410 var _downloadOptions = commons.DownloadOptions.Metadata; | 1509 var _downloadOptions = commons.DownloadOptions.Metadata; |
1411 var _body = null; | 1510 var _body = null; |
1412 | 1511 |
1413 if (request != null) { | 1512 if (request != null) { |
1414 _body = convert.JSON.encode((request).toJson()); | 1513 _body = convert.JSON.encode((request).toJson()); |
1415 } | 1514 } |
1416 if (projectId == null) { | 1515 if (projectId == null) { |
1417 throw new core.ArgumentError("Parameter projectId is required."); | 1516 throw new core.ArgumentError("Parameter projectId is required."); |
1418 } | 1517 } |
1419 if (zone == null) { | 1518 if (zone == null) { |
1420 throw new core.ArgumentError("Parameter zone is required."); | 1519 throw new core.ArgumentError("Parameter zone is required."); |
1421 } | 1520 } |
1422 if (clusterId == null) { | 1521 if (clusterId == null) { |
1423 throw new core.ArgumentError("Parameter clusterId is required."); | 1522 throw new core.ArgumentError("Parameter clusterId is required."); |
1424 } | 1523 } |
1425 if (nodePoolId == null) { | 1524 if (nodePoolId == null) { |
1426 throw new core.ArgumentError("Parameter nodePoolId is required."); | 1525 throw new core.ArgumentError("Parameter nodePoolId is required."); |
1427 } | 1526 } |
1428 | 1527 |
1429 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node
PoolId') + '/setManagement'; | 1528 _url = 'v1/projects/' + |
| 1529 commons.Escaper.ecapeVariable('$projectId') + |
| 1530 '/zones/' + |
| 1531 commons.Escaper.ecapeVariable('$zone') + |
| 1532 '/clusters/' + |
| 1533 commons.Escaper.ecapeVariable('$clusterId') + |
| 1534 '/nodePools/' + |
| 1535 commons.Escaper.ecapeVariable('$nodePoolId') + |
| 1536 '/setManagement'; |
1430 | 1537 |
1431 var _response = _requester.request(_url, | 1538 var _response = _requester.request(_url, "POST", |
1432 "POST", | 1539 body: _body, |
1433 body: _body, | 1540 queryParams: _queryParams, |
1434 queryParams: _queryParams, | 1541 uploadOptions: _uploadOptions, |
1435 uploadOptions: _uploadOptions, | 1542 uploadMedia: _uploadMedia, |
1436 uploadMedia: _uploadMedia, | 1543 downloadOptions: _downloadOptions); |
1437 downloadOptions: _downloadOptions); | |
1438 return _response.then((data) => new Operation.fromJson(data)); | 1544 return _response.then((data) => new Operation.fromJson(data)); |
1439 } | 1545 } |
1440 | 1546 |
1441 /** | 1547 /// Sets the size of a specific node pool. |
1442 * Sets the size of a specific node pool. | 1548 /// |
1443 * | 1549 /// [request] - The metadata request object. |
1444 * [request] - The metadata request object. | 1550 /// |
1445 * | 1551 /// Request parameters: |
1446 * Request parameters: | 1552 /// |
1447 * | 1553 /// [projectId] - The Google Developers Console [project ID or project |
1448 * [projectId] - The Google Developers Console [project ID or project | 1554 /// number](https://support.google.com/cloud/answer/6158840). |
1449 * number](https://support.google.com/cloud/answer/6158840). | 1555 /// |
1450 * | 1556 /// [zone] - The name of the Google Compute Engine |
1451 * [zone] - The name of the Google Compute Engine | 1557 /// [zone](/compute/docs/zones#available) in which the cluster |
1452 * [zone](/compute/docs/zones#available) in which the cluster | 1558 /// resides. |
1453 * resides. | 1559 /// |
1454 * | 1560 /// [clusterId] - The name of the cluster to update. |
1455 * [clusterId] - The name of the cluster to update. | 1561 /// |
1456 * | 1562 /// [nodePoolId] - The name of the node pool to update. |
1457 * [nodePoolId] - The name of the node pool to update. | 1563 /// |
1458 * | 1564 /// Completes with a [Operation]. |
1459 * Completes with a [Operation]. | 1565 /// |
1460 * | 1566 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1567 /// an error. |
1462 * error. | 1568 /// |
1463 * | 1569 /// If the used [http.Client] completes with an error when making a REST |
1464 * If the used [http.Client] completes with an error when making a REST call, | 1570 /// call, this method will complete with the same error. |
1465 * this method will complete with the same error. | 1571 async.Future<Operation> setSize( |
1466 */ | 1572 SetNodePoolSizeRequest request, |
1467 async.Future<Operation> setSize(SetNodePoolSizeRequest request, core.String pr
ojectId, core.String zone, core.String clusterId, core.String nodePoolId) { | 1573 core.String projectId, |
| 1574 core.String zone, |
| 1575 core.String clusterId, |
| 1576 core.String nodePoolId) { |
1468 var _url = null; | 1577 var _url = null; |
1469 var _queryParams = new core.Map(); | 1578 var _queryParams = new core.Map(); |
1470 var _uploadMedia = null; | 1579 var _uploadMedia = null; |
1471 var _uploadOptions = null; | 1580 var _uploadOptions = null; |
1472 var _downloadOptions = commons.DownloadOptions.Metadata; | 1581 var _downloadOptions = commons.DownloadOptions.Metadata; |
1473 var _body = null; | 1582 var _body = null; |
1474 | 1583 |
1475 if (request != null) { | 1584 if (request != null) { |
1476 _body = convert.JSON.encode((request).toJson()); | 1585 _body = convert.JSON.encode((request).toJson()); |
1477 } | 1586 } |
1478 if (projectId == null) { | 1587 if (projectId == null) { |
1479 throw new core.ArgumentError("Parameter projectId is required."); | 1588 throw new core.ArgumentError("Parameter projectId is required."); |
1480 } | 1589 } |
1481 if (zone == null) { | 1590 if (zone == null) { |
1482 throw new core.ArgumentError("Parameter zone is required."); | 1591 throw new core.ArgumentError("Parameter zone is required."); |
1483 } | 1592 } |
1484 if (clusterId == null) { | 1593 if (clusterId == null) { |
1485 throw new core.ArgumentError("Parameter clusterId is required."); | 1594 throw new core.ArgumentError("Parameter clusterId is required."); |
1486 } | 1595 } |
1487 if (nodePoolId == null) { | 1596 if (nodePoolId == null) { |
1488 throw new core.ArgumentError("Parameter nodePoolId is required."); | 1597 throw new core.ArgumentError("Parameter nodePoolId is required."); |
1489 } | 1598 } |
1490 | 1599 |
1491 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node
PoolId') + '/setSize'; | 1600 _url = 'v1/projects/' + |
| 1601 commons.Escaper.ecapeVariable('$projectId') + |
| 1602 '/zones/' + |
| 1603 commons.Escaper.ecapeVariable('$zone') + |
| 1604 '/clusters/' + |
| 1605 commons.Escaper.ecapeVariable('$clusterId') + |
| 1606 '/nodePools/' + |
| 1607 commons.Escaper.ecapeVariable('$nodePoolId') + |
| 1608 '/setSize'; |
1492 | 1609 |
1493 var _response = _requester.request(_url, | 1610 var _response = _requester.request(_url, "POST", |
1494 "POST", | 1611 body: _body, |
1495 body: _body, | 1612 queryParams: _queryParams, |
1496 queryParams: _queryParams, | 1613 uploadOptions: _uploadOptions, |
1497 uploadOptions: _uploadOptions, | 1614 uploadMedia: _uploadMedia, |
1498 uploadMedia: _uploadMedia, | 1615 downloadOptions: _downloadOptions); |
1499 downloadOptions: _downloadOptions); | |
1500 return _response.then((data) => new Operation.fromJson(data)); | 1616 return _response.then((data) => new Operation.fromJson(data)); |
1501 } | 1617 } |
1502 | 1618 |
1503 /** | 1619 /// Updates the version and/or image type of a specific node pool. |
1504 * Updates the version and/or image type of a specific node pool. | 1620 /// |
1505 * | 1621 /// [request] - The metadata request object. |
1506 * [request] - The metadata request object. | 1622 /// |
1507 * | 1623 /// Request parameters: |
1508 * Request parameters: | 1624 /// |
1509 * | 1625 /// [projectId] - The Google Developers Console [project ID or project |
1510 * [projectId] - The Google Developers Console [project ID or project | 1626 /// number](https://support.google.com/cloud/answer/6158840). |
1511 * number](https://support.google.com/cloud/answer/6158840). | 1627 /// |
1512 * | 1628 /// [zone] - The name of the Google Compute Engine |
1513 * [zone] - The name of the Google Compute Engine | 1629 /// [zone](/compute/docs/zones#available) in which the cluster |
1514 * [zone](/compute/docs/zones#available) in which the cluster | 1630 /// resides. |
1515 * resides. | 1631 /// |
1516 * | 1632 /// [clusterId] - The name of the cluster to upgrade. |
1517 * [clusterId] - The name of the cluster to upgrade. | 1633 /// |
1518 * | 1634 /// [nodePoolId] - The name of the node pool to upgrade. |
1519 * [nodePoolId] - The name of the node pool to upgrade. | 1635 /// |
1520 * | 1636 /// Completes with a [Operation]. |
1521 * Completes with a [Operation]. | 1637 /// |
1522 * | 1638 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1523 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1639 /// an error. |
1524 * error. | 1640 /// |
1525 * | 1641 /// If the used [http.Client] completes with an error when making a REST |
1526 * If the used [http.Client] completes with an error when making a REST call, | 1642 /// call, this method will complete with the same error. |
1527 * this method will complete with the same error. | 1643 async.Future<Operation> update( |
1528 */ | 1644 UpdateNodePoolRequest request, |
1529 async.Future<Operation> update(UpdateNodePoolRequest request, core.String proj
ectId, core.String zone, core.String clusterId, core.String nodePoolId) { | 1645 core.String projectId, |
| 1646 core.String zone, |
| 1647 core.String clusterId, |
| 1648 core.String nodePoolId) { |
1530 var _url = null; | 1649 var _url = null; |
1531 var _queryParams = new core.Map(); | 1650 var _queryParams = new core.Map(); |
1532 var _uploadMedia = null; | 1651 var _uploadMedia = null; |
1533 var _uploadOptions = null; | 1652 var _uploadOptions = null; |
1534 var _downloadOptions = commons.DownloadOptions.Metadata; | 1653 var _downloadOptions = commons.DownloadOptions.Metadata; |
1535 var _body = null; | 1654 var _body = null; |
1536 | 1655 |
1537 if (request != null) { | 1656 if (request != null) { |
1538 _body = convert.JSON.encode((request).toJson()); | 1657 _body = convert.JSON.encode((request).toJson()); |
1539 } | 1658 } |
1540 if (projectId == null) { | 1659 if (projectId == null) { |
1541 throw new core.ArgumentError("Parameter projectId is required."); | 1660 throw new core.ArgumentError("Parameter projectId is required."); |
1542 } | 1661 } |
1543 if (zone == null) { | 1662 if (zone == null) { |
1544 throw new core.ArgumentError("Parameter zone is required."); | 1663 throw new core.ArgumentError("Parameter zone is required."); |
1545 } | 1664 } |
1546 if (clusterId == null) { | 1665 if (clusterId == null) { |
1547 throw new core.ArgumentError("Parameter clusterId is required."); | 1666 throw new core.ArgumentError("Parameter clusterId is required."); |
1548 } | 1667 } |
1549 if (nodePoolId == null) { | 1668 if (nodePoolId == null) { |
1550 throw new core.ArgumentError("Parameter nodePoolId is required."); | 1669 throw new core.ArgumentError("Parameter nodePoolId is required."); |
1551 } | 1670 } |
1552 | 1671 |
1553 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/clusters/' + commons.Escaper.ec
apeVariable('$clusterId') + '/nodePools/' + commons.Escaper.ecapeVariable('$node
PoolId') + '/update'; | 1672 _url = 'v1/projects/' + |
| 1673 commons.Escaper.ecapeVariable('$projectId') + |
| 1674 '/zones/' + |
| 1675 commons.Escaper.ecapeVariable('$zone') + |
| 1676 '/clusters/' + |
| 1677 commons.Escaper.ecapeVariable('$clusterId') + |
| 1678 '/nodePools/' + |
| 1679 commons.Escaper.ecapeVariable('$nodePoolId') + |
| 1680 '/update'; |
1554 | 1681 |
1555 var _response = _requester.request(_url, | 1682 var _response = _requester.request(_url, "POST", |
1556 "POST", | 1683 body: _body, |
1557 body: _body, | 1684 queryParams: _queryParams, |
1558 queryParams: _queryParams, | 1685 uploadOptions: _uploadOptions, |
1559 uploadOptions: _uploadOptions, | 1686 uploadMedia: _uploadMedia, |
1560 uploadMedia: _uploadMedia, | 1687 downloadOptions: _downloadOptions); |
1561 downloadOptions: _downloadOptions); | |
1562 return _response.then((data) => new Operation.fromJson(data)); | 1688 return _response.then((data) => new Operation.fromJson(data)); |
1563 } | 1689 } |
1564 | |
1565 } | 1690 } |
1566 | 1691 |
1567 | |
1568 class ProjectsZonesOperationsResourceApi { | 1692 class ProjectsZonesOperationsResourceApi { |
1569 final commons.ApiRequester _requester; | 1693 final commons.ApiRequester _requester; |
1570 | 1694 |
1571 ProjectsZonesOperationsResourceApi(commons.ApiRequester client) : | 1695 ProjectsZonesOperationsResourceApi(commons.ApiRequester client) |
1572 _requester = client; | 1696 : _requester = client; |
1573 | 1697 |
1574 /** | 1698 /// Cancels the specified operation. |
1575 * Cancels the specified operation. | 1699 /// |
1576 * | 1700 /// [request] - The metadata request object. |
1577 * [request] - The metadata request object. | 1701 /// |
1578 * | 1702 /// Request parameters: |
1579 * Request parameters: | 1703 /// |
1580 * | 1704 /// [projectId] - The Google Developers Console [project ID or project |
1581 * [projectId] - The Google Developers Console [project ID or project | 1705 /// number](https://support.google.com/cloud/answer/6158840). |
1582 * number](https://support.google.com/cloud/answer/6158840). | 1706 /// |
1583 * | 1707 /// [zone] - The name of the Google Compute Engine |
1584 * [zone] - The name of the Google Compute Engine | 1708 /// [zone](/compute/docs/zones#available) in which the operation resides. |
1585 * [zone](/compute/docs/zones#available) in which the operation resides. | 1709 /// |
1586 * | 1710 /// [operationId] - The server-assigned `name` of the operation. |
1587 * [operationId] - The server-assigned `name` of the operation. | 1711 /// |
1588 * | 1712 /// Completes with a [Empty]. |
1589 * Completes with a [Empty]. | 1713 /// |
1590 * | 1714 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1715 /// an error. |
1592 * error. | 1716 /// |
1593 * | 1717 /// If the used [http.Client] completes with an error when making a REST |
1594 * If the used [http.Client] completes with an error when making a REST call, | 1718 /// call, this method will complete with the same error. |
1595 * this method will complete with the same error. | 1719 async.Future<Empty> cancel(CancelOperationRequest request, |
1596 */ | 1720 core.String projectId, core.String zone, core.String operationId) { |
1597 async.Future<Empty> cancel(CancelOperationRequest request, core.String project
Id, core.String zone, core.String operationId) { | |
1598 var _url = null; | 1721 var _url = null; |
1599 var _queryParams = new core.Map(); | 1722 var _queryParams = new core.Map(); |
1600 var _uploadMedia = null; | 1723 var _uploadMedia = null; |
1601 var _uploadOptions = null; | 1724 var _uploadOptions = null; |
1602 var _downloadOptions = commons.DownloadOptions.Metadata; | 1725 var _downloadOptions = commons.DownloadOptions.Metadata; |
1603 var _body = null; | 1726 var _body = null; |
1604 | 1727 |
1605 if (request != null) { | 1728 if (request != null) { |
1606 _body = convert.JSON.encode((request).toJson()); | 1729 _body = convert.JSON.encode((request).toJson()); |
1607 } | 1730 } |
1608 if (projectId == null) { | 1731 if (projectId == null) { |
1609 throw new core.ArgumentError("Parameter projectId is required."); | 1732 throw new core.ArgumentError("Parameter projectId is required."); |
1610 } | 1733 } |
1611 if (zone == null) { | 1734 if (zone == null) { |
1612 throw new core.ArgumentError("Parameter zone is required."); | 1735 throw new core.ArgumentError("Parameter zone is required."); |
1613 } | 1736 } |
1614 if (operationId == null) { | 1737 if (operationId == null) { |
1615 throw new core.ArgumentError("Parameter operationId is required."); | 1738 throw new core.ArgumentError("Parameter operationId is required."); |
1616 } | 1739 } |
1617 | 1740 |
1618 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.
ecapeVariable('$operationId') + ':cancel'; | 1741 _url = 'v1/projects/' + |
| 1742 commons.Escaper.ecapeVariable('$projectId') + |
| 1743 '/zones/' + |
| 1744 commons.Escaper.ecapeVariable('$zone') + |
| 1745 '/operations/' + |
| 1746 commons.Escaper.ecapeVariable('$operationId') + |
| 1747 ':cancel'; |
1619 | 1748 |
1620 var _response = _requester.request(_url, | 1749 var _response = _requester.request(_url, "POST", |
1621 "POST", | 1750 body: _body, |
1622 body: _body, | 1751 queryParams: _queryParams, |
1623 queryParams: _queryParams, | 1752 uploadOptions: _uploadOptions, |
1624 uploadOptions: _uploadOptions, | 1753 uploadMedia: _uploadMedia, |
1625 uploadMedia: _uploadMedia, | 1754 downloadOptions: _downloadOptions); |
1626 downloadOptions: _downloadOptions); | |
1627 return _response.then((data) => new Empty.fromJson(data)); | 1755 return _response.then((data) => new Empty.fromJson(data)); |
1628 } | 1756 } |
1629 | 1757 |
1630 /** | 1758 /// Gets the specified operation. |
1631 * Gets the specified operation. | 1759 /// |
1632 * | 1760 /// Request parameters: |
1633 * Request parameters: | 1761 /// |
1634 * | 1762 /// [projectId] - The Google Developers Console [project ID or project |
1635 * [projectId] - The Google Developers Console [project ID or project | 1763 /// number](https://support.google.com/cloud/answer/6158840). |
1636 * number](https://support.google.com/cloud/answer/6158840). | 1764 /// |
1637 * | 1765 /// [zone] - The name of the Google Compute Engine |
1638 * [zone] - The name of the Google Compute Engine | 1766 /// [zone](/compute/docs/zones#available) in which the cluster |
1639 * [zone](/compute/docs/zones#available) in which the cluster | 1767 /// resides. |
1640 * resides. | 1768 /// |
1641 * | 1769 /// [operationId] - The server-assigned `name` of the operation. |
1642 * [operationId] - The server-assigned `name` of the operation. | 1770 /// |
1643 * | 1771 /// Completes with a [Operation]. |
1644 * Completes with a [Operation]. | 1772 /// |
1645 * | 1773 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1646 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1774 /// an error. |
1647 * error. | 1775 /// |
1648 * | 1776 /// If the used [http.Client] completes with an error when making a REST |
1649 * If the used [http.Client] completes with an error when making a REST call, | 1777 /// call, this method will complete with the same error. |
1650 * this method will complete with the same error. | 1778 async.Future<Operation> get( |
1651 */ | 1779 core.String projectId, core.String zone, core.String operationId) { |
1652 async.Future<Operation> get(core.String projectId, core.String zone, core.Stri
ng operationId) { | |
1653 var _url = null; | 1780 var _url = null; |
1654 var _queryParams = new core.Map(); | 1781 var _queryParams = new core.Map(); |
1655 var _uploadMedia = null; | 1782 var _uploadMedia = null; |
1656 var _uploadOptions = null; | 1783 var _uploadOptions = null; |
1657 var _downloadOptions = commons.DownloadOptions.Metadata; | 1784 var _downloadOptions = commons.DownloadOptions.Metadata; |
1658 var _body = null; | 1785 var _body = null; |
1659 | 1786 |
1660 if (projectId == null) { | 1787 if (projectId == null) { |
1661 throw new core.ArgumentError("Parameter projectId is required."); | 1788 throw new core.ArgumentError("Parameter projectId is required."); |
1662 } | 1789 } |
1663 if (zone == null) { | 1790 if (zone == null) { |
1664 throw new core.ArgumentError("Parameter zone is required."); | 1791 throw new core.ArgumentError("Parameter zone is required."); |
1665 } | 1792 } |
1666 if (operationId == null) { | 1793 if (operationId == null) { |
1667 throw new core.ArgumentError("Parameter operationId is required."); | 1794 throw new core.ArgumentError("Parameter operationId is required."); |
1668 } | 1795 } |
1669 | 1796 |
1670 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/operations/' + commons.Escaper.
ecapeVariable('$operationId'); | 1797 _url = 'v1/projects/' + |
| 1798 commons.Escaper.ecapeVariable('$projectId') + |
| 1799 '/zones/' + |
| 1800 commons.Escaper.ecapeVariable('$zone') + |
| 1801 '/operations/' + |
| 1802 commons.Escaper.ecapeVariable('$operationId'); |
1671 | 1803 |
1672 var _response = _requester.request(_url, | 1804 var _response = _requester.request(_url, "GET", |
1673 "GET", | 1805 body: _body, |
1674 body: _body, | 1806 queryParams: _queryParams, |
1675 queryParams: _queryParams, | 1807 uploadOptions: _uploadOptions, |
1676 uploadOptions: _uploadOptions, | 1808 uploadMedia: _uploadMedia, |
1677 uploadMedia: _uploadMedia, | 1809 downloadOptions: _downloadOptions); |
1678 downloadOptions: _downloadOptions); | |
1679 return _response.then((data) => new Operation.fromJson(data)); | 1810 return _response.then((data) => new Operation.fromJson(data)); |
1680 } | 1811 } |
1681 | 1812 |
1682 /** | 1813 /// Lists all operations in a project in a specific zone or all zones. |
1683 * Lists all operations in a project in a specific zone or all zones. | 1814 /// |
1684 * | 1815 /// Request parameters: |
1685 * Request parameters: | 1816 /// |
1686 * | 1817 /// [projectId] - The Google Developers Console [project ID or project |
1687 * [projectId] - The Google Developers Console [project ID or project | 1818 /// number](https://support.google.com/cloud/answer/6158840). |
1688 * number](https://support.google.com/cloud/answer/6158840). | 1819 /// |
1689 * | 1820 /// [zone] - The name of the Google Compute Engine |
1690 * [zone] - The name of the Google Compute Engine | 1821 /// [zone](/compute/docs/zones#available) |
1691 * [zone](/compute/docs/zones#available) | 1822 /// to return operations for, or `-` for all zones. |
1692 * to return operations for, or `-` for all zones. | 1823 /// |
1693 * | 1824 /// Completes with a [ListOperationsResponse]. |
1694 * Completes with a [ListOperationsResponse]. | 1825 /// |
1695 * | 1826 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1696 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1827 /// an error. |
1697 * error. | 1828 /// |
1698 * | 1829 /// If the used [http.Client] completes with an error when making a REST |
1699 * If the used [http.Client] completes with an error when making a REST call, | 1830 /// call, this method will complete with the same error. |
1700 * this method will complete with the same error. | 1831 async.Future<ListOperationsResponse> list( |
1701 */ | 1832 core.String projectId, core.String zone) { |
1702 async.Future<ListOperationsResponse> list(core.String projectId, core.String z
one) { | |
1703 var _url = null; | 1833 var _url = null; |
1704 var _queryParams = new core.Map(); | 1834 var _queryParams = new core.Map(); |
1705 var _uploadMedia = null; | 1835 var _uploadMedia = null; |
1706 var _uploadOptions = null; | 1836 var _uploadOptions = null; |
1707 var _downloadOptions = commons.DownloadOptions.Metadata; | 1837 var _downloadOptions = commons.DownloadOptions.Metadata; |
1708 var _body = null; | 1838 var _body = null; |
1709 | 1839 |
1710 if (projectId == null) { | 1840 if (projectId == null) { |
1711 throw new core.ArgumentError("Parameter projectId is required."); | 1841 throw new core.ArgumentError("Parameter projectId is required."); |
1712 } | 1842 } |
1713 if (zone == null) { | 1843 if (zone == null) { |
1714 throw new core.ArgumentError("Parameter zone is required."); | 1844 throw new core.ArgumentError("Parameter zone is required."); |
1715 } | 1845 } |
1716 | 1846 |
1717 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/zone
s/' + commons.Escaper.ecapeVariable('$zone') + '/operations'; | 1847 _url = 'v1/projects/' + |
| 1848 commons.Escaper.ecapeVariable('$projectId') + |
| 1849 '/zones/' + |
| 1850 commons.Escaper.ecapeVariable('$zone') + |
| 1851 '/operations'; |
1718 | 1852 |
1719 var _response = _requester.request(_url, | 1853 var _response = _requester.request(_url, "GET", |
1720 "GET", | 1854 body: _body, |
1721 body: _body, | 1855 queryParams: _queryParams, |
1722 queryParams: _queryParams, | 1856 uploadOptions: _uploadOptions, |
1723 uploadOptions: _uploadOptions, | 1857 uploadMedia: _uploadMedia, |
1724 uploadMedia: _uploadMedia, | 1858 downloadOptions: _downloadOptions); |
1725 downloadOptions: _downloadOptions); | |
1726 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1859 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
1727 } | 1860 } |
1728 | |
1729 } | 1861 } |
1730 | 1862 |
| 1863 /// AcceleratorConfig represents a Hardware Accelerator request. |
| 1864 class AcceleratorConfig { |
| 1865 /// The number of the accelerator cards exposed to an instance. |
| 1866 core.String acceleratorCount; |
1731 | 1867 |
1732 | 1868 /// The accelerator type resource name. List of supported accelerators |
1733 /** AcceleratorConfig represents a Hardware Accelerator request. */ | 1869 /// [here](/compute/docs/gpus/#Introduction) |
1734 class AcceleratorConfig { | |
1735 /** The number of the accelerator cards exposed to an instance. */ | |
1736 core.String acceleratorCount; | |
1737 /** | |
1738 * The accelerator type resource name. List of supported accelerators | |
1739 * [here](/compute/docs/gpus/#Introduction) | |
1740 */ | |
1741 core.String acceleratorType; | 1870 core.String acceleratorType; |
1742 | 1871 |
1743 AcceleratorConfig(); | 1872 AcceleratorConfig(); |
1744 | 1873 |
1745 AcceleratorConfig.fromJson(core.Map _json) { | 1874 AcceleratorConfig.fromJson(core.Map _json) { |
1746 if (_json.containsKey("acceleratorCount")) { | 1875 if (_json.containsKey("acceleratorCount")) { |
1747 acceleratorCount = _json["acceleratorCount"]; | 1876 acceleratorCount = _json["acceleratorCount"]; |
1748 } | 1877 } |
1749 if (_json.containsKey("acceleratorType")) { | 1878 if (_json.containsKey("acceleratorType")) { |
1750 acceleratorType = _json["acceleratorType"]; | 1879 acceleratorType = _json["acceleratorType"]; |
1751 } | 1880 } |
1752 } | 1881 } |
1753 | 1882 |
1754 core.Map<core.String, core.Object> toJson() { | 1883 core.Map<core.String, core.Object> toJson() { |
1755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1884 final core.Map<core.String, core.Object> _json = |
| 1885 new core.Map<core.String, core.Object>(); |
1756 if (acceleratorCount != null) { | 1886 if (acceleratorCount != null) { |
1757 _json["acceleratorCount"] = acceleratorCount; | 1887 _json["acceleratorCount"] = acceleratorCount; |
1758 } | 1888 } |
1759 if (acceleratorType != null) { | 1889 if (acceleratorType != null) { |
1760 _json["acceleratorType"] = acceleratorType; | 1890 _json["acceleratorType"] = acceleratorType; |
1761 } | 1891 } |
1762 return _json; | 1892 return _json; |
1763 } | 1893 } |
1764 } | 1894 } |
1765 | 1895 |
1766 /** | 1896 /// Configuration for the addons that can be automatically spun up in the |
1767 * Configuration for the addons that can be automatically spun up in the | 1897 /// cluster, enabling additional functionality. |
1768 * cluster, enabling additional functionality. | |
1769 */ | |
1770 class AddonsConfig { | 1898 class AddonsConfig { |
1771 /** | 1899 /// Configuration for the horizontal pod autoscaling feature, which |
1772 * Configuration for the horizontal pod autoscaling feature, which | 1900 /// increases or decreases the number of replica pods a replication |
1773 * increases or decreases the number of replica pods a replication controller | 1901 /// controller |
1774 * has based on the resource usage of the existing pods. | 1902 /// has based on the resource usage of the existing pods. |
1775 */ | |
1776 HorizontalPodAutoscaling horizontalPodAutoscaling; | 1903 HorizontalPodAutoscaling horizontalPodAutoscaling; |
1777 /** | 1904 |
1778 * Configuration for the HTTP (L7) load balancing controller addon, which | 1905 /// Configuration for the HTTP (L7) load balancing controller addon, which |
1779 * makes it easy to set up HTTP load balancers for services in a cluster. | 1906 /// makes it easy to set up HTTP load balancers for services in a cluster. |
1780 */ | |
1781 HttpLoadBalancing httpLoadBalancing; | 1907 HttpLoadBalancing httpLoadBalancing; |
1782 /** Configuration for the Kubernetes Dashboard. */ | 1908 |
| 1909 /// Configuration for the Kubernetes Dashboard. |
1783 KubernetesDashboard kubernetesDashboard; | 1910 KubernetesDashboard kubernetesDashboard; |
1784 | 1911 |
1785 AddonsConfig(); | 1912 AddonsConfig(); |
1786 | 1913 |
1787 AddonsConfig.fromJson(core.Map _json) { | 1914 AddonsConfig.fromJson(core.Map _json) { |
1788 if (_json.containsKey("horizontalPodAutoscaling")) { | 1915 if (_json.containsKey("horizontalPodAutoscaling")) { |
1789 horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson(_json["ho
rizontalPodAutoscaling"]); | 1916 horizontalPodAutoscaling = new HorizontalPodAutoscaling.fromJson( |
| 1917 _json["horizontalPodAutoscaling"]); |
1790 } | 1918 } |
1791 if (_json.containsKey("httpLoadBalancing")) { | 1919 if (_json.containsKey("httpLoadBalancing")) { |
1792 httpLoadBalancing = new HttpLoadBalancing.fromJson(_json["httpLoadBalancin
g"]); | 1920 httpLoadBalancing = |
| 1921 new HttpLoadBalancing.fromJson(_json["httpLoadBalancing"]); |
1793 } | 1922 } |
1794 if (_json.containsKey("kubernetesDashboard")) { | 1923 if (_json.containsKey("kubernetesDashboard")) { |
1795 kubernetesDashboard = new KubernetesDashboard.fromJson(_json["kubernetesDa
shboard"]); | 1924 kubernetesDashboard = |
| 1925 new KubernetesDashboard.fromJson(_json["kubernetesDashboard"]); |
1796 } | 1926 } |
1797 } | 1927 } |
1798 | 1928 |
1799 core.Map<core.String, core.Object> toJson() { | 1929 core.Map<core.String, core.Object> toJson() { |
1800 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1930 final core.Map<core.String, core.Object> _json = |
| 1931 new core.Map<core.String, core.Object>(); |
1801 if (horizontalPodAutoscaling != null) { | 1932 if (horizontalPodAutoscaling != null) { |
1802 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); | 1933 _json["horizontalPodAutoscaling"] = (horizontalPodAutoscaling).toJson(); |
1803 } | 1934 } |
1804 if (httpLoadBalancing != null) { | 1935 if (httpLoadBalancing != null) { |
1805 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); | 1936 _json["httpLoadBalancing"] = (httpLoadBalancing).toJson(); |
1806 } | 1937 } |
1807 if (kubernetesDashboard != null) { | 1938 if (kubernetesDashboard != null) { |
1808 _json["kubernetesDashboard"] = (kubernetesDashboard).toJson(); | 1939 _json["kubernetesDashboard"] = (kubernetesDashboard).toJson(); |
1809 } | 1940 } |
1810 return _json; | 1941 return _json; |
1811 } | 1942 } |
1812 } | 1943 } |
1813 | 1944 |
1814 /** | 1945 /// AutoUpgradeOptions defines the set of options for the user to control how |
1815 * AutoUpgradeOptions defines the set of options for the user to control how | 1946 /// the Auto Upgrades will proceed. |
1816 * the Auto Upgrades will proceed. | |
1817 */ | |
1818 class AutoUpgradeOptions { | 1947 class AutoUpgradeOptions { |
1819 /** | 1948 /// [Output only] This field is set when upgrades are about to commence |
1820 * [Output only] This field is set when upgrades are about to commence | 1949 /// with the approximate start time for the upgrades, in |
1821 * with the approximate start time for the upgrades, in | 1950 /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
1822 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. | |
1823 */ | |
1824 core.String autoUpgradeStartTime; | 1951 core.String autoUpgradeStartTime; |
1825 /** | 1952 |
1826 * [Output only] This field is set when upgrades are about to commence | 1953 /// [Output only] This field is set when upgrades are about to commence |
1827 * with the description of the upgrade. | 1954 /// with the description of the upgrade. |
1828 */ | |
1829 core.String description; | 1955 core.String description; |
1830 | 1956 |
1831 AutoUpgradeOptions(); | 1957 AutoUpgradeOptions(); |
1832 | 1958 |
1833 AutoUpgradeOptions.fromJson(core.Map _json) { | 1959 AutoUpgradeOptions.fromJson(core.Map _json) { |
1834 if (_json.containsKey("autoUpgradeStartTime")) { | 1960 if (_json.containsKey("autoUpgradeStartTime")) { |
1835 autoUpgradeStartTime = _json["autoUpgradeStartTime"]; | 1961 autoUpgradeStartTime = _json["autoUpgradeStartTime"]; |
1836 } | 1962 } |
1837 if (_json.containsKey("description")) { | 1963 if (_json.containsKey("description")) { |
1838 description = _json["description"]; | 1964 description = _json["description"]; |
1839 } | 1965 } |
1840 } | 1966 } |
1841 | 1967 |
1842 core.Map<core.String, core.Object> toJson() { | 1968 core.Map<core.String, core.Object> toJson() { |
1843 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1969 final core.Map<core.String, core.Object> _json = |
| 1970 new core.Map<core.String, core.Object>(); |
1844 if (autoUpgradeStartTime != null) { | 1971 if (autoUpgradeStartTime != null) { |
1845 _json["autoUpgradeStartTime"] = autoUpgradeStartTime; | 1972 _json["autoUpgradeStartTime"] = autoUpgradeStartTime; |
1846 } | 1973 } |
1847 if (description != null) { | 1974 if (description != null) { |
1848 _json["description"] = description; | 1975 _json["description"] = description; |
1849 } | 1976 } |
1850 return _json; | 1977 return _json; |
1851 } | 1978 } |
1852 } | 1979 } |
1853 | 1980 |
1854 /** CancelOperationRequest cancels a single operation. */ | 1981 /// CancelOperationRequest cancels a single operation. |
1855 class CancelOperationRequest { | 1982 class CancelOperationRequest { |
1856 | |
1857 CancelOperationRequest(); | 1983 CancelOperationRequest(); |
1858 | 1984 |
1859 CancelOperationRequest.fromJson(core.Map _json) { | 1985 CancelOperationRequest.fromJson(core.Map _json) {} |
1860 } | |
1861 | 1986 |
1862 core.Map<core.String, core.Object> toJson() { | 1987 core.Map<core.String, core.Object> toJson() { |
1863 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1988 final core.Map<core.String, core.Object> _json = |
| 1989 new core.Map<core.String, core.Object>(); |
1864 return _json; | 1990 return _json; |
1865 } | 1991 } |
1866 } | 1992 } |
1867 | 1993 |
1868 /** CidrBlock contains an optional name and one CIDR block. */ | 1994 /// CidrBlock contains an optional name and one CIDR block. |
1869 class CidrBlock { | 1995 class CidrBlock { |
1870 /** cidr_block must be specified in CIDR notation. */ | 1996 /// cidr_block must be specified in CIDR notation. |
1871 core.String cidrBlock; | 1997 core.String cidrBlock; |
1872 /** display_name is an optional field for users to identify CIDR blocks. */ | 1998 |
| 1999 /// display_name is an optional field for users to identify CIDR blocks. |
1873 core.String displayName; | 2000 core.String displayName; |
1874 | 2001 |
1875 CidrBlock(); | 2002 CidrBlock(); |
1876 | 2003 |
1877 CidrBlock.fromJson(core.Map _json) { | 2004 CidrBlock.fromJson(core.Map _json) { |
1878 if (_json.containsKey("cidrBlock")) { | 2005 if (_json.containsKey("cidrBlock")) { |
1879 cidrBlock = _json["cidrBlock"]; | 2006 cidrBlock = _json["cidrBlock"]; |
1880 } | 2007 } |
1881 if (_json.containsKey("displayName")) { | 2008 if (_json.containsKey("displayName")) { |
1882 displayName = _json["displayName"]; | 2009 displayName = _json["displayName"]; |
1883 } | 2010 } |
1884 } | 2011 } |
1885 | 2012 |
1886 core.Map<core.String, core.Object> toJson() { | 2013 core.Map<core.String, core.Object> toJson() { |
1887 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2014 final core.Map<core.String, core.Object> _json = |
| 2015 new core.Map<core.String, core.Object>(); |
1888 if (cidrBlock != null) { | 2016 if (cidrBlock != null) { |
1889 _json["cidrBlock"] = cidrBlock; | 2017 _json["cidrBlock"] = cidrBlock; |
1890 } | 2018 } |
1891 if (displayName != null) { | 2019 if (displayName != null) { |
1892 _json["displayName"] = displayName; | 2020 _json["displayName"] = displayName; |
1893 } | 2021 } |
1894 return _json; | 2022 return _json; |
1895 } | 2023 } |
1896 } | 2024 } |
1897 | 2025 |
1898 /** Configuration for client certificates on the cluster. */ | 2026 /// Configuration for client certificates on the cluster. |
1899 class ClientCertificateConfig { | 2027 class ClientCertificateConfig { |
1900 /** Issue a client certificate. */ | 2028 /// Issue a client certificate. |
1901 core.bool issueClientCertificate; | 2029 core.bool issueClientCertificate; |
1902 | 2030 |
1903 ClientCertificateConfig(); | 2031 ClientCertificateConfig(); |
1904 | 2032 |
1905 ClientCertificateConfig.fromJson(core.Map _json) { | 2033 ClientCertificateConfig.fromJson(core.Map _json) { |
1906 if (_json.containsKey("issueClientCertificate")) { | 2034 if (_json.containsKey("issueClientCertificate")) { |
1907 issueClientCertificate = _json["issueClientCertificate"]; | 2035 issueClientCertificate = _json["issueClientCertificate"]; |
1908 } | 2036 } |
1909 } | 2037 } |
1910 | 2038 |
1911 core.Map<core.String, core.Object> toJson() { | 2039 core.Map<core.String, core.Object> toJson() { |
1912 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2040 final core.Map<core.String, core.Object> _json = |
| 2041 new core.Map<core.String, core.Object>(); |
1913 if (issueClientCertificate != null) { | 2042 if (issueClientCertificate != null) { |
1914 _json["issueClientCertificate"] = issueClientCertificate; | 2043 _json["issueClientCertificate"] = issueClientCertificate; |
1915 } | 2044 } |
1916 return _json; | 2045 return _json; |
1917 } | 2046 } |
1918 } | 2047 } |
1919 | 2048 |
1920 /** A Google Container Engine cluster. */ | 2049 /// A Google Container Engine cluster. |
1921 class Cluster { | 2050 class Cluster { |
1922 /** Configurations for the various addons available to run in the cluster. */ | 2051 /// Configurations for the various addons available to run in the cluster. |
1923 AddonsConfig addonsConfig; | 2052 AddonsConfig addonsConfig; |
1924 /** | 2053 |
1925 * The IP address range of the container pods in this cluster, in | 2054 /// The IP address range of the container pods in this cluster, in |
1926 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | 2055 /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
1927 * notation (e.g. `10.96.0.0/14`). Leave blank to have | 2056 /// notation (e.g. `10.96.0.0/14`). Leave blank to have |
1928 * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. | 2057 /// one automatically chosen or specify a `/14` block in `10.0.0.0/8`. |
1929 */ | |
1930 core.String clusterIpv4Cidr; | 2058 core.String clusterIpv4Cidr; |
1931 /** | 2059 |
1932 * [Output only] The time the cluster was created, in | 2060 /// [Output only] The time the cluster was created, in |
1933 * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. | 2061 /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
1934 */ | |
1935 core.String createTime; | 2062 core.String createTime; |
1936 /** [Output only] The current software version of the master endpoint. */ | 2063 |
| 2064 /// [Output only] The current software version of the master endpoint. |
1937 core.String currentMasterVersion; | 2065 core.String currentMasterVersion; |
1938 /** [Output only] The number of nodes currently in the cluster. */ | 2066 |
| 2067 /// [Output only] The number of nodes currently in the cluster. |
1939 core.int currentNodeCount; | 2068 core.int currentNodeCount; |
1940 /** | 2069 |
1941 * [Output only] The current version of the node software components. | 2070 /// [Output only] The current version of the node software components. |
1942 * If they are currently at multiple versions because they're in the process | 2071 /// If they are currently at multiple versions because they're in the process |
1943 * of being upgraded, this reflects the minimum version of all nodes. | 2072 /// of being upgraded, this reflects the minimum version of all nodes. |
1944 */ | |
1945 core.String currentNodeVersion; | 2073 core.String currentNodeVersion; |
1946 /** An optional description of this cluster. */ | 2074 |
| 2075 /// An optional description of this cluster. |
1947 core.String description; | 2076 core.String description; |
1948 /** | 2077 |
1949 * Kubernetes alpha features are enabled on this cluster. This includes alpha | 2078 /// Kubernetes alpha features are enabled on this cluster. This includes |
1950 * API groups (e.g. v1alpha1) and features that may not be production ready in | 2079 /// alpha |
1951 * the kubernetes version of the master and nodes. | 2080 /// API groups (e.g. v1alpha1) and features that may not be production ready |
1952 * The cluster has no SLA for uptime and master/node upgrades are disabled. | 2081 /// in |
1953 * Alpha enabled clusters are automatically deleted thirty days after | 2082 /// the kubernetes version of the master and nodes. |
1954 * creation. | 2083 /// The cluster has no SLA for uptime and master/node upgrades are disabled. |
1955 */ | 2084 /// Alpha enabled clusters are automatically deleted thirty days after |
| 2085 /// creation. |
1956 core.bool enableKubernetesAlpha; | 2086 core.bool enableKubernetesAlpha; |
1957 /** | 2087 |
1958 * [Output only] The IP address of this cluster's master endpoint. | 2088 /// [Output only] The IP address of this cluster's master endpoint. |
1959 * The endpoint can be accessed from the internet at | 2089 /// The endpoint can be accessed from the internet at |
1960 * `https://username:password@endpoint/`. | 2090 /// `https://username:password@endpoint/`. |
1961 * | 2091 /// |
1962 * See the `masterAuth` property of this resource for username and | 2092 /// See the `masterAuth` property of this resource for username and |
1963 * password information. | 2093 /// password information. |
1964 */ | |
1965 core.String endpoint; | 2094 core.String endpoint; |
1966 /** | 2095 |
1967 * [Output only] The time the cluster will be automatically | 2096 /// [Output only] The time the cluster will be automatically |
1968 * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. | 2097 /// deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
1969 */ | |
1970 core.String expireTime; | 2098 core.String expireTime; |
1971 /** | 2099 |
1972 * The initial Kubernetes version for this cluster. Valid versions are those | 2100 /// The initial Kubernetes version for this cluster. Valid versions are |
1973 * found in validMasterVersions returned by getServerConfig. The version can | 2101 /// those |
1974 * be upgraded over time; such upgrades are reflected in | 2102 /// found in validMasterVersions returned by getServerConfig. The version |
1975 * currentMasterVersion and currentNodeVersion. | 2103 /// can |
1976 */ | 2104 /// be upgraded over time; such upgrades are reflected in |
| 2105 /// currentMasterVersion and currentNodeVersion. |
1977 core.String initialClusterVersion; | 2106 core.String initialClusterVersion; |
1978 /** | 2107 |
1979 * The number of nodes to create in this cluster. You must ensure that your | 2108 /// The number of nodes to create in this cluster. You must ensure that your |
1980 * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> | 2109 /// Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> |
1981 * is sufficient for this number of instances. You must also have available | 2110 /// is sufficient for this number of instances. You must also have available |
1982 * firewall and routes quota. | 2111 /// firewall and routes quota. |
1983 * For requests, this field should only be used in lieu of a | 2112 /// For requests, this field should only be used in lieu of a |
1984 * "node_pool" object, since this configuration (along with the | 2113 /// "node_pool" object, since this configuration (along with the |
1985 * "node_config") will be used to create a "NodePool" object with an | 2114 /// "node_config") will be used to create a "NodePool" object with an |
1986 * auto-generated name. Do not use this and a node_pool at the same time. | 2115 /// auto-generated name. Do not use this and a node_pool at the same time. |
1987 */ | |
1988 core.int initialNodeCount; | 2116 core.int initialNodeCount; |
1989 /** | 2117 |
1990 * [Output only] The resource URLs of [instance | 2118 /// [Output only] The resource URLs of [instance |
1991 * groups](/compute/docs/instance-groups/) associated with this | 2119 /// groups](/compute/docs/instance-groups/) associated with this |
1992 * cluster. | 2120 /// cluster. |
1993 */ | |
1994 core.List<core.String> instanceGroupUrls; | 2121 core.List<core.String> instanceGroupUrls; |
1995 /** Configuration for cluster IP allocation. */ | 2122 |
| 2123 /// Configuration for cluster IP allocation. |
1996 IPAllocationPolicy ipAllocationPolicy; | 2124 IPAllocationPolicy ipAllocationPolicy; |
1997 /** The fingerprint of the set of labels for this cluster. */ | 2125 |
| 2126 /// The fingerprint of the set of labels for this cluster. |
1998 core.String labelFingerprint; | 2127 core.String labelFingerprint; |
1999 /** Configuration for the legacy ABAC authorization mode. */ | 2128 |
| 2129 /// Configuration for the legacy ABAC authorization mode. |
2000 LegacyAbac legacyAbac; | 2130 LegacyAbac legacyAbac; |
2001 /** | 2131 |
2002 * The list of Google Compute Engine | 2132 /// The list of Google Compute Engine |
2003 * [locations](/compute/docs/zones#available) in which the cluster's nodes | 2133 /// [locations](/compute/docs/zones#available) in which the cluster's nodes |
2004 * should be located. | 2134 /// should be located. |
2005 */ | |
2006 core.List<core.String> locations; | 2135 core.List<core.String> locations; |
2007 /** | 2136 |
2008 * The logging service the cluster should use to write logs. | 2137 /// The logging service the cluster should use to write logs. |
2009 * Currently available options: | 2138 /// Currently available options: |
2010 * | 2139 /// |
2011 * * `logging.googleapis.com` - the Google Cloud Logging service. | 2140 /// * `logging.googleapis.com` - the Google Cloud Logging service. |
2012 * * `none` - no logs will be exported from the cluster. | 2141 /// * `none` - no logs will be exported from the cluster. |
2013 * * if left as an empty string,`logging.googleapis.com` will be used. | 2142 /// * if left as an empty string,`logging.googleapis.com` will be used. |
2014 */ | |
2015 core.String loggingService; | 2143 core.String loggingService; |
2016 /** The authentication information for accessing the master endpoint. */ | 2144 |
| 2145 /// The authentication information for accessing the master endpoint. |
2017 MasterAuth masterAuth; | 2146 MasterAuth masterAuth; |
2018 /** | 2147 |
2019 * Master authorized networks is a Beta feature. | 2148 /// Master authorized networks is a Beta feature. |
2020 * The configuration options for master authorized networks feature. | 2149 /// The configuration options for master authorized networks feature. |
2021 */ | |
2022 MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig; | 2150 MasterAuthorizedNetworksConfig masterAuthorizedNetworksConfig; |
2023 /** | 2151 |
2024 * The monitoring service the cluster should use to write metrics. | 2152 /// The monitoring service the cluster should use to write metrics. |
2025 * Currently available options: | 2153 /// Currently available options: |
2026 * | 2154 /// |
2027 * * `monitoring.googleapis.com` - the Google Cloud Monitoring service. | 2155 /// * `monitoring.googleapis.com` - the Google Cloud Monitoring service. |
2028 * * `none` - no metrics will be exported from the cluster. | 2156 /// * `none` - no metrics will be exported from the cluster. |
2029 * * if left as an empty string, `monitoring.googleapis.com` will be used. | 2157 /// * if left as an empty string, `monitoring.googleapis.com` will be used. |
2030 */ | |
2031 core.String monitoringService; | 2158 core.String monitoringService; |
2032 /** | 2159 |
2033 * The name of this cluster. The name must be unique within this project | 2160 /// The name of this cluster. The name must be unique within this project |
2034 * and zone, and can be up to 40 characters with the following restrictions: | 2161 /// and zone, and can be up to 40 characters with the following restrictions: |
2035 * | 2162 /// |
2036 * * Lowercase letters, numbers, and hyphens only. | 2163 /// * Lowercase letters, numbers, and hyphens only. |
2037 * * Must start with a letter. | 2164 /// * Must start with a letter. |
2038 * * Must end with a number or a letter. | 2165 /// * Must end with a number or a letter. |
2039 */ | |
2040 core.String name; | 2166 core.String name; |
2041 /** | 2167 |
2042 * The name of the Google Compute Engine | 2168 /// The name of the Google Compute Engine |
2043 * [network](/compute/docs/networks-and-firewalls#networks) to which the | 2169 /// [network](/compute/docs/networks-and-firewalls#networks) to which the |
2044 * cluster is connected. If left unspecified, the `default` network | 2170 /// cluster is connected. If left unspecified, the `default` network |
2045 * will be used. | 2171 /// will be used. |
2046 */ | |
2047 core.String network; | 2172 core.String network; |
2048 /** Configuration options for the NetworkPolicy feature. */ | 2173 |
| 2174 /// Configuration options for the NetworkPolicy feature. |
2049 NetworkPolicy networkPolicy; | 2175 NetworkPolicy networkPolicy; |
2050 /** | 2176 |
2051 * Parameters used in creating the cluster's nodes. | 2177 /// Parameters used in creating the cluster's nodes. |
2052 * See `nodeConfig` for the description of its properties. | 2178 /// See `nodeConfig` for the description of its properties. |
2053 * For requests, this field should only be used in lieu of a | 2179 /// For requests, this field should only be used in lieu of a |
2054 * "node_pool" object, since this configuration (along with the | 2180 /// "node_pool" object, since this configuration (along with the |
2055 * "initial_node_count") will be used to create a "NodePool" object with an | 2181 /// "initial_node_count") will be used to create a "NodePool" object with an |
2056 * auto-generated name. Do not use this and a node_pool at the same time. | 2182 /// auto-generated name. Do not use this and a node_pool at the same time. |
2057 * For responses, this field will be populated with the node configuration of | 2183 /// For responses, this field will be populated with the node configuration |
2058 * the first node pool. | 2184 /// of |
2059 * | 2185 /// the first node pool. |
2060 * If unspecified, the defaults are used. | 2186 /// |
2061 */ | 2187 /// If unspecified, the defaults are used. |
2062 NodeConfig nodeConfig; | 2188 NodeConfig nodeConfig; |
2063 /** | 2189 |
2064 * [Output only] The size of the address space on each node for hosting | 2190 /// [Output only] The size of the address space on each node for hosting |
2065 * containers. This is provisioned from within the `container_ipv4_cidr` | 2191 /// containers. This is provisioned from within the `container_ipv4_cidr` |
2066 * range. | 2192 /// range. |
2067 */ | |
2068 core.int nodeIpv4CidrSize; | 2193 core.int nodeIpv4CidrSize; |
2069 /** | 2194 |
2070 * The node pools associated with this cluster. | 2195 /// The node pools associated with this cluster. |
2071 * This field should not be set if "node_config" or "initial_node_count" are | 2196 /// This field should not be set if "node_config" or "initial_node_count" are |
2072 * specified. | 2197 /// specified. |
2073 */ | |
2074 core.List<NodePool> nodePools; | 2198 core.List<NodePool> nodePools; |
2075 /** | 2199 |
2076 * The resource labels for the cluster to use to annotate any related | 2200 /// The resource labels for the cluster to use to annotate any related |
2077 * Google Compute Engine resources. | 2201 /// Google Compute Engine resources. |
2078 */ | |
2079 core.Map<core.String, core.String> resourceLabels; | 2202 core.Map<core.String, core.String> resourceLabels; |
2080 /** [Output only] Server-defined URL for the resource. */ | 2203 |
| 2204 /// [Output only] Server-defined URL for the resource. |
2081 core.String selfLink; | 2205 core.String selfLink; |
2082 /** | 2206 |
2083 * [Output only] The IP address range of the Kubernetes services in | 2207 /// [Output only] The IP address range of the Kubernetes services in |
2084 * this cluster, in | 2208 /// this cluster, in |
2085 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | 2209 /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
2086 * notation (e.g. `1.2.3.4/29`). Service addresses are | 2210 /// notation (e.g. `1.2.3.4/29`). Service addresses are |
2087 * typically put in the last `/16` from the container CIDR. | 2211 /// typically put in the last `/16` from the container CIDR. |
2088 */ | |
2089 core.String servicesIpv4Cidr; | 2212 core.String servicesIpv4Cidr; |
2090 /** | 2213 |
2091 * [Output only] The current status of this cluster. | 2214 /// [Output only] The current status of this cluster. |
2092 * Possible string values are: | 2215 /// Possible string values are: |
2093 * - "STATUS_UNSPECIFIED" : Not set. | 2216 /// - "STATUS_UNSPECIFIED" : Not set. |
2094 * - "PROVISIONING" : The PROVISIONING state indicates the cluster is being | 2217 /// - "PROVISIONING" : The PROVISIONING state indicates the cluster is being |
2095 * created. | 2218 /// created. |
2096 * - "RUNNING" : The RUNNING state indicates the cluster has been created and | 2219 /// - "RUNNING" : The RUNNING state indicates the cluster has been created |
2097 * is fully | 2220 /// and is fully |
2098 * usable. | 2221 /// usable. |
2099 * - "RECONCILING" : The RECONCILING state indicates that some work is | 2222 /// - "RECONCILING" : The RECONCILING state indicates that some work is |
2100 * actively being done on | 2223 /// actively being done on |
2101 * the cluster, such as upgrading the master or node software. Details can | 2224 /// the cluster, such as upgrading the master or node software. Details can |
2102 * be found in the `statusMessage` field. | 2225 /// be found in the `statusMessage` field. |
2103 * - "STOPPING" : The STOPPING state indicates the cluster is being deleted. | 2226 /// - "STOPPING" : The STOPPING state indicates the cluster is being deleted. |
2104 * - "ERROR" : The ERROR state indicates the cluster may be unusable. Details | 2227 /// - "ERROR" : The ERROR state indicates the cluster may be unusable. |
2105 * can be found in the `statusMessage` field. | 2228 /// Details |
2106 */ | 2229 /// can be found in the `statusMessage` field. |
2107 core.String status; | 2230 core.String status; |
2108 /** | 2231 |
2109 * [Output only] Additional information about the current status of this | 2232 /// [Output only] Additional information about the current status of this |
2110 * cluster, if available. | 2233 /// cluster, if available. |
2111 */ | |
2112 core.String statusMessage; | 2234 core.String statusMessage; |
2113 /** | 2235 |
2114 * The name of the Google Compute Engine | 2236 /// The name of the Google Compute Engine |
2115 * [subnetwork](/compute/docs/subnetworks) to which the | 2237 /// [subnetwork](/compute/docs/subnetworks) to which the |
2116 * cluster is connected. | 2238 /// cluster is connected. |
2117 */ | |
2118 core.String subnetwork; | 2239 core.String subnetwork; |
2119 /** | 2240 |
2120 * [Output only] The name of the Google Compute Engine | 2241 /// [Output only] The name of the Google Compute Engine |
2121 * [zone](/compute/docs/zones#available) in which the cluster | 2242 /// [zone](/compute/docs/zones#available) in which the cluster |
2122 * resides. | 2243 /// resides. |
2123 */ | |
2124 core.String zone; | 2244 core.String zone; |
2125 | 2245 |
2126 Cluster(); | 2246 Cluster(); |
2127 | 2247 |
2128 Cluster.fromJson(core.Map _json) { | 2248 Cluster.fromJson(core.Map _json) { |
2129 if (_json.containsKey("addonsConfig")) { | 2249 if (_json.containsKey("addonsConfig")) { |
2130 addonsConfig = new AddonsConfig.fromJson(_json["addonsConfig"]); | 2250 addonsConfig = new AddonsConfig.fromJson(_json["addonsConfig"]); |
2131 } | 2251 } |
2132 if (_json.containsKey("clusterIpv4Cidr")) { | 2252 if (_json.containsKey("clusterIpv4Cidr")) { |
2133 clusterIpv4Cidr = _json["clusterIpv4Cidr"]; | 2253 clusterIpv4Cidr = _json["clusterIpv4Cidr"]; |
(...skipping 25 matching lines...) Expand all Loading... |
2159 if (_json.containsKey("initialClusterVersion")) { | 2279 if (_json.containsKey("initialClusterVersion")) { |
2160 initialClusterVersion = _json["initialClusterVersion"]; | 2280 initialClusterVersion = _json["initialClusterVersion"]; |
2161 } | 2281 } |
2162 if (_json.containsKey("initialNodeCount")) { | 2282 if (_json.containsKey("initialNodeCount")) { |
2163 initialNodeCount = _json["initialNodeCount"]; | 2283 initialNodeCount = _json["initialNodeCount"]; |
2164 } | 2284 } |
2165 if (_json.containsKey("instanceGroupUrls")) { | 2285 if (_json.containsKey("instanceGroupUrls")) { |
2166 instanceGroupUrls = _json["instanceGroupUrls"]; | 2286 instanceGroupUrls = _json["instanceGroupUrls"]; |
2167 } | 2287 } |
2168 if (_json.containsKey("ipAllocationPolicy")) { | 2288 if (_json.containsKey("ipAllocationPolicy")) { |
2169 ipAllocationPolicy = new IPAllocationPolicy.fromJson(_json["ipAllocationPo
licy"]); | 2289 ipAllocationPolicy = |
| 2290 new IPAllocationPolicy.fromJson(_json["ipAllocationPolicy"]); |
2170 } | 2291 } |
2171 if (_json.containsKey("labelFingerprint")) { | 2292 if (_json.containsKey("labelFingerprint")) { |
2172 labelFingerprint = _json["labelFingerprint"]; | 2293 labelFingerprint = _json["labelFingerprint"]; |
2173 } | 2294 } |
2174 if (_json.containsKey("legacyAbac")) { | 2295 if (_json.containsKey("legacyAbac")) { |
2175 legacyAbac = new LegacyAbac.fromJson(_json["legacyAbac"]); | 2296 legacyAbac = new LegacyAbac.fromJson(_json["legacyAbac"]); |
2176 } | 2297 } |
2177 if (_json.containsKey("locations")) { | 2298 if (_json.containsKey("locations")) { |
2178 locations = _json["locations"]; | 2299 locations = _json["locations"]; |
2179 } | 2300 } |
2180 if (_json.containsKey("loggingService")) { | 2301 if (_json.containsKey("loggingService")) { |
2181 loggingService = _json["loggingService"]; | 2302 loggingService = _json["loggingService"]; |
2182 } | 2303 } |
2183 if (_json.containsKey("masterAuth")) { | 2304 if (_json.containsKey("masterAuth")) { |
2184 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); | 2305 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); |
2185 } | 2306 } |
2186 if (_json.containsKey("masterAuthorizedNetworksConfig")) { | 2307 if (_json.containsKey("masterAuthorizedNetworksConfig")) { |
2187 masterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig.fromJs
on(_json["masterAuthorizedNetworksConfig"]); | 2308 masterAuthorizedNetworksConfig = |
| 2309 new MasterAuthorizedNetworksConfig.fromJson( |
| 2310 _json["masterAuthorizedNetworksConfig"]); |
2188 } | 2311 } |
2189 if (_json.containsKey("monitoringService")) { | 2312 if (_json.containsKey("monitoringService")) { |
2190 monitoringService = _json["monitoringService"]; | 2313 monitoringService = _json["monitoringService"]; |
2191 } | 2314 } |
2192 if (_json.containsKey("name")) { | 2315 if (_json.containsKey("name")) { |
2193 name = _json["name"]; | 2316 name = _json["name"]; |
2194 } | 2317 } |
2195 if (_json.containsKey("network")) { | 2318 if (_json.containsKey("network")) { |
2196 network = _json["network"]; | 2319 network = _json["network"]; |
2197 } | 2320 } |
2198 if (_json.containsKey("networkPolicy")) { | 2321 if (_json.containsKey("networkPolicy")) { |
2199 networkPolicy = new NetworkPolicy.fromJson(_json["networkPolicy"]); | 2322 networkPolicy = new NetworkPolicy.fromJson(_json["networkPolicy"]); |
2200 } | 2323 } |
2201 if (_json.containsKey("nodeConfig")) { | 2324 if (_json.containsKey("nodeConfig")) { |
2202 nodeConfig = new NodeConfig.fromJson(_json["nodeConfig"]); | 2325 nodeConfig = new NodeConfig.fromJson(_json["nodeConfig"]); |
2203 } | 2326 } |
2204 if (_json.containsKey("nodeIpv4CidrSize")) { | 2327 if (_json.containsKey("nodeIpv4CidrSize")) { |
2205 nodeIpv4CidrSize = _json["nodeIpv4CidrSize"]; | 2328 nodeIpv4CidrSize = _json["nodeIpv4CidrSize"]; |
2206 } | 2329 } |
2207 if (_json.containsKey("nodePools")) { | 2330 if (_json.containsKey("nodePools")) { |
2208 nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value)
).toList(); | 2331 nodePools = _json["nodePools"] |
| 2332 .map((value) => new NodePool.fromJson(value)) |
| 2333 .toList(); |
2209 } | 2334 } |
2210 if (_json.containsKey("resourceLabels")) { | 2335 if (_json.containsKey("resourceLabels")) { |
2211 resourceLabels = _json["resourceLabels"]; | 2336 resourceLabels = _json["resourceLabels"]; |
2212 } | 2337 } |
2213 if (_json.containsKey("selfLink")) { | 2338 if (_json.containsKey("selfLink")) { |
2214 selfLink = _json["selfLink"]; | 2339 selfLink = _json["selfLink"]; |
2215 } | 2340 } |
2216 if (_json.containsKey("servicesIpv4Cidr")) { | 2341 if (_json.containsKey("servicesIpv4Cidr")) { |
2217 servicesIpv4Cidr = _json["servicesIpv4Cidr"]; | 2342 servicesIpv4Cidr = _json["servicesIpv4Cidr"]; |
2218 } | 2343 } |
2219 if (_json.containsKey("status")) { | 2344 if (_json.containsKey("status")) { |
2220 status = _json["status"]; | 2345 status = _json["status"]; |
2221 } | 2346 } |
2222 if (_json.containsKey("statusMessage")) { | 2347 if (_json.containsKey("statusMessage")) { |
2223 statusMessage = _json["statusMessage"]; | 2348 statusMessage = _json["statusMessage"]; |
2224 } | 2349 } |
2225 if (_json.containsKey("subnetwork")) { | 2350 if (_json.containsKey("subnetwork")) { |
2226 subnetwork = _json["subnetwork"]; | 2351 subnetwork = _json["subnetwork"]; |
2227 } | 2352 } |
2228 if (_json.containsKey("zone")) { | 2353 if (_json.containsKey("zone")) { |
2229 zone = _json["zone"]; | 2354 zone = _json["zone"]; |
2230 } | 2355 } |
2231 } | 2356 } |
2232 | 2357 |
2233 core.Map<core.String, core.Object> toJson() { | 2358 core.Map<core.String, core.Object> toJson() { |
2234 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2359 final core.Map<core.String, core.Object> _json = |
| 2360 new core.Map<core.String, core.Object>(); |
2235 if (addonsConfig != null) { | 2361 if (addonsConfig != null) { |
2236 _json["addonsConfig"] = (addonsConfig).toJson(); | 2362 _json["addonsConfig"] = (addonsConfig).toJson(); |
2237 } | 2363 } |
2238 if (clusterIpv4Cidr != null) { | 2364 if (clusterIpv4Cidr != null) { |
2239 _json["clusterIpv4Cidr"] = clusterIpv4Cidr; | 2365 _json["clusterIpv4Cidr"] = clusterIpv4Cidr; |
2240 } | 2366 } |
2241 if (createTime != null) { | 2367 if (createTime != null) { |
2242 _json["createTime"] = createTime; | 2368 _json["createTime"] = createTime; |
2243 } | 2369 } |
2244 if (currentMasterVersion != null) { | 2370 if (currentMasterVersion != null) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2283 if (locations != null) { | 2409 if (locations != null) { |
2284 _json["locations"] = locations; | 2410 _json["locations"] = locations; |
2285 } | 2411 } |
2286 if (loggingService != null) { | 2412 if (loggingService != null) { |
2287 _json["loggingService"] = loggingService; | 2413 _json["loggingService"] = loggingService; |
2288 } | 2414 } |
2289 if (masterAuth != null) { | 2415 if (masterAuth != null) { |
2290 _json["masterAuth"] = (masterAuth).toJson(); | 2416 _json["masterAuth"] = (masterAuth).toJson(); |
2291 } | 2417 } |
2292 if (masterAuthorizedNetworksConfig != null) { | 2418 if (masterAuthorizedNetworksConfig != null) { |
2293 _json["masterAuthorizedNetworksConfig"] = (masterAuthorizedNetworksConfig)
.toJson(); | 2419 _json["masterAuthorizedNetworksConfig"] = |
| 2420 (masterAuthorizedNetworksConfig).toJson(); |
2294 } | 2421 } |
2295 if (monitoringService != null) { | 2422 if (monitoringService != null) { |
2296 _json["monitoringService"] = monitoringService; | 2423 _json["monitoringService"] = monitoringService; |
2297 } | 2424 } |
2298 if (name != null) { | 2425 if (name != null) { |
2299 _json["name"] = name; | 2426 _json["name"] = name; |
2300 } | 2427 } |
2301 if (network != null) { | 2428 if (network != null) { |
2302 _json["network"] = network; | 2429 _json["network"] = network; |
2303 } | 2430 } |
(...skipping 27 matching lines...) Expand all Loading... |
2331 if (subnetwork != null) { | 2458 if (subnetwork != null) { |
2332 _json["subnetwork"] = subnetwork; | 2459 _json["subnetwork"] = subnetwork; |
2333 } | 2460 } |
2334 if (zone != null) { | 2461 if (zone != null) { |
2335 _json["zone"] = zone; | 2462 _json["zone"] = zone; |
2336 } | 2463 } |
2337 return _json; | 2464 return _json; |
2338 } | 2465 } |
2339 } | 2466 } |
2340 | 2467 |
2341 /** | 2468 /// ClusterUpdate describes an update to the cluster. Exactly one update can |
2342 * ClusterUpdate describes an update to the cluster. Exactly one update can | 2469 /// be applied to a cluster with each request, so at most one field can be |
2343 * be applied to a cluster with each request, so at most one field can be | 2470 /// provided. |
2344 * provided. | |
2345 */ | |
2346 class ClusterUpdate { | 2471 class ClusterUpdate { |
2347 /** Configurations for the various addons available to run in the cluster. */ | 2472 /// Configurations for the various addons available to run in the cluster. |
2348 AddonsConfig desiredAddonsConfig; | 2473 AddonsConfig desiredAddonsConfig; |
2349 /** | 2474 |
2350 * The desired image type for the node pool. | 2475 /// The desired image type for the node pool. |
2351 * NOTE: Set the "desired_node_pool" field as well. | 2476 /// NOTE: Set the "desired_node_pool" field as well. |
2352 */ | |
2353 core.String desiredImageType; | 2477 core.String desiredImageType; |
2354 /** | 2478 |
2355 * The desired list of Google Compute Engine | 2479 /// The desired list of Google Compute Engine |
2356 * [locations](/compute/docs/zones#available) in which the cluster's nodes | 2480 /// [locations](/compute/docs/zones#available) in which the cluster's nodes |
2357 * should be located. Changing the locations a cluster is in will result | 2481 /// should be located. Changing the locations a cluster is in will result |
2358 * in nodes being either created or removed from the cluster, depending on | 2482 /// in nodes being either created or removed from the cluster, depending on |
2359 * whether locations are being added or removed. | 2483 /// whether locations are being added or removed. |
2360 * | 2484 /// |
2361 * This list must always include the cluster's primary zone. | 2485 /// This list must always include the cluster's primary zone. |
2362 */ | |
2363 core.List<core.String> desiredLocations; | 2486 core.List<core.String> desiredLocations; |
2364 /** | 2487 |
2365 * Master authorized networks is a Beta feature. | 2488 /// Master authorized networks is a Beta feature. |
2366 * The desired configuration options for master authorized networks feature. | 2489 /// The desired configuration options for master authorized networks feature. |
2367 */ | |
2368 MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig; | 2490 MasterAuthorizedNetworksConfig desiredMasterAuthorizedNetworksConfig; |
2369 /** | 2491 |
2370 * The Kubernetes version to change the master to. The only valid value is the | 2492 /// The Kubernetes version to change the master to. The only valid value is |
2371 * latest supported version. Use "-" to have the server automatically select | 2493 /// the |
2372 * the latest version. | 2494 /// latest supported version. Use "-" to have the server automatically select |
2373 */ | 2495 /// the latest version. |
2374 core.String desiredMasterVersion; | 2496 core.String desiredMasterVersion; |
2375 /** | 2497 |
2376 * The monitoring service the cluster should use to write metrics. | 2498 /// The monitoring service the cluster should use to write metrics. |
2377 * Currently available options: | 2499 /// Currently available options: |
2378 * | 2500 /// |
2379 * * "monitoring.googleapis.com" - the Google Cloud Monitoring service | 2501 /// * "monitoring.googleapis.com" - the Google Cloud Monitoring service |
2380 * * "none" - no metrics will be exported from the cluster | 2502 /// * "none" - no metrics will be exported from the cluster |
2381 */ | |
2382 core.String desiredMonitoringService; | 2503 core.String desiredMonitoringService; |
2383 /** | 2504 |
2384 * Autoscaler configuration for the node pool specified in | 2505 /// Autoscaler configuration for the node pool specified in |
2385 * desired_node_pool_id. If there is only one pool in the | 2506 /// desired_node_pool_id. If there is only one pool in the |
2386 * cluster and desired_node_pool_id is not provided then | 2507 /// cluster and desired_node_pool_id is not provided then |
2387 * the change applies to that single node pool. | 2508 /// the change applies to that single node pool. |
2388 */ | |
2389 NodePoolAutoscaling desiredNodePoolAutoscaling; | 2509 NodePoolAutoscaling desiredNodePoolAutoscaling; |
2390 /** | 2510 |
2391 * The node pool to be upgraded. This field is mandatory if | 2511 /// The node pool to be upgraded. This field is mandatory if |
2392 * "desired_node_version", "desired_image_family" or | 2512 /// "desired_node_version", "desired_image_family" or |
2393 * "desired_node_pool_autoscaling" is specified and there is more than one | 2513 /// "desired_node_pool_autoscaling" is specified and there is more than one |
2394 * node pool on the cluster. | 2514 /// node pool on the cluster. |
2395 */ | |
2396 core.String desiredNodePoolId; | 2515 core.String desiredNodePoolId; |
2397 /** | 2516 |
2398 * The Kubernetes version to change the nodes to (typically an | 2517 /// The Kubernetes version to change the nodes to (typically an |
2399 * upgrade). Use `-` to upgrade to the latest version supported by | 2518 /// upgrade). Use `-` to upgrade to the latest version supported by |
2400 * the server. | 2519 /// the server. |
2401 */ | |
2402 core.String desiredNodeVersion; | 2520 core.String desiredNodeVersion; |
2403 | 2521 |
2404 ClusterUpdate(); | 2522 ClusterUpdate(); |
2405 | 2523 |
2406 ClusterUpdate.fromJson(core.Map _json) { | 2524 ClusterUpdate.fromJson(core.Map _json) { |
2407 if (_json.containsKey("desiredAddonsConfig")) { | 2525 if (_json.containsKey("desiredAddonsConfig")) { |
2408 desiredAddonsConfig = new AddonsConfig.fromJson(_json["desiredAddonsConfig
"]); | 2526 desiredAddonsConfig = |
| 2527 new AddonsConfig.fromJson(_json["desiredAddonsConfig"]); |
2409 } | 2528 } |
2410 if (_json.containsKey("desiredImageType")) { | 2529 if (_json.containsKey("desiredImageType")) { |
2411 desiredImageType = _json["desiredImageType"]; | 2530 desiredImageType = _json["desiredImageType"]; |
2412 } | 2531 } |
2413 if (_json.containsKey("desiredLocations")) { | 2532 if (_json.containsKey("desiredLocations")) { |
2414 desiredLocations = _json["desiredLocations"]; | 2533 desiredLocations = _json["desiredLocations"]; |
2415 } | 2534 } |
2416 if (_json.containsKey("desiredMasterAuthorizedNetworksConfig")) { | 2535 if (_json.containsKey("desiredMasterAuthorizedNetworksConfig")) { |
2417 desiredMasterAuthorizedNetworksConfig = new MasterAuthorizedNetworksConfig
.fromJson(_json["desiredMasterAuthorizedNetworksConfig"]); | 2536 desiredMasterAuthorizedNetworksConfig = |
| 2537 new MasterAuthorizedNetworksConfig.fromJson( |
| 2538 _json["desiredMasterAuthorizedNetworksConfig"]); |
2418 } | 2539 } |
2419 if (_json.containsKey("desiredMasterVersion")) { | 2540 if (_json.containsKey("desiredMasterVersion")) { |
2420 desiredMasterVersion = _json["desiredMasterVersion"]; | 2541 desiredMasterVersion = _json["desiredMasterVersion"]; |
2421 } | 2542 } |
2422 if (_json.containsKey("desiredMonitoringService")) { | 2543 if (_json.containsKey("desiredMonitoringService")) { |
2423 desiredMonitoringService = _json["desiredMonitoringService"]; | 2544 desiredMonitoringService = _json["desiredMonitoringService"]; |
2424 } | 2545 } |
2425 if (_json.containsKey("desiredNodePoolAutoscaling")) { | 2546 if (_json.containsKey("desiredNodePoolAutoscaling")) { |
2426 desiredNodePoolAutoscaling = new NodePoolAutoscaling.fromJson(_json["desir
edNodePoolAutoscaling"]); | 2547 desiredNodePoolAutoscaling = |
| 2548 new NodePoolAutoscaling.fromJson(_json["desiredNodePoolAutoscaling"]); |
2427 } | 2549 } |
2428 if (_json.containsKey("desiredNodePoolId")) { | 2550 if (_json.containsKey("desiredNodePoolId")) { |
2429 desiredNodePoolId = _json["desiredNodePoolId"]; | 2551 desiredNodePoolId = _json["desiredNodePoolId"]; |
2430 } | 2552 } |
2431 if (_json.containsKey("desiredNodeVersion")) { | 2553 if (_json.containsKey("desiredNodeVersion")) { |
2432 desiredNodeVersion = _json["desiredNodeVersion"]; | 2554 desiredNodeVersion = _json["desiredNodeVersion"]; |
2433 } | 2555 } |
2434 } | 2556 } |
2435 | 2557 |
2436 core.Map<core.String, core.Object> toJson() { | 2558 core.Map<core.String, core.Object> toJson() { |
2437 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2559 final core.Map<core.String, core.Object> _json = |
| 2560 new core.Map<core.String, core.Object>(); |
2438 if (desiredAddonsConfig != null) { | 2561 if (desiredAddonsConfig != null) { |
2439 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); | 2562 _json["desiredAddonsConfig"] = (desiredAddonsConfig).toJson(); |
2440 } | 2563 } |
2441 if (desiredImageType != null) { | 2564 if (desiredImageType != null) { |
2442 _json["desiredImageType"] = desiredImageType; | 2565 _json["desiredImageType"] = desiredImageType; |
2443 } | 2566 } |
2444 if (desiredLocations != null) { | 2567 if (desiredLocations != null) { |
2445 _json["desiredLocations"] = desiredLocations; | 2568 _json["desiredLocations"] = desiredLocations; |
2446 } | 2569 } |
2447 if (desiredMasterAuthorizedNetworksConfig != null) { | 2570 if (desiredMasterAuthorizedNetworksConfig != null) { |
2448 _json["desiredMasterAuthorizedNetworksConfig"] = (desiredMasterAuthorizedN
etworksConfig).toJson(); | 2571 _json["desiredMasterAuthorizedNetworksConfig"] = |
| 2572 (desiredMasterAuthorizedNetworksConfig).toJson(); |
2449 } | 2573 } |
2450 if (desiredMasterVersion != null) { | 2574 if (desiredMasterVersion != null) { |
2451 _json["desiredMasterVersion"] = desiredMasterVersion; | 2575 _json["desiredMasterVersion"] = desiredMasterVersion; |
2452 } | 2576 } |
2453 if (desiredMonitoringService != null) { | 2577 if (desiredMonitoringService != null) { |
2454 _json["desiredMonitoringService"] = desiredMonitoringService; | 2578 _json["desiredMonitoringService"] = desiredMonitoringService; |
2455 } | 2579 } |
2456 if (desiredNodePoolAutoscaling != null) { | 2580 if (desiredNodePoolAutoscaling != null) { |
2457 _json["desiredNodePoolAutoscaling"] = (desiredNodePoolAutoscaling).toJson(
); | 2581 _json["desiredNodePoolAutoscaling"] = |
| 2582 (desiredNodePoolAutoscaling).toJson(); |
2458 } | 2583 } |
2459 if (desiredNodePoolId != null) { | 2584 if (desiredNodePoolId != null) { |
2460 _json["desiredNodePoolId"] = desiredNodePoolId; | 2585 _json["desiredNodePoolId"] = desiredNodePoolId; |
2461 } | 2586 } |
2462 if (desiredNodeVersion != null) { | 2587 if (desiredNodeVersion != null) { |
2463 _json["desiredNodeVersion"] = desiredNodeVersion; | 2588 _json["desiredNodeVersion"] = desiredNodeVersion; |
2464 } | 2589 } |
2465 return _json; | 2590 return _json; |
2466 } | 2591 } |
2467 } | 2592 } |
2468 | 2593 |
2469 /** | 2594 /// CompleteIPRotationRequest moves the cluster master back into single-IP |
2470 * CompleteIPRotationRequest moves the cluster master back into single-IP mode. | 2595 /// mode. |
2471 */ | |
2472 class CompleteIPRotationRequest { | 2596 class CompleteIPRotationRequest { |
2473 | |
2474 CompleteIPRotationRequest(); | 2597 CompleteIPRotationRequest(); |
2475 | 2598 |
2476 CompleteIPRotationRequest.fromJson(core.Map _json) { | 2599 CompleteIPRotationRequest.fromJson(core.Map _json) {} |
2477 } | |
2478 | 2600 |
2479 core.Map<core.String, core.Object> toJson() { | 2601 core.Map<core.String, core.Object> toJson() { |
2480 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2602 final core.Map<core.String, core.Object> _json = |
| 2603 new core.Map<core.String, core.Object>(); |
2481 return _json; | 2604 return _json; |
2482 } | 2605 } |
2483 } | 2606 } |
2484 | 2607 |
2485 /** CreateClusterRequest creates a cluster. */ | 2608 /// CreateClusterRequest creates a cluster. |
2486 class CreateClusterRequest { | 2609 class CreateClusterRequest { |
2487 /** | 2610 /// A [cluster |
2488 * A [cluster | 2611 /// resource](/container-engine/reference/rest/v1/projects.zones.clusters) |
2489 * resource](/container-engine/reference/rest/v1/projects.zones.clusters) | |
2490 */ | |
2491 Cluster cluster; | 2612 Cluster cluster; |
2492 | 2613 |
2493 CreateClusterRequest(); | 2614 CreateClusterRequest(); |
2494 | 2615 |
2495 CreateClusterRequest.fromJson(core.Map _json) { | 2616 CreateClusterRequest.fromJson(core.Map _json) { |
2496 if (_json.containsKey("cluster")) { | 2617 if (_json.containsKey("cluster")) { |
2497 cluster = new Cluster.fromJson(_json["cluster"]); | 2618 cluster = new Cluster.fromJson(_json["cluster"]); |
2498 } | 2619 } |
2499 } | 2620 } |
2500 | 2621 |
2501 core.Map<core.String, core.Object> toJson() { | 2622 core.Map<core.String, core.Object> toJson() { |
2502 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2623 final core.Map<core.String, core.Object> _json = |
| 2624 new core.Map<core.String, core.Object>(); |
2503 if (cluster != null) { | 2625 if (cluster != null) { |
2504 _json["cluster"] = (cluster).toJson(); | 2626 _json["cluster"] = (cluster).toJson(); |
2505 } | 2627 } |
2506 return _json; | 2628 return _json; |
2507 } | 2629 } |
2508 } | 2630 } |
2509 | 2631 |
2510 /** CreateNodePoolRequest creates a node pool for a cluster. */ | 2632 /// CreateNodePoolRequest creates a node pool for a cluster. |
2511 class CreateNodePoolRequest { | 2633 class CreateNodePoolRequest { |
2512 /** The node pool to create. */ | 2634 /// The node pool to create. |
2513 NodePool nodePool; | 2635 NodePool nodePool; |
2514 | 2636 |
2515 CreateNodePoolRequest(); | 2637 CreateNodePoolRequest(); |
2516 | 2638 |
2517 CreateNodePoolRequest.fromJson(core.Map _json) { | 2639 CreateNodePoolRequest.fromJson(core.Map _json) { |
2518 if (_json.containsKey("nodePool")) { | 2640 if (_json.containsKey("nodePool")) { |
2519 nodePool = new NodePool.fromJson(_json["nodePool"]); | 2641 nodePool = new NodePool.fromJson(_json["nodePool"]); |
2520 } | 2642 } |
2521 } | 2643 } |
2522 | 2644 |
2523 core.Map<core.String, core.Object> toJson() { | 2645 core.Map<core.String, core.Object> toJson() { |
2524 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2646 final core.Map<core.String, core.Object> _json = |
| 2647 new core.Map<core.String, core.Object>(); |
2525 if (nodePool != null) { | 2648 if (nodePool != null) { |
2526 _json["nodePool"] = (nodePool).toJson(); | 2649 _json["nodePool"] = (nodePool).toJson(); |
2527 } | 2650 } |
2528 return _json; | 2651 return _json; |
2529 } | 2652 } |
2530 } | 2653 } |
2531 | 2654 |
2532 /** | 2655 /// A generic empty message that you can re-use to avoid defining duplicated |
2533 * A generic empty message that you can re-use to avoid defining duplicated | 2656 /// empty messages in your APIs. A typical example is to use it as the request |
2534 * empty messages in your APIs. A typical example is to use it as the request | 2657 /// or the response type of an API method. For instance: |
2535 * or the response type of an API method. For instance: | 2658 /// |
2536 * | 2659 /// service Foo { |
2537 * service Foo { | 2660 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
2538 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 2661 /// } |
2539 * } | 2662 /// |
2540 * | 2663 /// The JSON representation for `Empty` is empty JSON object `{}`. |
2541 * The JSON representation for `Empty` is empty JSON object `{}`. | |
2542 */ | |
2543 class Empty { | 2664 class Empty { |
2544 | |
2545 Empty(); | 2665 Empty(); |
2546 | 2666 |
2547 Empty.fromJson(core.Map _json) { | 2667 Empty.fromJson(core.Map _json) {} |
2548 } | |
2549 | 2668 |
2550 core.Map<core.String, core.Object> toJson() { | 2669 core.Map<core.String, core.Object> toJson() { |
2551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2670 final core.Map<core.String, core.Object> _json = |
| 2671 new core.Map<core.String, core.Object>(); |
2552 return _json; | 2672 return _json; |
2553 } | 2673 } |
2554 } | 2674 } |
2555 | 2675 |
2556 /** | 2676 /// Configuration options for the horizontal pod autoscaling feature, which |
2557 * Configuration options for the horizontal pod autoscaling feature, which | 2677 /// increases or decreases the number of replica pods a replication controller |
2558 * increases or decreases the number of replica pods a replication controller | 2678 /// has based on the resource usage of the existing pods. |
2559 * has based on the resource usage of the existing pods. | |
2560 */ | |
2561 class HorizontalPodAutoscaling { | 2679 class HorizontalPodAutoscaling { |
2562 /** | 2680 /// Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. |
2563 * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. | 2681 /// When enabled, it ensures that a Heapster pod is running in the cluster, |
2564 * When enabled, it ensures that a Heapster pod is running in the cluster, | 2682 /// which is also used by the Cloud Monitoring service. |
2565 * which is also used by the Cloud Monitoring service. | |
2566 */ | |
2567 core.bool disabled; | 2683 core.bool disabled; |
2568 | 2684 |
2569 HorizontalPodAutoscaling(); | 2685 HorizontalPodAutoscaling(); |
2570 | 2686 |
2571 HorizontalPodAutoscaling.fromJson(core.Map _json) { | 2687 HorizontalPodAutoscaling.fromJson(core.Map _json) { |
2572 if (_json.containsKey("disabled")) { | 2688 if (_json.containsKey("disabled")) { |
2573 disabled = _json["disabled"]; | 2689 disabled = _json["disabled"]; |
2574 } | 2690 } |
2575 } | 2691 } |
2576 | 2692 |
2577 core.Map<core.String, core.Object> toJson() { | 2693 core.Map<core.String, core.Object> toJson() { |
2578 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2694 final core.Map<core.String, core.Object> _json = |
| 2695 new core.Map<core.String, core.Object>(); |
2579 if (disabled != null) { | 2696 if (disabled != null) { |
2580 _json["disabled"] = disabled; | 2697 _json["disabled"] = disabled; |
2581 } | 2698 } |
2582 return _json; | 2699 return _json; |
2583 } | 2700 } |
2584 } | 2701 } |
2585 | 2702 |
2586 /** | 2703 /// Configuration options for the HTTP (L7) load balancing controller addon, |
2587 * Configuration options for the HTTP (L7) load balancing controller addon, | 2704 /// which makes it easy to set up HTTP load balancers for services in a |
2588 * which makes it easy to set up HTTP load balancers for services in a cluster. | 2705 /// cluster. |
2589 */ | |
2590 class HttpLoadBalancing { | 2706 class HttpLoadBalancing { |
2591 /** | 2707 /// Whether the HTTP Load Balancing controller is enabled in the cluster. |
2592 * Whether the HTTP Load Balancing controller is enabled in the cluster. | 2708 /// When enabled, it runs a small pod in the cluster that manages the load |
2593 * When enabled, it runs a small pod in the cluster that manages the load | 2709 /// balancers. |
2594 * balancers. | |
2595 */ | |
2596 core.bool disabled; | 2710 core.bool disabled; |
2597 | 2711 |
2598 HttpLoadBalancing(); | 2712 HttpLoadBalancing(); |
2599 | 2713 |
2600 HttpLoadBalancing.fromJson(core.Map _json) { | 2714 HttpLoadBalancing.fromJson(core.Map _json) { |
2601 if (_json.containsKey("disabled")) { | 2715 if (_json.containsKey("disabled")) { |
2602 disabled = _json["disabled"]; | 2716 disabled = _json["disabled"]; |
2603 } | 2717 } |
2604 } | 2718 } |
2605 | 2719 |
2606 core.Map<core.String, core.Object> toJson() { | 2720 core.Map<core.String, core.Object> toJson() { |
2607 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2721 final core.Map<core.String, core.Object> _json = |
| 2722 new core.Map<core.String, core.Object>(); |
2608 if (disabled != null) { | 2723 if (disabled != null) { |
2609 _json["disabled"] = disabled; | 2724 _json["disabled"] = disabled; |
2610 } | 2725 } |
2611 return _json; | 2726 return _json; |
2612 } | 2727 } |
2613 } | 2728 } |
2614 | 2729 |
2615 /** Configuration for controlling how IPs are allocated in the cluster. */ | 2730 /// Configuration for controlling how IPs are allocated in the cluster. |
2616 class IPAllocationPolicy { | 2731 class IPAllocationPolicy { |
2617 /** | 2732 /// This field is deprecated, use cluster_ipv4_cidr_block. |
2618 * The IP address range for the cluster pod IPs. If this field is set, then | |
2619 * `cluster.cluster_ipv4_cidr` must be left blank. | |
2620 * | |
2621 * This field is only applicable when `use_ip_aliases` is true. | |
2622 * | |
2623 * Set to blank to have a range will be chosen with the default size. | |
2624 * | |
2625 * Set to /netmask (e.g. `/14`) to have a range be chosen with a specific | |
2626 * netmask. | |
2627 * | |
2628 * Set to a | |
2629 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | |
2630 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. | |
2631 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range | |
2632 * to use. | |
2633 */ | |
2634 core.String clusterIpv4Cidr; | 2733 core.String clusterIpv4Cidr; |
2635 /** | 2734 |
2636 * Whether a new subnetwork will be created automatically for the cluster. | 2735 /// The IP address range for the cluster pod IPs. If this field is set, then |
2637 * | 2736 /// `cluster.cluster_ipv4_cidr` must be left blank. |
2638 * This field is only applicable when `use_ip_aliases` is true. | 2737 /// |
2639 */ | 2738 /// This field is only applicable when `use_ip_aliases` is true. |
| 2739 /// |
| 2740 /// Set to blank to have a range chosen with the default size. |
| 2741 /// |
| 2742 /// Set to /netmask (e.g. `/14`) to have a range chosen with a specific |
| 2743 /// netmask. |
| 2744 /// |
| 2745 /// Set to a |
| 2746 /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
| 2747 /// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
| 2748 /// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
| 2749 /// to use. |
| 2750 core.String clusterIpv4CidrBlock; |
| 2751 |
| 2752 /// The name of the secondary range to be used for the cluster CIDR |
| 2753 /// block. The secondary range will be used for pod IP |
| 2754 /// addresses. This must be an existing secondary range associated |
| 2755 /// with the cluster subnetwork. |
| 2756 /// |
| 2757 /// This field is only applicable with use_ip_aliases is true and |
| 2758 /// create_subnetwork is false. |
| 2759 core.String clusterSecondaryRangeName; |
| 2760 |
| 2761 /// Whether a new subnetwork will be created automatically for the cluster. |
| 2762 /// |
| 2763 /// This field is only applicable when `use_ip_aliases` is true. |
2640 core.bool createSubnetwork; | 2764 core.bool createSubnetwork; |
2641 /** | 2765 |
2642 * The IP address range of the instance IPs in this cluster. | 2766 /// This field is deprecated, use node_ipv4_cidr_block. |
2643 * | |
2644 * This is applicable only if `create_subnetwork` is true. | |
2645 * | |
2646 * Set to blank to have a range will be chosen with the default size. | |
2647 * | |
2648 * Set to /netmask (e.g. `/14`) to have a range be chosen with a specific | |
2649 * netmask. | |
2650 * | |
2651 * Set to a | |
2652 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | |
2653 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. | |
2654 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range | |
2655 * to use. | |
2656 */ | |
2657 core.String nodeIpv4Cidr; | 2767 core.String nodeIpv4Cidr; |
2658 /** | 2768 |
2659 * The IP address range of the services IPs in this cluster. If blank, a range | 2769 /// The IP address range of the instance IPs in this cluster. |
2660 * will be automatically chosen with the default size. | 2770 /// |
2661 * | 2771 /// This is applicable only if `create_subnetwork` is true. |
2662 * This field is only applicable when `use_ip_aliases` is true. | 2772 /// |
2663 * | 2773 /// Set to blank to have a range chosen with the default size. |
2664 * Set to blank to have a range will be chosen with the default size. | 2774 /// |
2665 * | 2775 /// Set to /netmask (e.g. `/14`) to have a range chosen with a specific |
2666 * Set to /netmask (e.g. `/14`) to have a range be chosen with a specific | 2776 /// netmask. |
2667 * netmask. | 2777 /// |
2668 * | 2778 /// Set to a |
2669 * Set to a | 2779 /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
2670 * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) | 2780 /// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
2671 * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. | 2781 /// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
2672 * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range | 2782 /// to use. |
2673 * to use. | 2783 core.String nodeIpv4CidrBlock; |
2674 */ | 2784 |
| 2785 /// This field is deprecated, use services_ipv4_cidr_block. |
2675 core.String servicesIpv4Cidr; | 2786 core.String servicesIpv4Cidr; |
2676 /** | 2787 |
2677 * A custom subnetwork name to be used if `create_subnetwork` is true. If | 2788 /// The IP address range of the services IPs in this cluster. If blank, a |
2678 * this field is empty, then an automatic name will be chosen for the new | 2789 /// range |
2679 * subnetwork. | 2790 /// will be automatically chosen with the default size. |
2680 */ | 2791 /// |
| 2792 /// This field is only applicable when `use_ip_aliases` is true. |
| 2793 /// |
| 2794 /// Set to blank to have a range chosen with the default size. |
| 2795 /// |
| 2796 /// Set to /netmask (e.g. `/14`) to have a range chosen with a specific |
| 2797 /// netmask. |
| 2798 /// |
| 2799 /// Set to a |
| 2800 /// [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) |
| 2801 /// notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. |
| 2802 /// `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range |
| 2803 /// to use. |
| 2804 core.String servicesIpv4CidrBlock; |
| 2805 |
| 2806 /// The name of the secondary range to be used as for the services |
| 2807 /// CIDR block. The secondary range will be used for service |
| 2808 /// ClusterIPs. This must be an existing secondary range associated |
| 2809 /// with the cluster subnetwork. |
| 2810 /// |
| 2811 /// This field is only applicable with use_ip_aliases is true and |
| 2812 /// create_subnetwork is false. |
| 2813 core.String servicesSecondaryRangeName; |
| 2814 |
| 2815 /// A custom subnetwork name to be used if `create_subnetwork` is true. If |
| 2816 /// this field is empty, then an automatic name will be chosen for the new |
| 2817 /// subnetwork. |
2681 core.String subnetworkName; | 2818 core.String subnetworkName; |
2682 /** Whether alias IPs will be used for pod IPs in the cluster. */ | 2819 |
| 2820 /// Whether alias IPs will be used for pod IPs in the cluster. |
2683 core.bool useIpAliases; | 2821 core.bool useIpAliases; |
2684 | 2822 |
2685 IPAllocationPolicy(); | 2823 IPAllocationPolicy(); |
2686 | 2824 |
2687 IPAllocationPolicy.fromJson(core.Map _json) { | 2825 IPAllocationPolicy.fromJson(core.Map _json) { |
2688 if (_json.containsKey("clusterIpv4Cidr")) { | 2826 if (_json.containsKey("clusterIpv4Cidr")) { |
2689 clusterIpv4Cidr = _json["clusterIpv4Cidr"]; | 2827 clusterIpv4Cidr = _json["clusterIpv4Cidr"]; |
2690 } | 2828 } |
| 2829 if (_json.containsKey("clusterIpv4CidrBlock")) { |
| 2830 clusterIpv4CidrBlock = _json["clusterIpv4CidrBlock"]; |
| 2831 } |
| 2832 if (_json.containsKey("clusterSecondaryRangeName")) { |
| 2833 clusterSecondaryRangeName = _json["clusterSecondaryRangeName"]; |
| 2834 } |
2691 if (_json.containsKey("createSubnetwork")) { | 2835 if (_json.containsKey("createSubnetwork")) { |
2692 createSubnetwork = _json["createSubnetwork"]; | 2836 createSubnetwork = _json["createSubnetwork"]; |
2693 } | 2837 } |
2694 if (_json.containsKey("nodeIpv4Cidr")) { | 2838 if (_json.containsKey("nodeIpv4Cidr")) { |
2695 nodeIpv4Cidr = _json["nodeIpv4Cidr"]; | 2839 nodeIpv4Cidr = _json["nodeIpv4Cidr"]; |
2696 } | 2840 } |
| 2841 if (_json.containsKey("nodeIpv4CidrBlock")) { |
| 2842 nodeIpv4CidrBlock = _json["nodeIpv4CidrBlock"]; |
| 2843 } |
2697 if (_json.containsKey("servicesIpv4Cidr")) { | 2844 if (_json.containsKey("servicesIpv4Cidr")) { |
2698 servicesIpv4Cidr = _json["servicesIpv4Cidr"]; | 2845 servicesIpv4Cidr = _json["servicesIpv4Cidr"]; |
2699 } | 2846 } |
| 2847 if (_json.containsKey("servicesIpv4CidrBlock")) { |
| 2848 servicesIpv4CidrBlock = _json["servicesIpv4CidrBlock"]; |
| 2849 } |
| 2850 if (_json.containsKey("servicesSecondaryRangeName")) { |
| 2851 servicesSecondaryRangeName = _json["servicesSecondaryRangeName"]; |
| 2852 } |
2700 if (_json.containsKey("subnetworkName")) { | 2853 if (_json.containsKey("subnetworkName")) { |
2701 subnetworkName = _json["subnetworkName"]; | 2854 subnetworkName = _json["subnetworkName"]; |
2702 } | 2855 } |
2703 if (_json.containsKey("useIpAliases")) { | 2856 if (_json.containsKey("useIpAliases")) { |
2704 useIpAliases = _json["useIpAliases"]; | 2857 useIpAliases = _json["useIpAliases"]; |
2705 } | 2858 } |
2706 } | 2859 } |
2707 | 2860 |
2708 core.Map<core.String, core.Object> toJson() { | 2861 core.Map<core.String, core.Object> toJson() { |
2709 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2862 final core.Map<core.String, core.Object> _json = |
| 2863 new core.Map<core.String, core.Object>(); |
2710 if (clusterIpv4Cidr != null) { | 2864 if (clusterIpv4Cidr != null) { |
2711 _json["clusterIpv4Cidr"] = clusterIpv4Cidr; | 2865 _json["clusterIpv4Cidr"] = clusterIpv4Cidr; |
2712 } | 2866 } |
| 2867 if (clusterIpv4CidrBlock != null) { |
| 2868 _json["clusterIpv4CidrBlock"] = clusterIpv4CidrBlock; |
| 2869 } |
| 2870 if (clusterSecondaryRangeName != null) { |
| 2871 _json["clusterSecondaryRangeName"] = clusterSecondaryRangeName; |
| 2872 } |
2713 if (createSubnetwork != null) { | 2873 if (createSubnetwork != null) { |
2714 _json["createSubnetwork"] = createSubnetwork; | 2874 _json["createSubnetwork"] = createSubnetwork; |
2715 } | 2875 } |
2716 if (nodeIpv4Cidr != null) { | 2876 if (nodeIpv4Cidr != null) { |
2717 _json["nodeIpv4Cidr"] = nodeIpv4Cidr; | 2877 _json["nodeIpv4Cidr"] = nodeIpv4Cidr; |
2718 } | 2878 } |
| 2879 if (nodeIpv4CidrBlock != null) { |
| 2880 _json["nodeIpv4CidrBlock"] = nodeIpv4CidrBlock; |
| 2881 } |
2719 if (servicesIpv4Cidr != null) { | 2882 if (servicesIpv4Cidr != null) { |
2720 _json["servicesIpv4Cidr"] = servicesIpv4Cidr; | 2883 _json["servicesIpv4Cidr"] = servicesIpv4Cidr; |
2721 } | 2884 } |
| 2885 if (servicesIpv4CidrBlock != null) { |
| 2886 _json["servicesIpv4CidrBlock"] = servicesIpv4CidrBlock; |
| 2887 } |
| 2888 if (servicesSecondaryRangeName != null) { |
| 2889 _json["servicesSecondaryRangeName"] = servicesSecondaryRangeName; |
| 2890 } |
2722 if (subnetworkName != null) { | 2891 if (subnetworkName != null) { |
2723 _json["subnetworkName"] = subnetworkName; | 2892 _json["subnetworkName"] = subnetworkName; |
2724 } | 2893 } |
2725 if (useIpAliases != null) { | 2894 if (useIpAliases != null) { |
2726 _json["useIpAliases"] = useIpAliases; | 2895 _json["useIpAliases"] = useIpAliases; |
2727 } | 2896 } |
2728 return _json; | 2897 return _json; |
2729 } | 2898 } |
2730 } | 2899 } |
2731 | 2900 |
2732 /** Configuration for the Kubernetes Dashboard. */ | 2901 /// Configuration for the Kubernetes Dashboard. |
2733 class KubernetesDashboard { | 2902 class KubernetesDashboard { |
2734 /** Whether the Kubernetes Dashboard is enabled for this cluster. */ | 2903 /// Whether the Kubernetes Dashboard is enabled for this cluster. |
2735 core.bool disabled; | 2904 core.bool disabled; |
2736 | 2905 |
2737 KubernetesDashboard(); | 2906 KubernetesDashboard(); |
2738 | 2907 |
2739 KubernetesDashboard.fromJson(core.Map _json) { | 2908 KubernetesDashboard.fromJson(core.Map _json) { |
2740 if (_json.containsKey("disabled")) { | 2909 if (_json.containsKey("disabled")) { |
2741 disabled = _json["disabled"]; | 2910 disabled = _json["disabled"]; |
2742 } | 2911 } |
2743 } | 2912 } |
2744 | 2913 |
2745 core.Map<core.String, core.Object> toJson() { | 2914 core.Map<core.String, core.Object> toJson() { |
2746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2915 final core.Map<core.String, core.Object> _json = |
| 2916 new core.Map<core.String, core.Object>(); |
2747 if (disabled != null) { | 2917 if (disabled != null) { |
2748 _json["disabled"] = disabled; | 2918 _json["disabled"] = disabled; |
2749 } | 2919 } |
2750 return _json; | 2920 return _json; |
2751 } | 2921 } |
2752 } | 2922 } |
2753 | 2923 |
2754 /** | 2924 /// Configuration for the legacy Attribute Based Access Control authorization |
2755 * Configuration for the legacy Attribute Based Access Control authorization | 2925 /// mode. |
2756 * mode. | |
2757 */ | |
2758 class LegacyAbac { | 2926 class LegacyAbac { |
2759 /** | 2927 /// Whether the ABAC authorizer is enabled for this cluster. When enabled, |
2760 * Whether the ABAC authorizer is enabled for this cluster. When enabled, | 2928 /// identities in the system, including service accounts, nodes, and |
2761 * identities in the system, including service accounts, nodes, and | 2929 /// controllers, will have statically granted permissions beyond those |
2762 * controllers, will have statically granted permissions beyond those | 2930 /// provided by the RBAC configuration or IAM. |
2763 * provided by the RBAC configuration or IAM. | |
2764 */ | |
2765 core.bool enabled; | 2931 core.bool enabled; |
2766 | 2932 |
2767 LegacyAbac(); | 2933 LegacyAbac(); |
2768 | 2934 |
2769 LegacyAbac.fromJson(core.Map _json) { | 2935 LegacyAbac.fromJson(core.Map _json) { |
2770 if (_json.containsKey("enabled")) { | 2936 if (_json.containsKey("enabled")) { |
2771 enabled = _json["enabled"]; | 2937 enabled = _json["enabled"]; |
2772 } | 2938 } |
2773 } | 2939 } |
2774 | 2940 |
2775 core.Map<core.String, core.Object> toJson() { | 2941 core.Map<core.String, core.Object> toJson() { |
2776 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2942 final core.Map<core.String, core.Object> _json = |
| 2943 new core.Map<core.String, core.Object>(); |
2777 if (enabled != null) { | 2944 if (enabled != null) { |
2778 _json["enabled"] = enabled; | 2945 _json["enabled"] = enabled; |
2779 } | 2946 } |
2780 return _json; | 2947 return _json; |
2781 } | 2948 } |
2782 } | 2949 } |
2783 | 2950 |
2784 /** ListClustersResponse is the result of ListClustersRequest. */ | 2951 /// ListClustersResponse is the result of ListClustersRequest. |
2785 class ListClustersResponse { | 2952 class ListClustersResponse { |
2786 /** | 2953 /// A list of clusters in the project in the specified zone, or |
2787 * A list of clusters in the project in the specified zone, or | 2954 /// across all ones. |
2788 * across all ones. | |
2789 */ | |
2790 core.List<Cluster> clusters; | 2955 core.List<Cluster> clusters; |
2791 /** | 2956 |
2792 * If any zones are listed here, the list of clusters returned | 2957 /// If any zones are listed here, the list of clusters returned |
2793 * may be missing those zones. | 2958 /// may be missing those zones. |
2794 */ | |
2795 core.List<core.String> missingZones; | 2959 core.List<core.String> missingZones; |
2796 | 2960 |
2797 ListClustersResponse(); | 2961 ListClustersResponse(); |
2798 | 2962 |
2799 ListClustersResponse.fromJson(core.Map _json) { | 2963 ListClustersResponse.fromJson(core.Map _json) { |
2800 if (_json.containsKey("clusters")) { | 2964 if (_json.containsKey("clusters")) { |
2801 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); | 2965 clusters = _json["clusters"] |
| 2966 .map((value) => new Cluster.fromJson(value)) |
| 2967 .toList(); |
2802 } | 2968 } |
2803 if (_json.containsKey("missingZones")) { | 2969 if (_json.containsKey("missingZones")) { |
2804 missingZones = _json["missingZones"]; | 2970 missingZones = _json["missingZones"]; |
2805 } | 2971 } |
2806 } | 2972 } |
2807 | 2973 |
2808 core.Map<core.String, core.Object> toJson() { | 2974 core.Map<core.String, core.Object> toJson() { |
2809 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2975 final core.Map<core.String, core.Object> _json = |
| 2976 new core.Map<core.String, core.Object>(); |
2810 if (clusters != null) { | 2977 if (clusters != null) { |
2811 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); | 2978 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
2812 } | 2979 } |
2813 if (missingZones != null) { | 2980 if (missingZones != null) { |
2814 _json["missingZones"] = missingZones; | 2981 _json["missingZones"] = missingZones; |
2815 } | 2982 } |
2816 return _json; | 2983 return _json; |
2817 } | 2984 } |
2818 } | 2985 } |
2819 | 2986 |
2820 /** ListNodePoolsResponse is the result of ListNodePoolsRequest. */ | 2987 /// ListNodePoolsResponse is the result of ListNodePoolsRequest. |
2821 class ListNodePoolsResponse { | 2988 class ListNodePoolsResponse { |
2822 /** A list of node pools for a cluster. */ | 2989 /// A list of node pools for a cluster. |
2823 core.List<NodePool> nodePools; | 2990 core.List<NodePool> nodePools; |
2824 | 2991 |
2825 ListNodePoolsResponse(); | 2992 ListNodePoolsResponse(); |
2826 | 2993 |
2827 ListNodePoolsResponse.fromJson(core.Map _json) { | 2994 ListNodePoolsResponse.fromJson(core.Map _json) { |
2828 if (_json.containsKey("nodePools")) { | 2995 if (_json.containsKey("nodePools")) { |
2829 nodePools = _json["nodePools"].map((value) => new NodePool.fromJson(value)
).toList(); | 2996 nodePools = _json["nodePools"] |
| 2997 .map((value) => new NodePool.fromJson(value)) |
| 2998 .toList(); |
2830 } | 2999 } |
2831 } | 3000 } |
2832 | 3001 |
2833 core.Map<core.String, core.Object> toJson() { | 3002 core.Map<core.String, core.Object> toJson() { |
2834 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3003 final core.Map<core.String, core.Object> _json = |
| 3004 new core.Map<core.String, core.Object>(); |
2835 if (nodePools != null) { | 3005 if (nodePools != null) { |
2836 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); | 3006 _json["nodePools"] = nodePools.map((value) => (value).toJson()).toList(); |
2837 } | 3007 } |
2838 return _json; | 3008 return _json; |
2839 } | 3009 } |
2840 } | 3010 } |
2841 | 3011 |
2842 /** ListOperationsResponse is the result of ListOperationsRequest. */ | 3012 /// ListOperationsResponse is the result of ListOperationsRequest. |
2843 class ListOperationsResponse { | 3013 class ListOperationsResponse { |
2844 /** | 3014 /// If any zones are listed here, the list of operations returned |
2845 * If any zones are listed here, the list of operations returned | 3015 /// may be missing the operations from those zones. |
2846 * may be missing the operations from those zones. | |
2847 */ | |
2848 core.List<core.String> missingZones; | 3016 core.List<core.String> missingZones; |
2849 /** A list of operations in the project in the specified zone. */ | 3017 |
| 3018 /// A list of operations in the project in the specified zone. |
2850 core.List<Operation> operations; | 3019 core.List<Operation> operations; |
2851 | 3020 |
2852 ListOperationsResponse(); | 3021 ListOperationsResponse(); |
2853 | 3022 |
2854 ListOperationsResponse.fromJson(core.Map _json) { | 3023 ListOperationsResponse.fromJson(core.Map _json) { |
2855 if (_json.containsKey("missingZones")) { | 3024 if (_json.containsKey("missingZones")) { |
2856 missingZones = _json["missingZones"]; | 3025 missingZones = _json["missingZones"]; |
2857 } | 3026 } |
2858 if (_json.containsKey("operations")) { | 3027 if (_json.containsKey("operations")) { |
2859 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 3028 operations = _json["operations"] |
| 3029 .map((value) => new Operation.fromJson(value)) |
| 3030 .toList(); |
2860 } | 3031 } |
2861 } | 3032 } |
2862 | 3033 |
2863 core.Map<core.String, core.Object> toJson() { | 3034 core.Map<core.String, core.Object> toJson() { |
2864 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3035 final core.Map<core.String, core.Object> _json = |
| 3036 new core.Map<core.String, core.Object>(); |
2865 if (missingZones != null) { | 3037 if (missingZones != null) { |
2866 _json["missingZones"] = missingZones; | 3038 _json["missingZones"] = missingZones; |
2867 } | 3039 } |
2868 if (operations != null) { | 3040 if (operations != null) { |
2869 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 3041 _json["operations"] = |
| 3042 operations.map((value) => (value).toJson()).toList(); |
2870 } | 3043 } |
2871 return _json; | 3044 return _json; |
2872 } | 3045 } |
2873 } | 3046 } |
2874 | 3047 |
2875 /** | 3048 /// The authentication information for accessing the master endpoint. |
2876 * The authentication information for accessing the master endpoint. | 3049 /// Authentication can be done using HTTP basic auth or using client |
2877 * Authentication can be done using HTTP basic auth or using client | 3050 /// certificates. |
2878 * certificates. | |
2879 */ | |
2880 class MasterAuth { | 3051 class MasterAuth { |
2881 /** | 3052 /// [Output only] Base64-encoded public certificate used by clients to |
2882 * [Output only] Base64-encoded public certificate used by clients to | 3053 /// authenticate to the cluster endpoint. |
2883 * authenticate to the cluster endpoint. | |
2884 */ | |
2885 core.String clientCertificate; | 3054 core.String clientCertificate; |
2886 /** | 3055 |
2887 * Configuration for client certificate authentication on the cluster. If no | 3056 /// Configuration for client certificate authentication on the cluster. If |
2888 * configuration is specified, a client certificate is issued. | 3057 /// no |
2889 */ | 3058 /// configuration is specified, a client certificate is issued. |
2890 ClientCertificateConfig clientCertificateConfig; | 3059 ClientCertificateConfig clientCertificateConfig; |
2891 /** | 3060 |
2892 * [Output only] Base64-encoded private key used by clients to authenticate | 3061 /// [Output only] Base64-encoded private key used by clients to authenticate |
2893 * to the cluster endpoint. | 3062 /// to the cluster endpoint. |
2894 */ | |
2895 core.String clientKey; | 3063 core.String clientKey; |
2896 /** | 3064 |
2897 * [Output only] Base64-encoded public certificate that is the root of | 3065 /// [Output only] Base64-encoded public certificate that is the root of |
2898 * trust for the cluster. | 3066 /// trust for the cluster. |
2899 */ | |
2900 core.String clusterCaCertificate; | 3067 core.String clusterCaCertificate; |
2901 /** | 3068 |
2902 * The password to use for HTTP basic authentication to the master endpoint. | 3069 /// The password to use for HTTP basic authentication to the master endpoint. |
2903 * Because the master endpoint is open to the Internet, you should create a | 3070 /// Because the master endpoint is open to the Internet, you should create a |
2904 * strong password. If a password is provided for cluster creation, username | 3071 /// strong password. If a password is provided for cluster creation, |
2905 * must be non-empty. | 3072 /// username |
2906 */ | 3073 /// must be non-empty. |
2907 core.String password; | 3074 core.String password; |
2908 /** | 3075 |
2909 * The username to use for HTTP basic authentication to the master endpoint. | 3076 /// The username to use for HTTP basic authentication to the master endpoint. |
2910 * For clusters v1.6.0 and later, you can disable basic authentication by | 3077 /// For clusters v1.6.0 and later, you can disable basic authentication by |
2911 * providing an empty username. | 3078 /// providing an empty username. |
2912 */ | |
2913 core.String username; | 3079 core.String username; |
2914 | 3080 |
2915 MasterAuth(); | 3081 MasterAuth(); |
2916 | 3082 |
2917 MasterAuth.fromJson(core.Map _json) { | 3083 MasterAuth.fromJson(core.Map _json) { |
2918 if (_json.containsKey("clientCertificate")) { | 3084 if (_json.containsKey("clientCertificate")) { |
2919 clientCertificate = _json["clientCertificate"]; | 3085 clientCertificate = _json["clientCertificate"]; |
2920 } | 3086 } |
2921 if (_json.containsKey("clientCertificateConfig")) { | 3087 if (_json.containsKey("clientCertificateConfig")) { |
2922 clientCertificateConfig = new ClientCertificateConfig.fromJson(_json["clie
ntCertificateConfig"]); | 3088 clientCertificateConfig = new ClientCertificateConfig.fromJson( |
| 3089 _json["clientCertificateConfig"]); |
2923 } | 3090 } |
2924 if (_json.containsKey("clientKey")) { | 3091 if (_json.containsKey("clientKey")) { |
2925 clientKey = _json["clientKey"]; | 3092 clientKey = _json["clientKey"]; |
2926 } | 3093 } |
2927 if (_json.containsKey("clusterCaCertificate")) { | 3094 if (_json.containsKey("clusterCaCertificate")) { |
2928 clusterCaCertificate = _json["clusterCaCertificate"]; | 3095 clusterCaCertificate = _json["clusterCaCertificate"]; |
2929 } | 3096 } |
2930 if (_json.containsKey("password")) { | 3097 if (_json.containsKey("password")) { |
2931 password = _json["password"]; | 3098 password = _json["password"]; |
2932 } | 3099 } |
2933 if (_json.containsKey("username")) { | 3100 if (_json.containsKey("username")) { |
2934 username = _json["username"]; | 3101 username = _json["username"]; |
2935 } | 3102 } |
2936 } | 3103 } |
2937 | 3104 |
2938 core.Map<core.String, core.Object> toJson() { | 3105 core.Map<core.String, core.Object> toJson() { |
2939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3106 final core.Map<core.String, core.Object> _json = |
| 3107 new core.Map<core.String, core.Object>(); |
2940 if (clientCertificate != null) { | 3108 if (clientCertificate != null) { |
2941 _json["clientCertificate"] = clientCertificate; | 3109 _json["clientCertificate"] = clientCertificate; |
2942 } | 3110 } |
2943 if (clientCertificateConfig != null) { | 3111 if (clientCertificateConfig != null) { |
2944 _json["clientCertificateConfig"] = (clientCertificateConfig).toJson(); | 3112 _json["clientCertificateConfig"] = (clientCertificateConfig).toJson(); |
2945 } | 3113 } |
2946 if (clientKey != null) { | 3114 if (clientKey != null) { |
2947 _json["clientKey"] = clientKey; | 3115 _json["clientKey"] = clientKey; |
2948 } | 3116 } |
2949 if (clusterCaCertificate != null) { | 3117 if (clusterCaCertificate != null) { |
2950 _json["clusterCaCertificate"] = clusterCaCertificate; | 3118 _json["clusterCaCertificate"] = clusterCaCertificate; |
2951 } | 3119 } |
2952 if (password != null) { | 3120 if (password != null) { |
2953 _json["password"] = password; | 3121 _json["password"] = password; |
2954 } | 3122 } |
2955 if (username != null) { | 3123 if (username != null) { |
2956 _json["username"] = username; | 3124 _json["username"] = username; |
2957 } | 3125 } |
2958 return _json; | 3126 return _json; |
2959 } | 3127 } |
2960 } | 3128 } |
2961 | 3129 |
2962 /** | 3130 /// Master authorized networks is a Beta feature. |
2963 * Master authorized networks is a Beta feature. | 3131 /// Configuration options for the master authorized networks feature. Enabled |
2964 * Configuration options for the master authorized networks feature. Enabled | 3132 /// master authorized networks will disallow all external traffic to access |
2965 * master authorized networks will disallow all external traffic to access | 3133 /// Kubernetes master through HTTPS except traffic from the given CIDR blocks, |
2966 * Kubernetes master through HTTPS except traffic from the given CIDR blocks, | 3134 /// Google Compute Engine Public IPs and Google Prod IPs. |
2967 * Google Compute Engine Public IPs and Google Prod IPs. | |
2968 */ | |
2969 class MasterAuthorizedNetworksConfig { | 3135 class MasterAuthorizedNetworksConfig { |
2970 /** | 3136 /// cidr_blocks define up to 10 external networks that could access |
2971 * cidr_blocks define up to 10 external networks that could access | 3137 /// Kubernetes master through HTTPS. |
2972 * Kubernetes master through HTTPS. | |
2973 */ | |
2974 core.List<CidrBlock> cidrBlocks; | 3138 core.List<CidrBlock> cidrBlocks; |
2975 /** Whether or not master authorized networks is enabled. */ | 3139 |
| 3140 /// Whether or not master authorized networks is enabled. |
2976 core.bool enabled; | 3141 core.bool enabled; |
2977 | 3142 |
2978 MasterAuthorizedNetworksConfig(); | 3143 MasterAuthorizedNetworksConfig(); |
2979 | 3144 |
2980 MasterAuthorizedNetworksConfig.fromJson(core.Map _json) { | 3145 MasterAuthorizedNetworksConfig.fromJson(core.Map _json) { |
2981 if (_json.containsKey("cidrBlocks")) { | 3146 if (_json.containsKey("cidrBlocks")) { |
2982 cidrBlocks = _json["cidrBlocks"].map((value) => new CidrBlock.fromJson(val
ue)).toList(); | 3147 cidrBlocks = _json["cidrBlocks"] |
| 3148 .map((value) => new CidrBlock.fromJson(value)) |
| 3149 .toList(); |
2983 } | 3150 } |
2984 if (_json.containsKey("enabled")) { | 3151 if (_json.containsKey("enabled")) { |
2985 enabled = _json["enabled"]; | 3152 enabled = _json["enabled"]; |
2986 } | 3153 } |
2987 } | 3154 } |
2988 | 3155 |
2989 core.Map<core.String, core.Object> toJson() { | 3156 core.Map<core.String, core.Object> toJson() { |
2990 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3157 final core.Map<core.String, core.Object> _json = |
| 3158 new core.Map<core.String, core.Object>(); |
2991 if (cidrBlocks != null) { | 3159 if (cidrBlocks != null) { |
2992 _json["cidrBlocks"] = cidrBlocks.map((value) => (value).toJson()).toList()
; | 3160 _json["cidrBlocks"] = |
| 3161 cidrBlocks.map((value) => (value).toJson()).toList(); |
2993 } | 3162 } |
2994 if (enabled != null) { | 3163 if (enabled != null) { |
2995 _json["enabled"] = enabled; | 3164 _json["enabled"] = enabled; |
2996 } | 3165 } |
2997 return _json; | 3166 return _json; |
2998 } | 3167 } |
2999 } | 3168 } |
3000 | 3169 |
3001 /** | 3170 /// Configuration options for the NetworkPolicy feature. |
3002 * Configuration options for the NetworkPolicy feature. | 3171 /// https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ |
3003 * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ | |
3004 */ | |
3005 class NetworkPolicy { | 3172 class NetworkPolicy { |
3006 /** Whether network policy is enabled on the cluster. */ | 3173 /// Whether network policy is enabled on the cluster. |
3007 core.bool enabled; | 3174 core.bool enabled; |
3008 /** | 3175 |
3009 * The selected network policy provider. | 3176 /// The selected network policy provider. |
3010 * Possible string values are: | 3177 /// Possible string values are: |
3011 * - "PROVIDER_UNSPECIFIED" : Not set | 3178 /// - "PROVIDER_UNSPECIFIED" : Not set |
3012 * - "CALICO" : Tigera (Calico Felix). | 3179 /// - "CALICO" : Tigera (Calico Felix). |
3013 */ | |
3014 core.String provider; | 3180 core.String provider; |
3015 | 3181 |
3016 NetworkPolicy(); | 3182 NetworkPolicy(); |
3017 | 3183 |
3018 NetworkPolicy.fromJson(core.Map _json) { | 3184 NetworkPolicy.fromJson(core.Map _json) { |
3019 if (_json.containsKey("enabled")) { | 3185 if (_json.containsKey("enabled")) { |
3020 enabled = _json["enabled"]; | 3186 enabled = _json["enabled"]; |
3021 } | 3187 } |
3022 if (_json.containsKey("provider")) { | 3188 if (_json.containsKey("provider")) { |
3023 provider = _json["provider"]; | 3189 provider = _json["provider"]; |
3024 } | 3190 } |
3025 } | 3191 } |
3026 | 3192 |
3027 core.Map<core.String, core.Object> toJson() { | 3193 core.Map<core.String, core.Object> toJson() { |
3028 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3194 final core.Map<core.String, core.Object> _json = |
| 3195 new core.Map<core.String, core.Object>(); |
3029 if (enabled != null) { | 3196 if (enabled != null) { |
3030 _json["enabled"] = enabled; | 3197 _json["enabled"] = enabled; |
3031 } | 3198 } |
3032 if (provider != null) { | 3199 if (provider != null) { |
3033 _json["provider"] = provider; | 3200 _json["provider"] = provider; |
3034 } | 3201 } |
3035 return _json; | 3202 return _json; |
3036 } | 3203 } |
3037 } | 3204 } |
3038 | 3205 |
3039 /** Parameters that describe the nodes in a cluster. */ | 3206 /// Parameters that describe the nodes in a cluster. |
3040 class NodeConfig { | 3207 class NodeConfig { |
3041 /** | 3208 /// A list of hardware accelerators to be attached to each node. |
3042 * A list of hardware accelerators to be attached to each node. | 3209 /// See https://cloud.google.com/compute/docs/gpus for more information about |
3043 * See https://cloud.google.com/compute/docs/gpus for more information about | 3210 /// support for GPUs. |
3044 * support for GPUs. | |
3045 */ | |
3046 core.List<AcceleratorConfig> accelerators; | 3211 core.List<AcceleratorConfig> accelerators; |
3047 /** | 3212 |
3048 * Size of the disk attached to each node, specified in GB. | 3213 /// Size of the disk attached to each node, specified in GB. |
3049 * The smallest allowed disk size is 10GB. | 3214 /// The smallest allowed disk size is 10GB. |
3050 * | 3215 /// |
3051 * If unspecified, the default disk size is 100GB. | 3216 /// If unspecified, the default disk size is 100GB. |
3052 */ | |
3053 core.int diskSizeGb; | 3217 core.int diskSizeGb; |
3054 /** | 3218 |
3055 * The image type to use for this node. Note that for a given image type, | 3219 /// The image type to use for this node. Note that for a given image type, |
3056 * the latest version of it will be used. | 3220 /// the latest version of it will be used. |
3057 */ | |
3058 core.String imageType; | 3221 core.String imageType; |
3059 /** | 3222 |
3060 * The map of Kubernetes labels (key/value pairs) to be applied to each node. | 3223 /// The map of Kubernetes labels (key/value pairs) to be applied to each |
3061 * These will added in addition to any default label(s) that | 3224 /// node. |
3062 * Kubernetes may apply to the node. | 3225 /// These will added in addition to any default label(s) that |
3063 * In case of conflict in label keys, the applied set may differ depending on | 3226 /// Kubernetes may apply to the node. |
3064 * the Kubernetes version -- it's best to assume the behavior is undefined | 3227 /// In case of conflict in label keys, the applied set may differ depending |
3065 * and conflicts should be avoided. | 3228 /// on |
3066 * For more information, including usage and the valid values, see: | 3229 /// the Kubernetes version -- it's best to assume the behavior is undefined |
3067 * http://kubernetes.io/v1.1/docs/user-guide/labels.html | 3230 /// and conflicts should be avoided. |
3068 */ | 3231 /// For more information, including usage and the valid values, see: |
| 3232 /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
3069 core.Map<core.String, core.String> labels; | 3233 core.Map<core.String, core.String> labels; |
3070 /** | 3234 |
3071 * The number of local SSD disks to be attached to the node. | 3235 /// The number of local SSD disks to be attached to the node. |
3072 * | 3236 /// |
3073 * The limit for this value is dependant upon the maximum number of | 3237 /// The limit for this value is dependant upon the maximum number of |
3074 * disks available on a machine per zone. See: | 3238 /// disks available on a machine per zone. See: |
3075 * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits | 3239 /// https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits |
3076 * for more information. | 3240 /// for more information. |
3077 */ | |
3078 core.int localSsdCount; | 3241 core.int localSsdCount; |
3079 /** | 3242 |
3080 * The name of a Google Compute Engine [machine | 3243 /// The name of a Google Compute Engine [machine |
3081 * type](/compute/docs/machine-types) (e.g. | 3244 /// type](/compute/docs/machine-types) (e.g. |
3082 * `n1-standard-1`). | 3245 /// `n1-standard-1`). |
3083 * | 3246 /// |
3084 * If unspecified, the default machine type is | 3247 /// If unspecified, the default machine type is |
3085 * `n1-standard-1`. | 3248 /// `n1-standard-1`. |
3086 */ | |
3087 core.String machineType; | 3249 core.String machineType; |
3088 /** | 3250 |
3089 * The metadata key/value pairs assigned to instances in the cluster. | 3251 /// The metadata key/value pairs assigned to instances in the cluster. |
3090 * | 3252 /// |
3091 * Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes | 3253 /// Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes |
3092 * in length. These are reflected as part of a URL in the metadata server. | 3254 /// in length. These are reflected as part of a URL in the metadata server. |
3093 * Additionally, to avoid ambiguity, keys must not conflict with any other | 3255 /// Additionally, to avoid ambiguity, keys must not conflict with any other |
3094 * metadata keys for the project or be one of the four reserved keys: | 3256 /// metadata keys for the project or be one of the four reserved keys: |
3095 * "instance-template", "kube-env", "startup-script", and "user-data" | 3257 /// "instance-template", "kube-env", "startup-script", and "user-data" |
3096 * | 3258 /// |
3097 * Values are free-form strings, and only have meaning as interpreted by | 3259 /// Values are free-form strings, and only have meaning as interpreted by |
3098 * the image running in the instance. The only restriction placed on them is | 3260 /// the image running in the instance. The only restriction placed on them is |
3099 * that each value's size must be less than or equal to 32 KB. | 3261 /// that each value's size must be less than or equal to 32 KB. |
3100 * | 3262 /// |
3101 * The total size of all keys and values must be less than 512 KB. | 3263 /// The total size of all keys and values must be less than 512 KB. |
3102 */ | |
3103 core.Map<core.String, core.String> metadata; | 3264 core.Map<core.String, core.String> metadata; |
3104 /** | 3265 |
3105 * The set of Google API scopes to be made available on all of the | 3266 /// The set of Google API scopes to be made available on all of the |
3106 * node VMs under the "default" service account. | 3267 /// node VMs under the "default" service account. |
3107 * | 3268 /// |
3108 * The following scopes are recommended, but not required, and by default are | 3269 /// The following scopes are recommended, but not required, and by default |
3109 * not included: | 3270 /// are |
3110 * | 3271 /// not included: |
3111 * * `https://www.googleapis.com/auth/compute` is required for mounting | 3272 /// |
3112 * persistent storage on your nodes. | 3273 /// * `https://www.googleapis.com/auth/compute` is required for mounting |
3113 * * `https://www.googleapis.com/auth/devstorage.read_only` is required for | 3274 /// persistent storage on your nodes. |
3114 * communicating with **gcr.io** | 3275 /// * `https://www.googleapis.com/auth/devstorage.read_only` is required for |
3115 * (the [Google Container Registry](/container-registry/)). | 3276 /// communicating with **gcr.io** |
3116 * | 3277 /// (the [Google Container Registry](/container-registry/)). |
3117 * If unspecified, no scopes are added, unless Cloud Logging or Cloud | 3278 /// |
3118 * Monitoring are enabled, in which case their required scopes will be added. | 3279 /// If unspecified, no scopes are added, unless Cloud Logging or Cloud |
3119 */ | 3280 /// Monitoring are enabled, in which case their required scopes will be |
| 3281 /// added. |
3120 core.List<core.String> oauthScopes; | 3282 core.List<core.String> oauthScopes; |
3121 /** | 3283 |
3122 * Whether the nodes are created as preemptible VM instances. See: | 3284 /// Whether the nodes are created as preemptible VM instances. See: |
3123 * https://cloud.google.com/compute/docs/instances/preemptible for more | 3285 /// https://cloud.google.com/compute/docs/instances/preemptible for more |
3124 * information about preemptible VM instances. | 3286 /// information about preemptible VM instances. |
3125 */ | |
3126 core.bool preemptible; | 3287 core.bool preemptible; |
3127 /** | 3288 |
3128 * The Google Cloud Platform Service Account to be used by the node VMs. If | 3289 /// The Google Cloud Platform Service Account to be used by the node VMs. If |
3129 * no Service Account is specified, the "default" service account is used. | 3290 /// no Service Account is specified, the "default" service account is used. |
3130 */ | |
3131 core.String serviceAccount; | 3291 core.String serviceAccount; |
3132 /** | 3292 |
3133 * The list of instance tags applied to all nodes. Tags are used to identify | 3293 /// The list of instance tags applied to all nodes. Tags are used to identify |
3134 * valid sources or targets for network firewalls and are specified by | 3294 /// valid sources or targets for network firewalls and are specified by |
3135 * the client during cluster or node pool creation. Each tag within the list | 3295 /// the client during cluster or node pool creation. Each tag within the list |
3136 * must comply with RFC1035. | 3296 /// must comply with RFC1035. |
3137 */ | |
3138 core.List<core.String> tags; | 3297 core.List<core.String> tags; |
3139 | 3298 |
3140 NodeConfig(); | 3299 NodeConfig(); |
3141 | 3300 |
3142 NodeConfig.fromJson(core.Map _json) { | 3301 NodeConfig.fromJson(core.Map _json) { |
3143 if (_json.containsKey("accelerators")) { | 3302 if (_json.containsKey("accelerators")) { |
3144 accelerators = _json["accelerators"].map((value) => new AcceleratorConfig.
fromJson(value)).toList(); | 3303 accelerators = _json["accelerators"] |
| 3304 .map((value) => new AcceleratorConfig.fromJson(value)) |
| 3305 .toList(); |
3145 } | 3306 } |
3146 if (_json.containsKey("diskSizeGb")) { | 3307 if (_json.containsKey("diskSizeGb")) { |
3147 diskSizeGb = _json["diskSizeGb"]; | 3308 diskSizeGb = _json["diskSizeGb"]; |
3148 } | 3309 } |
3149 if (_json.containsKey("imageType")) { | 3310 if (_json.containsKey("imageType")) { |
3150 imageType = _json["imageType"]; | 3311 imageType = _json["imageType"]; |
3151 } | 3312 } |
3152 if (_json.containsKey("labels")) { | 3313 if (_json.containsKey("labels")) { |
3153 labels = _json["labels"]; | 3314 labels = _json["labels"]; |
3154 } | 3315 } |
(...skipping 14 matching lines...) Expand all Loading... |
3169 } | 3330 } |
3170 if (_json.containsKey("serviceAccount")) { | 3331 if (_json.containsKey("serviceAccount")) { |
3171 serviceAccount = _json["serviceAccount"]; | 3332 serviceAccount = _json["serviceAccount"]; |
3172 } | 3333 } |
3173 if (_json.containsKey("tags")) { | 3334 if (_json.containsKey("tags")) { |
3174 tags = _json["tags"]; | 3335 tags = _json["tags"]; |
3175 } | 3336 } |
3176 } | 3337 } |
3177 | 3338 |
3178 core.Map<core.String, core.Object> toJson() { | 3339 core.Map<core.String, core.Object> toJson() { |
3179 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3340 final core.Map<core.String, core.Object> _json = |
| 3341 new core.Map<core.String, core.Object>(); |
3180 if (accelerators != null) { | 3342 if (accelerators != null) { |
3181 _json["accelerators"] = accelerators.map((value) => (value).toJson()).toLi
st(); | 3343 _json["accelerators"] = |
| 3344 accelerators.map((value) => (value).toJson()).toList(); |
3182 } | 3345 } |
3183 if (diskSizeGb != null) { | 3346 if (diskSizeGb != null) { |
3184 _json["diskSizeGb"] = diskSizeGb; | 3347 _json["diskSizeGb"] = diskSizeGb; |
3185 } | 3348 } |
3186 if (imageType != null) { | 3349 if (imageType != null) { |
3187 _json["imageType"] = imageType; | 3350 _json["imageType"] = imageType; |
3188 } | 3351 } |
3189 if (labels != null) { | 3352 if (labels != null) { |
3190 _json["labels"] = labels; | 3353 _json["labels"] = labels; |
3191 } | 3354 } |
(...skipping 15 matching lines...) Expand all Loading... |
3207 if (serviceAccount != null) { | 3370 if (serviceAccount != null) { |
3208 _json["serviceAccount"] = serviceAccount; | 3371 _json["serviceAccount"] = serviceAccount; |
3209 } | 3372 } |
3210 if (tags != null) { | 3373 if (tags != null) { |
3211 _json["tags"] = tags; | 3374 _json["tags"] = tags; |
3212 } | 3375 } |
3213 return _json; | 3376 return _json; |
3214 } | 3377 } |
3215 } | 3378 } |
3216 | 3379 |
3217 /** | 3380 /// NodeManagement defines the set of node management services turned on for |
3218 * NodeManagement defines the set of node management services turned on for the | 3381 /// the |
3219 * node pool. | 3382 /// node pool. |
3220 */ | |
3221 class NodeManagement { | 3383 class NodeManagement { |
3222 /** | 3384 /// A flag that specifies whether the node auto-repair is enabled for the |
3223 * A flag that specifies whether the node auto-repair is enabled for the node | 3385 /// node |
3224 * pool. If enabled, the nodes in this node pool will be monitored and, if | 3386 /// pool. If enabled, the nodes in this node pool will be monitored and, if |
3225 * they fail health checks too many times, an automatic repair action will be | 3387 /// they fail health checks too many times, an automatic repair action will |
3226 * triggered. | 3388 /// be |
3227 */ | 3389 /// triggered. |
3228 core.bool autoRepair; | 3390 core.bool autoRepair; |
3229 /** | 3391 |
3230 * A flag that specifies whether node auto-upgrade is enabled for the node | 3392 /// A flag that specifies whether node auto-upgrade is enabled for the node |
3231 * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool | 3393 /// pool. If enabled, node auto-upgrade helps keep the nodes in your node |
3232 * up to date with the latest release version of Kubernetes. | 3394 /// pool |
3233 */ | 3395 /// up to date with the latest release version of Kubernetes. |
3234 core.bool autoUpgrade; | 3396 core.bool autoUpgrade; |
3235 /** Specifies the Auto Upgrade knobs for the node pool. */ | 3397 |
| 3398 /// Specifies the Auto Upgrade knobs for the node pool. |
3236 AutoUpgradeOptions upgradeOptions; | 3399 AutoUpgradeOptions upgradeOptions; |
3237 | 3400 |
3238 NodeManagement(); | 3401 NodeManagement(); |
3239 | 3402 |
3240 NodeManagement.fromJson(core.Map _json) { | 3403 NodeManagement.fromJson(core.Map _json) { |
3241 if (_json.containsKey("autoRepair")) { | 3404 if (_json.containsKey("autoRepair")) { |
3242 autoRepair = _json["autoRepair"]; | 3405 autoRepair = _json["autoRepair"]; |
3243 } | 3406 } |
3244 if (_json.containsKey("autoUpgrade")) { | 3407 if (_json.containsKey("autoUpgrade")) { |
3245 autoUpgrade = _json["autoUpgrade"]; | 3408 autoUpgrade = _json["autoUpgrade"]; |
3246 } | 3409 } |
3247 if (_json.containsKey("upgradeOptions")) { | 3410 if (_json.containsKey("upgradeOptions")) { |
3248 upgradeOptions = new AutoUpgradeOptions.fromJson(_json["upgradeOptions"]); | 3411 upgradeOptions = new AutoUpgradeOptions.fromJson(_json["upgradeOptions"]); |
3249 } | 3412 } |
3250 } | 3413 } |
3251 | 3414 |
3252 core.Map<core.String, core.Object> toJson() { | 3415 core.Map<core.String, core.Object> toJson() { |
3253 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3416 final core.Map<core.String, core.Object> _json = |
| 3417 new core.Map<core.String, core.Object>(); |
3254 if (autoRepair != null) { | 3418 if (autoRepair != null) { |
3255 _json["autoRepair"] = autoRepair; | 3419 _json["autoRepair"] = autoRepair; |
3256 } | 3420 } |
3257 if (autoUpgrade != null) { | 3421 if (autoUpgrade != null) { |
3258 _json["autoUpgrade"] = autoUpgrade; | 3422 _json["autoUpgrade"] = autoUpgrade; |
3259 } | 3423 } |
3260 if (upgradeOptions != null) { | 3424 if (upgradeOptions != null) { |
3261 _json["upgradeOptions"] = (upgradeOptions).toJson(); | 3425 _json["upgradeOptions"] = (upgradeOptions).toJson(); |
3262 } | 3426 } |
3263 return _json; | 3427 return _json; |
3264 } | 3428 } |
3265 } | 3429 } |
3266 | 3430 |
3267 /** | 3431 /// NodePool contains the name and configuration for a cluster's node pool. |
3268 * NodePool contains the name and configuration for a cluster's node pool. | 3432 /// Node pools are a set of nodes (i.e. VM's), with a common configuration and |
3269 * Node pools are a set of nodes (i.e. VM's), with a common configuration and | 3433 /// specification, under the control of the cluster master. They may have a set |
3270 * specification, under the control of the cluster master. They may have a set | 3434 /// of Kubernetes labels applied to them, which may be used to reference them |
3271 * of Kubernetes labels applied to them, which may be used to reference them | 3435 /// during pod scheduling. They may also be resized up or down, to accommodate |
3272 * during pod scheduling. They may also be resized up or down, to accommodate | 3436 /// the workload. |
3273 * the workload. | |
3274 */ | |
3275 class NodePool { | 3437 class NodePool { |
3276 /** | 3438 /// Autoscaler configuration for this NodePool. Autoscaler is enabled |
3277 * Autoscaler configuration for this NodePool. Autoscaler is enabled | 3439 /// only if a valid configuration is present. |
3278 * only if a valid configuration is present. | |
3279 */ | |
3280 NodePoolAutoscaling autoscaling; | 3440 NodePoolAutoscaling autoscaling; |
3281 /** The node configuration of the pool. */ | 3441 |
| 3442 /// The node configuration of the pool. |
3282 NodeConfig config; | 3443 NodeConfig config; |
3283 /** | 3444 |
3284 * The initial node count for the pool. You must ensure that your | 3445 /// The initial node count for the pool. You must ensure that your |
3285 * Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> | 3446 /// Compute Engine <a href="/compute/docs/resource-quotas">resource quota</a> |
3286 * is sufficient for this number of instances. You must also have available | 3447 /// is sufficient for this number of instances. You must also have available |
3287 * firewall and routes quota. | 3448 /// firewall and routes quota. |
3288 */ | |
3289 core.int initialNodeCount; | 3449 core.int initialNodeCount; |
3290 /** | 3450 |
3291 * [Output only] The resource URLs of [instance | 3451 /// [Output only] The resource URLs of [instance |
3292 * groups](/compute/docs/instance-groups/) associated with this | 3452 /// groups](/compute/docs/instance-groups/) associated with this |
3293 * node pool. | 3453 /// node pool. |
3294 */ | |
3295 core.List<core.String> instanceGroupUrls; | 3454 core.List<core.String> instanceGroupUrls; |
3296 /** NodeManagement configuration for this NodePool. */ | 3455 |
| 3456 /// NodeManagement configuration for this NodePool. |
3297 NodeManagement management; | 3457 NodeManagement management; |
3298 /** The name of the node pool. */ | 3458 |
| 3459 /// The name of the node pool. |
3299 core.String name; | 3460 core.String name; |
3300 /** [Output only] Server-defined URL for the resource. */ | 3461 |
| 3462 /// [Output only] Server-defined URL for the resource. |
3301 core.String selfLink; | 3463 core.String selfLink; |
3302 /** | 3464 |
3303 * [Output only] The status of the nodes in this pool instance. | 3465 /// [Output only] The status of the nodes in this pool instance. |
3304 * Possible string values are: | 3466 /// Possible string values are: |
3305 * - "STATUS_UNSPECIFIED" : Not set. | 3467 /// - "STATUS_UNSPECIFIED" : Not set. |
3306 * - "PROVISIONING" : The PROVISIONING state indicates the node pool is being | 3468 /// - "PROVISIONING" : The PROVISIONING state indicates the node pool is |
3307 * created. | 3469 /// being created. |
3308 * - "RUNNING" : The RUNNING state indicates the node pool has been created | 3470 /// - "RUNNING" : The RUNNING state indicates the node pool has been created |
3309 * and is fully usable. | 3471 /// and is fully usable. |
3310 * - "RUNNING_WITH_ERROR" : The RUNNING_WITH_ERROR state indicates the node | 3472 /// - "RUNNING_WITH_ERROR" : The RUNNING_WITH_ERROR state indicates the node |
3311 * pool has been created | 3473 /// pool has been created |
3312 * and is partially usable. Some error state has occurred and some | 3474 /// and is partially usable. Some error state has occurred and some |
3313 * functionality may be impaired. Customer may need to reissue a request | 3475 /// functionality may be impaired. Customer may need to reissue a request |
3314 * or trigger a new update. | 3476 /// or trigger a new update. |
3315 * - "RECONCILING" : The RECONCILING state indicates that some work is | 3477 /// - "RECONCILING" : The RECONCILING state indicates that some work is |
3316 * actively being done on | 3478 /// actively being done on |
3317 * the node pool, such as upgrading node software. Details can | 3479 /// the node pool, such as upgrading node software. Details can |
3318 * be found in the `statusMessage` field. | 3480 /// be found in the `statusMessage` field. |
3319 * - "STOPPING" : The STOPPING state indicates the node pool is being deleted. | 3481 /// - "STOPPING" : The STOPPING state indicates the node pool is being |
3320 * - "ERROR" : The ERROR state indicates the node pool may be unusable. | 3482 /// deleted. |
3321 * Details | 3483 /// - "ERROR" : The ERROR state indicates the node pool may be unusable. |
3322 * can be found in the `statusMessage` field. | 3484 /// Details |
3323 */ | 3485 /// can be found in the `statusMessage` field. |
3324 core.String status; | 3486 core.String status; |
3325 /** | 3487 |
3326 * [Output only] Additional information about the current status of this | 3488 /// [Output only] Additional information about the current status of this |
3327 * node pool instance, if available. | 3489 /// node pool instance, if available. |
3328 */ | |
3329 core.String statusMessage; | 3490 core.String statusMessage; |
3330 /** [Output only] The version of the Kubernetes of this node. */ | 3491 |
| 3492 /// [Output only] The version of the Kubernetes of this node. |
3331 core.String version; | 3493 core.String version; |
3332 | 3494 |
3333 NodePool(); | 3495 NodePool(); |
3334 | 3496 |
3335 NodePool.fromJson(core.Map _json) { | 3497 NodePool.fromJson(core.Map _json) { |
3336 if (_json.containsKey("autoscaling")) { | 3498 if (_json.containsKey("autoscaling")) { |
3337 autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]); | 3499 autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]); |
3338 } | 3500 } |
3339 if (_json.containsKey("config")) { | 3501 if (_json.containsKey("config")) { |
3340 config = new NodeConfig.fromJson(_json["config"]); | 3502 config = new NodeConfig.fromJson(_json["config"]); |
(...skipping 18 matching lines...) Expand all Loading... |
3359 } | 3521 } |
3360 if (_json.containsKey("statusMessage")) { | 3522 if (_json.containsKey("statusMessage")) { |
3361 statusMessage = _json["statusMessage"]; | 3523 statusMessage = _json["statusMessage"]; |
3362 } | 3524 } |
3363 if (_json.containsKey("version")) { | 3525 if (_json.containsKey("version")) { |
3364 version = _json["version"]; | 3526 version = _json["version"]; |
3365 } | 3527 } |
3366 } | 3528 } |
3367 | 3529 |
3368 core.Map<core.String, core.Object> toJson() { | 3530 core.Map<core.String, core.Object> toJson() { |
3369 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3531 final core.Map<core.String, core.Object> _json = |
| 3532 new core.Map<core.String, core.Object>(); |
3370 if (autoscaling != null) { | 3533 if (autoscaling != null) { |
3371 _json["autoscaling"] = (autoscaling).toJson(); | 3534 _json["autoscaling"] = (autoscaling).toJson(); |
3372 } | 3535 } |
3373 if (config != null) { | 3536 if (config != null) { |
3374 _json["config"] = (config).toJson(); | 3537 _json["config"] = (config).toJson(); |
3375 } | 3538 } |
3376 if (initialNodeCount != null) { | 3539 if (initialNodeCount != null) { |
3377 _json["initialNodeCount"] = initialNodeCount; | 3540 _json["initialNodeCount"] = initialNodeCount; |
3378 } | 3541 } |
3379 if (instanceGroupUrls != null) { | 3542 if (instanceGroupUrls != null) { |
(...skipping 14 matching lines...) Expand all Loading... |
3394 if (statusMessage != null) { | 3557 if (statusMessage != null) { |
3395 _json["statusMessage"] = statusMessage; | 3558 _json["statusMessage"] = statusMessage; |
3396 } | 3559 } |
3397 if (version != null) { | 3560 if (version != null) { |
3398 _json["version"] = version; | 3561 _json["version"] = version; |
3399 } | 3562 } |
3400 return _json; | 3563 return _json; |
3401 } | 3564 } |
3402 } | 3565 } |
3403 | 3566 |
3404 /** | 3567 /// NodePoolAutoscaling contains information required by cluster autoscaler to |
3405 * NodePoolAutoscaling contains information required by cluster autoscaler to | 3568 /// adjust the size of the node pool to the current cluster usage. |
3406 * adjust the size of the node pool to the current cluster usage. | |
3407 */ | |
3408 class NodePoolAutoscaling { | 3569 class NodePoolAutoscaling { |
3409 /** Is autoscaling enabled for this node pool. */ | 3570 /// Is autoscaling enabled for this node pool. |
3410 core.bool enabled; | 3571 core.bool enabled; |
3411 /** | 3572 |
3412 * Maximum number of nodes in the NodePool. Must be >= min_node_count. There | 3573 /// Maximum number of nodes in the NodePool. Must be >= min_node_count. There |
3413 * has to enough quota to scale up the cluster. | 3574 /// has to enough quota to scale up the cluster. |
3414 */ | |
3415 core.int maxNodeCount; | 3575 core.int maxNodeCount; |
3416 /** | 3576 |
3417 * Minimum number of nodes in the NodePool. Must be >= 1 and <= | 3577 /// Minimum number of nodes in the NodePool. Must be >= 1 and <= |
3418 * max_node_count. | 3578 /// max_node_count. |
3419 */ | |
3420 core.int minNodeCount; | 3579 core.int minNodeCount; |
3421 | 3580 |
3422 NodePoolAutoscaling(); | 3581 NodePoolAutoscaling(); |
3423 | 3582 |
3424 NodePoolAutoscaling.fromJson(core.Map _json) { | 3583 NodePoolAutoscaling.fromJson(core.Map _json) { |
3425 if (_json.containsKey("enabled")) { | 3584 if (_json.containsKey("enabled")) { |
3426 enabled = _json["enabled"]; | 3585 enabled = _json["enabled"]; |
3427 } | 3586 } |
3428 if (_json.containsKey("maxNodeCount")) { | 3587 if (_json.containsKey("maxNodeCount")) { |
3429 maxNodeCount = _json["maxNodeCount"]; | 3588 maxNodeCount = _json["maxNodeCount"]; |
3430 } | 3589 } |
3431 if (_json.containsKey("minNodeCount")) { | 3590 if (_json.containsKey("minNodeCount")) { |
3432 minNodeCount = _json["minNodeCount"]; | 3591 minNodeCount = _json["minNodeCount"]; |
3433 } | 3592 } |
3434 } | 3593 } |
3435 | 3594 |
3436 core.Map<core.String, core.Object> toJson() { | 3595 core.Map<core.String, core.Object> toJson() { |
3437 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3596 final core.Map<core.String, core.Object> _json = |
| 3597 new core.Map<core.String, core.Object>(); |
3438 if (enabled != null) { | 3598 if (enabled != null) { |
3439 _json["enabled"] = enabled; | 3599 _json["enabled"] = enabled; |
3440 } | 3600 } |
3441 if (maxNodeCount != null) { | 3601 if (maxNodeCount != null) { |
3442 _json["maxNodeCount"] = maxNodeCount; | 3602 _json["maxNodeCount"] = maxNodeCount; |
3443 } | 3603 } |
3444 if (minNodeCount != null) { | 3604 if (minNodeCount != null) { |
3445 _json["minNodeCount"] = minNodeCount; | 3605 _json["minNodeCount"] = minNodeCount; |
3446 } | 3606 } |
3447 return _json; | 3607 return _json; |
3448 } | 3608 } |
3449 } | 3609 } |
3450 | 3610 |
3451 /** | 3611 /// This operation resource represents operations that may have happened or are |
3452 * This operation resource represents operations that may have happened or are | 3612 /// happening on the cluster. All fields are output only. |
3453 * happening on the cluster. All fields are output only. | |
3454 */ | |
3455 class Operation { | 3613 class Operation { |
3456 /** Detailed operation progress, if available. */ | 3614 /// Detailed operation progress, if available. |
3457 core.String detail; | 3615 core.String detail; |
3458 /** The server-assigned ID for the operation. */ | 3616 |
| 3617 /// [Output only] The time the operation completed, in |
| 3618 /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 3619 core.String endTime; |
| 3620 |
| 3621 /// The server-assigned ID for the operation. |
3459 core.String name; | 3622 core.String name; |
3460 /** | 3623 |
3461 * The operation type. | 3624 /// The operation type. |
3462 * Possible string values are: | 3625 /// Possible string values are: |
3463 * - "TYPE_UNSPECIFIED" : Not set. | 3626 /// - "TYPE_UNSPECIFIED" : Not set. |
3464 * - "CREATE_CLUSTER" : Cluster create. | 3627 /// - "CREATE_CLUSTER" : Cluster create. |
3465 * - "DELETE_CLUSTER" : Cluster delete. | 3628 /// - "DELETE_CLUSTER" : Cluster delete. |
3466 * - "UPGRADE_MASTER" : A master upgrade. | 3629 /// - "UPGRADE_MASTER" : A master upgrade. |
3467 * - "UPGRADE_NODES" : A node upgrade. | 3630 /// - "UPGRADE_NODES" : A node upgrade. |
3468 * - "REPAIR_CLUSTER" : Cluster repair. | 3631 /// - "REPAIR_CLUSTER" : Cluster repair. |
3469 * - "UPDATE_CLUSTER" : Cluster update. | 3632 /// - "UPDATE_CLUSTER" : Cluster update. |
3470 * - "CREATE_NODE_POOL" : Node pool create. | 3633 /// - "CREATE_NODE_POOL" : Node pool create. |
3471 * - "DELETE_NODE_POOL" : Node pool delete. | 3634 /// - "DELETE_NODE_POOL" : Node pool delete. |
3472 * - "SET_NODE_POOL_MANAGEMENT" : Set node pool management. | 3635 /// - "SET_NODE_POOL_MANAGEMENT" : Set node pool management. |
3473 * - "AUTO_REPAIR_NODES" : Automatic node pool repair. | 3636 /// - "AUTO_REPAIR_NODES" : Automatic node pool repair. |
3474 * - "AUTO_UPGRADE_NODES" : Automatic node upgrade. | 3637 /// - "AUTO_UPGRADE_NODES" : Automatic node upgrade. |
3475 * - "SET_LABELS" : Set labels. | 3638 /// - "SET_LABELS" : Set labels. |
3476 * - "SET_MASTER_AUTH" : Set/generate master auth materials | 3639 /// - "SET_MASTER_AUTH" : Set/generate master auth materials |
3477 * - "SET_NODE_POOL_SIZE" : Set node pool size. | 3640 /// - "SET_NODE_POOL_SIZE" : Set node pool size. |
3478 * - "SET_NETWORK_POLICY" : Updates network policy for a cluster. | 3641 /// - "SET_NETWORK_POLICY" : Updates network policy for a cluster. |
3479 */ | |
3480 core.String operationType; | 3642 core.String operationType; |
3481 /** Server-defined URL for the resource. */ | 3643 |
| 3644 /// Server-defined URL for the resource. |
3482 core.String selfLink; | 3645 core.String selfLink; |
3483 /** | 3646 |
3484 * The current status of the operation. | 3647 /// [Output only] The time the operation started, in |
3485 * Possible string values are: | 3648 /// [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
3486 * - "STATUS_UNSPECIFIED" : Not set. | 3649 core.String startTime; |
3487 * - "PENDING" : The operation has been created. | 3650 |
3488 * - "RUNNING" : The operation is currently running. | 3651 /// The current status of the operation. |
3489 * - "DONE" : The operation is done, either cancelled or completed. | 3652 /// Possible string values are: |
3490 * - "ABORTING" : The operation is aborting. | 3653 /// - "STATUS_UNSPECIFIED" : Not set. |
3491 */ | 3654 /// - "PENDING" : The operation has been created. |
| 3655 /// - "RUNNING" : The operation is currently running. |
| 3656 /// - "DONE" : The operation is done, either cancelled or completed. |
| 3657 /// - "ABORTING" : The operation is aborting. |
3492 core.String status; | 3658 core.String status; |
3493 /** If an error has occurred, a textual description of the error. */ | 3659 |
| 3660 /// If an error has occurred, a textual description of the error. |
3494 core.String statusMessage; | 3661 core.String statusMessage; |
3495 /** Server-defined URL for the target of the operation. */ | 3662 |
| 3663 /// Server-defined URL for the target of the operation. |
3496 core.String targetLink; | 3664 core.String targetLink; |
3497 /** | 3665 |
3498 * The name of the Google Compute Engine | 3666 /// The name of the Google Compute Engine |
3499 * [zone](/compute/docs/zones#available) in which the operation | 3667 /// [zone](/compute/docs/zones#available) in which the operation |
3500 * is taking place. | 3668 /// is taking place. |
3501 */ | |
3502 core.String zone; | 3669 core.String zone; |
3503 | 3670 |
3504 Operation(); | 3671 Operation(); |
3505 | 3672 |
3506 Operation.fromJson(core.Map _json) { | 3673 Operation.fromJson(core.Map _json) { |
3507 if (_json.containsKey("detail")) { | 3674 if (_json.containsKey("detail")) { |
3508 detail = _json["detail"]; | 3675 detail = _json["detail"]; |
3509 } | 3676 } |
| 3677 if (_json.containsKey("endTime")) { |
| 3678 endTime = _json["endTime"]; |
| 3679 } |
3510 if (_json.containsKey("name")) { | 3680 if (_json.containsKey("name")) { |
3511 name = _json["name"]; | 3681 name = _json["name"]; |
3512 } | 3682 } |
3513 if (_json.containsKey("operationType")) { | 3683 if (_json.containsKey("operationType")) { |
3514 operationType = _json["operationType"]; | 3684 operationType = _json["operationType"]; |
3515 } | 3685 } |
3516 if (_json.containsKey("selfLink")) { | 3686 if (_json.containsKey("selfLink")) { |
3517 selfLink = _json["selfLink"]; | 3687 selfLink = _json["selfLink"]; |
3518 } | 3688 } |
| 3689 if (_json.containsKey("startTime")) { |
| 3690 startTime = _json["startTime"]; |
| 3691 } |
3519 if (_json.containsKey("status")) { | 3692 if (_json.containsKey("status")) { |
3520 status = _json["status"]; | 3693 status = _json["status"]; |
3521 } | 3694 } |
3522 if (_json.containsKey("statusMessage")) { | 3695 if (_json.containsKey("statusMessage")) { |
3523 statusMessage = _json["statusMessage"]; | 3696 statusMessage = _json["statusMessage"]; |
3524 } | 3697 } |
3525 if (_json.containsKey("targetLink")) { | 3698 if (_json.containsKey("targetLink")) { |
3526 targetLink = _json["targetLink"]; | 3699 targetLink = _json["targetLink"]; |
3527 } | 3700 } |
3528 if (_json.containsKey("zone")) { | 3701 if (_json.containsKey("zone")) { |
3529 zone = _json["zone"]; | 3702 zone = _json["zone"]; |
3530 } | 3703 } |
3531 } | 3704 } |
3532 | 3705 |
3533 core.Map<core.String, core.Object> toJson() { | 3706 core.Map<core.String, core.Object> toJson() { |
3534 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3707 final core.Map<core.String, core.Object> _json = |
| 3708 new core.Map<core.String, core.Object>(); |
3535 if (detail != null) { | 3709 if (detail != null) { |
3536 _json["detail"] = detail; | 3710 _json["detail"] = detail; |
3537 } | 3711 } |
| 3712 if (endTime != null) { |
| 3713 _json["endTime"] = endTime; |
| 3714 } |
3538 if (name != null) { | 3715 if (name != null) { |
3539 _json["name"] = name; | 3716 _json["name"] = name; |
3540 } | 3717 } |
3541 if (operationType != null) { | 3718 if (operationType != null) { |
3542 _json["operationType"] = operationType; | 3719 _json["operationType"] = operationType; |
3543 } | 3720 } |
3544 if (selfLink != null) { | 3721 if (selfLink != null) { |
3545 _json["selfLink"] = selfLink; | 3722 _json["selfLink"] = selfLink; |
3546 } | 3723 } |
| 3724 if (startTime != null) { |
| 3725 _json["startTime"] = startTime; |
| 3726 } |
3547 if (status != null) { | 3727 if (status != null) { |
3548 _json["status"] = status; | 3728 _json["status"] = status; |
3549 } | 3729 } |
3550 if (statusMessage != null) { | 3730 if (statusMessage != null) { |
3551 _json["statusMessage"] = statusMessage; | 3731 _json["statusMessage"] = statusMessage; |
3552 } | 3732 } |
3553 if (targetLink != null) { | 3733 if (targetLink != null) { |
3554 _json["targetLink"] = targetLink; | 3734 _json["targetLink"] = targetLink; |
3555 } | 3735 } |
3556 if (zone != null) { | 3736 if (zone != null) { |
3557 _json["zone"] = zone; | 3737 _json["zone"] = zone; |
3558 } | 3738 } |
3559 return _json; | 3739 return _json; |
3560 } | 3740 } |
3561 } | 3741 } |
3562 | 3742 |
3563 /** | 3743 /// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed |
3564 * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed | 3744 /// NodePool upgrade. This will be an no-op if the last upgrade successfully |
3565 * NodePool upgrade. This will be an no-op if the last upgrade successfully | 3745 /// completed. |
3566 * completed. | |
3567 */ | |
3568 class RollbackNodePoolUpgradeRequest { | 3746 class RollbackNodePoolUpgradeRequest { |
3569 | |
3570 RollbackNodePoolUpgradeRequest(); | 3747 RollbackNodePoolUpgradeRequest(); |
3571 | 3748 |
3572 RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) { | 3749 RollbackNodePoolUpgradeRequest.fromJson(core.Map _json) {} |
3573 } | |
3574 | 3750 |
3575 core.Map<core.String, core.Object> toJson() { | 3751 core.Map<core.String, core.Object> toJson() { |
3576 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3752 final core.Map<core.String, core.Object> _json = |
| 3753 new core.Map<core.String, core.Object>(); |
3577 return _json; | 3754 return _json; |
3578 } | 3755 } |
3579 } | 3756 } |
3580 | 3757 |
3581 /** Container Engine service configuration. */ | 3758 /// Container Engine service configuration. |
3582 class ServerConfig { | 3759 class ServerConfig { |
3583 /** Version of Kubernetes the service deploys by default. */ | 3760 /// Version of Kubernetes the service deploys by default. |
3584 core.String defaultClusterVersion; | 3761 core.String defaultClusterVersion; |
3585 /** Default image type. */ | 3762 |
| 3763 /// Default image type. |
3586 core.String defaultImageType; | 3764 core.String defaultImageType; |
3587 /** List of valid image types. */ | 3765 |
| 3766 /// List of valid image types. |
3588 core.List<core.String> validImageTypes; | 3767 core.List<core.String> validImageTypes; |
3589 /** List of valid master versions. */ | 3768 |
| 3769 /// List of valid master versions. |
3590 core.List<core.String> validMasterVersions; | 3770 core.List<core.String> validMasterVersions; |
3591 /** List of valid node upgrade target versions. */ | 3771 |
| 3772 /// List of valid node upgrade target versions. |
3592 core.List<core.String> validNodeVersions; | 3773 core.List<core.String> validNodeVersions; |
3593 | 3774 |
3594 ServerConfig(); | 3775 ServerConfig(); |
3595 | 3776 |
3596 ServerConfig.fromJson(core.Map _json) { | 3777 ServerConfig.fromJson(core.Map _json) { |
3597 if (_json.containsKey("defaultClusterVersion")) { | 3778 if (_json.containsKey("defaultClusterVersion")) { |
3598 defaultClusterVersion = _json["defaultClusterVersion"]; | 3779 defaultClusterVersion = _json["defaultClusterVersion"]; |
3599 } | 3780 } |
3600 if (_json.containsKey("defaultImageType")) { | 3781 if (_json.containsKey("defaultImageType")) { |
3601 defaultImageType = _json["defaultImageType"]; | 3782 defaultImageType = _json["defaultImageType"]; |
3602 } | 3783 } |
3603 if (_json.containsKey("validImageTypes")) { | 3784 if (_json.containsKey("validImageTypes")) { |
3604 validImageTypes = _json["validImageTypes"]; | 3785 validImageTypes = _json["validImageTypes"]; |
3605 } | 3786 } |
3606 if (_json.containsKey("validMasterVersions")) { | 3787 if (_json.containsKey("validMasterVersions")) { |
3607 validMasterVersions = _json["validMasterVersions"]; | 3788 validMasterVersions = _json["validMasterVersions"]; |
3608 } | 3789 } |
3609 if (_json.containsKey("validNodeVersions")) { | 3790 if (_json.containsKey("validNodeVersions")) { |
3610 validNodeVersions = _json["validNodeVersions"]; | 3791 validNodeVersions = _json["validNodeVersions"]; |
3611 } | 3792 } |
3612 } | 3793 } |
3613 | 3794 |
3614 core.Map<core.String, core.Object> toJson() { | 3795 core.Map<core.String, core.Object> toJson() { |
3615 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3796 final core.Map<core.String, core.Object> _json = |
| 3797 new core.Map<core.String, core.Object>(); |
3616 if (defaultClusterVersion != null) { | 3798 if (defaultClusterVersion != null) { |
3617 _json["defaultClusterVersion"] = defaultClusterVersion; | 3799 _json["defaultClusterVersion"] = defaultClusterVersion; |
3618 } | 3800 } |
3619 if (defaultImageType != null) { | 3801 if (defaultImageType != null) { |
3620 _json["defaultImageType"] = defaultImageType; | 3802 _json["defaultImageType"] = defaultImageType; |
3621 } | 3803 } |
3622 if (validImageTypes != null) { | 3804 if (validImageTypes != null) { |
3623 _json["validImageTypes"] = validImageTypes; | 3805 _json["validImageTypes"] = validImageTypes; |
3624 } | 3806 } |
3625 if (validMasterVersions != null) { | 3807 if (validMasterVersions != null) { |
3626 _json["validMasterVersions"] = validMasterVersions; | 3808 _json["validMasterVersions"] = validMasterVersions; |
3627 } | 3809 } |
3628 if (validNodeVersions != null) { | 3810 if (validNodeVersions != null) { |
3629 _json["validNodeVersions"] = validNodeVersions; | 3811 _json["validNodeVersions"] = validNodeVersions; |
3630 } | 3812 } |
3631 return _json; | 3813 return _json; |
3632 } | 3814 } |
3633 } | 3815 } |
3634 | 3816 |
3635 /** SetAddonsConfigRequest sets the addons associated with the cluster. */ | 3817 /// SetAddonsConfigRequest sets the addons associated with the cluster. |
3636 class SetAddonsConfigRequest { | 3818 class SetAddonsConfigRequest { |
3637 /** | 3819 /// The desired configurations for the various addons available to run in the |
3638 * The desired configurations for the various addons available to run in the | 3820 /// cluster. |
3639 * cluster. | |
3640 */ | |
3641 AddonsConfig addonsConfig; | 3821 AddonsConfig addonsConfig; |
3642 | 3822 |
3643 SetAddonsConfigRequest(); | 3823 SetAddonsConfigRequest(); |
3644 | 3824 |
3645 SetAddonsConfigRequest.fromJson(core.Map _json) { | 3825 SetAddonsConfigRequest.fromJson(core.Map _json) { |
3646 if (_json.containsKey("addonsConfig")) { | 3826 if (_json.containsKey("addonsConfig")) { |
3647 addonsConfig = new AddonsConfig.fromJson(_json["addonsConfig"]); | 3827 addonsConfig = new AddonsConfig.fromJson(_json["addonsConfig"]); |
3648 } | 3828 } |
3649 } | 3829 } |
3650 | 3830 |
3651 core.Map<core.String, core.Object> toJson() { | 3831 core.Map<core.String, core.Object> toJson() { |
3652 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3832 final core.Map<core.String, core.Object> _json = |
| 3833 new core.Map<core.String, core.Object>(); |
3653 if (addonsConfig != null) { | 3834 if (addonsConfig != null) { |
3654 _json["addonsConfig"] = (addonsConfig).toJson(); | 3835 _json["addonsConfig"] = (addonsConfig).toJson(); |
3655 } | 3836 } |
3656 return _json; | 3837 return _json; |
3657 } | 3838 } |
3658 } | 3839 } |
3659 | 3840 |
3660 /** | 3841 /// SetLabelsRequest sets the Google Cloud Platform labels on a Google |
3661 * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container | 3842 /// Container |
3662 * Engine cluster, which will in turn set them for Google Compute Engine | 3843 /// Engine cluster, which will in turn set them for Google Compute Engine |
3663 * resources used by that cluster | 3844 /// resources used by that cluster |
3664 */ | |
3665 class SetLabelsRequest { | 3845 class SetLabelsRequest { |
3666 /** | 3846 /// The fingerprint of the previous set of labels for this resource, |
3667 * The fingerprint of the previous set of labels for this resource, | 3847 /// used to detect conflicts. The fingerprint is initially generated by |
3668 * used to detect conflicts. The fingerprint is initially generated by | 3848 /// Container Engine and changes after every request to modify or update |
3669 * Container Engine and changes after every request to modify or update | 3849 /// labels. You must always provide an up-to-date fingerprint hash when |
3670 * labels. You must always provide an up-to-date fingerprint hash when | 3850 /// updating or changing labels. Make a <code>get()</code> request to the |
3671 * updating or changing labels. Make a <code>get()</code> request to the | 3851 /// resource to get the latest fingerprint. |
3672 * resource to get the latest fingerprint. | |
3673 */ | |
3674 core.String labelFingerprint; | 3852 core.String labelFingerprint; |
3675 /** The labels to set for that cluster. */ | 3853 |
| 3854 /// The labels to set for that cluster. |
3676 core.Map<core.String, core.String> resourceLabels; | 3855 core.Map<core.String, core.String> resourceLabels; |
3677 | 3856 |
3678 SetLabelsRequest(); | 3857 SetLabelsRequest(); |
3679 | 3858 |
3680 SetLabelsRequest.fromJson(core.Map _json) { | 3859 SetLabelsRequest.fromJson(core.Map _json) { |
3681 if (_json.containsKey("labelFingerprint")) { | 3860 if (_json.containsKey("labelFingerprint")) { |
3682 labelFingerprint = _json["labelFingerprint"]; | 3861 labelFingerprint = _json["labelFingerprint"]; |
3683 } | 3862 } |
3684 if (_json.containsKey("resourceLabels")) { | 3863 if (_json.containsKey("resourceLabels")) { |
3685 resourceLabels = _json["resourceLabels"]; | 3864 resourceLabels = _json["resourceLabels"]; |
3686 } | 3865 } |
3687 } | 3866 } |
3688 | 3867 |
3689 core.Map<core.String, core.Object> toJson() { | 3868 core.Map<core.String, core.Object> toJson() { |
3690 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3869 final core.Map<core.String, core.Object> _json = |
| 3870 new core.Map<core.String, core.Object>(); |
3691 if (labelFingerprint != null) { | 3871 if (labelFingerprint != null) { |
3692 _json["labelFingerprint"] = labelFingerprint; | 3872 _json["labelFingerprint"] = labelFingerprint; |
3693 } | 3873 } |
3694 if (resourceLabels != null) { | 3874 if (resourceLabels != null) { |
3695 _json["resourceLabels"] = resourceLabels; | 3875 _json["resourceLabels"] = resourceLabels; |
3696 } | 3876 } |
3697 return _json; | 3877 return _json; |
3698 } | 3878 } |
3699 } | 3879 } |
3700 | 3880 |
3701 /** | 3881 /// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism |
3702 * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for | 3882 /// for |
3703 * a cluster. | 3883 /// a cluster. |
3704 */ | |
3705 class SetLegacyAbacRequest { | 3884 class SetLegacyAbacRequest { |
3706 /** Whether ABAC authorization will be enabled in the cluster. */ | 3885 /// Whether ABAC authorization will be enabled in the cluster. |
3707 core.bool enabled; | 3886 core.bool enabled; |
3708 | 3887 |
3709 SetLegacyAbacRequest(); | 3888 SetLegacyAbacRequest(); |
3710 | 3889 |
3711 SetLegacyAbacRequest.fromJson(core.Map _json) { | 3890 SetLegacyAbacRequest.fromJson(core.Map _json) { |
3712 if (_json.containsKey("enabled")) { | 3891 if (_json.containsKey("enabled")) { |
3713 enabled = _json["enabled"]; | 3892 enabled = _json["enabled"]; |
3714 } | 3893 } |
3715 } | 3894 } |
3716 | 3895 |
3717 core.Map<core.String, core.Object> toJson() { | 3896 core.Map<core.String, core.Object> toJson() { |
3718 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3897 final core.Map<core.String, core.Object> _json = |
| 3898 new core.Map<core.String, core.Object>(); |
3719 if (enabled != null) { | 3899 if (enabled != null) { |
3720 _json["enabled"] = enabled; | 3900 _json["enabled"] = enabled; |
3721 } | 3901 } |
3722 return _json; | 3902 return _json; |
3723 } | 3903 } |
3724 } | 3904 } |
3725 | 3905 |
3726 /** SetLocationsRequest sets the locations of the cluster. */ | 3906 /// SetLocationsRequest sets the locations of the cluster. |
3727 class SetLocationsRequest { | 3907 class SetLocationsRequest { |
3728 /** | 3908 /// The desired list of Google Compute Engine |
3729 * The desired list of Google Compute Engine | 3909 /// [locations](/compute/docs/zones#available) in which the cluster's nodes |
3730 * [locations](/compute/docs/zones#available) in which the cluster's nodes | 3910 /// should be located. Changing the locations a cluster is in will result |
3731 * should be located. Changing the locations a cluster is in will result | 3911 /// in nodes being either created or removed from the cluster, depending on |
3732 * in nodes being either created or removed from the cluster, depending on | 3912 /// whether locations are being added or removed. |
3733 * whether locations are being added or removed. | 3913 /// |
3734 * | 3914 /// This list must always include the cluster's primary zone. |
3735 * This list must always include the cluster's primary zone. | |
3736 */ | |
3737 core.List<core.String> locations; | 3915 core.List<core.String> locations; |
3738 | 3916 |
3739 SetLocationsRequest(); | 3917 SetLocationsRequest(); |
3740 | 3918 |
3741 SetLocationsRequest.fromJson(core.Map _json) { | 3919 SetLocationsRequest.fromJson(core.Map _json) { |
3742 if (_json.containsKey("locations")) { | 3920 if (_json.containsKey("locations")) { |
3743 locations = _json["locations"]; | 3921 locations = _json["locations"]; |
3744 } | 3922 } |
3745 } | 3923 } |
3746 | 3924 |
3747 core.Map<core.String, core.Object> toJson() { | 3925 core.Map<core.String, core.Object> toJson() { |
3748 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3926 final core.Map<core.String, core.Object> _json = |
| 3927 new core.Map<core.String, core.Object>(); |
3749 if (locations != null) { | 3928 if (locations != null) { |
3750 _json["locations"] = locations; | 3929 _json["locations"] = locations; |
3751 } | 3930 } |
3752 return _json; | 3931 return _json; |
3753 } | 3932 } |
3754 } | 3933 } |
3755 | 3934 |
3756 /** SetLoggingServiceRequest sets the logging service of a cluster. */ | 3935 /// SetLoggingServiceRequest sets the logging service of a cluster. |
3757 class SetLoggingServiceRequest { | 3936 class SetLoggingServiceRequest { |
3758 /** | 3937 /// The logging service the cluster should use to write metrics. |
3759 * The logging service the cluster should use to write metrics. | 3938 /// Currently available options: |
3760 * Currently available options: | 3939 /// |
3761 * | 3940 /// * "logging.googleapis.com" - the Google Cloud Logging service |
3762 * * "logging.googleapis.com" - the Google Cloud Logging service | 3941 /// * "none" - no metrics will be exported from the cluster |
3763 * * "none" - no metrics will be exported from the cluster | |
3764 */ | |
3765 core.String loggingService; | 3942 core.String loggingService; |
3766 | 3943 |
3767 SetLoggingServiceRequest(); | 3944 SetLoggingServiceRequest(); |
3768 | 3945 |
3769 SetLoggingServiceRequest.fromJson(core.Map _json) { | 3946 SetLoggingServiceRequest.fromJson(core.Map _json) { |
3770 if (_json.containsKey("loggingService")) { | 3947 if (_json.containsKey("loggingService")) { |
3771 loggingService = _json["loggingService"]; | 3948 loggingService = _json["loggingService"]; |
3772 } | 3949 } |
3773 } | 3950 } |
3774 | 3951 |
3775 core.Map<core.String, core.Object> toJson() { | 3952 core.Map<core.String, core.Object> toJson() { |
3776 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3953 final core.Map<core.String, core.Object> _json = |
| 3954 new core.Map<core.String, core.Object>(); |
3777 if (loggingService != null) { | 3955 if (loggingService != null) { |
3778 _json["loggingService"] = loggingService; | 3956 _json["loggingService"] = loggingService; |
3779 } | 3957 } |
3780 return _json; | 3958 return _json; |
3781 } | 3959 } |
3782 } | 3960 } |
3783 | 3961 |
3784 /** SetMasterAuthRequest updates the admin password of a cluster. */ | 3962 /// SetMasterAuthRequest updates the admin password of a cluster. |
3785 class SetMasterAuthRequest { | 3963 class SetMasterAuthRequest { |
3786 /** | 3964 /// The exact form of action to be taken on the master auth |
3787 * The exact form of action to be taken on the master auth | 3965 /// Possible string values are: |
3788 * Possible string values are: | 3966 /// - "UNKNOWN" : Operation is unknown and will error out |
3789 * - "UNKNOWN" : Operation is unknown and will error out | 3967 /// - "SET_PASSWORD" : Set the password to a user generated value. |
3790 * - "SET_PASSWORD" : Set the password to a user generated value. | 3968 /// - "GENERATE_PASSWORD" : Generate a new password and set it to that. |
3791 * - "GENERATE_PASSWORD" : Generate a new password and set it to that. | |
3792 */ | |
3793 core.String action; | 3969 core.String action; |
3794 /** A description of the update. */ | 3970 |
| 3971 /// A description of the update. |
3795 MasterAuth update; | 3972 MasterAuth update; |
3796 | 3973 |
3797 SetMasterAuthRequest(); | 3974 SetMasterAuthRequest(); |
3798 | 3975 |
3799 SetMasterAuthRequest.fromJson(core.Map _json) { | 3976 SetMasterAuthRequest.fromJson(core.Map _json) { |
3800 if (_json.containsKey("action")) { | 3977 if (_json.containsKey("action")) { |
3801 action = _json["action"]; | 3978 action = _json["action"]; |
3802 } | 3979 } |
3803 if (_json.containsKey("update")) { | 3980 if (_json.containsKey("update")) { |
3804 update = new MasterAuth.fromJson(_json["update"]); | 3981 update = new MasterAuth.fromJson(_json["update"]); |
3805 } | 3982 } |
3806 } | 3983 } |
3807 | 3984 |
3808 core.Map<core.String, core.Object> toJson() { | 3985 core.Map<core.String, core.Object> toJson() { |
3809 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3986 final core.Map<core.String, core.Object> _json = |
| 3987 new core.Map<core.String, core.Object>(); |
3810 if (action != null) { | 3988 if (action != null) { |
3811 _json["action"] = action; | 3989 _json["action"] = action; |
3812 } | 3990 } |
3813 if (update != null) { | 3991 if (update != null) { |
3814 _json["update"] = (update).toJson(); | 3992 _json["update"] = (update).toJson(); |
3815 } | 3993 } |
3816 return _json; | 3994 return _json; |
3817 } | 3995 } |
3818 } | 3996 } |
3819 | 3997 |
3820 /** SetMonitoringServiceRequest sets the monitoring service of a cluster. */ | 3998 /// SetMonitoringServiceRequest sets the monitoring service of a cluster. |
3821 class SetMonitoringServiceRequest { | 3999 class SetMonitoringServiceRequest { |
3822 /** | 4000 /// The monitoring service the cluster should use to write metrics. |
3823 * The monitoring service the cluster should use to write metrics. | 4001 /// Currently available options: |
3824 * Currently available options: | 4002 /// |
3825 * | 4003 /// * "monitoring.googleapis.com" - the Google Cloud Monitoring service |
3826 * * "monitoring.googleapis.com" - the Google Cloud Monitoring service | 4004 /// * "none" - no metrics will be exported from the cluster |
3827 * * "none" - no metrics will be exported from the cluster | |
3828 */ | |
3829 core.String monitoringService; | 4005 core.String monitoringService; |
3830 | 4006 |
3831 SetMonitoringServiceRequest(); | 4007 SetMonitoringServiceRequest(); |
3832 | 4008 |
3833 SetMonitoringServiceRequest.fromJson(core.Map _json) { | 4009 SetMonitoringServiceRequest.fromJson(core.Map _json) { |
3834 if (_json.containsKey("monitoringService")) { | 4010 if (_json.containsKey("monitoringService")) { |
3835 monitoringService = _json["monitoringService"]; | 4011 monitoringService = _json["monitoringService"]; |
3836 } | 4012 } |
3837 } | 4013 } |
3838 | 4014 |
3839 core.Map<core.String, core.Object> toJson() { | 4015 core.Map<core.String, core.Object> toJson() { |
3840 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4016 final core.Map<core.String, core.Object> _json = |
| 4017 new core.Map<core.String, core.Object>(); |
3841 if (monitoringService != null) { | 4018 if (monitoringService != null) { |
3842 _json["monitoringService"] = monitoringService; | 4019 _json["monitoringService"] = monitoringService; |
3843 } | 4020 } |
3844 return _json; | 4021 return _json; |
3845 } | 4022 } |
3846 } | 4023 } |
3847 | 4024 |
3848 /** SetNetworkPolicyRequest enables/disables network policy for a cluster. */ | 4025 /// SetNetworkPolicyRequest enables/disables network policy for a cluster. |
3849 class SetNetworkPolicyRequest { | 4026 class SetNetworkPolicyRequest { |
3850 /** Configuration options for the NetworkPolicy feature. */ | 4027 /// Configuration options for the NetworkPolicy feature. |
3851 NetworkPolicy networkPolicy; | 4028 NetworkPolicy networkPolicy; |
3852 | 4029 |
3853 SetNetworkPolicyRequest(); | 4030 SetNetworkPolicyRequest(); |
3854 | 4031 |
3855 SetNetworkPolicyRequest.fromJson(core.Map _json) { | 4032 SetNetworkPolicyRequest.fromJson(core.Map _json) { |
3856 if (_json.containsKey("networkPolicy")) { | 4033 if (_json.containsKey("networkPolicy")) { |
3857 networkPolicy = new NetworkPolicy.fromJson(_json["networkPolicy"]); | 4034 networkPolicy = new NetworkPolicy.fromJson(_json["networkPolicy"]); |
3858 } | 4035 } |
3859 } | 4036 } |
3860 | 4037 |
3861 core.Map<core.String, core.Object> toJson() { | 4038 core.Map<core.String, core.Object> toJson() { |
3862 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4039 final core.Map<core.String, core.Object> _json = |
| 4040 new core.Map<core.String, core.Object>(); |
3863 if (networkPolicy != null) { | 4041 if (networkPolicy != null) { |
3864 _json["networkPolicy"] = (networkPolicy).toJson(); | 4042 _json["networkPolicy"] = (networkPolicy).toJson(); |
3865 } | 4043 } |
3866 return _json; | 4044 return _json; |
3867 } | 4045 } |
3868 } | 4046 } |
3869 | 4047 |
3870 /** | 4048 /// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. |
3871 * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. | |
3872 */ | |
3873 class SetNodePoolAutoscalingRequest { | 4049 class SetNodePoolAutoscalingRequest { |
3874 /** Autoscaling configuration for the node pool. */ | 4050 /// Autoscaling configuration for the node pool. |
3875 NodePoolAutoscaling autoscaling; | 4051 NodePoolAutoscaling autoscaling; |
3876 | 4052 |
3877 SetNodePoolAutoscalingRequest(); | 4053 SetNodePoolAutoscalingRequest(); |
3878 | 4054 |
3879 SetNodePoolAutoscalingRequest.fromJson(core.Map _json) { | 4055 SetNodePoolAutoscalingRequest.fromJson(core.Map _json) { |
3880 if (_json.containsKey("autoscaling")) { | 4056 if (_json.containsKey("autoscaling")) { |
3881 autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]); | 4057 autoscaling = new NodePoolAutoscaling.fromJson(_json["autoscaling"]); |
3882 } | 4058 } |
3883 } | 4059 } |
3884 | 4060 |
3885 core.Map<core.String, core.Object> toJson() { | 4061 core.Map<core.String, core.Object> toJson() { |
3886 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4062 final core.Map<core.String, core.Object> _json = |
| 4063 new core.Map<core.String, core.Object>(); |
3887 if (autoscaling != null) { | 4064 if (autoscaling != null) { |
3888 _json["autoscaling"] = (autoscaling).toJson(); | 4065 _json["autoscaling"] = (autoscaling).toJson(); |
3889 } | 4066 } |
3890 return _json; | 4067 return _json; |
3891 } | 4068 } |
3892 } | 4069 } |
3893 | 4070 |
3894 /** | 4071 /// SetNodePoolManagementRequest sets the node management properties of a node |
3895 * SetNodePoolManagementRequest sets the node management properties of a node | 4072 /// pool. |
3896 * pool. | |
3897 */ | |
3898 class SetNodePoolManagementRequest { | 4073 class SetNodePoolManagementRequest { |
3899 /** NodeManagement configuration for the node pool. */ | 4074 /// NodeManagement configuration for the node pool. |
3900 NodeManagement management; | 4075 NodeManagement management; |
3901 | 4076 |
3902 SetNodePoolManagementRequest(); | 4077 SetNodePoolManagementRequest(); |
3903 | 4078 |
3904 SetNodePoolManagementRequest.fromJson(core.Map _json) { | 4079 SetNodePoolManagementRequest.fromJson(core.Map _json) { |
3905 if (_json.containsKey("management")) { | 4080 if (_json.containsKey("management")) { |
3906 management = new NodeManagement.fromJson(_json["management"]); | 4081 management = new NodeManagement.fromJson(_json["management"]); |
3907 } | 4082 } |
3908 } | 4083 } |
3909 | 4084 |
3910 core.Map<core.String, core.Object> toJson() { | 4085 core.Map<core.String, core.Object> toJson() { |
3911 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4086 final core.Map<core.String, core.Object> _json = |
| 4087 new core.Map<core.String, core.Object>(); |
3912 if (management != null) { | 4088 if (management != null) { |
3913 _json["management"] = (management).toJson(); | 4089 _json["management"] = (management).toJson(); |
3914 } | 4090 } |
3915 return _json; | 4091 return _json; |
3916 } | 4092 } |
3917 } | 4093 } |
3918 | 4094 |
3919 /** | 4095 /// SetNodePoolSizeRequest sets the size a node |
3920 * SetNodePoolSizeRequest sets the size a node | 4096 /// pool. |
3921 * pool. | |
3922 */ | |
3923 class SetNodePoolSizeRequest { | 4097 class SetNodePoolSizeRequest { |
3924 /** The desired node count for the pool. */ | 4098 /// The desired node count for the pool. |
3925 core.int nodeCount; | 4099 core.int nodeCount; |
3926 | 4100 |
3927 SetNodePoolSizeRequest(); | 4101 SetNodePoolSizeRequest(); |
3928 | 4102 |
3929 SetNodePoolSizeRequest.fromJson(core.Map _json) { | 4103 SetNodePoolSizeRequest.fromJson(core.Map _json) { |
3930 if (_json.containsKey("nodeCount")) { | 4104 if (_json.containsKey("nodeCount")) { |
3931 nodeCount = _json["nodeCount"]; | 4105 nodeCount = _json["nodeCount"]; |
3932 } | 4106 } |
3933 } | 4107 } |
3934 | 4108 |
3935 core.Map<core.String, core.Object> toJson() { | 4109 core.Map<core.String, core.Object> toJson() { |
3936 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4110 final core.Map<core.String, core.Object> _json = |
| 4111 new core.Map<core.String, core.Object>(); |
3937 if (nodeCount != null) { | 4112 if (nodeCount != null) { |
3938 _json["nodeCount"] = nodeCount; | 4113 _json["nodeCount"] = nodeCount; |
3939 } | 4114 } |
3940 return _json; | 4115 return _json; |
3941 } | 4116 } |
3942 } | 4117 } |
3943 | 4118 |
3944 /** | 4119 /// StartIPRotationRequest creates a new IP for the cluster and then performs |
3945 * StartIPRotationRequest creates a new IP for the cluster and then performs | 4120 /// a node upgrade on each node pool to point to the new IP. |
3946 * a node upgrade on each node pool to point to the new IP. | |
3947 */ | |
3948 class StartIPRotationRequest { | 4121 class StartIPRotationRequest { |
3949 | |
3950 StartIPRotationRequest(); | 4122 StartIPRotationRequest(); |
3951 | 4123 |
3952 StartIPRotationRequest.fromJson(core.Map _json) { | 4124 StartIPRotationRequest.fromJson(core.Map _json) {} |
3953 } | |
3954 | 4125 |
3955 core.Map<core.String, core.Object> toJson() { | 4126 core.Map<core.String, core.Object> toJson() { |
3956 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4127 final core.Map<core.String, core.Object> _json = |
| 4128 new core.Map<core.String, core.Object>(); |
3957 return _json; | 4129 return _json; |
3958 } | 4130 } |
3959 } | 4131 } |
3960 | 4132 |
3961 /** UpdateClusterRequest updates the settings of a cluster. */ | 4133 /// UpdateClusterRequest updates the settings of a cluster. |
3962 class UpdateClusterRequest { | 4134 class UpdateClusterRequest { |
3963 /** A description of the update. */ | 4135 /// A description of the update. |
3964 ClusterUpdate update; | 4136 ClusterUpdate update; |
3965 | 4137 |
3966 UpdateClusterRequest(); | 4138 UpdateClusterRequest(); |
3967 | 4139 |
3968 UpdateClusterRequest.fromJson(core.Map _json) { | 4140 UpdateClusterRequest.fromJson(core.Map _json) { |
3969 if (_json.containsKey("update")) { | 4141 if (_json.containsKey("update")) { |
3970 update = new ClusterUpdate.fromJson(_json["update"]); | 4142 update = new ClusterUpdate.fromJson(_json["update"]); |
3971 } | 4143 } |
3972 } | 4144 } |
3973 | 4145 |
3974 core.Map<core.String, core.Object> toJson() { | 4146 core.Map<core.String, core.Object> toJson() { |
3975 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4147 final core.Map<core.String, core.Object> _json = |
| 4148 new core.Map<core.String, core.Object>(); |
3976 if (update != null) { | 4149 if (update != null) { |
3977 _json["update"] = (update).toJson(); | 4150 _json["update"] = (update).toJson(); |
3978 } | 4151 } |
3979 return _json; | 4152 return _json; |
3980 } | 4153 } |
3981 } | 4154 } |
3982 | 4155 |
3983 /** UpdateMasterRequest updates the master of the cluster. */ | 4156 /// UpdateMasterRequest updates the master of the cluster. |
3984 class UpdateMasterRequest { | 4157 class UpdateMasterRequest { |
3985 /** | 4158 /// The Kubernetes version to change the master to. The only valid value is |
3986 * The Kubernetes version to change the master to. The only valid value is the | 4159 /// the |
3987 * latest supported version. Use "-" to have the server automatically select | 4160 /// latest supported version. Use "-" to have the server automatically select |
3988 * the latest version. | 4161 /// the latest version. |
3989 */ | |
3990 core.String masterVersion; | 4162 core.String masterVersion; |
3991 | 4163 |
3992 UpdateMasterRequest(); | 4164 UpdateMasterRequest(); |
3993 | 4165 |
3994 UpdateMasterRequest.fromJson(core.Map _json) { | 4166 UpdateMasterRequest.fromJson(core.Map _json) { |
3995 if (_json.containsKey("masterVersion")) { | 4167 if (_json.containsKey("masterVersion")) { |
3996 masterVersion = _json["masterVersion"]; | 4168 masterVersion = _json["masterVersion"]; |
3997 } | 4169 } |
3998 } | 4170 } |
3999 | 4171 |
4000 core.Map<core.String, core.Object> toJson() { | 4172 core.Map<core.String, core.Object> toJson() { |
4001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4173 final core.Map<core.String, core.Object> _json = |
| 4174 new core.Map<core.String, core.Object>(); |
4002 if (masterVersion != null) { | 4175 if (masterVersion != null) { |
4003 _json["masterVersion"] = masterVersion; | 4176 _json["masterVersion"] = masterVersion; |
4004 } | 4177 } |
4005 return _json; | 4178 return _json; |
4006 } | 4179 } |
4007 } | 4180 } |
4008 | 4181 |
4009 /** UpdateNodePoolRequests update a node pool's image and/or version. */ | 4182 /// UpdateNodePoolRequests update a node pool's image and/or version. |
4010 class UpdateNodePoolRequest { | 4183 class UpdateNodePoolRequest { |
4011 /** The desired image type for the node pool. */ | 4184 /// The desired image type for the node pool. |
4012 core.String imageType; | 4185 core.String imageType; |
4013 /** | 4186 |
4014 * The Kubernetes version to change the nodes to (typically an | 4187 /// The Kubernetes version to change the nodes to (typically an |
4015 * upgrade). Use `-` to upgrade to the latest version supported by | 4188 /// upgrade). Use `-` to upgrade to the latest version supported by |
4016 * the server. | 4189 /// the server. |
4017 */ | |
4018 core.String nodeVersion; | 4190 core.String nodeVersion; |
4019 | 4191 |
4020 UpdateNodePoolRequest(); | 4192 UpdateNodePoolRequest(); |
4021 | 4193 |
4022 UpdateNodePoolRequest.fromJson(core.Map _json) { | 4194 UpdateNodePoolRequest.fromJson(core.Map _json) { |
4023 if (_json.containsKey("imageType")) { | 4195 if (_json.containsKey("imageType")) { |
4024 imageType = _json["imageType"]; | 4196 imageType = _json["imageType"]; |
4025 } | 4197 } |
4026 if (_json.containsKey("nodeVersion")) { | 4198 if (_json.containsKey("nodeVersion")) { |
4027 nodeVersion = _json["nodeVersion"]; | 4199 nodeVersion = _json["nodeVersion"]; |
4028 } | 4200 } |
4029 } | 4201 } |
4030 | 4202 |
4031 core.Map<core.String, core.Object> toJson() { | 4203 core.Map<core.String, core.Object> toJson() { |
4032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4204 final core.Map<core.String, core.Object> _json = |
| 4205 new core.Map<core.String, core.Object>(); |
4033 if (imageType != null) { | 4206 if (imageType != null) { |
4034 _json["imageType"] = imageType; | 4207 _json["imageType"] = imageType; |
4035 } | 4208 } |
4036 if (nodeVersion != null) { | 4209 if (nodeVersion != null) { |
4037 _json["nodeVersion"] = nodeVersion; | 4210 _json["nodeVersion"] = nodeVersion; |
4038 } | 4211 } |
4039 return _json; | 4212 return _json; |
4040 } | 4213 } |
4041 } | 4214 } |
OLD | NEW |