| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis_beta.container.v1beta1; | 3 library googleapis_beta.container.v1beta1; |
| 2 | 4 |
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; |
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; |
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
| 7 | 9 |
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | |
| 11 import '../common/common.dart' as common; | |
| 12 | 13 |
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client container/v1beta1'; |
| 15 | 18 |
| 16 /** | 19 /** |
| 17 * The Google Container Engine API is used for building and managing container | 20 * The Google Container Engine API is used for building and managing container |
| 18 * based applications, powered by the open source Kubernetes technology. | 21 * based applications, powered by the open source Kubernetes technology. |
| 19 */ | 22 */ |
| 20 class ContainerApi { | 23 class ContainerApi { |
| 21 /** View and manage your data across Google Cloud Platform services */ | 24 /** View and manage your data across Google Cloud Platform services */ |
| 22 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 25 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
| 23 | 26 |
| 24 | 27 |
| 25 final common_internal.ApiRequester _requester; | 28 final commons.ApiRequester _requester; |
| 26 | 29 |
| 27 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 30 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
| 28 | 31 |
| 29 ContainerApi(http.Client client, {core.String rootUrl: "https://www.googleapis
.com/", core.String servicePath: "container/v1beta1/projects/"}) : | 32 ContainerApi(http.Client client, {core.String rootUrl: "https://www.googleapis
.com/", core.String servicePath: "container/v1beta1/projects/"}) : |
| 30 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 33 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 31 } | 34 } |
| 32 | 35 |
| 33 | 36 |
| 34 /** Not documented yet. */ | |
| 35 class ProjectsResourceApi { | 37 class ProjectsResourceApi { |
| 36 final common_internal.ApiRequester _requester; | 38 final commons.ApiRequester _requester; |
| 37 | 39 |
| 38 ProjectsClustersResourceApi get clusters => new ProjectsClustersResourceApi(_r
equester); | 40 ProjectsClustersResourceApi get clusters => new ProjectsClustersResourceApi(_r
equester); |
| 39 ProjectsOperationsResourceApi get operations => new ProjectsOperationsResource
Api(_requester); | 41 ProjectsOperationsResourceApi get operations => new ProjectsOperationsResource
Api(_requester); |
| 40 ProjectsZonesResourceApi get zones => new ProjectsZonesResourceApi(_requester)
; | 42 ProjectsZonesResourceApi get zones => new ProjectsZonesResourceApi(_requester)
; |
| 41 | 43 |
| 42 ProjectsResourceApi(common_internal.ApiRequester client) : | 44 ProjectsResourceApi(commons.ApiRequester client) : |
| 43 _requester = client; | 45 _requester = client; |
| 44 } | 46 } |
| 45 | 47 |
| 46 | 48 |
| 47 /** Not documented yet. */ | |
| 48 class ProjectsClustersResourceApi { | 49 class ProjectsClustersResourceApi { |
| 49 final common_internal.ApiRequester _requester; | 50 final commons.ApiRequester _requester; |
| 50 | 51 |
| 51 ProjectsClustersResourceApi(common_internal.ApiRequester client) : | 52 ProjectsClustersResourceApi(commons.ApiRequester client) : |
| 52 _requester = client; | 53 _requester = client; |
| 53 | 54 |
| 54 /** | 55 /** |
| 55 * Lists all clusters owned by a project across all zones. | 56 * Lists all clusters owned by a project across all zones. |
| 56 * | 57 * |
| 57 * Request parameters: | 58 * Request parameters: |
| 58 * | 59 * |
| 59 * [projectId] - The Google Developers Console project ID or project number. | 60 * [projectId] - The Google Developers Console project ID or project number. |
| 60 * | 61 * |
| 61 * Completes with a [ListAggregatedClustersResponse]. | 62 * Completes with a [ListAggregatedClustersResponse]. |
| 62 * | 63 * |
| 63 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 64 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 64 * error. | 65 * error. |
| 65 * | 66 * |
| 66 * If the used [http.Client] completes with an error when making a REST call, | 67 * If the used [http.Client] completes with an error when making a REST call, |
| 67 * this method will complete with the same error. | 68 * this method will complete with the same error. |
| 68 */ | 69 */ |
| 69 async.Future<ListAggregatedClustersResponse> list(core.String projectId) { | 70 async.Future<ListAggregatedClustersResponse> list(core.String projectId) { |
| 70 var _url = null; | 71 var _url = null; |
| 71 var _queryParams = new core.Map(); | 72 var _queryParams = new core.Map(); |
| 72 var _uploadMedia = null; | 73 var _uploadMedia = null; |
| 73 var _uploadOptions = null; | 74 var _uploadOptions = null; |
| 74 var _downloadOptions = common.DownloadOptions.Metadata; | 75 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 75 var _body = null; | 76 var _body = null; |
| 76 | 77 |
| 77 if (projectId == null) { | 78 if (projectId == null) { |
| 78 throw new core.ArgumentError("Parameter projectId is required."); | 79 throw new core.ArgumentError("Parameter projectId is required."); |
| 79 } | 80 } |
| 80 | 81 |
| 81 | 82 |
| 82 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/clusters'; | 83 _url = commons.Escaper.ecapeVariable('$projectId') + '/clusters'; |
| 83 | 84 |
| 84 var _response = _requester.request(_url, | 85 var _response = _requester.request(_url, |
| 85 "GET", | 86 "GET", |
| 86 body: _body, | 87 body: _body, |
| 87 queryParams: _queryParams, | 88 queryParams: _queryParams, |
| 88 uploadOptions: _uploadOptions, | 89 uploadOptions: _uploadOptions, |
| 89 uploadMedia: _uploadMedia, | 90 uploadMedia: _uploadMedia, |
| 90 downloadOptions: _downloadOptions); | 91 downloadOptions: _downloadOptions); |
| 91 return _response.then((data) => new ListAggregatedClustersResponse.fromJson(
data)); | 92 return _response.then((data) => new ListAggregatedClustersResponse.fromJson(
data)); |
| 92 } | 93 } |
| 93 | 94 |
| 94 } | 95 } |
| 95 | 96 |
| 96 | 97 |
| 97 /** Not documented yet. */ | |
| 98 class ProjectsOperationsResourceApi { | 98 class ProjectsOperationsResourceApi { |
| 99 final common_internal.ApiRequester _requester; | 99 final commons.ApiRequester _requester; |
| 100 | 100 |
| 101 ProjectsOperationsResourceApi(common_internal.ApiRequester client) : | 101 ProjectsOperationsResourceApi(commons.ApiRequester client) : |
| 102 _requester = client; | 102 _requester = client; |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * Lists all operations in a project, across all zones. | 105 * Lists all operations in a project, across all zones. |
| 106 * | 106 * |
| 107 * Request parameters: | 107 * Request parameters: |
| 108 * | 108 * |
| 109 * [projectId] - The Google Developers Console project ID or project number. | 109 * [projectId] - The Google Developers Console project ID or project number. |
| 110 * | 110 * |
| 111 * Completes with a [ListAggregatedOperationsResponse]. | 111 * Completes with a [ListAggregatedOperationsResponse]. |
| 112 * | 112 * |
| 113 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 113 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 114 * error. | 114 * error. |
| 115 * | 115 * |
| 116 * If the used [http.Client] completes with an error when making a REST call, | 116 * If the used [http.Client] completes with an error when making a REST call, |
| 117 * this method will complete with the same error. | 117 * this method will complete with the same error. |
| 118 */ | 118 */ |
| 119 async.Future<ListAggregatedOperationsResponse> list(core.String projectId) { | 119 async.Future<ListAggregatedOperationsResponse> list(core.String projectId) { |
| 120 var _url = null; | 120 var _url = null; |
| 121 var _queryParams = new core.Map(); | 121 var _queryParams = new core.Map(); |
| 122 var _uploadMedia = null; | 122 var _uploadMedia = null; |
| 123 var _uploadOptions = null; | 123 var _uploadOptions = null; |
| 124 var _downloadOptions = common.DownloadOptions.Metadata; | 124 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 125 var _body = null; | 125 var _body = null; |
| 126 | 126 |
| 127 if (projectId == null) { | 127 if (projectId == null) { |
| 128 throw new core.ArgumentError("Parameter projectId is required."); | 128 throw new core.ArgumentError("Parameter projectId is required."); |
| 129 } | 129 } |
| 130 | 130 |
| 131 | 131 |
| 132 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/operations'; | 132 _url = commons.Escaper.ecapeVariable('$projectId') + '/operations'; |
| 133 | 133 |
| 134 var _response = _requester.request(_url, | 134 var _response = _requester.request(_url, |
| 135 "GET", | 135 "GET", |
| 136 body: _body, | 136 body: _body, |
| 137 queryParams: _queryParams, | 137 queryParams: _queryParams, |
| 138 uploadOptions: _uploadOptions, | 138 uploadOptions: _uploadOptions, |
| 139 uploadMedia: _uploadMedia, | 139 uploadMedia: _uploadMedia, |
| 140 downloadOptions: _downloadOptions); | 140 downloadOptions: _downloadOptions); |
| 141 return _response.then((data) => new ListAggregatedOperationsResponse.fromJso
n(data)); | 141 return _response.then((data) => new ListAggregatedOperationsResponse.fromJso
n(data)); |
| 142 } | 142 } |
| 143 | 143 |
| 144 } | 144 } |
| 145 | 145 |
| 146 | 146 |
| 147 /** Not documented yet. */ | |
| 148 class ProjectsZonesResourceApi { | 147 class ProjectsZonesResourceApi { |
| 149 final common_internal.ApiRequester _requester; | 148 final commons.ApiRequester _requester; |
| 150 | 149 |
| 151 ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersReso
urceApi(_requester); | 150 ProjectsZonesClustersResourceApi get clusters => new ProjectsZonesClustersReso
urceApi(_requester); |
| 152 ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperatio
nsResourceApi(_requester); | 151 ProjectsZonesOperationsResourceApi get operations => new ProjectsZonesOperatio
nsResourceApi(_requester); |
| 153 | 152 |
| 154 ProjectsZonesResourceApi(common_internal.ApiRequester client) : | 153 ProjectsZonesResourceApi(commons.ApiRequester client) : |
| 155 _requester = client; | 154 _requester = client; |
| 156 } | 155 } |
| 157 | 156 |
| 158 | 157 |
| 159 /** Not documented yet. */ | |
| 160 class ProjectsZonesClustersResourceApi { | 158 class ProjectsZonesClustersResourceApi { |
| 161 final common_internal.ApiRequester _requester; | 159 final commons.ApiRequester _requester; |
| 162 | 160 |
| 163 ProjectsZonesClustersResourceApi(common_internal.ApiRequester client) : | 161 ProjectsZonesClustersResourceApi(commons.ApiRequester client) : |
| 164 _requester = client; | 162 _requester = client; |
| 165 | 163 |
| 166 /** | 164 /** |
| 167 * Creates a cluster, consisting of the specified number and type of Google | 165 * Creates a cluster, consisting of the specified number and type of Google |
| 168 * Compute Engine instances, plus a Kubernetes master instance. | 166 * Compute Engine instances, plus a Kubernetes master instance. |
| 169 * | 167 * |
| 170 * The cluster is created in the project's default network. | 168 * The cluster is created in the project's default network. |
| 171 * | 169 * |
| 172 * A firewall is added that allows traffic into port 443 on the master, which | 170 * A firewall is added that allows traffic into port 443 on the master, which |
| 173 * enables HTTPS. A firewall and a route is added for each node to allow the | 171 * enables HTTPS. A firewall and a route is added for each node to allow the |
| 174 * containers on that node to communicate with all other instances in the | 172 * containers on that node to communicate with all other instances in the |
| 175 * cluster. | 173 * cluster. |
| 176 * | 174 * |
| 177 * Finally, a route named k8s-iproute-10-xx-0-0 is created to track that the | 175 * Finally, a route named k8s-iproute-10-xx-0-0 is created to track that the |
| 178 * cluster's 10.xx.0.0/16 CIDR has been assigned. | 176 * cluster's 10.xx.0.0/16 CIDR has been assigned. |
| 179 * | 177 * |
| 180 * [request] - The metadata request object. | 178 * [request] - The metadata request object. |
| 181 * | 179 * |
| 182 * Request parameters: | 180 * Request parameters: |
| 183 * | 181 * |
| 184 * [projectId] - The Google Developers Console project ID or project number. | 182 * [projectId] - The Google Developers Console project ID or project number. |
| 185 * | 183 * |
| 186 * [zoneId] - The name of the Google Compute Engine zone in which the cluster | 184 * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
| 187 * resides. | 185 * resides. |
| 188 * | 186 * |
| 189 * Completes with a [Operation]. | 187 * Completes with a [Operation]. |
| 190 * | 188 * |
| 191 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 192 * error. | 190 * error. |
| 193 * | 191 * |
| 194 * If the used [http.Client] completes with an error when making a REST call, | 192 * If the used [http.Client] completes with an error when making a REST call, |
| 195 * this method will complete with the same error. | 193 * this method will complete with the same error. |
| 196 */ | 194 */ |
| 197 async.Future<Operation> create(CreateClusterRequest request, core.String proje
ctId, core.String zoneId) { | 195 async.Future<Operation> create(CreateClusterRequest request, core.String proje
ctId, core.String zoneId) { |
| 198 var _url = null; | 196 var _url = null; |
| 199 var _queryParams = new core.Map(); | 197 var _queryParams = new core.Map(); |
| 200 var _uploadMedia = null; | 198 var _uploadMedia = null; |
| 201 var _uploadOptions = null; | 199 var _uploadOptions = null; |
| 202 var _downloadOptions = common.DownloadOptions.Metadata; | 200 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 203 var _body = null; | 201 var _body = null; |
| 204 | 202 |
| 205 if (request != null) { | 203 if (request != null) { |
| 206 _body = convert.JSON.encode((request).toJson()); | 204 _body = convert.JSON.encode((request).toJson()); |
| 207 } | 205 } |
| 208 if (projectId == null) { | 206 if (projectId == null) { |
| 209 throw new core.ArgumentError("Parameter projectId is required."); | 207 throw new core.ArgumentError("Parameter projectId is required."); |
| 210 } | 208 } |
| 211 if (zoneId == null) { | 209 if (zoneId == null) { |
| 212 throw new core.ArgumentError("Parameter zoneId is required."); | 210 throw new core.ArgumentError("Parameter zoneId is required."); |
| 213 } | 211 } |
| 214 | 212 |
| 215 | 213 |
| 216 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/zones/' + com
mon_internal.Escaper.ecapeVariable('$zoneId') + '/clusters'; | 214 _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Esc
aper.ecapeVariable('$zoneId') + '/clusters'; |
| 217 | 215 |
| 218 var _response = _requester.request(_url, | 216 var _response = _requester.request(_url, |
| 219 "POST", | 217 "POST", |
| 220 body: _body, | 218 body: _body, |
| 221 queryParams: _queryParams, | 219 queryParams: _queryParams, |
| 222 uploadOptions: _uploadOptions, | 220 uploadOptions: _uploadOptions, |
| 223 uploadMedia: _uploadMedia, | 221 uploadMedia: _uploadMedia, |
| 224 downloadOptions: _downloadOptions); | 222 downloadOptions: _downloadOptions); |
| 225 return _response.then((data) => new Operation.fromJson(data)); | 223 return _response.then((data) => new Operation.fromJson(data)); |
| 226 } | 224 } |
| 227 | 225 |
| 228 /** | 226 /** |
| 229 * Deletes the cluster, including the Kubernetes master and all worker nodes. | 227 * Deletes the cluster, including the Kubernetes master and all worker nodes. |
| 230 * | 228 * |
| 231 * Firewalls and routes that were configured at cluster creation are also | 229 * Firewalls and routes that were configured at cluster creation are also |
| 232 * deleted. | 230 * deleted. |
| 233 * | 231 * |
| 234 * Request parameters: | 232 * Request parameters: |
| 235 * | 233 * |
| 236 * [projectId] - The Google Developers Console project ID or project number. | 234 * [projectId] - The Google Developers Console project ID or project number. |
| 237 * | 235 * |
| 238 * [zoneId] - The name of the Google Compute Engine zone in which the cluster | 236 * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
| 239 * resides. | 237 * resides. |
| 240 * | 238 * |
| 241 * [clusterId] - The name of the cluster to delete. | 239 * [clusterId] - The name of the cluster to delete. |
| 242 * | 240 * |
| 243 * Completes with a [Operation]. | 241 * Completes with a [Operation]. |
| 244 * | 242 * |
| 245 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 243 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 246 * error. | 244 * error. |
| 247 * | 245 * |
| 248 * If the used [http.Client] completes with an error when making a REST call, | 246 * If the used [http.Client] completes with an error when making a REST call, |
| 249 * this method will complete with the same error. | 247 * this method will complete with the same error. |
| 250 */ | 248 */ |
| 251 async.Future<Operation> delete(core.String projectId, core.String zoneId, core
.String clusterId) { | 249 async.Future<Operation> delete(core.String projectId, core.String zoneId, core
.String clusterId) { |
| 252 var _url = null; | 250 var _url = null; |
| 253 var _queryParams = new core.Map(); | 251 var _queryParams = new core.Map(); |
| 254 var _uploadMedia = null; | 252 var _uploadMedia = null; |
| 255 var _uploadOptions = null; | 253 var _uploadOptions = null; |
| 256 var _downloadOptions = common.DownloadOptions.Metadata; | 254 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 257 var _body = null; | 255 var _body = null; |
| 258 | 256 |
| 259 if (projectId == null) { | 257 if (projectId == null) { |
| 260 throw new core.ArgumentError("Parameter projectId is required."); | 258 throw new core.ArgumentError("Parameter projectId is required."); |
| 261 } | 259 } |
| 262 if (zoneId == null) { | 260 if (zoneId == null) { |
| 263 throw new core.ArgumentError("Parameter zoneId is required."); | 261 throw new core.ArgumentError("Parameter zoneId is required."); |
| 264 } | 262 } |
| 265 if (clusterId == null) { | 263 if (clusterId == null) { |
| 266 throw new core.ArgumentError("Parameter clusterId is required."); | 264 throw new core.ArgumentError("Parameter clusterId is required."); |
| 267 } | 265 } |
| 268 | 266 |
| 269 | 267 |
| 270 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/zones/' + com
mon_internal.Escaper.ecapeVariable('$zoneId') + '/clusters/' + common_internal.E
scaper.ecapeVariable('$clusterId'); | 268 _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Esc
aper.ecapeVariable('$zoneId') + '/clusters/' + commons.Escaper.ecapeVariable('$c
lusterId'); |
| 271 | 269 |
| 272 var _response = _requester.request(_url, | 270 var _response = _requester.request(_url, |
| 273 "DELETE", | 271 "DELETE", |
| 274 body: _body, | 272 body: _body, |
| 275 queryParams: _queryParams, | 273 queryParams: _queryParams, |
| 276 uploadOptions: _uploadOptions, | 274 uploadOptions: _uploadOptions, |
| 277 uploadMedia: _uploadMedia, | 275 uploadMedia: _uploadMedia, |
| 278 downloadOptions: _downloadOptions); | 276 downloadOptions: _downloadOptions); |
| 279 return _response.then((data) => new Operation.fromJson(data)); | 277 return _response.then((data) => new Operation.fromJson(data)); |
| 280 } | 278 } |
| 281 | 279 |
| 282 /** | 280 /** |
| 283 * Gets a specific cluster. | 281 * Gets a specific cluster. |
| 284 * | 282 * |
| 285 * Request parameters: | 283 * Request parameters: |
| 286 * | 284 * |
| 287 * [projectId] - The Google Developers Console project ID or project number. | 285 * [projectId] - The Google Developers Console project ID or project number. |
| 288 * | 286 * |
| 289 * [zoneId] - The name of the Google Compute Engine zone in which the cluster | 287 * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
| 290 * resides. | 288 * resides. |
| 291 * | 289 * |
| 292 * [clusterId] - The name of the cluster to retrieve. | 290 * [clusterId] - The name of the cluster to retrieve. |
| 293 * | 291 * |
| 294 * Completes with a [Cluster]. | 292 * Completes with a [Cluster]. |
| 295 * | 293 * |
| 296 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 294 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 297 * error. | 295 * error. |
| 298 * | 296 * |
| 299 * If the used [http.Client] completes with an error when making a REST call, | 297 * If the used [http.Client] completes with an error when making a REST call, |
| 300 * this method will complete with the same error. | 298 * this method will complete with the same error. |
| 301 */ | 299 */ |
| 302 async.Future<Cluster> get(core.String projectId, core.String zoneId, core.Stri
ng clusterId) { | 300 async.Future<Cluster> get(core.String projectId, core.String zoneId, core.Stri
ng clusterId) { |
| 303 var _url = null; | 301 var _url = null; |
| 304 var _queryParams = new core.Map(); | 302 var _queryParams = new core.Map(); |
| 305 var _uploadMedia = null; | 303 var _uploadMedia = null; |
| 306 var _uploadOptions = null; | 304 var _uploadOptions = null; |
| 307 var _downloadOptions = common.DownloadOptions.Metadata; | 305 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 308 var _body = null; | 306 var _body = null; |
| 309 | 307 |
| 310 if (projectId == null) { | 308 if (projectId == null) { |
| 311 throw new core.ArgumentError("Parameter projectId is required."); | 309 throw new core.ArgumentError("Parameter projectId is required."); |
| 312 } | 310 } |
| 313 if (zoneId == null) { | 311 if (zoneId == null) { |
| 314 throw new core.ArgumentError("Parameter zoneId is required."); | 312 throw new core.ArgumentError("Parameter zoneId is required."); |
| 315 } | 313 } |
| 316 if (clusterId == null) { | 314 if (clusterId == null) { |
| 317 throw new core.ArgumentError("Parameter clusterId is required."); | 315 throw new core.ArgumentError("Parameter clusterId is required."); |
| 318 } | 316 } |
| 319 | 317 |
| 320 | 318 |
| 321 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/zones/' + com
mon_internal.Escaper.ecapeVariable('$zoneId') + '/clusters/' + common_internal.E
scaper.ecapeVariable('$clusterId'); | 319 _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Esc
aper.ecapeVariable('$zoneId') + '/clusters/' + commons.Escaper.ecapeVariable('$c
lusterId'); |
| 322 | 320 |
| 323 var _response = _requester.request(_url, | 321 var _response = _requester.request(_url, |
| 324 "GET", | 322 "GET", |
| 325 body: _body, | 323 body: _body, |
| 326 queryParams: _queryParams, | 324 queryParams: _queryParams, |
| 327 uploadOptions: _uploadOptions, | 325 uploadOptions: _uploadOptions, |
| 328 uploadMedia: _uploadMedia, | 326 uploadMedia: _uploadMedia, |
| 329 downloadOptions: _downloadOptions); | 327 downloadOptions: _downloadOptions); |
| 330 return _response.then((data) => new Cluster.fromJson(data)); | 328 return _response.then((data) => new Cluster.fromJson(data)); |
| 331 } | 329 } |
| 332 | 330 |
| 333 /** | 331 /** |
| 334 * Lists all clusters owned by a project in the specified zone. | 332 * Lists all clusters owned by a project in the specified zone. |
| 335 * | 333 * |
| 336 * Request parameters: | 334 * Request parameters: |
| 337 * | 335 * |
| 338 * [projectId] - The Google Developers Console project ID or project number. | 336 * [projectId] - The Google Developers Console project ID or project number. |
| 339 * | 337 * |
| 340 * [zoneId] - The name of the Google Compute Engine zone in which the cluster | 338 * [zoneId] - The name of the Google Compute Engine zone in which the cluster |
| 341 * resides. | 339 * resides. |
| 342 * | 340 * |
| 343 * Completes with a [ListClustersResponse]. | 341 * Completes with a [ListClustersResponse]. |
| 344 * | 342 * |
| 345 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 343 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 346 * error. | 344 * error. |
| 347 * | 345 * |
| 348 * If the used [http.Client] completes with an error when making a REST call, | 346 * If the used [http.Client] completes with an error when making a REST call, |
| 349 * this method will complete with the same error. | 347 * this method will complete with the same error. |
| 350 */ | 348 */ |
| 351 async.Future<ListClustersResponse> list(core.String projectId, core.String zon
eId) { | 349 async.Future<ListClustersResponse> list(core.String projectId, core.String zon
eId) { |
| 352 var _url = null; | 350 var _url = null; |
| 353 var _queryParams = new core.Map(); | 351 var _queryParams = new core.Map(); |
| 354 var _uploadMedia = null; | 352 var _uploadMedia = null; |
| 355 var _uploadOptions = null; | 353 var _uploadOptions = null; |
| 356 var _downloadOptions = common.DownloadOptions.Metadata; | 354 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 357 var _body = null; | 355 var _body = null; |
| 358 | 356 |
| 359 if (projectId == null) { | 357 if (projectId == null) { |
| 360 throw new core.ArgumentError("Parameter projectId is required."); | 358 throw new core.ArgumentError("Parameter projectId is required."); |
| 361 } | 359 } |
| 362 if (zoneId == null) { | 360 if (zoneId == null) { |
| 363 throw new core.ArgumentError("Parameter zoneId is required."); | 361 throw new core.ArgumentError("Parameter zoneId is required."); |
| 364 } | 362 } |
| 365 | 363 |
| 366 | 364 |
| 367 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/zones/' + com
mon_internal.Escaper.ecapeVariable('$zoneId') + '/clusters'; | 365 _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Esc
aper.ecapeVariable('$zoneId') + '/clusters'; |
| 368 | 366 |
| 369 var _response = _requester.request(_url, | 367 var _response = _requester.request(_url, |
| 370 "GET", | 368 "GET", |
| 371 body: _body, | 369 body: _body, |
| 372 queryParams: _queryParams, | 370 queryParams: _queryParams, |
| 373 uploadOptions: _uploadOptions, | 371 uploadOptions: _uploadOptions, |
| 374 uploadMedia: _uploadMedia, | 372 uploadMedia: _uploadMedia, |
| 375 downloadOptions: _downloadOptions); | 373 downloadOptions: _downloadOptions); |
| 376 return _response.then((data) => new ListClustersResponse.fromJson(data)); | 374 return _response.then((data) => new ListClustersResponse.fromJson(data)); |
| 377 } | 375 } |
| 378 | 376 |
| 379 } | 377 } |
| 380 | 378 |
| 381 | 379 |
| 382 /** Not documented yet. */ | |
| 383 class ProjectsZonesOperationsResourceApi { | 380 class ProjectsZonesOperationsResourceApi { |
| 384 final common_internal.ApiRequester _requester; | 381 final commons.ApiRequester _requester; |
| 385 | 382 |
| 386 ProjectsZonesOperationsResourceApi(common_internal.ApiRequester client) : | 383 ProjectsZonesOperationsResourceApi(commons.ApiRequester client) : |
| 387 _requester = client; | 384 _requester = client; |
| 388 | 385 |
| 389 /** | 386 /** |
| 390 * Gets the specified operation. | 387 * Gets the specified operation. |
| 391 * | 388 * |
| 392 * Request parameters: | 389 * Request parameters: |
| 393 * | 390 * |
| 394 * [projectId] - The Google Developers Console project ID or project number. | 391 * [projectId] - The Google Developers Console project ID or project number. |
| 395 * | 392 * |
| 396 * [zoneId] - The name of the Google Compute Engine zone in which the | 393 * [zoneId] - The name of the Google Compute Engine zone in which the |
| 397 * operation resides. This is always the same zone as the cluster with which | 394 * operation resides. This is always the same zone as the cluster with which |
| 398 * the operation is associated. | 395 * the operation is associated. |
| 399 * | 396 * |
| 400 * [operationId] - The server-assigned name of the operation. | 397 * [operationId] - The server-assigned name of the operation. |
| 401 * | 398 * |
| 402 * Completes with a [Operation]. | 399 * Completes with a [Operation]. |
| 403 * | 400 * |
| 404 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 405 * error. | 402 * error. |
| 406 * | 403 * |
| 407 * If the used [http.Client] completes with an error when making a REST call, | 404 * If the used [http.Client] completes with an error when making a REST call, |
| 408 * this method will complete with the same error. | 405 * this method will complete with the same error. |
| 409 */ | 406 */ |
| 410 async.Future<Operation> get(core.String projectId, core.String zoneId, core.St
ring operationId) { | 407 async.Future<Operation> get(core.String projectId, core.String zoneId, core.St
ring operationId) { |
| 411 var _url = null; | 408 var _url = null; |
| 412 var _queryParams = new core.Map(); | 409 var _queryParams = new core.Map(); |
| 413 var _uploadMedia = null; | 410 var _uploadMedia = null; |
| 414 var _uploadOptions = null; | 411 var _uploadOptions = null; |
| 415 var _downloadOptions = common.DownloadOptions.Metadata; | 412 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 416 var _body = null; | 413 var _body = null; |
| 417 | 414 |
| 418 if (projectId == null) { | 415 if (projectId == null) { |
| 419 throw new core.ArgumentError("Parameter projectId is required."); | 416 throw new core.ArgumentError("Parameter projectId is required."); |
| 420 } | 417 } |
| 421 if (zoneId == null) { | 418 if (zoneId == null) { |
| 422 throw new core.ArgumentError("Parameter zoneId is required."); | 419 throw new core.ArgumentError("Parameter zoneId is required."); |
| 423 } | 420 } |
| 424 if (operationId == null) { | 421 if (operationId == null) { |
| 425 throw new core.ArgumentError("Parameter operationId is required."); | 422 throw new core.ArgumentError("Parameter operationId is required."); |
| 426 } | 423 } |
| 427 | 424 |
| 428 | 425 |
| 429 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/zones/' + com
mon_internal.Escaper.ecapeVariable('$zoneId') + '/operations/' + common_internal
.Escaper.ecapeVariable('$operationId'); | 426 _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Esc
aper.ecapeVariable('$zoneId') + '/operations/' + commons.Escaper.ecapeVariable('
$operationId'); |
| 430 | 427 |
| 431 var _response = _requester.request(_url, | 428 var _response = _requester.request(_url, |
| 432 "GET", | 429 "GET", |
| 433 body: _body, | 430 body: _body, |
| 434 queryParams: _queryParams, | 431 queryParams: _queryParams, |
| 435 uploadOptions: _uploadOptions, | 432 uploadOptions: _uploadOptions, |
| 436 uploadMedia: _uploadMedia, | 433 uploadMedia: _uploadMedia, |
| 437 downloadOptions: _downloadOptions); | 434 downloadOptions: _downloadOptions); |
| 438 return _response.then((data) => new Operation.fromJson(data)); | 435 return _response.then((data) => new Operation.fromJson(data)); |
| 439 } | 436 } |
| 440 | 437 |
| 441 /** | 438 /** |
| 442 * Lists all operations in a project in a specific zone. | 439 * Lists all operations in a project in a specific zone. |
| 443 * | 440 * |
| 444 * Request parameters: | 441 * Request parameters: |
| 445 * | 442 * |
| 446 * [projectId] - The Google Developers Console project ID or project number. | 443 * [projectId] - The Google Developers Console project ID or project number. |
| 447 * | 444 * |
| 448 * [zoneId] - The name of the Google Compute Engine zone to return operations | 445 * [zoneId] - The name of the Google Compute Engine zone to return operations |
| 449 * for. | 446 * for. |
| 450 * | 447 * |
| 451 * Completes with a [ListOperationsResponse]. | 448 * Completes with a [ListOperationsResponse]. |
| 452 * | 449 * |
| 453 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 450 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 454 * error. | 451 * error. |
| 455 * | 452 * |
| 456 * If the used [http.Client] completes with an error when making a REST call, | 453 * If the used [http.Client] completes with an error when making a REST call, |
| 457 * this method will complete with the same error. | 454 * this method will complete with the same error. |
| 458 */ | 455 */ |
| 459 async.Future<ListOperationsResponse> list(core.String projectId, core.String z
oneId) { | 456 async.Future<ListOperationsResponse> list(core.String projectId, core.String z
oneId) { |
| 460 var _url = null; | 457 var _url = null; |
| 461 var _queryParams = new core.Map(); | 458 var _queryParams = new core.Map(); |
| 462 var _uploadMedia = null; | 459 var _uploadMedia = null; |
| 463 var _uploadOptions = null; | 460 var _uploadOptions = null; |
| 464 var _downloadOptions = common.DownloadOptions.Metadata; | 461 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 465 var _body = null; | 462 var _body = null; |
| 466 | 463 |
| 467 if (projectId == null) { | 464 if (projectId == null) { |
| 468 throw new core.ArgumentError("Parameter projectId is required."); | 465 throw new core.ArgumentError("Parameter projectId is required."); |
| 469 } | 466 } |
| 470 if (zoneId == null) { | 467 if (zoneId == null) { |
| 471 throw new core.ArgumentError("Parameter zoneId is required."); | 468 throw new core.ArgumentError("Parameter zoneId is required."); |
| 472 } | 469 } |
| 473 | 470 |
| 474 | 471 |
| 475 _url = common_internal.Escaper.ecapeVariable('$projectId') + '/zones/' + com
mon_internal.Escaper.ecapeVariable('$zoneId') + '/operations'; | 472 _url = commons.Escaper.ecapeVariable('$projectId') + '/zones/' + commons.Esc
aper.ecapeVariable('$zoneId') + '/operations'; |
| 476 | 473 |
| 477 var _response = _requester.request(_url, | 474 var _response = _requester.request(_url, |
| 478 "GET", | 475 "GET", |
| 479 body: _body, | 476 body: _body, |
| 480 queryParams: _queryParams, | 477 queryParams: _queryParams, |
| 481 uploadOptions: _uploadOptions, | 478 uploadOptions: _uploadOptions, |
| 482 uploadMedia: _uploadMedia, | 479 uploadMedia: _uploadMedia, |
| 483 downloadOptions: _downloadOptions); | 480 downloadOptions: _downloadOptions); |
| 484 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 481 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 485 } | 482 } |
| 486 | 483 |
| 487 } | 484 } |
| 488 | 485 |
| 489 | 486 |
| 490 | 487 |
| 491 /** Not documented yet. */ | |
| 492 class Cluster { | 488 class Cluster { |
| 493 /** | 489 /** |
| 494 * The API version of the Kubernetes master and kubelets running in this | 490 * The API version of the Kubernetes master and kubelets running in this |
| 495 * cluster. Leave blank to pick up the latest stable release, or specify a | 491 * cluster. Leave blank to pick up the latest stable release, or specify a |
| 496 * version of the form "x.y.z". The Google Container Engine release notes | 492 * version of the form "x.y.z". The Google Container Engine release notes |
| 497 * lists the currently supported versions. If an incorrect version is | 493 * lists the currently supported versions. If an incorrect version is |
| 498 * specified, the server returns an error listing the currently supported | 494 * specified, the server returns an error listing the currently supported |
| 499 * versions. | 495 * versions. |
| 500 */ | 496 */ |
| 501 core.String clusterApiVersion; | 497 core.String clusterApiVersion; |
| 502 | 498 |
| 503 /** | 499 /** |
| 504 * [Output only] The IP addresses of the container pods in this cluster, in | 500 * [Output only] The IP addresses of the container pods in this cluster, in |
| 505 * CIDR notation (e.g. 1.2.3.4/29). | 501 * CIDR notation (e.g. 1.2.3.4/29). |
| 506 */ | 502 */ |
| 507 core.String containerIpv4Cidr; | 503 core.String containerIpv4Cidr; |
| 508 | 504 |
| 509 /** | 505 /** |
| 510 * [Output only] The time the cluster was created, in RFC3339 text format. | 506 * [Output only] The time the cluster was created, in RFC3339 text format. |
| 511 */ | 507 */ |
| 512 core.String creationTimestamp; | 508 core.String creationTimestamp; |
| 513 | 509 |
| 514 /** An optional description of this cluster. */ | 510 /** An optional description of this cluster. */ |
| 515 core.String description; | 511 core.String description; |
| 516 | 512 |
| 517 /** | 513 /** |
| 514 * Whether logs from the cluster should be made available via the Google Cloud |
| 515 * Logging service. This includes both logs from your applications running in |
| 516 * the cluster as well as logs from the Kubernetes components themselves. |
| 517 */ |
| 518 core.bool enableCloudLogging; |
| 519 |
| 520 /** |
| 518 * [Output only] The IP address of this cluster's Kubernetes master. The | 521 * [Output only] The IP address of this cluster's Kubernetes master. The |
| 519 * endpoint can be accessed from the internet at | 522 * endpoint can be accessed from the internet at |
| 520 * https://username:password@endpoint/. | 523 * https://username:password@endpoint/. |
| 521 * | 524 * |
| 522 * See the masterAuth property of this resource for username and password | 525 * See the masterAuth property of this resource for username and password |
| 523 * information. | 526 * information. |
| 524 */ | 527 */ |
| 525 core.String endpoint; | 528 core.String endpoint; |
| 526 | 529 |
| 527 /** | 530 /** |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 } | 610 } |
| 608 if (_json.containsKey("containerIpv4Cidr")) { | 611 if (_json.containsKey("containerIpv4Cidr")) { |
| 609 containerIpv4Cidr = _json["containerIpv4Cidr"]; | 612 containerIpv4Cidr = _json["containerIpv4Cidr"]; |
| 610 } | 613 } |
| 611 if (_json.containsKey("creationTimestamp")) { | 614 if (_json.containsKey("creationTimestamp")) { |
| 612 creationTimestamp = _json["creationTimestamp"]; | 615 creationTimestamp = _json["creationTimestamp"]; |
| 613 } | 616 } |
| 614 if (_json.containsKey("description")) { | 617 if (_json.containsKey("description")) { |
| 615 description = _json["description"]; | 618 description = _json["description"]; |
| 616 } | 619 } |
| 620 if (_json.containsKey("enableCloudLogging")) { |
| 621 enableCloudLogging = _json["enableCloudLogging"]; |
| 622 } |
| 617 if (_json.containsKey("endpoint")) { | 623 if (_json.containsKey("endpoint")) { |
| 618 endpoint = _json["endpoint"]; | 624 endpoint = _json["endpoint"]; |
| 619 } | 625 } |
| 620 if (_json.containsKey("masterAuth")) { | 626 if (_json.containsKey("masterAuth")) { |
| 621 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); | 627 masterAuth = new MasterAuth.fromJson(_json["masterAuth"]); |
| 622 } | 628 } |
| 623 if (_json.containsKey("name")) { | 629 if (_json.containsKey("name")) { |
| 624 name = _json["name"]; | 630 name = _json["name"]; |
| 625 } | 631 } |
| 626 if (_json.containsKey("network")) { | 632 if (_json.containsKey("network")) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 } | 665 } |
| 660 if (containerIpv4Cidr != null) { | 666 if (containerIpv4Cidr != null) { |
| 661 _json["containerIpv4Cidr"] = containerIpv4Cidr; | 667 _json["containerIpv4Cidr"] = containerIpv4Cidr; |
| 662 } | 668 } |
| 663 if (creationTimestamp != null) { | 669 if (creationTimestamp != null) { |
| 664 _json["creationTimestamp"] = creationTimestamp; | 670 _json["creationTimestamp"] = creationTimestamp; |
| 665 } | 671 } |
| 666 if (description != null) { | 672 if (description != null) { |
| 667 _json["description"] = description; | 673 _json["description"] = description; |
| 668 } | 674 } |
| 675 if (enableCloudLogging != null) { |
| 676 _json["enableCloudLogging"] = enableCloudLogging; |
| 677 } |
| 669 if (endpoint != null) { | 678 if (endpoint != null) { |
| 670 _json["endpoint"] = endpoint; | 679 _json["endpoint"] = endpoint; |
| 671 } | 680 } |
| 672 if (masterAuth != null) { | 681 if (masterAuth != null) { |
| 673 _json["masterAuth"] = (masterAuth).toJson(); | 682 _json["masterAuth"] = (masterAuth).toJson(); |
| 674 } | 683 } |
| 675 if (name != null) { | 684 if (name != null) { |
| 676 _json["name"] = name; | 685 _json["name"] = name; |
| 677 } | 686 } |
| 678 if (network != null) { | 687 if (network != null) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 700 _json["statusMessage"] = statusMessage; | 709 _json["statusMessage"] = statusMessage; |
| 701 } | 710 } |
| 702 if (zone != null) { | 711 if (zone != null) { |
| 703 _json["zone"] = zone; | 712 _json["zone"] = zone; |
| 704 } | 713 } |
| 705 return _json; | 714 return _json; |
| 706 } | 715 } |
| 707 } | 716 } |
| 708 | 717 |
| 709 | 718 |
| 710 /** Not documented yet. */ | |
| 711 class CreateClusterRequest { | 719 class CreateClusterRequest { |
| 712 /** A cluster resource. */ | 720 /** A cluster resource. */ |
| 713 Cluster cluster; | 721 Cluster cluster; |
| 714 | 722 |
| 715 | 723 |
| 716 CreateClusterRequest(); | 724 CreateClusterRequest(); |
| 717 | 725 |
| 718 CreateClusterRequest.fromJson(core.Map _json) { | 726 CreateClusterRequest.fromJson(core.Map _json) { |
| 719 if (_json.containsKey("cluster")) { | 727 if (_json.containsKey("cluster")) { |
| 720 cluster = new Cluster.fromJson(_json["cluster"]); | 728 cluster = new Cluster.fromJson(_json["cluster"]); |
| 721 } | 729 } |
| 722 } | 730 } |
| 723 | 731 |
| 724 core.Map toJson() { | 732 core.Map toJson() { |
| 725 var _json = new core.Map(); | 733 var _json = new core.Map(); |
| 726 if (cluster != null) { | 734 if (cluster != null) { |
| 727 _json["cluster"] = (cluster).toJson(); | 735 _json["cluster"] = (cluster).toJson(); |
| 728 } | 736 } |
| 729 return _json; | 737 return _json; |
| 730 } | 738 } |
| 731 } | 739 } |
| 732 | 740 |
| 733 | 741 |
| 734 /** Not documented yet. */ | |
| 735 class ListAggregatedClustersResponse { | 742 class ListAggregatedClustersResponse { |
| 736 /** A list of clusters in the project, across all zones. */ | 743 /** A list of clusters in the project, across all zones. */ |
| 737 core.List<Cluster> clusters; | 744 core.List<Cluster> clusters; |
| 738 | 745 |
| 739 | 746 |
| 740 ListAggregatedClustersResponse(); | 747 ListAggregatedClustersResponse(); |
| 741 | 748 |
| 742 ListAggregatedClustersResponse.fromJson(core.Map _json) { | 749 ListAggregatedClustersResponse.fromJson(core.Map _json) { |
| 743 if (_json.containsKey("clusters")) { | 750 if (_json.containsKey("clusters")) { |
| 744 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); | 751 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); |
| 745 } | 752 } |
| 746 } | 753 } |
| 747 | 754 |
| 748 core.Map toJson() { | 755 core.Map toJson() { |
| 749 var _json = new core.Map(); | 756 var _json = new core.Map(); |
| 750 if (clusters != null) { | 757 if (clusters != null) { |
| 751 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); | 758 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
| 752 } | 759 } |
| 753 return _json; | 760 return _json; |
| 754 } | 761 } |
| 755 } | 762 } |
| 756 | 763 |
| 757 | 764 |
| 758 /** Not documented yet. */ | |
| 759 class ListAggregatedOperationsResponse { | 765 class ListAggregatedOperationsResponse { |
| 760 /** A list of operations in the project, across all zones. */ | 766 /** A list of operations in the project, across all zones. */ |
| 761 core.List<Operation> operations; | 767 core.List<Operation> operations; |
| 762 | 768 |
| 763 | 769 |
| 764 ListAggregatedOperationsResponse(); | 770 ListAggregatedOperationsResponse(); |
| 765 | 771 |
| 766 ListAggregatedOperationsResponse.fromJson(core.Map _json) { | 772 ListAggregatedOperationsResponse.fromJson(core.Map _json) { |
| 767 if (_json.containsKey("operations")) { | 773 if (_json.containsKey("operations")) { |
| 768 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 774 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
| 769 } | 775 } |
| 770 } | 776 } |
| 771 | 777 |
| 772 core.Map toJson() { | 778 core.Map toJson() { |
| 773 var _json = new core.Map(); | 779 var _json = new core.Map(); |
| 774 if (operations != null) { | 780 if (operations != null) { |
| 775 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 781 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 776 } | 782 } |
| 777 return _json; | 783 return _json; |
| 778 } | 784 } |
| 779 } | 785 } |
| 780 | 786 |
| 781 | 787 |
| 782 /** Not documented yet. */ | |
| 783 class ListClustersResponse { | 788 class ListClustersResponse { |
| 784 /** A list of clusters in the project in the specified zone. */ | 789 /** A list of clusters in the project in the specified zone. */ |
| 785 core.List<Cluster> clusters; | 790 core.List<Cluster> clusters; |
| 786 | 791 |
| 787 | 792 |
| 788 ListClustersResponse(); | 793 ListClustersResponse(); |
| 789 | 794 |
| 790 ListClustersResponse.fromJson(core.Map _json) { | 795 ListClustersResponse.fromJson(core.Map _json) { |
| 791 if (_json.containsKey("clusters")) { | 796 if (_json.containsKey("clusters")) { |
| 792 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); | 797 clusters = _json["clusters"].map((value) => new Cluster.fromJson(value)).t
oList(); |
| 793 } | 798 } |
| 794 } | 799 } |
| 795 | 800 |
| 796 core.Map toJson() { | 801 core.Map toJson() { |
| 797 var _json = new core.Map(); | 802 var _json = new core.Map(); |
| 798 if (clusters != null) { | 803 if (clusters != null) { |
| 799 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); | 804 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
| 800 } | 805 } |
| 801 return _json; | 806 return _json; |
| 802 } | 807 } |
| 803 } | 808 } |
| 804 | 809 |
| 805 | 810 |
| 806 /** Not documented yet. */ | |
| 807 class ListOperationsResponse { | 811 class ListOperationsResponse { |
| 808 /** A list of operations in the project in the specified zone. */ | 812 /** A list of operations in the project in the specified zone. */ |
| 809 core.List<Operation> operations; | 813 core.List<Operation> operations; |
| 810 | 814 |
| 811 | 815 |
| 812 ListOperationsResponse(); | 816 ListOperationsResponse(); |
| 813 | 817 |
| 814 ListOperationsResponse.fromJson(core.Map _json) { | 818 ListOperationsResponse.fromJson(core.Map _json) { |
| 815 if (_json.containsKey("operations")) { | 819 if (_json.containsKey("operations")) { |
| 816 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 820 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
| 817 } | 821 } |
| 818 } | 822 } |
| 819 | 823 |
| 820 core.Map toJson() { | 824 core.Map toJson() { |
| 821 var _json = new core.Map(); | 825 var _json = new core.Map(); |
| 822 if (operations != null) { | 826 if (operations != null) { |
| 823 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 827 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 824 } | 828 } |
| 825 return _json; | 829 return _json; |
| 826 } | 830 } |
| 827 } | 831 } |
| 828 | 832 |
| 829 | 833 |
| 830 /** Not documented yet. */ | |
| 831 class MasterAuth { | 834 class MasterAuth { |
| 832 /** The password to use when accessing the Kubernetes master endpoint. */ | 835 /** The password to use when accessing the Kubernetes master endpoint. */ |
| 833 core.String password; | 836 core.String password; |
| 834 | 837 |
| 835 /** The username to use when accessing the Kubernetes master endpoint. */ | 838 /** The username to use when accessing the Kubernetes master endpoint. */ |
| 836 core.String user; | 839 core.String user; |
| 837 | 840 |
| 838 | 841 |
| 839 MasterAuth(); | 842 MasterAuth(); |
| 840 | 843 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 853 _json["password"] = password; | 856 _json["password"] = password; |
| 854 } | 857 } |
| 855 if (user != null) { | 858 if (user != null) { |
| 856 _json["user"] = user; | 859 _json["user"] = user; |
| 857 } | 860 } |
| 858 return _json; | 861 return _json; |
| 859 } | 862 } |
| 860 } | 863 } |
| 861 | 864 |
| 862 | 865 |
| 863 /** Not documented yet. */ | |
| 864 class NodeConfig { | 866 class NodeConfig { |
| 865 /** | 867 /** |
| 866 * The name of a Google Compute Engine machine type (e.g. n1-standard-1). | 868 * The name of a Google Compute Engine machine type (e.g. n1-standard-1). |
| 867 * | 869 * |
| 868 * If unspecified, the default machine type is n1-standard-1. | 870 * If unspecified, the default machine type is n1-standard-1. |
| 869 */ | 871 */ |
| 870 core.String machineType; | 872 core.String machineType; |
| 871 | 873 |
| 872 /** | 874 /** |
| 873 * The optional list of ServiceAccounts, each with their specified scopes, to | 875 * The optional list of ServiceAccounts, each with their specified scopes, to |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 var _json = new core.Map(); | 1054 var _json = new core.Map(); |
| 1053 if (email != null) { | 1055 if (email != null) { |
| 1054 _json["email"] = email; | 1056 _json["email"] = email; |
| 1055 } | 1057 } |
| 1056 if (scopes != null) { | 1058 if (scopes != null) { |
| 1057 _json["scopes"] = scopes; | 1059 _json["scopes"] = scopes; |
| 1058 } | 1060 } |
| 1059 return _json; | 1061 return _json; |
| 1060 } | 1062 } |
| 1061 } | 1063 } |
| 1062 | |
| 1063 | |
| OLD | NEW |