google-apis-compute_v1 0.61.0 → 0.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -807,8 +807,7 @@ module Google
807
807
  execute_or_queue_command(command, &block)
808
808
  end
809
809
 
810
- # Returns the specified autoscaler resource. Gets a list of available
811
- # autoscalers by making a list() request.
810
+ # Returns the specified autoscaler resource.
812
811
  # @param [String] project
813
812
  # Project ID for this request.
814
813
  # @param [String] zone
@@ -1247,8 +1246,7 @@ module Google
1247
1246
  execute_or_queue_command(command, &block)
1248
1247
  end
1249
1248
 
1250
- # Returns the specified BackendBucket resource. Gets a list of available backend
1251
- # buckets by making a list() request.
1249
+ # Returns the specified BackendBucket resource.
1252
1250
  # @param [String] project
1253
1251
  # Project ID for this request.
1254
1252
  # @param [String] backend_bucket
@@ -1822,8 +1820,7 @@ module Google
1822
1820
  execute_or_queue_command(command, &block)
1823
1821
  end
1824
1822
 
1825
- # Returns the specified BackendService resource. Gets a list of available
1826
- # backend services.
1823
+ # Returns the specified BackendService resource.
1827
1824
  # @param [String] project
1828
1825
  # Project ID for this request.
1829
1826
  # @param [String] backend_service
@@ -2419,8 +2416,7 @@ module Google
2419
2416
  execute_or_queue_command(command, &block)
2420
2417
  end
2421
2418
 
2422
- # Returns the specified disk type. Gets a list of available disk types by making
2423
- # a list() request.
2419
+ # Returns the specified disk type.
2424
2420
  # @param [String] project
2425
2421
  # Project ID for this request.
2426
2422
  # @param [String] zone
@@ -2812,8 +2808,7 @@ module Google
2812
2808
  execute_or_queue_command(command, &block)
2813
2809
  end
2814
2810
 
2815
- # Returns a specified persistent disk. Gets a list of available persistent disks
2816
- # by making a list() request.
2811
+ # Returns the specified persistent disk.
2817
2812
  # @param [String] project
2818
2813
  # Project ID for this request.
2819
2814
  # @param [String] zone
@@ -4080,7 +4075,9 @@ module Google
4080
4075
  # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
4081
4076
  # by a previous list request to get the next page of results.
4082
4077
  # @param [String] parent_id
4083
- # Parent ID for this request.
4078
+ # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
4079
+ # the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is
4080
+ # an organization.
4084
4081
  # @param [Boolean] return_partial_success
4085
4082
  # Opt-in for partial success behavior which provides partial results in case of
4086
4083
  # failure. The default value is false.
@@ -4156,7 +4153,9 @@ module Google
4156
4153
  # @param [String] firewall_policy
4157
4154
  # Name of the firewall policy to update.
4158
4155
  # @param [String] parent_id
4159
- # The new parent of the firewall policy.
4156
+ # The new parent of the firewall policy. The ID can be either be "folders/[
4157
+ # FOLDER_ID]" if the parent is a folder or "organizations/[ORGANIZATION_ID]" if
4158
+ # the parent is an organization.
4160
4159
  # @param [String] request_id
4161
4160
  # An optional request ID to identify requests. Specify a unique request ID so
4162
4161
  # that if you must retry your request, the server will know to ignore the
@@ -5324,8 +5323,7 @@ module Google
5324
5323
  execute_or_queue_command(command, &block)
5325
5324
  end
5326
5325
 
5327
- # Returns the specified address resource. Gets a list of available addresses by
5328
- # making a list() request.
5326
+ # Returns the specified address resource.
5329
5327
  # @param [String] project
5330
5328
  # Project ID for this request.
5331
5329
  # @param [String] address
@@ -6052,8 +6050,7 @@ module Google
6052
6050
  execute_or_queue_command(command, &block)
6053
6051
  end
6054
6052
 
6055
- # Returns the specified network endpoint group. Gets a list of available network
6056
- # endpoint groups by making a list() request.
6053
+ # Returns the specified network endpoint group.
6057
6054
  # @param [String] project
6058
6055
  # Project ID for this request.
6059
6056
  # @param [String] network_endpoint_group
@@ -7192,8 +7189,7 @@ module Google
7192
7189
  execute_or_queue_command(command, &block)
7193
7190
  end
7194
7191
 
7195
- # Returns the specified HealthCheck resource. Gets a list of available health
7196
- # checks by making a list() request.
7192
+ # Returns the specified HealthCheck resource.
7197
7193
  # @param [String] project
7198
7194
  # Project ID for this request.
7199
7195
  # @param [String] health_check
@@ -7515,8 +7511,7 @@ module Google
7515
7511
  execute_or_queue_command(command, &block)
7516
7512
  end
7517
7513
 
7518
- # Returns the specified HttpHealthCheck resource. Gets a list of available HTTP
7519
- # health checks by making a list() request.
7514
+ # Returns the specified HttpHealthCheck resource.
7520
7515
  # @param [String] project
7521
7516
  # Project ID for this request.
7522
7517
  # @param [String] http_health_check
@@ -7839,8 +7834,7 @@ module Google
7839
7834
  execute_or_queue_command(command, &block)
7840
7835
  end
7841
7836
 
7842
- # Returns the specified HttpsHealthCheck resource. Gets a list of available
7843
- # HTTPS health checks by making a list() request.
7837
+ # Returns the specified HttpsHealthCheck resource.
7844
7838
  # @param [String] project
7845
7839
  # Project ID for this request.
7846
7840
  # @param [String] https_health_check
@@ -8254,8 +8248,7 @@ module Google
8254
8248
  execute_or_queue_command(command, &block)
8255
8249
  end
8256
8250
 
8257
- # Returns the specified image. Gets a list of available images by making a list()
8258
- # request.
8251
+ # Returns the specified image.
8259
8252
  # @param [String] project
8260
8253
  # Project ID for this request.
8261
8254
  # @param [String] image
@@ -8292,8 +8285,11 @@ module Google
8292
8285
  end
8293
8286
 
8294
8287
  # Returns the latest image that is part of an image family and is not deprecated.
8288
+ # For more information on image families, see Public image families
8289
+ # documentation.
8295
8290
  # @param [String] project
8296
- # Project ID for this request.
8291
+ # The image project that the image belongs to. For example, to get a CentOS
8292
+ # image, specify centos-cloud as the image project.
8297
8293
  # @param [String] family
8298
8294
  # Name of the image family to search for.
8299
8295
  # @param [String] fields
@@ -9101,8 +9097,7 @@ module Google
9101
9097
  execute_or_queue_command(command, &block)
9102
9098
  end
9103
9099
 
9104
- # Returns all of the details about the specified managed instance group. Gets a
9105
- # list of available managed instance groups by making a list() request.
9100
+ # Returns all of the details about the specified managed instance group.
9106
9101
  # @param [String] project
9107
9102
  # Project ID for this request.
9108
9103
  # @param [String] zone
@@ -10600,6 +10595,103 @@ module Google
10600
10595
  execute_or_queue_command(command, &block)
10601
10596
  end
10602
10597
 
10598
+ # Retrieves the list of all InstanceTemplates resources, regional and global,
10599
+ # available to the specified project.
10600
+ # @param [String] project
10601
+ # Name of the project scoping this request.
10602
+ # @param [String] filter
10603
+ # A filter expression that filters resources listed in the response. Most
10604
+ # Compute resources support two types of filter expressions: expressions that
10605
+ # support regular expressions and expressions that follow API improvement
10606
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
10607
+ # field name, an operator, and the value that you want to use for filtering. The
10608
+ # value must be a string, a number, or a boolean. The operator must be either `=`
10609
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
10610
+ # Engine instances, you can exclude instances named `example-instance` by
10611
+ # specifying `name != example-instance`. The `:` operator can be used with
10612
+ # string fields to match substrings. For non-string fields it is equivalent to
10613
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
10614
+ # been defined. For example, to find all objects with `owner` label use: ```
10615
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
10616
+ # specify `scheduling.automaticRestart = false` to include instances only if
10617
+ # they are not scheduled for automatic restarts. You can use filtering on nested
10618
+ # fields to filter based on resource labels. To filter on multiple expressions,
10619
+ # provide each separate expression within parentheses. For example: ``` (
10620
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
10621
+ # default, each expression is an `AND` expression. However, you can include `AND`
10622
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
10623
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
10624
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
10625
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
10626
+ # expression with or without quotes or against multiple parenthesized
10627
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
10628
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
10629
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
10630
+ # regular expression using Google RE2 library syntax. The literal value must
10631
+ # match the entire field. For example, to filter for instances that do not end
10632
+ # with name "instance", you would use `name ne .*instance`.
10633
+ # @param [Boolean] include_all_scopes
10634
+ # Indicates whether every visible scope for each scope type (zone, region,
10635
+ # global) should be included in the response. For new resource types added after
10636
+ # this field, the flag has no effect as new resource types will always include
10637
+ # every visible scope for each scope type in response. For resource types which
10638
+ # predate this field, if this flag is omitted or false, only scopes of the scope
10639
+ # types where the resource type is expected to be found will be included.
10640
+ # @param [Fixnum] max_results
10641
+ # The maximum number of results per page that should be returned. If the number
10642
+ # of available results is larger than `maxResults`, Compute Engine returns a `
10643
+ # nextPageToken` that can be used to get the next page of results in subsequent
10644
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
10645
+ # @param [String] order_by
10646
+ # Sorts list results by a certain order. By default, results are returned in
10647
+ # alphanumerical order based on the resource name. You can also sort results in
10648
+ # descending order based on the creation timestamp using `orderBy="
10649
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
10650
+ # field in reverse chronological order (newest result first). Use this to sort
10651
+ # resources like operations so that the newest operation is returned first.
10652
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
10653
+ # @param [String] page_token
10654
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
10655
+ # by a previous list request to get the next page of results.
10656
+ # @param [Boolean] return_partial_success
10657
+ # Opt-in for partial success behavior which provides partial results in case of
10658
+ # failure. The default value is false.
10659
+ # @param [String] fields
10660
+ # Selector specifying which fields to include in a partial response.
10661
+ # @param [String] quota_user
10662
+ # Available to use for quota purposes for server-side applications. Can be any
10663
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10664
+ # @param [String] user_ip
10665
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10666
+ # @param [Google::Apis::RequestOptions] options
10667
+ # Request-specific options
10668
+ #
10669
+ # @yield [result, err] Result & error if block supplied
10670
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplateAggregatedList] parsed result object
10671
+ # @yieldparam err [StandardError] error object if request failed
10672
+ #
10673
+ # @return [Google::Apis::ComputeV1::InstanceTemplateAggregatedList]
10674
+ #
10675
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10676
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10677
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10678
+ def aggregated_instance_template_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10679
+ command = make_simple_command(:get, 'projects/{project}/aggregated/instanceTemplates', options)
10680
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Representation
10681
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplateAggregatedList
10682
+ command.params['project'] = project unless project.nil?
10683
+ command.query['filter'] = filter unless filter.nil?
10684
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
10685
+ command.query['maxResults'] = max_results unless max_results.nil?
10686
+ command.query['orderBy'] = order_by unless order_by.nil?
10687
+ command.query['pageToken'] = page_token unless page_token.nil?
10688
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
10689
+ command.query['fields'] = fields unless fields.nil?
10690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10691
+ command.query['userIp'] = user_ip unless user_ip.nil?
10692
+ execute_or_queue_command(command, &block)
10693
+ end
10694
+
10603
10695
  # Deletes the specified instance template. Deleting an instance template is
10604
10696
  # permanent and cannot be undone. It is not possible to delete templates that
10605
10697
  # are already in use by a managed instance group.
@@ -10649,8 +10741,7 @@ module Google
10649
10741
  execute_or_queue_command(command, &block)
10650
10742
  end
10651
10743
 
10652
- # Returns the specified instance template. Gets a list of available instance
10653
- # templates by making a list() request.
10744
+ # Returns the specified instance template.
10654
10745
  # @param [String] project
10655
10746
  # Project ID for this request.
10656
10747
  # @param [String] instance_template
@@ -11426,8 +11517,7 @@ module Google
11426
11517
  execute_or_queue_command(command, &block)
11427
11518
  end
11428
11519
 
11429
- # Returns the specified Instance resource. Gets a list of available instances by
11430
- # making a list() request.
11520
+ # Returns the specified Instance resource.
11431
11521
  # @param [String] project
11432
11522
  # Project ID for this request.
11433
11523
  # @param [String] zone
@@ -12597,6 +12687,59 @@ module Google
12597
12687
  execute_or_queue_command(command, &block)
12598
12688
  end
12599
12689
 
12690
+ # Sets name of an instance.
12691
+ # @param [String] project
12692
+ # Project ID for this request.
12693
+ # @param [String] zone
12694
+ # The name of the zone for this request.
12695
+ # @param [String] instance
12696
+ # The instance name for this request.
12697
+ # @param [Google::Apis::ComputeV1::InstancesSetNameRequest] instances_set_name_request_object
12698
+ # @param [String] request_id
12699
+ # An optional request ID to identify requests. Specify a unique request ID so
12700
+ # that if you must retry your request, the server will know to ignore the
12701
+ # request if it has already been completed. For example, consider a situation
12702
+ # where you make an initial request and the request times out. If you make the
12703
+ # request again with the same request ID, the server can check if original
12704
+ # operation with the same request ID was received, and if so, will ignore the
12705
+ # second request. This prevents clients from accidentally creating duplicate
12706
+ # commitments. The request ID must be a valid UUID with the exception that zero
12707
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
12708
+ # @param [String] fields
12709
+ # Selector specifying which fields to include in a partial response.
12710
+ # @param [String] quota_user
12711
+ # Available to use for quota purposes for server-side applications. Can be any
12712
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12713
+ # @param [String] user_ip
12714
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12715
+ # @param [Google::Apis::RequestOptions] options
12716
+ # Request-specific options
12717
+ #
12718
+ # @yield [result, err] Result & error if block supplied
12719
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
12720
+ # @yieldparam err [StandardError] error object if request failed
12721
+ #
12722
+ # @return [Google::Apis::ComputeV1::Operation]
12723
+ #
12724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12727
+ def set_instance_name(project, zone, instance, instances_set_name_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12728
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setName', options)
12729
+ command.request_representation = Google::Apis::ComputeV1::InstancesSetNameRequest::Representation
12730
+ command.request_object = instances_set_name_request_object
12731
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
12732
+ command.response_class = Google::Apis::ComputeV1::Operation
12733
+ command.params['project'] = project unless project.nil?
12734
+ command.params['zone'] = zone unless zone.nil?
12735
+ command.params['instance'] = instance unless instance.nil?
12736
+ command.query['requestId'] = request_id unless request_id.nil?
12737
+ command.query['fields'] = fields unless fields.nil?
12738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12739
+ command.query['userIp'] = user_ip unless user_ip.nil?
12740
+ execute_or_queue_command(command, &block)
12741
+ end
12742
+
12600
12743
  # Sets an instance's scheduling options. You can only call this method on a
12601
12744
  # stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
12602
12745
  # Instance Life Cycle for more information on the possible instance states. For
@@ -14810,8 +14953,7 @@ module Google
14810
14953
  execute_or_queue_command(command, &block)
14811
14954
  end
14812
14955
 
14813
- # Returns the specified machine image. Gets a list of available machine images
14814
- # by making a list() request.
14956
+ # Returns the specified machine image.
14815
14957
  # @param [String] project
14816
14958
  # Project ID for this request.
14817
14959
  # @param [String] machine_image
@@ -15204,8 +15346,7 @@ module Google
15204
15346
  execute_or_queue_command(command, &block)
15205
15347
  end
15206
15348
 
15207
- # Returns the specified machine type. Gets a list of available machine types by
15208
- # making a list() request.
15349
+ # Returns the specified machine type.
15209
15350
  # @param [String] project
15210
15351
  # Project ID for this request.
15211
15352
  # @param [String] zone
@@ -16352,8 +16493,7 @@ module Google
16352
16493
  execute_or_queue_command(command, &block)
16353
16494
  end
16354
16495
 
16355
- # Returns the specified network endpoint group. Gets a list of available network
16356
- # endpoint groups by making a list() request.
16496
+ # Returns the specified network endpoint group.
16357
16497
  # @param [String] project
16358
16498
  # Project ID for this request.
16359
16499
  # @param [String] zone
@@ -17558,8 +17698,7 @@ module Google
17558
17698
  execute_or_queue_command(command, &block)
17559
17699
  end
17560
17700
 
17561
- # Returns the specified network. Gets a list of available networks by making a
17562
- # list() request.
17701
+ # Returns the specified network.
17563
17702
  # @param [String] project
17564
17703
  # Project ID for this request.
17565
17704
  # @param [String] network
@@ -18982,8 +19121,7 @@ module Google
18982
19121
  execute_or_queue_command(command, &block)
18983
19122
  end
18984
19123
 
18985
- # Returns the specified node template. Gets a list of available node templates
18986
- # by making a list() request.
19124
+ # Returns the specified node template.
18987
19125
  # @param [String] project
18988
19126
  # Project ID for this request.
18989
19127
  # @param [String] region
@@ -19388,8 +19526,7 @@ module Google
19388
19526
  execute_or_queue_command(command, &block)
19389
19527
  end
19390
19528
 
19391
- # Returns the specified node type. Gets a list of available node types by making
19392
- # a list() request.
19529
+ # Returns the specified node type.
19393
19530
  # @param [String] project
19394
19531
  # Project ID for this request.
19395
19532
  # @param [String] zone
@@ -22186,8 +22323,7 @@ module Google
22186
22323
  execute_or_queue_command(command, &block)
22187
22324
  end
22188
22325
 
22189
- # Returns the specified commitment resource. Gets a list of available
22190
- # commitments by making a list() request.
22326
+ # Returns the specified commitment resource.
22191
22327
  # @param [String] project
22192
22328
  # Project ID for this request.
22193
22329
  # @param [String] region
@@ -22428,8 +22564,7 @@ module Google
22428
22564
  execute_or_queue_command(command, &block)
22429
22565
  end
22430
22566
 
22431
- # Returns the specified regional disk type. Gets a list of available disk types
22432
- # by making a list() request.
22567
+ # Returns the specified regional disk type.
22433
22568
  # @param [String] project
22434
22569
  # Project ID for this request.
22435
22570
  # @param [String] region
@@ -23593,8 +23728,7 @@ module Google
23593
23728
  execute_or_queue_command(command, &block)
23594
23729
  end
23595
23730
 
23596
- # Returns the specified HealthCheck resource. Gets a list of available health
23597
- # checks by making a list() request.
23731
+ # Returns the specified HealthCheck resource.
23598
23732
  # @param [String] project
23599
23733
  # Project ID for this request.
23600
23734
  # @param [String] region
@@ -25369,6 +25503,239 @@ module Google
25369
25503
  execute_or_queue_command(command, &block)
25370
25504
  end
25371
25505
 
25506
+ # Deletes the specified instance template. Deleting an instance template is
25507
+ # permanent and cannot be undone.
25508
+ # @param [String] project
25509
+ # Project ID for this request.
25510
+ # @param [String] region
25511
+ # The name of the region for this request.
25512
+ # @param [String] instance_template
25513
+ # The name of the instance template to delete.
25514
+ # @param [String] request_id
25515
+ # An optional request ID to identify requests. Specify a unique request ID so
25516
+ # that if you must retry your request, the server will know to ignore the
25517
+ # request if it has already been completed. For example, consider a situation
25518
+ # where you make an initial request and the request times out. If you make the
25519
+ # request again with the same request ID, the server can check if original
25520
+ # operation with the same request ID was received, and if so, will ignore the
25521
+ # second request. This prevents clients from accidentally creating duplicate
25522
+ # commitments. The request ID must be a valid UUID with the exception that zero
25523
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25524
+ # @param [String] fields
25525
+ # Selector specifying which fields to include in a partial response.
25526
+ # @param [String] quota_user
25527
+ # Available to use for quota purposes for server-side applications. Can be any
25528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25529
+ # @param [String] user_ip
25530
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25531
+ # @param [Google::Apis::RequestOptions] options
25532
+ # Request-specific options
25533
+ #
25534
+ # @yield [result, err] Result & error if block supplied
25535
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25536
+ # @yieldparam err [StandardError] error object if request failed
25537
+ #
25538
+ # @return [Google::Apis::ComputeV1::Operation]
25539
+ #
25540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25543
+ def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25544
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25545
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25546
+ command.response_class = Google::Apis::ComputeV1::Operation
25547
+ command.params['project'] = project unless project.nil?
25548
+ command.params['region'] = region unless region.nil?
25549
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25550
+ command.query['requestId'] = request_id unless request_id.nil?
25551
+ command.query['fields'] = fields unless fields.nil?
25552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25553
+ command.query['userIp'] = user_ip unless user_ip.nil?
25554
+ execute_or_queue_command(command, &block)
25555
+ end
25556
+
25557
+ # Returns the specified instance template.
25558
+ # @param [String] project
25559
+ # Project ID for this request.
25560
+ # @param [String] region
25561
+ # The name of the region for this request.
25562
+ # @param [String] instance_template
25563
+ # The name of the instance template.
25564
+ # @param [String] fields
25565
+ # Selector specifying which fields to include in a partial response.
25566
+ # @param [String] quota_user
25567
+ # Available to use for quota purposes for server-side applications. Can be any
25568
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25569
+ # @param [String] user_ip
25570
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25571
+ # @param [Google::Apis::RequestOptions] options
25572
+ # Request-specific options
25573
+ #
25574
+ # @yield [result, err] Result & error if block supplied
25575
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplate] parsed result object
25576
+ # @yieldparam err [StandardError] error object if request failed
25577
+ #
25578
+ # @return [Google::Apis::ComputeV1::InstanceTemplate]
25579
+ #
25580
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25581
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25582
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25583
+ def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25584
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25585
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25586
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplate
25587
+ command.params['project'] = project unless project.nil?
25588
+ command.params['region'] = region unless region.nil?
25589
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25590
+ command.query['fields'] = fields unless fields.nil?
25591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25592
+ command.query['userIp'] = user_ip unless user_ip.nil?
25593
+ execute_or_queue_command(command, &block)
25594
+ end
25595
+
25596
+ # Creates an instance template in the specified project and region using the
25597
+ # global instance template whose URL is included in the request.
25598
+ # @param [String] project
25599
+ # Project ID for this request.
25600
+ # @param [String] region
25601
+ # The name of the region for this request.
25602
+ # @param [Google::Apis::ComputeV1::InstanceTemplate] instance_template_object
25603
+ # @param [String] request_id
25604
+ # An optional request ID to identify requests. Specify a unique request ID so
25605
+ # that if you must retry your request, the server will know to ignore the
25606
+ # request if it has already been completed. For example, consider a situation
25607
+ # where you make an initial request and the request times out. If you make the
25608
+ # request again with the same request ID, the server can check if original
25609
+ # operation with the same request ID was received, and if so, will ignore the
25610
+ # second request. This prevents clients from accidentally creating duplicate
25611
+ # commitments. The request ID must be a valid UUID with the exception that zero
25612
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25613
+ # @param [String] fields
25614
+ # Selector specifying which fields to include in a partial response.
25615
+ # @param [String] quota_user
25616
+ # Available to use for quota purposes for server-side applications. Can be any
25617
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25618
+ # @param [String] user_ip
25619
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25620
+ # @param [Google::Apis::RequestOptions] options
25621
+ # Request-specific options
25622
+ #
25623
+ # @yield [result, err] Result & error if block supplied
25624
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25625
+ # @yieldparam err [StandardError] error object if request failed
25626
+ #
25627
+ # @return [Google::Apis::ComputeV1::Operation]
25628
+ #
25629
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25630
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25631
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25632
+ def insert_region_instance_template(project, region, instance_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25633
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
25634
+ command.request_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25635
+ command.request_object = instance_template_object
25636
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25637
+ command.response_class = Google::Apis::ComputeV1::Operation
25638
+ command.params['project'] = project unless project.nil?
25639
+ command.params['region'] = region unless region.nil?
25640
+ command.query['requestId'] = request_id unless request_id.nil?
25641
+ command.query['fields'] = fields unless fields.nil?
25642
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25643
+ command.query['userIp'] = user_ip unless user_ip.nil?
25644
+ execute_or_queue_command(command, &block)
25645
+ end
25646
+
25647
+ # Retrieves a list of instance templates that are contained within the specified
25648
+ # project and region.
25649
+ # @param [String] project
25650
+ # Project ID for this request.
25651
+ # @param [String] region
25652
+ # The name of the regions for this request.
25653
+ # @param [String] filter
25654
+ # A filter expression that filters resources listed in the response. Most
25655
+ # Compute resources support two types of filter expressions: expressions that
25656
+ # support regular expressions and expressions that follow API improvement
25657
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
25658
+ # field name, an operator, and the value that you want to use for filtering. The
25659
+ # value must be a string, a number, or a boolean. The operator must be either `=`
25660
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
25661
+ # Engine instances, you can exclude instances named `example-instance` by
25662
+ # specifying `name != example-instance`. The `:` operator can be used with
25663
+ # string fields to match substrings. For non-string fields it is equivalent to
25664
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
25665
+ # been defined. For example, to find all objects with `owner` label use: ```
25666
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
25667
+ # specify `scheduling.automaticRestart = false` to include instances only if
25668
+ # they are not scheduled for automatic restarts. You can use filtering on nested
25669
+ # fields to filter based on resource labels. To filter on multiple expressions,
25670
+ # provide each separate expression within parentheses. For example: ``` (
25671
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
25672
+ # default, each expression is an `AND` expression. However, you can include `AND`
25673
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
25674
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
25675
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
25676
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
25677
+ # expression with or without quotes or against multiple parenthesized
25678
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
25679
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
25680
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
25681
+ # regular expression using Google RE2 library syntax. The literal value must
25682
+ # match the entire field. For example, to filter for instances that do not end
25683
+ # with name "instance", you would use `name ne .*instance`.
25684
+ # @param [Fixnum] max_results
25685
+ # The maximum number of results per page that should be returned. If the number
25686
+ # of available results is larger than `maxResults`, Compute Engine returns a `
25687
+ # nextPageToken` that can be used to get the next page of results in subsequent
25688
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25689
+ # @param [String] order_by
25690
+ # Sorts list results by a certain order. By default, results are returned in
25691
+ # alphanumerical order based on the resource name. You can also sort results in
25692
+ # descending order based on the creation timestamp using `orderBy="
25693
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
25694
+ # field in reverse chronological order (newest result first). Use this to sort
25695
+ # resources like operations so that the newest operation is returned first.
25696
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25697
+ # @param [String] page_token
25698
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25699
+ # by a previous list request to get the next page of results.
25700
+ # @param [Boolean] return_partial_success
25701
+ # Opt-in for partial success behavior which provides partial results in case of
25702
+ # failure. The default value is false.
25703
+ # @param [String] fields
25704
+ # Selector specifying which fields to include in a partial response.
25705
+ # @param [String] quota_user
25706
+ # Available to use for quota purposes for server-side applications. Can be any
25707
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25708
+ # @param [String] user_ip
25709
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25710
+ # @param [Google::Apis::RequestOptions] options
25711
+ # Request-specific options
25712
+ #
25713
+ # @yield [result, err] Result & error if block supplied
25714
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplateList] parsed result object
25715
+ # @yieldparam err [StandardError] error object if request failed
25716
+ #
25717
+ # @return [Google::Apis::ComputeV1::InstanceTemplateList]
25718
+ #
25719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25722
+ def list_region_instance_templates(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25723
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
25724
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplateList::Representation
25725
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplateList
25726
+ command.params['project'] = project unless project.nil?
25727
+ command.params['region'] = region unless region.nil?
25728
+ command.query['filter'] = filter unless filter.nil?
25729
+ command.query['maxResults'] = max_results unless max_results.nil?
25730
+ command.query['orderBy'] = order_by unless order_by.nil?
25731
+ command.query['pageToken'] = page_token unless page_token.nil?
25732
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
25733
+ command.query['fields'] = fields unless fields.nil?
25734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25735
+ command.query['userIp'] = user_ip unless user_ip.nil?
25736
+ execute_or_queue_command(command, &block)
25737
+ end
25738
+
25372
25739
  # Creates multiple instances in a given region. Count specifies the number of
25373
25740
  # instances to create.
25374
25741
  # @param [String] project
@@ -25473,8 +25840,7 @@ module Google
25473
25840
  execute_or_queue_command(command, &block)
25474
25841
  end
25475
25842
 
25476
- # Returns the specified network endpoint group. Gets a list of available network
25477
- # endpoint groups by making a list() request.
25843
+ # Returns the specified network endpoint group.
25478
25844
  # @param [String] project
25479
25845
  # Project ID for this request.
25480
25846
  # @param [String] region
@@ -27929,8 +28295,7 @@ module Google
27929
28295
  execute_or_queue_command(command, &block)
27930
28296
  end
27931
28297
 
27932
- # Returns the specified TargetHttpProxy resource in the specified region. Gets a
27933
- # list of available target HTTP proxies by making a list() request.
28298
+ # Returns the specified TargetHttpProxy resource in the specified region.
27934
28299
  # @param [String] project
27935
28300
  # Project ID for this request.
27936
28301
  # @param [String] region
@@ -28215,8 +28580,7 @@ module Google
28215
28580
  execute_or_queue_command(command, &block)
28216
28581
  end
28217
28582
 
28218
- # Returns the specified TargetHttpsProxy resource in the specified region. Gets
28219
- # a list of available target HTTP proxies by making a list() request.
28583
+ # Returns the specified TargetHttpsProxy resource in the specified region.
28220
28584
  # @param [String] project
28221
28585
  # Project ID for this request.
28222
28586
  # @param [String] region
@@ -28833,8 +29197,7 @@ module Google
28833
29197
  execute_or_queue_command(command, &block)
28834
29198
  end
28835
29199
 
28836
- # Returns the specified UrlMap resource. Gets a list of available URL maps by
28837
- # making a list() request.
29200
+ # Returns the specified UrlMap resource.
28838
29201
  # @param [String] project
28839
29202
  # Project ID for this request.
28840
29203
  # @param [String] region
@@ -29143,14 +29506,13 @@ module Google
29143
29506
  execute_or_queue_command(command, &block)
29144
29507
  end
29145
29508
 
29146
- # Returns the specified Region resource. Gets a list of available regions by
29147
- # making a list() request. To decrease latency for this method, you can
29148
- # optionally omit any unneeded information from the response by using a field
29149
- # mask. This practice is especially recommended for unused quota information (
29150
- # the `quotas` field). To exclude one or more fields, set your request's `fields`
29151
- # query parameter to only include the fields you need. For example, to only
29152
- # include the `id` and `selfLink` fields, add the query parameter `?fields=id,
29153
- # selfLink` to your request.
29509
+ # Returns the specified Region resource. To decrease latency for this method,
29510
+ # you can optionally omit any unneeded information from the response by using a
29511
+ # field mask. This practice is especially recommended for unused quota
29512
+ # information (the `quotas` field). To exclude one or more fields, set your
29513
+ # request's `fields` query parameter to only include the fields you need. For
29514
+ # example, to only include the `id` and `selfLink` fields, add the query
29515
+ # parameter `?fields=id,selfLink` to your request.
29154
29516
  # @param [String] project
29155
29517
  # Project ID for this request.
29156
29518
  # @param [String] region
@@ -30450,8 +30812,7 @@ module Google
30450
30812
  execute_or_queue_command(command, &block)
30451
30813
  end
30452
30814
 
30453
- # Returns the specified Router resource. Gets a list of available routers by
30454
- # making a list() request.
30815
+ # Returns the specified Router resource.
30455
30816
  # @param [String] project
30456
30817
  # Project ID for this request.
30457
30818
  # @param [String] region
@@ -30967,8 +31328,7 @@ module Google
30967
31328
  execute_or_queue_command(command, &block)
30968
31329
  end
30969
31330
 
30970
- # Returns the specified Route resource. Gets a list of available routes by
30971
- # making a list() request.
31331
+ # Returns the specified Route resource.
30972
31332
  # @param [String] project
30973
31333
  # Project ID for this request.
30974
31334
  # @param [String] route
@@ -32369,8 +32729,7 @@ module Google
32369
32729
  execute_or_queue_command(command, &block)
32370
32730
  end
32371
32731
 
32372
- # Returns the specified Snapshot resource. Gets a list of available snapshots by
32373
- # making a list() request.
32732
+ # Returns the specified Snapshot resource.
32374
32733
  # @param [String] project
32375
32734
  # Project ID for this request.
32376
32735
  # @param [String] snapshot
@@ -32848,8 +33207,7 @@ module Google
32848
33207
  execute_or_queue_command(command, &block)
32849
33208
  end
32850
33209
 
32851
- # Returns the specified SslCertificate resource. Gets a list of available SSL
32852
- # certificates by making a list() request.
33210
+ # Returns the specified SslCertificate resource.
32853
33211
  # @param [String] project
32854
33212
  # Project ID for this request.
32855
33213
  # @param [String] ssl_certificate
@@ -33205,8 +33563,7 @@ module Google
33205
33563
  execute_or_queue_command(command, &block)
33206
33564
  end
33207
33565
 
33208
- # Returns the specified SSL policy resource. Gets a list of available SSL
33209
- # policies by making a list() request.
33566
+ # Returns the specified SSL policy resource.
33210
33567
  # @param [String] project
33211
33568
  # Project ID for this request.
33212
33569
  # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
@@ -33680,8 +34037,7 @@ module Google
33680
34037
  execute_or_queue_command(command, &block)
33681
34038
  end
33682
34039
 
33683
- # Returns the specified subnetwork. Gets a list of available subnetworks list()
33684
- # request.
34040
+ # Returns the specified subnetwork.
33685
34041
  # @param [String] project
33686
34042
  # Project ID for this request.
33687
34043
  # @param [String] region
@@ -34612,8 +34968,7 @@ module Google
34612
34968
  execute_or_queue_command(command, &block)
34613
34969
  end
34614
34970
 
34615
- # Returns the specified TargetHttpProxy resource. Gets a list of available
34616
- # target HTTP proxies by making a list() request.
34971
+ # Returns the specified TargetHttpProxy resource.
34617
34972
  # @param [String] project
34618
34973
  # Project ID for this request.
34619
34974
  # @param [String] target_http_proxy
@@ -35032,8 +35387,7 @@ module Google
35032
35387
  execute_or_queue_command(command, &block)
35033
35388
  end
35034
35389
 
35035
- # Returns the specified TargetHttpsProxy resource. Gets a list of available
35036
- # target HTTPS proxies by making a list() request.
35390
+ # Returns the specified TargetHttpsProxy resource.
35037
35391
  # @param [String] project
35038
35392
  # Project ID for this request.
35039
35393
  # @param [String] target_https_proxy
@@ -35660,8 +36014,7 @@ module Google
35660
36014
  execute_or_queue_command(command, &block)
35661
36015
  end
35662
36016
 
35663
- # Returns the specified TargetInstance resource. Gets a list of available target
35664
- # instances by making a list() request.
36017
+ # Returns the specified TargetInstance resource.
35665
36018
  # @param [String] project
35666
36019
  # Project ID for this request.
35667
36020
  # @param [String] zone
@@ -36095,8 +36448,7 @@ module Google
36095
36448
  execute_or_queue_command(command, &block)
36096
36449
  end
36097
36450
 
36098
- # Returns the specified target pool. Gets a list of available target pools by
36099
- # making a list() request.
36451
+ # Returns the specified target pool.
36100
36452
  # @param [String] project
36101
36453
  # Project ID for this request.
36102
36454
  # @param [String] region
@@ -36529,8 +36881,7 @@ module Google
36529
36881
  execute_or_queue_command(command, &block)
36530
36882
  end
36531
36883
 
36532
- # Returns the specified TargetSslProxy resource. Gets a list of available target
36533
- # SSL proxies by making a list() request.
36884
+ # Returns the specified TargetSslProxy resource.
36534
36885
  # @param [String] project
36535
36886
  # Project ID for this request.
36536
36887
  # @param [String] target_ssl_proxy
@@ -37102,8 +37453,7 @@ module Google
37102
37453
  execute_or_queue_command(command, &block)
37103
37454
  end
37104
37455
 
37105
- # Returns the specified TargetTcpProxy resource. Gets a list of available target
37106
- # TCP proxies by making a list() request.
37456
+ # Returns the specified TargetTcpProxy resource.
37107
37457
  # @param [String] project
37108
37458
  # Project ID for this request.
37109
37459
  # @param [String] target_tcp_proxy
@@ -37522,8 +37872,7 @@ module Google
37522
37872
  execute_or_queue_command(command, &block)
37523
37873
  end
37524
37874
 
37525
- # Returns the specified target VPN gateway. Gets a list of available target VPN
37526
- # gateways by making a list() request.
37875
+ # Returns the specified target VPN gateway.
37527
37876
  # @param [String] project
37528
37877
  # Project ID for this request.
37529
37878
  # @param [String] region
@@ -37903,8 +38252,7 @@ module Google
37903
38252
  execute_or_queue_command(command, &block)
37904
38253
  end
37905
38254
 
37906
- # Returns the specified UrlMap resource. Gets a list of available URL maps by
37907
- # making a list() request.
38255
+ # Returns the specified UrlMap resource.
37908
38256
  # @param [String] project
37909
38257
  # Project ID for this request.
37910
38258
  # @param [String] url_map
@@ -38416,8 +38764,7 @@ module Google
38416
38764
  execute_or_queue_command(command, &block)
38417
38765
  end
38418
38766
 
38419
- # Returns the specified VPN gateway. Gets a list of available VPN gateways by
38420
- # making a list() request.
38767
+ # Returns the specified VPN gateway.
38421
38768
  # @param [String] project
38422
38769
  # Project ID for this request.
38423
38770
  # @param [String] region
@@ -38879,8 +39226,7 @@ module Google
38879
39226
  execute_or_queue_command(command, &block)
38880
39227
  end
38881
39228
 
38882
- # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels
38883
- # by making a list() request.
39229
+ # Returns the specified VpnTunnel resource.
38884
39230
  # @param [String] project
38885
39231
  # Project ID for this request.
38886
39232
  # @param [String] region
@@ -39331,8 +39677,7 @@ module Google
39331
39677
  execute_or_queue_command(command, &block)
39332
39678
  end
39333
39679
 
39334
- # Returns the specified Zone resource. Gets a list of available zones by making
39335
- # a list() request.
39680
+ # Returns the specified Zone resource.
39336
39681
  # @param [String] project
39337
39682
  # Project ID for this request.
39338
39683
  # @param [String] zone