OLD | NEW |
1 library googleapis.compute.v1; | 1 library googleapis.compute.v1; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 26 matching lines...) Expand all Loading... |
37 BackendServicesResourceApi get backendServices => new BackendServicesResourceA
pi(_requester); | 37 BackendServicesResourceApi get backendServices => new BackendServicesResourceA
pi(_requester); |
38 DiskTypesResourceApi get diskTypes => new DiskTypesResourceApi(_requester); | 38 DiskTypesResourceApi get diskTypes => new DiskTypesResourceApi(_requester); |
39 DisksResourceApi get disks => new DisksResourceApi(_requester); | 39 DisksResourceApi get disks => new DisksResourceApi(_requester); |
40 FirewallsResourceApi get firewalls => new FirewallsResourceApi(_requester); | 40 FirewallsResourceApi get firewalls => new FirewallsResourceApi(_requester); |
41 ForwardingRulesResourceApi get forwardingRules => new ForwardingRulesResourceA
pi(_requester); | 41 ForwardingRulesResourceApi get forwardingRules => new ForwardingRulesResourceA
pi(_requester); |
42 GlobalAddressesResourceApi get globalAddresses => new GlobalAddressesResourceA
pi(_requester); | 42 GlobalAddressesResourceApi get globalAddresses => new GlobalAddressesResourceA
pi(_requester); |
43 GlobalForwardingRulesResourceApi get globalForwardingRules => new GlobalForwar
dingRulesResourceApi(_requester); | 43 GlobalForwardingRulesResourceApi get globalForwardingRules => new GlobalForwar
dingRulesResourceApi(_requester); |
44 GlobalOperationsResourceApi get globalOperations => new GlobalOperationsResour
ceApi(_requester); | 44 GlobalOperationsResourceApi get globalOperations => new GlobalOperationsResour
ceApi(_requester); |
45 HttpHealthChecksResourceApi get httpHealthChecks => new HttpHealthChecksResour
ceApi(_requester); | 45 HttpHealthChecksResourceApi get httpHealthChecks => new HttpHealthChecksResour
ceApi(_requester); |
46 ImagesResourceApi get images => new ImagesResourceApi(_requester); | 46 ImagesResourceApi get images => new ImagesResourceApi(_requester); |
| 47 InstanceTemplatesResourceApi get instanceTemplates => new InstanceTemplatesRes
ourceApi(_requester); |
47 InstancesResourceApi get instances => new InstancesResourceApi(_requester); | 48 InstancesResourceApi get instances => new InstancesResourceApi(_requester); |
48 LicensesResourceApi get licenses => new LicensesResourceApi(_requester); | 49 LicensesResourceApi get licenses => new LicensesResourceApi(_requester); |
49 MachineTypesResourceApi get machineTypes => new MachineTypesResourceApi(_reque
ster); | 50 MachineTypesResourceApi get machineTypes => new MachineTypesResourceApi(_reque
ster); |
50 NetworksResourceApi get networks => new NetworksResourceApi(_requester); | 51 NetworksResourceApi get networks => new NetworksResourceApi(_requester); |
51 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 52 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
52 RegionOperationsResourceApi get regionOperations => new RegionOperationsResour
ceApi(_requester); | 53 RegionOperationsResourceApi get regionOperations => new RegionOperationsResour
ceApi(_requester); |
53 RegionsResourceApi get regions => new RegionsResourceApi(_requester); | 54 RegionsResourceApi get regions => new RegionsResourceApi(_requester); |
54 RoutesResourceApi get routes => new RoutesResourceApi(_requester); | 55 RoutesResourceApi get routes => new RoutesResourceApi(_requester); |
55 SnapshotsResourceApi get snapshots => new SnapshotsResourceApi(_requester); | 56 SnapshotsResourceApi get snapshots => new SnapshotsResourceApi(_requester); |
56 TargetHttpProxiesResourceApi get targetHttpProxies => new TargetHttpProxiesRes
ourceApi(_requester); | 57 TargetHttpProxiesResourceApi get targetHttpProxies => new TargetHttpProxiesRes
ourceApi(_requester); |
(...skipping 3213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3270 uploadOptions: _uploadOptions, | 3271 uploadOptions: _uploadOptions, |
3271 uploadMedia: _uploadMedia, | 3272 uploadMedia: _uploadMedia, |
3272 downloadOptions: _downloadOptions); | 3273 downloadOptions: _downloadOptions); |
3273 return _response.then((data) => new ImageList.fromJson(data)); | 3274 return _response.then((data) => new ImageList.fromJson(data)); |
3274 } | 3275 } |
3275 | 3276 |
3276 } | 3277 } |
3277 | 3278 |
3278 | 3279 |
3279 /** Not documented yet. */ | 3280 /** Not documented yet. */ |
| 3281 class InstanceTemplatesResourceApi { |
| 3282 final common_internal.ApiRequester _requester; |
| 3283 |
| 3284 InstanceTemplatesResourceApi(common_internal.ApiRequester client) : |
| 3285 _requester = client; |
| 3286 |
| 3287 /** |
| 3288 * Deletes the specified instance template resource. |
| 3289 * |
| 3290 * Request parameters: |
| 3291 * |
| 3292 * [project] - Name of the project scoping this request. |
| 3293 * Value must have pattern |
| 3294 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3295 * |
| 3296 * [instanceTemplate] - Name of the instance template resource to delete. |
| 3297 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3298 * |
| 3299 * Completes with a [Operation]. |
| 3300 * |
| 3301 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 3302 * error. |
| 3303 * |
| 3304 * If the used [http.Client] completes with an error when making a REST call, |
| 3305 * this method will complete with the same error. |
| 3306 */ |
| 3307 async.Future<Operation> delete(core.String project, core.String instanceTempla
te) { |
| 3308 var _url = null; |
| 3309 var _queryParams = new core.Map(); |
| 3310 var _uploadMedia = null; |
| 3311 var _uploadOptions = null; |
| 3312 var _downloadOptions = common.DownloadOptions.Metadata; |
| 3313 var _body = null; |
| 3314 |
| 3315 if (project == null) { |
| 3316 throw new core.ArgumentError("Parameter project is required."); |
| 3317 } |
| 3318 if (instanceTemplate == null) { |
| 3319 throw new core.ArgumentError("Parameter instanceTemplate is required."); |
| 3320 } |
| 3321 |
| 3322 |
| 3323 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates/' + common_internal.Escaper.ecapeVariable('$instanceTemplate'); |
| 3324 |
| 3325 var _response = _requester.request(_url, |
| 3326 "DELETE", |
| 3327 body: _body, |
| 3328 queryParams: _queryParams, |
| 3329 uploadOptions: _uploadOptions, |
| 3330 uploadMedia: _uploadMedia, |
| 3331 downloadOptions: _downloadOptions); |
| 3332 return _response.then((data) => new Operation.fromJson(data)); |
| 3333 } |
| 3334 |
| 3335 /** |
| 3336 * Returns the specified instance template resource. |
| 3337 * |
| 3338 * Request parameters: |
| 3339 * |
| 3340 * [project] - Name of the project scoping this request. |
| 3341 * Value must have pattern |
| 3342 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3343 * |
| 3344 * [instanceTemplate] - Name of the instance template resource to return. |
| 3345 * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". |
| 3346 * |
| 3347 * Completes with a [InstanceTemplate]. |
| 3348 * |
| 3349 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 3350 * error. |
| 3351 * |
| 3352 * If the used [http.Client] completes with an error when making a REST call, |
| 3353 * this method will complete with the same error. |
| 3354 */ |
| 3355 async.Future<InstanceTemplate> get(core.String project, core.String instanceTe
mplate) { |
| 3356 var _url = null; |
| 3357 var _queryParams = new core.Map(); |
| 3358 var _uploadMedia = null; |
| 3359 var _uploadOptions = null; |
| 3360 var _downloadOptions = common.DownloadOptions.Metadata; |
| 3361 var _body = null; |
| 3362 |
| 3363 if (project == null) { |
| 3364 throw new core.ArgumentError("Parameter project is required."); |
| 3365 } |
| 3366 if (instanceTemplate == null) { |
| 3367 throw new core.ArgumentError("Parameter instanceTemplate is required."); |
| 3368 } |
| 3369 |
| 3370 |
| 3371 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates/' + common_internal.Escaper.ecapeVariable('$instanceTemplate'); |
| 3372 |
| 3373 var _response = _requester.request(_url, |
| 3374 "GET", |
| 3375 body: _body, |
| 3376 queryParams: _queryParams, |
| 3377 uploadOptions: _uploadOptions, |
| 3378 uploadMedia: _uploadMedia, |
| 3379 downloadOptions: _downloadOptions); |
| 3380 return _response.then((data) => new InstanceTemplate.fromJson(data)); |
| 3381 } |
| 3382 |
| 3383 /** |
| 3384 * Creates an instance template resource in the specified project using the |
| 3385 * data included in the request. |
| 3386 * |
| 3387 * [request] - The metadata request object. |
| 3388 * |
| 3389 * Request parameters: |
| 3390 * |
| 3391 * [project] - Name of the project scoping this request. |
| 3392 * Value must have pattern |
| 3393 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3394 * |
| 3395 * Completes with a [Operation]. |
| 3396 * |
| 3397 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 3398 * error. |
| 3399 * |
| 3400 * If the used [http.Client] completes with an error when making a REST call, |
| 3401 * this method will complete with the same error. |
| 3402 */ |
| 3403 async.Future<Operation> insert(InstanceTemplate request, core.String project)
{ |
| 3404 var _url = null; |
| 3405 var _queryParams = new core.Map(); |
| 3406 var _uploadMedia = null; |
| 3407 var _uploadOptions = null; |
| 3408 var _downloadOptions = common.DownloadOptions.Metadata; |
| 3409 var _body = null; |
| 3410 |
| 3411 if (request != null) { |
| 3412 _body = convert.JSON.encode((request).toJson()); |
| 3413 } |
| 3414 if (project == null) { |
| 3415 throw new core.ArgumentError("Parameter project is required."); |
| 3416 } |
| 3417 |
| 3418 |
| 3419 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates'; |
| 3420 |
| 3421 var _response = _requester.request(_url, |
| 3422 "POST", |
| 3423 body: _body, |
| 3424 queryParams: _queryParams, |
| 3425 uploadOptions: _uploadOptions, |
| 3426 uploadMedia: _uploadMedia, |
| 3427 downloadOptions: _downloadOptions); |
| 3428 return _response.then((data) => new Operation.fromJson(data)); |
| 3429 } |
| 3430 |
| 3431 /** |
| 3432 * Retrieves the list of instance template resources contained within the |
| 3433 * specified project. |
| 3434 * |
| 3435 * Request parameters: |
| 3436 * |
| 3437 * [project] - Name of the project scoping this request. |
| 3438 * Value must have pattern |
| 3439 * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{
1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))". |
| 3440 * |
| 3441 * [filter] - Optional. Filter expression for filtering listed resources. |
| 3442 * |
| 3443 * [maxResults] - Optional. Maximum count of results to be returned. Maximum |
| 3444 * value is 500 and default value is 500. |
| 3445 * Value must be between "0" and "500". |
| 3446 * |
| 3447 * [pageToken] - Optional. Tag returned by a previous list request truncated |
| 3448 * by maxResults. Used to continue a previous list request. |
| 3449 * |
| 3450 * Completes with a [InstanceTemplateList]. |
| 3451 * |
| 3452 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 3453 * error. |
| 3454 * |
| 3455 * If the used [http.Client] completes with an error when making a REST call, |
| 3456 * this method will complete with the same error. |
| 3457 */ |
| 3458 async.Future<InstanceTemplateList> list(core.String project, {core.String filt
er, core.int maxResults, core.String pageToken}) { |
| 3459 var _url = null; |
| 3460 var _queryParams = new core.Map(); |
| 3461 var _uploadMedia = null; |
| 3462 var _uploadOptions = null; |
| 3463 var _downloadOptions = common.DownloadOptions.Metadata; |
| 3464 var _body = null; |
| 3465 |
| 3466 if (project == null) { |
| 3467 throw new core.ArgumentError("Parameter project is required."); |
| 3468 } |
| 3469 if (filter != null) { |
| 3470 _queryParams["filter"] = [filter]; |
| 3471 } |
| 3472 if (maxResults != null) { |
| 3473 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3474 } |
| 3475 if (pageToken != null) { |
| 3476 _queryParams["pageToken"] = [pageToken]; |
| 3477 } |
| 3478 |
| 3479 |
| 3480 _url = common_internal.Escaper.ecapeVariable('$project') + '/global/instance
Templates'; |
| 3481 |
| 3482 var _response = _requester.request(_url, |
| 3483 "GET", |
| 3484 body: _body, |
| 3485 queryParams: _queryParams, |
| 3486 uploadOptions: _uploadOptions, |
| 3487 uploadMedia: _uploadMedia, |
| 3488 downloadOptions: _downloadOptions); |
| 3489 return _response.then((data) => new InstanceTemplateList.fromJson(data)); |
| 3490 } |
| 3491 |
| 3492 } |
| 3493 |
| 3494 |
| 3495 /** Not documented yet. */ |
3280 class InstancesResourceApi { | 3496 class InstancesResourceApi { |
3281 final common_internal.ApiRequester _requester; | 3497 final common_internal.ApiRequester _requester; |
3282 | 3498 |
3283 InstancesResourceApi(common_internal.ApiRequester client) : | 3499 InstancesResourceApi(common_internal.ApiRequester client) : |
3284 _requester = client; | 3500 _requester = client; |
3285 | 3501 |
3286 /** | 3502 /** |
3287 * Adds an access config to an instance's network interface. | 3503 * Adds an access config to an instance's network interface. |
3288 * | 3504 * |
3289 * [request] - The metadata request object. | 3505 * [request] - The metadata request object. |
(...skipping 4874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8164 | 8380 |
8165 /** Type of the resource. */ | 8381 /** Type of the resource. */ |
8166 core.String kind; | 8382 core.String kind; |
8167 | 8383 |
8168 /** | 8384 /** |
8169 * Name of the resource; provided by the client when the resource is created. | 8385 * Name of the resource; provided by the client when the resource is created. |
8170 * The name must be 1-63 characters long, and comply with RFC1035. | 8386 * The name must be 1-63 characters long, and comply with RFC1035. |
8171 */ | 8387 */ |
8172 core.String name; | 8388 core.String name; |
8173 | 8389 |
8174 /** The TCP port to connect on the backend. The default value is 80. */ | 8390 /** |
| 8391 * Deprecated in favor of port_name. The TCP port to connect on the backend. |
| 8392 * The default value is 80. |
| 8393 */ |
8175 core.int port; | 8394 core.int port; |
8176 | 8395 |
8177 /** | 8396 /** |
8178 * Name of backend port. The same name should appear in the resource views | 8397 * Name of backend port. The same name should appear in the resource views |
8179 * referenced by this service. Required. | 8398 * referenced by this service. Required. |
8180 */ | 8399 */ |
8181 core.String portName; | 8400 core.String portName; |
8182 | 8401 |
8183 /** | 8402 /** |
8184 * Not documented yet. | 8403 * Not documented yet. |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8498 /** Server defined URL for the resource (output only). */ | 8717 /** Server defined URL for the resource (output only). */ |
8499 core.String selfLink; | 8718 core.String selfLink; |
8500 | 8719 |
8501 /** | 8720 /** |
8502 * Size of the persistent disk, specified in GB. This parameter is optional | 8721 * Size of the persistent disk, specified in GB. This parameter is optional |
8503 * when creating a disk from a disk image or a snapshot, otherwise it is | 8722 * when creating a disk from a disk image or a snapshot, otherwise it is |
8504 * required. | 8723 * required. |
8505 */ | 8724 */ |
8506 core.String sizeGb; | 8725 core.String sizeGb; |
8507 | 8726 |
8508 /** | 8727 /** The source image used to create this disk. */ |
8509 * The source image used to create this disk. Once the source image has been | |
8510 * deleted from the system, this field will not be set, even if an image with | |
8511 * the same name has been re-created. | |
8512 */ | |
8513 core.String sourceImage; | 8728 core.String sourceImage; |
8514 | 8729 |
8515 /** | 8730 /** |
8516 * The 'id' value of the image used to create this disk. This value may be | 8731 * The 'id' value of the image used to create this disk. This value may be |
8517 * used to determine whether the disk was created from the current or a | 8732 * used to determine whether the disk was created from the current or a |
8518 * previous instance of a given image. | 8733 * previous instance of a given image. |
8519 */ | 8734 */ |
8520 core.String sourceImageId; | 8735 core.String sourceImageId; |
8521 | 8736 |
8522 /** | 8737 /** The source snapshot used to create this disk. */ |
8523 * The source snapshot used to create this disk. Once the source snapshot has | |
8524 * been deleted from the system, this field will be cleared, and will not be | |
8525 * set even if a snapshot with the same name has been re-created. | |
8526 */ | |
8527 core.String sourceSnapshot; | 8738 core.String sourceSnapshot; |
8528 | 8739 |
8529 /** | 8740 /** |
8530 * The 'id' value of the snapshot used to create this disk. This value may be | 8741 * The 'id' value of the snapshot used to create this disk. This value may be |
8531 * used to determine whether the disk was created from the current or a | 8742 * used to determine whether the disk was created from the current or a |
8532 * previous instance of a given disk snapshot. | 8743 * previous instance of a given disk snapshot. |
8533 */ | 8744 */ |
8534 core.String sourceSnapshotId; | 8745 core.String sourceSnapshotId; |
8535 | 8746 |
8536 /** | 8747 /** |
(...skipping 1846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10383 * The name must be 1-63 characters long, and comply with RFC1035. | 10594 * The name must be 1-63 characters long, and comply with RFC1035. |
10384 */ | 10595 */ |
10385 core.String name; | 10596 core.String name; |
10386 | 10597 |
10387 /** The raw disk image parameters. */ | 10598 /** The raw disk image parameters. */ |
10388 ImageRawDisk rawDisk; | 10599 ImageRawDisk rawDisk; |
10389 | 10600 |
10390 /** Server defined URL for the resource (output only). */ | 10601 /** Server defined URL for the resource (output only). */ |
10391 core.String selfLink; | 10602 core.String selfLink; |
10392 | 10603 |
10393 /** | 10604 /** The source disk used to create this image. */ |
10394 * The source disk used to create this image. Once the source disk has been | |
10395 * deleted from the system, this field will be cleared, and will not be set | |
10396 * even if a disk with the same name has been re-created. | |
10397 */ | |
10398 core.String sourceDisk; | 10605 core.String sourceDisk; |
10399 | 10606 |
10400 /** | 10607 /** |
10401 * The 'id' value of the disk used to create this image. This value may be | 10608 * The 'id' value of the disk used to create this image. This value may be |
10402 * used to determine whether the image was taken from the current or a | 10609 * used to determine whether the image was taken from the current or a |
10403 * previous instance of a given disk name. | 10610 * previous instance of a given disk name. |
10404 */ | 10611 */ |
10405 core.String sourceDiskId; | 10612 core.String sourceDiskId; |
10406 | 10613 |
10407 /** | 10614 /** |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10924 } | 11131 } |
10925 if (selfLink != null) { | 11132 if (selfLink != null) { |
10926 _json["selfLink"] = selfLink; | 11133 _json["selfLink"] = selfLink; |
10927 } | 11134 } |
10928 return _json; | 11135 return _json; |
10929 } | 11136 } |
10930 } | 11137 } |
10931 | 11138 |
10932 | 11139 |
10933 /** Not documented yet. */ | 11140 /** Not documented yet. */ |
| 11141 class InstanceProperties { |
| 11142 /** |
| 11143 * Allows instances created based on this template to send packets with source |
| 11144 * IP addresses other than their own and receive packets with destination IP |
| 11145 * addresses other than their own. If these instances will be used as an IP |
| 11146 * gateway or it will be set as the next-hop in a Route resource, say true. If |
| 11147 * unsure, leave this set to false. |
| 11148 */ |
| 11149 core.bool canIpForward; |
| 11150 |
| 11151 /** |
| 11152 * An optional textual description for the instances created based on the |
| 11153 * instance template resource; provided by the client when the template is |
| 11154 * created. |
| 11155 */ |
| 11156 core.String description; |
| 11157 |
| 11158 /** |
| 11159 * Array of disks associated with instance created based on this template. |
| 11160 */ |
| 11161 core.List<AttachedDisk> disks; |
| 11162 |
| 11163 /** |
| 11164 * Name of the machine type resource describing which machine type to use to |
| 11165 * host the instances created based on this template; provided by the client |
| 11166 * when the instance template is created. |
| 11167 */ |
| 11168 core.String machineType; |
| 11169 |
| 11170 /** |
| 11171 * Metadata key/value pairs assigned to instances created based on this |
| 11172 * template. Consists of custom metadata or predefined keys; see Instance |
| 11173 * documentation for more information. |
| 11174 */ |
| 11175 Metadata metadata; |
| 11176 |
| 11177 /** |
| 11178 * Array of configurations for this interface. This specifies how this |
| 11179 * interface is configured to interact with other network services, such as |
| 11180 * connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access |
| 11181 * config supported. If there are no accessConfigs specified, then this |
| 11182 * instances created based based on this template will have no external |
| 11183 * internet access. |
| 11184 */ |
| 11185 core.List<NetworkInterface> networkInterfaces; |
| 11186 |
| 11187 /** Scheduling options for the instances created based on this template. */ |
| 11188 Scheduling scheduling; |
| 11189 |
| 11190 /** |
| 11191 * A list of service accounts each with specified scopes, for which access |
| 11192 * tokens are to be made available to the instances created based on this |
| 11193 * template, through metadata queries. |
| 11194 */ |
| 11195 core.List<ServiceAccount> serviceAccounts; |
| 11196 |
| 11197 /** |
| 11198 * A list of tags to be applied to the instances created based on this |
| 11199 * template used to identify valid sources or targets for network firewalls. |
| 11200 * Provided by the client on instance creation. The tags can be later modified |
| 11201 * by the setTags method. Each tag within the list must comply with RFC1035. |
| 11202 */ |
| 11203 Tags tags; |
| 11204 |
| 11205 |
| 11206 InstanceProperties(); |
| 11207 |
| 11208 InstanceProperties.fromJson(core.Map _json) { |
| 11209 if (_json.containsKey("canIpForward")) { |
| 11210 canIpForward = _json["canIpForward"]; |
| 11211 } |
| 11212 if (_json.containsKey("description")) { |
| 11213 description = _json["description"]; |
| 11214 } |
| 11215 if (_json.containsKey("disks")) { |
| 11216 disks = _json["disks"].map((value) => new AttachedDisk.fromJson(value)).to
List(); |
| 11217 } |
| 11218 if (_json.containsKey("machineType")) { |
| 11219 machineType = _json["machineType"]; |
| 11220 } |
| 11221 if (_json.containsKey("metadata")) { |
| 11222 metadata = new Metadata.fromJson(_json["metadata"]); |
| 11223 } |
| 11224 if (_json.containsKey("networkInterfaces")) { |
| 11225 networkInterfaces = _json["networkInterfaces"].map((value) => new NetworkI
nterface.fromJson(value)).toList(); |
| 11226 } |
| 11227 if (_json.containsKey("scheduling")) { |
| 11228 scheduling = new Scheduling.fromJson(_json["scheduling"]); |
| 11229 } |
| 11230 if (_json.containsKey("serviceAccounts")) { |
| 11231 serviceAccounts = _json["serviceAccounts"].map((value) => new ServiceAccou
nt.fromJson(value)).toList(); |
| 11232 } |
| 11233 if (_json.containsKey("tags")) { |
| 11234 tags = new Tags.fromJson(_json["tags"]); |
| 11235 } |
| 11236 } |
| 11237 |
| 11238 core.Map toJson() { |
| 11239 var _json = new core.Map(); |
| 11240 if (canIpForward != null) { |
| 11241 _json["canIpForward"] = canIpForward; |
| 11242 } |
| 11243 if (description != null) { |
| 11244 _json["description"] = description; |
| 11245 } |
| 11246 if (disks != null) { |
| 11247 _json["disks"] = disks.map((value) => (value).toJson()).toList(); |
| 11248 } |
| 11249 if (machineType != null) { |
| 11250 _json["machineType"] = machineType; |
| 11251 } |
| 11252 if (metadata != null) { |
| 11253 _json["metadata"] = (metadata).toJson(); |
| 11254 } |
| 11255 if (networkInterfaces != null) { |
| 11256 _json["networkInterfaces"] = networkInterfaces.map((value) => (value).toJs
on()).toList(); |
| 11257 } |
| 11258 if (scheduling != null) { |
| 11259 _json["scheduling"] = (scheduling).toJson(); |
| 11260 } |
| 11261 if (serviceAccounts != null) { |
| 11262 _json["serviceAccounts"] = serviceAccounts.map((value) => (value).toJson()
).toList(); |
| 11263 } |
| 11264 if (tags != null) { |
| 11265 _json["tags"] = (tags).toJson(); |
| 11266 } |
| 11267 return _json; |
| 11268 } |
| 11269 } |
| 11270 |
| 11271 |
| 11272 /** Not documented yet. */ |
10934 class InstanceReference { | 11273 class InstanceReference { |
10935 /** Not documented yet. */ | 11274 /** Not documented yet. */ |
10936 core.String instance; | 11275 core.String instance; |
10937 | 11276 |
10938 | 11277 |
10939 InstanceReference(); | 11278 InstanceReference(); |
10940 | 11279 |
10941 InstanceReference.fromJson(core.Map _json) { | 11280 InstanceReference.fromJson(core.Map _json) { |
10942 if (_json.containsKey("instance")) { | 11281 if (_json.containsKey("instance")) { |
10943 instance = _json["instance"]; | 11282 instance = _json["instance"]; |
10944 } | 11283 } |
10945 } | 11284 } |
10946 | 11285 |
10947 core.Map toJson() { | 11286 core.Map toJson() { |
10948 var _json = new core.Map(); | 11287 var _json = new core.Map(); |
10949 if (instance != null) { | 11288 if (instance != null) { |
10950 _json["instance"] = instance; | 11289 _json["instance"] = instance; |
10951 } | 11290 } |
10952 return _json; | 11291 return _json; |
10953 } | 11292 } |
10954 } | 11293 } |
10955 | 11294 |
10956 | 11295 |
| 11296 /** An Instance Template resource. */ |
| 11297 class InstanceTemplate { |
| 11298 /** Creation timestamp in RFC3339 text format (output only). */ |
| 11299 core.String creationTimestamp; |
| 11300 |
| 11301 /** |
| 11302 * An optional textual description of the instance template resource; provided |
| 11303 * by the client when the resource is created. |
| 11304 */ |
| 11305 core.String description; |
| 11306 |
| 11307 /** |
| 11308 * Unique identifier for the resource; defined by the server (output only). |
| 11309 */ |
| 11310 core.String id; |
| 11311 |
| 11312 /** Type of the resource. */ |
| 11313 core.String kind; |
| 11314 |
| 11315 /** |
| 11316 * Name of the instance template resource; provided by the client when the |
| 11317 * resource is created. The name must be 1-63 characters long, and comply with |
| 11318 * RFC1035 |
| 11319 */ |
| 11320 core.String name; |
| 11321 |
| 11322 /** The instance properties portion of this instance template resource. */ |
| 11323 InstanceProperties properties; |
| 11324 |
| 11325 /** Server defined URL for the resource (output only). */ |
| 11326 core.String selfLink; |
| 11327 |
| 11328 |
| 11329 InstanceTemplate(); |
| 11330 |
| 11331 InstanceTemplate.fromJson(core.Map _json) { |
| 11332 if (_json.containsKey("creationTimestamp")) { |
| 11333 creationTimestamp = _json["creationTimestamp"]; |
| 11334 } |
| 11335 if (_json.containsKey("description")) { |
| 11336 description = _json["description"]; |
| 11337 } |
| 11338 if (_json.containsKey("id")) { |
| 11339 id = _json["id"]; |
| 11340 } |
| 11341 if (_json.containsKey("kind")) { |
| 11342 kind = _json["kind"]; |
| 11343 } |
| 11344 if (_json.containsKey("name")) { |
| 11345 name = _json["name"]; |
| 11346 } |
| 11347 if (_json.containsKey("properties")) { |
| 11348 properties = new InstanceProperties.fromJson(_json["properties"]); |
| 11349 } |
| 11350 if (_json.containsKey("selfLink")) { |
| 11351 selfLink = _json["selfLink"]; |
| 11352 } |
| 11353 } |
| 11354 |
| 11355 core.Map toJson() { |
| 11356 var _json = new core.Map(); |
| 11357 if (creationTimestamp != null) { |
| 11358 _json["creationTimestamp"] = creationTimestamp; |
| 11359 } |
| 11360 if (description != null) { |
| 11361 _json["description"] = description; |
| 11362 } |
| 11363 if (id != null) { |
| 11364 _json["id"] = id; |
| 11365 } |
| 11366 if (kind != null) { |
| 11367 _json["kind"] = kind; |
| 11368 } |
| 11369 if (name != null) { |
| 11370 _json["name"] = name; |
| 11371 } |
| 11372 if (properties != null) { |
| 11373 _json["properties"] = (properties).toJson(); |
| 11374 } |
| 11375 if (selfLink != null) { |
| 11376 _json["selfLink"] = selfLink; |
| 11377 } |
| 11378 return _json; |
| 11379 } |
| 11380 } |
| 11381 |
| 11382 |
| 11383 /** Contains a list of instance template resources. */ |
| 11384 class InstanceTemplateList { |
| 11385 /** |
| 11386 * Unique identifier for the resource; defined by the server (output only). |
| 11387 */ |
| 11388 core.String id; |
| 11389 |
| 11390 /** A list of instance template resources. */ |
| 11391 core.List<InstanceTemplate> items; |
| 11392 |
| 11393 /** Type of resource. */ |
| 11394 core.String kind; |
| 11395 |
| 11396 /** A token used to continue a truncated list request (output only). */ |
| 11397 core.String nextPageToken; |
| 11398 |
| 11399 /** Server defined URL for this resource (output only). */ |
| 11400 core.String selfLink; |
| 11401 |
| 11402 |
| 11403 InstanceTemplateList(); |
| 11404 |
| 11405 InstanceTemplateList.fromJson(core.Map _json) { |
| 11406 if (_json.containsKey("id")) { |
| 11407 id = _json["id"]; |
| 11408 } |
| 11409 if (_json.containsKey("items")) { |
| 11410 items = _json["items"].map((value) => new InstanceTemplate.fromJson(value)
).toList(); |
| 11411 } |
| 11412 if (_json.containsKey("kind")) { |
| 11413 kind = _json["kind"]; |
| 11414 } |
| 11415 if (_json.containsKey("nextPageToken")) { |
| 11416 nextPageToken = _json["nextPageToken"]; |
| 11417 } |
| 11418 if (_json.containsKey("selfLink")) { |
| 11419 selfLink = _json["selfLink"]; |
| 11420 } |
| 11421 } |
| 11422 |
| 11423 core.Map toJson() { |
| 11424 var _json = new core.Map(); |
| 11425 if (id != null) { |
| 11426 _json["id"] = id; |
| 11427 } |
| 11428 if (items != null) { |
| 11429 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 11430 } |
| 11431 if (kind != null) { |
| 11432 _json["kind"] = kind; |
| 11433 } |
| 11434 if (nextPageToken != null) { |
| 11435 _json["nextPageToken"] = nextPageToken; |
| 11436 } |
| 11437 if (selfLink != null) { |
| 11438 _json["selfLink"] = selfLink; |
| 11439 } |
| 11440 return _json; |
| 11441 } |
| 11442 } |
| 11443 |
| 11444 |
10957 /** Not documented yet. */ | 11445 /** Not documented yet. */ |
10958 class InstancesScopedListWarningData { | 11446 class InstancesScopedListWarningData { |
10959 /** A key for the warning data. */ | 11447 /** A key for the warning data. */ |
10960 core.String key; | 11448 core.String key; |
10961 | 11449 |
10962 /** A warning data value corresponding to the key. */ | 11450 /** A warning data value corresponding to the key. */ |
10963 core.String value; | 11451 core.String value; |
10964 | 11452 |
10965 | 11453 |
10966 InstancesScopedListWarningData(); | 11454 InstancesScopedListWarningData(); |
(...skipping 2554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13521 | 14009 |
13522 /** | 14010 /** |
13523 * Name of the resource; provided by the client when the resource is created. | 14011 * Name of the resource; provided by the client when the resource is created. |
13524 * The name must be 1-63 characters long, and comply with RFC1035. | 14012 * The name must be 1-63 characters long, and comply with RFC1035. |
13525 */ | 14013 */ |
13526 core.String name; | 14014 core.String name; |
13527 | 14015 |
13528 /** Server defined URL for the resource (output only). */ | 14016 /** Server defined URL for the resource (output only). */ |
13529 core.String selfLink; | 14017 core.String selfLink; |
13530 | 14018 |
13531 /** | 14019 /** The source disk used to create this snapshot. */ |
13532 * The source disk used to create this snapshot. Once the source disk has been | |
13533 * deleted from the system, this field will be cleared, and will not be set | |
13534 * even if a disk with the same name has been re-created (output only). | |
13535 */ | |
13536 core.String sourceDisk; | 14020 core.String sourceDisk; |
13537 | 14021 |
13538 /** | 14022 /** |
13539 * The 'id' value of the disk used to create this snapshot. This value may be | 14023 * The 'id' value of the disk used to create this snapshot. This value may be |
13540 * used to determine whether the snapshot was taken from the current or a | 14024 * used to determine whether the snapshot was taken from the current or a |
13541 * previous instance of a given disk name. | 14025 * previous instance of a given disk name. |
13542 */ | 14026 */ |
13543 core.String sourceDiskId; | 14027 core.String sourceDiskId; |
13544 | 14028 |
13545 /** | 14029 /** |
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15575 _json["nextPageToken"] = nextPageToken; | 16059 _json["nextPageToken"] = nextPageToken; |
15576 } | 16060 } |
15577 if (selfLink != null) { | 16061 if (selfLink != null) { |
15578 _json["selfLink"] = selfLink; | 16062 _json["selfLink"] = selfLink; |
15579 } | 16063 } |
15580 return _json; | 16064 return _json; |
15581 } | 16065 } |
15582 } | 16066 } |
15583 | 16067 |
15584 | 16068 |
OLD | NEW |