google-apis-compute_v1 0.60.0 → 0.62.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e89ab66d19be500a44392d9c33371a8e94e51abde0773b814c733a2528d68713
4
- data.tar.gz: 7d553bec3703f265011255a59b11c2f434a3d0b3051605a55f857e1aecd5735b
3
+ metadata.gz: e8bd54bba4abc9855ec719fcf95b3aaa4b371cdaa1de0523a8da97bd02368229
4
+ data.tar.gz: 8ed8a0d3bd89690b2788338c767d04265a87d1c190e54c55fb07b85cec204898
5
5
  SHA512:
6
- metadata.gz: abd427a0d8cb5ce61d63639df0d7187ac1882e66465180e1ae533a586a591d1350a25a487821b526d4eed0bfb41789fb4b86152dfec08f30f571676ea8799d48
7
- data.tar.gz: bf3b7a165e78ba460175a611ab9dcb44212b80adbd42698c2bebb3967fccf52678fedbf7ce5151349bdf2ce7ca45355212da824382f2585905dc4d798e735740
6
+ metadata.gz: 8288c84ccaa99590c2061340ca27f45ee7685b041cc8dd988a147858557863a31a7b2b765e12d501236d1fa5cfee67d0730a2486183d2c3bea870aa18f11bfa7
7
+ data.tar.gz: 4c42fe365c4f4d631de396bd320c26228d0b83aa8e038d2533fd3233e884d6eea117f55f2ce54baaa74d5de77d69a4b850af9d180b3b61b5822f82c3b9ebdefb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.62.0 (2023-02-19)
4
+
5
+ * Regenerated from discovery document revision 20230210
6
+ * Regenerated using generator version 0.12.0
7
+
8
+ ### v0.61.0 (2023-02-12)
9
+
10
+ * Regenerated from discovery document revision 20230201
11
+
3
12
  ### v0.60.0 (2023-01-29)
4
13
 
5
14
  * Regenerated from discovery document revision 20230119
@@ -466,8 +466,9 @@ module Google
466
466
 
467
467
  # The first IPv6 address of the external IPv6 range associated with this
468
468
  # instance, prefix length is stored in externalIpv6PrefixLength in
469
- # ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork
470
- # associated with the instance will be allocated dynamically.
469
+ # ipv6AccessConfig. To use a static external IP address, it must be unused and
470
+ # in the same region as the instance's zone. If not specified, GCP will
471
+ # automatically assign an external IPv6 address from the instance's subnetwork.
471
472
  # Corresponds to the JSON property `externalIpv6`
472
473
  # @return [String]
473
474
  attr_accessor :external_ipv6
@@ -1123,11 +1124,11 @@ module Google
1123
1124
  end
1124
1125
  end
1125
1126
 
1126
- #
1127
+ # [Output Only] Contains output only fields.
1127
1128
  class AllocationResourceStatus
1128
1129
  include Google::Apis::Core::Hashable
1129
1130
 
1130
- #
1131
+ # Contains Properties set for the reservation.
1131
1132
  # Corresponds to the JSON property `specificSkuAllocation`
1132
1133
  # @return [Google::Apis::ComputeV1::AllocationResourceStatusSpecificSkuAllocation]
1133
1134
  attr_accessor :specific_sku_allocation
@@ -1142,11 +1143,11 @@ module Google
1142
1143
  end
1143
1144
  end
1144
1145
 
1145
- #
1146
+ # Contains Properties set for the reservation.
1146
1147
  class AllocationResourceStatusSpecificSkuAllocation
1147
1148
  include Google::Apis::Core::Hashable
1148
1149
 
1149
- #
1150
+ # ID of the instance template used to populate reservation properties.
1150
1151
  # Corresponds to the JSON property `sourceInstanceTemplateId`
1151
1152
  # @return [String]
1152
1153
  attr_accessor :source_instance_template_id
@@ -4649,22 +4650,22 @@ module Google
4649
4650
  # kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-
4650
4651
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
4651
4652
  # email address that represents a Google group. For example, `admins@example.com`
4652
- # . * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
4653
- # identifier) representing a user that has been recently deleted. For example, `
4654
- # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
4655
- # value reverts to `user:`emailid`` and the recovered user retains the role in
4656
- # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
4657
- # address (plus unique identifier) representing a service account that has been
4658
- # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
4653
+ # . * `domain:`domain``: The G Suite domain (primary) that represents all the
4654
+ # users of that domain. For example, `google.com` or `example.com`. * `deleted:
4655
+ # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
4656
+ # representing a user that has been recently deleted. For example, `alice@
4657
+ # example.com?uid=123456789012345678901`. If the user is recovered, this value
4658
+ # reverts to `user:`emailid`` and the recovered user retains the role in the
4659
+ # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
4660
+ # (plus unique identifier) representing a service account that has been recently
4661
+ # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
4659
4662
  # 123456789012345678901`. If the service account is undeleted, this value
4660
4663
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
4661
4664
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
4662
4665
  # An email address (plus unique identifier) representing a Google group that has
4663
4666
  # been recently deleted. For example, `admins@example.com?uid=
4664
4667
  # 123456789012345678901`. If the group is recovered, this value reverts to `
4665
- # group:`emailid`` and the recovered group retains the role in the binding. * `
4666
- # domain:`domain``: The G Suite domain (primary) that represents all the users
4667
- # of that domain. For example, `google.com` or `example.com`.
4668
+ # group:`emailid`` and the recovered group retains the role in the binding.
4668
4669
  # Corresponds to the JSON property `members`
4669
4670
  # @return [Array<String>]
4670
4671
  attr_accessor :members
@@ -12229,10 +12230,13 @@ module Google
12229
12230
  # @return [Fixnum]
12230
12231
  attr_accessor :disk_size_gb
12231
12232
 
12232
- # The name of the image family to which this image belongs. You can create disks
12233
- # by specifying an image family instead of a specific image name. The image
12234
- # family always returns its latest image that is not deprecated. The name of the
12235
- # image family must comply with RFC1035.
12233
+ # The name of the image family to which this image belongs. The image family
12234
+ # name can be from a publicly managed image family provided by Compute Engine,
12235
+ # or from a custom image family you create. For example, centos-stream-9 is a
12236
+ # publicly available image family. For more information, see Image family best
12237
+ # practices. When creating disks, you can specify an image family instead of a
12238
+ # specific image name. The image family always returns its latest image that is
12239
+ # not deprecated. The name of the image family must comply with RFC1035.
12236
12240
  # Corresponds to the JSON property `family`
12237
12241
  # @return [String]
12238
12242
  attr_accessor :family
@@ -15795,6 +15799,12 @@ module Google
15795
15799
  # @return [Google::Apis::ComputeV1::InstanceProperties]
15796
15800
  attr_accessor :properties
15797
15801
 
15802
+ # [Output Only] URL of the region where the instance template resides. Only
15803
+ # applicable for regional resources.
15804
+ # Corresponds to the JSON property `region`
15805
+ # @return [String]
15806
+ attr_accessor :region
15807
+
15798
15808
  # [Output Only] The URL for this instance template. The server defines this URL.
15799
15809
  # Corresponds to the JSON property `selfLink`
15800
15810
  # @return [String]
@@ -15826,12 +15836,130 @@ module Google
15826
15836
  @kind = args[:kind] if args.key?(:kind)
15827
15837
  @name = args[:name] if args.key?(:name)
15828
15838
  @properties = args[:properties] if args.key?(:properties)
15839
+ @region = args[:region] if args.key?(:region)
15829
15840
  @self_link = args[:self_link] if args.key?(:self_link)
15830
15841
  @source_instance = args[:source_instance] if args.key?(:source_instance)
15831
15842
  @source_instance_params = args[:source_instance_params] if args.key?(:source_instance_params)
15832
15843
  end
15833
15844
  end
15834
15845
 
15846
+ # Contains a list of InstanceTemplatesScopedList.
15847
+ class InstanceTemplateAggregatedList
15848
+ include Google::Apis::Core::Hashable
15849
+
15850
+ # [Output Only] Unique identifier for the resource; defined by the server.
15851
+ # Corresponds to the JSON property `id`
15852
+ # @return [String]
15853
+ attr_accessor :id
15854
+
15855
+ # A list of InstanceTemplatesScopedList resources.
15856
+ # Corresponds to the JSON property `items`
15857
+ # @return [Hash<String,Google::Apis::ComputeV1::InstanceTemplatesScopedList>]
15858
+ attr_accessor :items
15859
+
15860
+ # Type of resource.
15861
+ # Corresponds to the JSON property `kind`
15862
+ # @return [String]
15863
+ attr_accessor :kind
15864
+
15865
+ # [Output Only] This token allows you to get the next page of results for list
15866
+ # requests. If the number of results is larger than maxResults, use the
15867
+ # nextPageToken as a value for the query parameter pageToken in the next list
15868
+ # request. Subsequent list requests will have their own nextPageToken to
15869
+ # continue paging through the results.
15870
+ # Corresponds to the JSON property `nextPageToken`
15871
+ # @return [String]
15872
+ attr_accessor :next_page_token
15873
+
15874
+ # [Output Only] Server-defined URL for this resource.
15875
+ # Corresponds to the JSON property `selfLink`
15876
+ # @return [String]
15877
+ attr_accessor :self_link
15878
+
15879
+ # [Output Only] Informational warning message.
15880
+ # Corresponds to the JSON property `warning`
15881
+ # @return [Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Warning]
15882
+ attr_accessor :warning
15883
+
15884
+ def initialize(**args)
15885
+ update!(**args)
15886
+ end
15887
+
15888
+ # Update properties of this object
15889
+ def update!(**args)
15890
+ @id = args[:id] if args.key?(:id)
15891
+ @items = args[:items] if args.key?(:items)
15892
+ @kind = args[:kind] if args.key?(:kind)
15893
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
15894
+ @self_link = args[:self_link] if args.key?(:self_link)
15895
+ @warning = args[:warning] if args.key?(:warning)
15896
+ end
15897
+
15898
+ # [Output Only] Informational warning message.
15899
+ class Warning
15900
+ include Google::Apis::Core::Hashable
15901
+
15902
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
15903
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
15904
+ # Corresponds to the JSON property `code`
15905
+ # @return [String]
15906
+ attr_accessor :code
15907
+
15908
+ # [Output Only] Metadata about this warning in key: value format. For example: "
15909
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
15910
+ # Corresponds to the JSON property `data`
15911
+ # @return [Array<Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Warning::Datum>]
15912
+ attr_accessor :data
15913
+
15914
+ # [Output Only] A human-readable description of the warning code.
15915
+ # Corresponds to the JSON property `message`
15916
+ # @return [String]
15917
+ attr_accessor :message
15918
+
15919
+ def initialize(**args)
15920
+ update!(**args)
15921
+ end
15922
+
15923
+ # Update properties of this object
15924
+ def update!(**args)
15925
+ @code = args[:code] if args.key?(:code)
15926
+ @data = args[:data] if args.key?(:data)
15927
+ @message = args[:message] if args.key?(:message)
15928
+ end
15929
+
15930
+ #
15931
+ class Datum
15932
+ include Google::Apis::Core::Hashable
15933
+
15934
+ # [Output Only] A key that provides more detail on the warning being returned.
15935
+ # For example, for warnings where there are no results in a list request for a
15936
+ # particular zone, this key might be scope and the key value might be the zone
15937
+ # name. Other examples might be a key indicating a deprecated resource and a
15938
+ # suggested replacement, or a warning about invalid network settings (for
15939
+ # example, if an instance attempts to perform IP forwarding but is not enabled
15940
+ # for IP forwarding).
15941
+ # Corresponds to the JSON property `key`
15942
+ # @return [String]
15943
+ attr_accessor :key
15944
+
15945
+ # [Output Only] A warning data value corresponding to the key.
15946
+ # Corresponds to the JSON property `value`
15947
+ # @return [String]
15948
+ attr_accessor :value
15949
+
15950
+ def initialize(**args)
15951
+ update!(**args)
15952
+ end
15953
+
15954
+ # Update properties of this object
15955
+ def update!(**args)
15956
+ @key = args[:key] if args.key?(:key)
15957
+ @value = args[:value] if args.key?(:value)
15958
+ end
15959
+ end
15960
+ end
15961
+ end
15962
+
15835
15963
  # A list of instance templates.
15836
15964
  class InstanceTemplateList
15837
15965
  include Google::Apis::Core::Hashable
@@ -15950,6 +16078,98 @@ module Google
15950
16078
  end
15951
16079
  end
15952
16080
 
16081
+ #
16082
+ class InstanceTemplatesScopedList
16083
+ include Google::Apis::Core::Hashable
16084
+
16085
+ # [Output Only] A list of instance templates that are contained within the
16086
+ # specified project and zone.
16087
+ # Corresponds to the JSON property `instanceTemplates`
16088
+ # @return [Array<Google::Apis::ComputeV1::InstanceTemplate>]
16089
+ attr_accessor :instance_templates
16090
+
16091
+ # [Output Only] An informational warning that replaces the list of instance
16092
+ # templates when the list is empty.
16093
+ # Corresponds to the JSON property `warning`
16094
+ # @return [Google::Apis::ComputeV1::InstanceTemplatesScopedList::Warning]
16095
+ attr_accessor :warning
16096
+
16097
+ def initialize(**args)
16098
+ update!(**args)
16099
+ end
16100
+
16101
+ # Update properties of this object
16102
+ def update!(**args)
16103
+ @instance_templates = args[:instance_templates] if args.key?(:instance_templates)
16104
+ @warning = args[:warning] if args.key?(:warning)
16105
+ end
16106
+
16107
+ # [Output Only] An informational warning that replaces the list of instance
16108
+ # templates when the list is empty.
16109
+ class Warning
16110
+ include Google::Apis::Core::Hashable
16111
+
16112
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
16113
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
16114
+ # Corresponds to the JSON property `code`
16115
+ # @return [String]
16116
+ attr_accessor :code
16117
+
16118
+ # [Output Only] Metadata about this warning in key: value format. For example: "
16119
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
16120
+ # Corresponds to the JSON property `data`
16121
+ # @return [Array<Google::Apis::ComputeV1::InstanceTemplatesScopedList::Warning::Datum>]
16122
+ attr_accessor :data
16123
+
16124
+ # [Output Only] A human-readable description of the warning code.
16125
+ # Corresponds to the JSON property `message`
16126
+ # @return [String]
16127
+ attr_accessor :message
16128
+
16129
+ def initialize(**args)
16130
+ update!(**args)
16131
+ end
16132
+
16133
+ # Update properties of this object
16134
+ def update!(**args)
16135
+ @code = args[:code] if args.key?(:code)
16136
+ @data = args[:data] if args.key?(:data)
16137
+ @message = args[:message] if args.key?(:message)
16138
+ end
16139
+
16140
+ #
16141
+ class Datum
16142
+ include Google::Apis::Core::Hashable
16143
+
16144
+ # [Output Only] A key that provides more detail on the warning being returned.
16145
+ # For example, for warnings where there are no results in a list request for a
16146
+ # particular zone, this key might be scope and the key value might be the zone
16147
+ # name. Other examples might be a key indicating a deprecated resource and a
16148
+ # suggested replacement, or a warning about invalid network settings (for
16149
+ # example, if an instance attempts to perform IP forwarding but is not enabled
16150
+ # for IP forwarding).
16151
+ # Corresponds to the JSON property `key`
16152
+ # @return [String]
16153
+ attr_accessor :key
16154
+
16155
+ # [Output Only] A warning data value corresponding to the key.
16156
+ # Corresponds to the JSON property `value`
16157
+ # @return [String]
16158
+ attr_accessor :value
16159
+
16160
+ def initialize(**args)
16161
+ update!(**args)
16162
+ end
16163
+
16164
+ # Update properties of this object
16165
+ def update!(**args)
16166
+ @key = args[:key] if args.key?(:key)
16167
+ @value = args[:value] if args.key?(:value)
16168
+ end
16169
+ end
16170
+ end
16171
+ end
16172
+
15953
16173
  #
15954
16174
  class InstanceWithNamedPorts
15955
16175
  include Google::Apis::Core::Hashable
@@ -16267,6 +16487,32 @@ module Google
16267
16487
  end
16268
16488
  end
16269
16489
 
16490
+ #
16491
+ class InstancesSetNameRequest
16492
+ include Google::Apis::Core::Hashable
16493
+
16494
+ # The current name of this resource, used to prevent conflicts. Provide the
16495
+ # latest name when making a request to change name.
16496
+ # Corresponds to the JSON property `currentName`
16497
+ # @return [String]
16498
+ attr_accessor :current_name
16499
+
16500
+ # The name to be applied to the instance. Needs to be RFC 1035 compliant.
16501
+ # Corresponds to the JSON property `name`
16502
+ # @return [String]
16503
+ attr_accessor :name
16504
+
16505
+ def initialize(**args)
16506
+ update!(**args)
16507
+ end
16508
+
16509
+ # Update properties of this object
16510
+ def update!(**args)
16511
+ @current_name = args[:current_name] if args.key?(:current_name)
16512
+ @name = args[:name] if args.key?(:name)
16513
+ end
16514
+ end
16515
+
16270
16516
  #
16271
16517
  class InstancesSetServiceAccountRequest
16272
16518
  include Google::Apis::Core::Hashable
@@ -21692,7 +21938,10 @@ module Google
21692
21938
  # @return [String]
21693
21939
  attr_accessor :ipv6_access_type
21694
21940
 
21695
- # An IPv6 internal network address for this network interface.
21941
+ # An IPv6 internal network address for this network interface. To use a static
21942
+ # internal IP address, it must be unused and in the same region as the instance'
21943
+ # s zone. If not specified, GCP will automatically assign an internal IPv6
21944
+ # address from the instance's subnetwork.
21696
21945
  # Corresponds to the JSON property `ipv6Address`
21697
21946
  # @return [String]
21698
21947
  attr_accessor :ipv6_address
@@ -28768,7 +29017,14 @@ module Google
28768
29017
  # @return [String]
28769
29018
  attr_accessor :name
28770
29019
 
28771
- # [Output Only] Status information for Reservation resource.
29020
+ # Resource policies to be added to this reservation. The key is defined by user,
29021
+ # and the value is resource policy url. This is to define placement policy with
29022
+ # reservation.
29023
+ # Corresponds to the JSON property `resourcePolicies`
29024
+ # @return [Hash<String,String>]
29025
+ attr_accessor :resource_policies
29026
+
29027
+ # [Output Only] Contains output only fields.
28772
29028
  # Corresponds to the JSON property `resourceStatus`
28773
29029
  # @return [Google::Apis::ComputeV1::AllocationResourceStatus]
28774
29030
  attr_accessor :resource_status
@@ -28826,6 +29082,7 @@ module Google
28826
29082
  @id = args[:id] if args.key?(:id)
28827
29083
  @kind = args[:kind] if args.key?(:kind)
28828
29084
  @name = args[:name] if args.key?(:name)
29085
+ @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
28829
29086
  @resource_status = args[:resource_status] if args.key?(:resource_status)
28830
29087
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
28831
29088
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -32845,7 +33102,11 @@ module Google
32845
33102
  # CLOUD_ARMOR_INTERNAL_SERVICE: Cloud Armor internal service policies can be
32846
33103
  # configured to filter HTTP requests targeting services managed by Traffic
32847
33104
  # Director in a service mesh. They filter requests before the request is served
32848
- # from the application. This field can be set only at resource creation time.
33105
+ # from the application. - CLOUD_ARMOR_NETWORK: Cloud Armor network policies can
33106
+ # be configured to filter packets targeting network load balancing resources
33107
+ # such as backend services, target pools, target instances, and instances with
33108
+ # external IPs. They filter requests before the request is served from the
33109
+ # application. This field can be set only at resource creation time.
32849
33110
  # Corresponds to the JSON property `type`
32850
33111
  # @return [String]
32851
33112
  attr_accessor :type
@@ -41615,7 +41876,7 @@ module Google
41615
41876
  # request to modify or update labels. You must always provide an up-to-date
41616
41877
  # fingerprint hash in order to update or change labels, otherwise the request
41617
41878
  # will fail with error 412 conditionNotMet. To see the latest fingerprint, make
41618
- # a get() request to retrieve an VpnGateway.
41879
+ # a get() request to retrieve a VpnGateway.
41619
41880
  # Corresponds to the JSON property `labelFingerprint`
41620
41881
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
41621
41882
  # @return [String]
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeV1
18
18
  # Version of the google-apis-compute_v1 gem
19
- GEM_VERSION = "0.60.0"
19
+ GEM_VERSION = "0.62.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230119"
25
+ REVISION = "20230210"
26
26
  end
27
27
  end
28
28
  end
@@ -1906,6 +1906,24 @@ module Google
1906
1906
  include Google::Apis::Core::JsonObjectSupport
1907
1907
  end
1908
1908
 
1909
+ class InstanceTemplateAggregatedList
1910
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1911
+
1912
+ class Warning
1913
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1914
+
1915
+ class Datum
1916
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1917
+
1918
+ include Google::Apis::Core::JsonObjectSupport
1919
+ end
1920
+
1921
+ include Google::Apis::Core::JsonObjectSupport
1922
+ end
1923
+
1924
+ include Google::Apis::Core::JsonObjectSupport
1925
+ end
1926
+
1909
1927
  class InstanceTemplateList
1910
1928
  class Representation < Google::Apis::Core::JsonRepresentation; end
1911
1929
 
@@ -1924,6 +1942,24 @@ module Google
1924
1942
  include Google::Apis::Core::JsonObjectSupport
1925
1943
  end
1926
1944
 
1945
+ class InstanceTemplatesScopedList
1946
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1947
+
1948
+ class Warning
1949
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1950
+
1951
+ class Datum
1952
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1953
+
1954
+ include Google::Apis::Core::JsonObjectSupport
1955
+ end
1956
+
1957
+ include Google::Apis::Core::JsonObjectSupport
1958
+ end
1959
+
1960
+ include Google::Apis::Core::JsonObjectSupport
1961
+ end
1962
+
1927
1963
  class InstanceWithNamedPorts
1928
1964
  class Representation < Google::Apis::Core::JsonRepresentation; end
1929
1965
 
@@ -1996,6 +2032,12 @@ module Google
1996
2032
  include Google::Apis::Core::JsonObjectSupport
1997
2033
  end
1998
2034
 
2035
+ class InstancesSetNameRequest
2036
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2037
+
2038
+ include Google::Apis::Core::JsonObjectSupport
2039
+ end
2040
+
1999
2041
  class InstancesSetServiceAccountRequest
2000
2042
  class Representation < Google::Apis::Core::JsonRepresentation; end
2001
2043
 
@@ -9396,6 +9438,7 @@ module Google
9396
9438
  property :name, as: 'name'
9397
9439
  property :properties, as: 'properties', class: Google::Apis::ComputeV1::InstanceProperties, decorator: Google::Apis::ComputeV1::InstanceProperties::Representation
9398
9440
 
9441
+ property :region, as: 'region'
9399
9442
  property :self_link, as: 'selfLink'
9400
9443
  property :source_instance, as: 'sourceInstance'
9401
9444
  property :source_instance_params, as: 'sourceInstanceParams', class: Google::Apis::ComputeV1::SourceInstanceParams, decorator: Google::Apis::ComputeV1::SourceInstanceParams::Representation
@@ -9403,6 +9446,38 @@ module Google
9403
9446
  end
9404
9447
  end
9405
9448
 
9449
+ class InstanceTemplateAggregatedList
9450
+ # @private
9451
+ class Representation < Google::Apis::Core::JsonRepresentation
9452
+ property :id, as: 'id'
9453
+ hash :items, as: 'items', class: Google::Apis::ComputeV1::InstanceTemplatesScopedList, decorator: Google::Apis::ComputeV1::InstanceTemplatesScopedList::Representation
9454
+
9455
+ property :kind, as: 'kind'
9456
+ property :next_page_token, as: 'nextPageToken'
9457
+ property :self_link, as: 'selfLink'
9458
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Warning, decorator: Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Warning::Representation
9459
+
9460
+ end
9461
+
9462
+ class Warning
9463
+ # @private
9464
+ class Representation < Google::Apis::Core::JsonRepresentation
9465
+ property :code, as: 'code'
9466
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Warning::Datum::Representation
9467
+
9468
+ property :message, as: 'message'
9469
+ end
9470
+
9471
+ class Datum
9472
+ # @private
9473
+ class Representation < Google::Apis::Core::JsonRepresentation
9474
+ property :key, as: 'key'
9475
+ property :value, as: 'value'
9476
+ end
9477
+ end
9478
+ end
9479
+ end
9480
+
9406
9481
  class InstanceTemplateList
9407
9482
  # @private
9408
9483
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9435,6 +9510,34 @@ module Google
9435
9510
  end
9436
9511
  end
9437
9512
 
9513
+ class InstanceTemplatesScopedList
9514
+ # @private
9515
+ class Representation < Google::Apis::Core::JsonRepresentation
9516
+ collection :instance_templates, as: 'instanceTemplates', class: Google::Apis::ComputeV1::InstanceTemplate, decorator: Google::Apis::ComputeV1::InstanceTemplate::Representation
9517
+
9518
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::InstanceTemplatesScopedList::Warning, decorator: Google::Apis::ComputeV1::InstanceTemplatesScopedList::Warning::Representation
9519
+
9520
+ end
9521
+
9522
+ class Warning
9523
+ # @private
9524
+ class Representation < Google::Apis::Core::JsonRepresentation
9525
+ property :code, as: 'code'
9526
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::InstanceTemplatesScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::InstanceTemplatesScopedList::Warning::Datum::Representation
9527
+
9528
+ property :message, as: 'message'
9529
+ end
9530
+
9531
+ class Datum
9532
+ # @private
9533
+ class Representation < Google::Apis::Core::JsonRepresentation
9534
+ property :key, as: 'key'
9535
+ property :value, as: 'value'
9536
+ end
9537
+ end
9538
+ end
9539
+ end
9540
+
9438
9541
  class InstanceWithNamedPorts
9439
9542
  # @private
9440
9543
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9539,6 +9642,14 @@ module Google
9539
9642
  end
9540
9643
  end
9541
9644
 
9645
+ class InstancesSetNameRequest
9646
+ # @private
9647
+ class Representation < Google::Apis::Core::JsonRepresentation
9648
+ property :current_name, as: 'currentName'
9649
+ property :name, as: 'name'
9650
+ end
9651
+ end
9652
+
9542
9653
  class InstancesSetServiceAccountRequest
9543
9654
  # @private
9544
9655
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -12712,6 +12823,7 @@ module Google
12712
12823
  property :id, :numeric_string => true, as: 'id'
12713
12824
  property :kind, as: 'kind'
12714
12825
  property :name, as: 'name'
12826
+ hash :resource_policies, as: 'resourcePolicies'
12715
12827
  property :resource_status, as: 'resourceStatus', class: Google::Apis::ComputeV1::AllocationResourceStatus, decorator: Google::Apis::ComputeV1::AllocationResourceStatus::Representation
12716
12828
 
12717
12829
  property :satisfies_pzs, as: 'satisfiesPzs'
@@ -3289,6 +3289,66 @@ module Google
3289
3289
  execute_or_queue_command(command, &block)
3290
3290
  end
3291
3291
 
3292
+ # Updates the specified disk with the data included in the request. The update
3293
+ # is performed only on selected fields included as part of update-mask. Only the
3294
+ # following fields can be modified: user_license.
3295
+ # @param [String] project
3296
+ # Project ID for this request.
3297
+ # @param [String] zone
3298
+ # The name of the zone for this request.
3299
+ # @param [String] disk
3300
+ # The disk name for this request.
3301
+ # @param [Google::Apis::ComputeV1::Disk] disk_object
3302
+ # @param [Array<String>, String] paths
3303
+ # @param [String] request_id
3304
+ # An optional request ID to identify requests. Specify a unique request ID so
3305
+ # that if you must retry your request, the server will know to ignore the
3306
+ # request if it has already been completed. For example, consider a situation
3307
+ # where you make an initial request and the request times out. If you make the
3308
+ # request again with the same request ID, the server can check if original
3309
+ # operation with the same request ID was received, and if so, will ignore the
3310
+ # second request. This prevents clients from accidentally creating duplicate
3311
+ # commitments. The request ID must be a valid UUID with the exception that zero
3312
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3313
+ # @param [String] update_mask
3314
+ # update_mask indicates fields to be updated as part of this request.
3315
+ # @param [String] fields
3316
+ # Selector specifying which fields to include in a partial response.
3317
+ # @param [String] quota_user
3318
+ # Available to use for quota purposes for server-side applications. Can be any
3319
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3320
+ # @param [String] user_ip
3321
+ # Legacy name for parameter that has been superseded by `quotaUser`.
3322
+ # @param [Google::Apis::RequestOptions] options
3323
+ # Request-specific options
3324
+ #
3325
+ # @yield [result, err] Result & error if block supplied
3326
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
3327
+ # @yieldparam err [StandardError] error object if request failed
3328
+ #
3329
+ # @return [Google::Apis::ComputeV1::Operation]
3330
+ #
3331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3334
+ def update_disk(project, zone, disk, disk_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3335
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/disks/{disk}', options)
3336
+ command.request_representation = Google::Apis::ComputeV1::Disk::Representation
3337
+ command.request_object = disk_object
3338
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
3339
+ command.response_class = Google::Apis::ComputeV1::Operation
3340
+ command.params['project'] = project unless project.nil?
3341
+ command.params['zone'] = zone unless zone.nil?
3342
+ command.params['disk'] = disk unless disk.nil?
3343
+ command.query['paths'] = paths unless paths.nil?
3344
+ command.query['requestId'] = request_id unless request_id.nil?
3345
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3346
+ command.query['fields'] = fields unless fields.nil?
3347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3348
+ command.query['userIp'] = user_ip unless user_ip.nil?
3349
+ execute_or_queue_command(command, &block)
3350
+ end
3351
+
3292
3352
  # Deletes the specified externalVpnGateway.
3293
3353
  # @param [String] project
3294
3354
  # Project ID for this request.
@@ -8232,8 +8292,11 @@ module Google
8232
8292
  end
8233
8293
 
8234
8294
  # Returns the latest image that is part of an image family and is not deprecated.
8295
+ # For more information on image families, see Public image families
8296
+ # documentation.
8235
8297
  # @param [String] project
8236
- # Project ID for this request.
8298
+ # The image project that the image belongs to. For example, to get a CentOS
8299
+ # image, specify centos-cloud as the image project.
8237
8300
  # @param [String] family
8238
8301
  # Name of the image family to search for.
8239
8302
  # @param [String] fields
@@ -10540,6 +10603,103 @@ module Google
10540
10603
  execute_or_queue_command(command, &block)
10541
10604
  end
10542
10605
 
10606
+ # Retrieves the list of all InstanceTemplates resources, regional and global,
10607
+ # available to the specified project.
10608
+ # @param [String] project
10609
+ # Name of the project scoping this request.
10610
+ # @param [String] filter
10611
+ # A filter expression that filters resources listed in the response. Most
10612
+ # Compute resources support two types of filter expressions: expressions that
10613
+ # support regular expressions and expressions that follow API improvement
10614
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
10615
+ # field name, an operator, and the value that you want to use for filtering. The
10616
+ # value must be a string, a number, or a boolean. The operator must be either `=`
10617
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
10618
+ # Engine instances, you can exclude instances named `example-instance` by
10619
+ # specifying `name != example-instance`. The `:` operator can be used with
10620
+ # string fields to match substrings. For non-string fields it is equivalent to
10621
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
10622
+ # been defined. For example, to find all objects with `owner` label use: ```
10623
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
10624
+ # specify `scheduling.automaticRestart = false` to include instances only if
10625
+ # they are not scheduled for automatic restarts. You can use filtering on nested
10626
+ # fields to filter based on resource labels. To filter on multiple expressions,
10627
+ # provide each separate expression within parentheses. For example: ``` (
10628
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
10629
+ # default, each expression is an `AND` expression. However, you can include `AND`
10630
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
10631
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
10632
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
10633
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
10634
+ # expression with or without quotes or against multiple parenthesized
10635
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
10636
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
10637
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
10638
+ # regular expression using Google RE2 library syntax. The literal value must
10639
+ # match the entire field. For example, to filter for instances that do not end
10640
+ # with name "instance", you would use `name ne .*instance`.
10641
+ # @param [Boolean] include_all_scopes
10642
+ # Indicates whether every visible scope for each scope type (zone, region,
10643
+ # global) should be included in the response. For new resource types added after
10644
+ # this field, the flag has no effect as new resource types will always include
10645
+ # every visible scope for each scope type in response. For resource types which
10646
+ # predate this field, if this flag is omitted or false, only scopes of the scope
10647
+ # types where the resource type is expected to be found will be included.
10648
+ # @param [Fixnum] max_results
10649
+ # The maximum number of results per page that should be returned. If the number
10650
+ # of available results is larger than `maxResults`, Compute Engine returns a `
10651
+ # nextPageToken` that can be used to get the next page of results in subsequent
10652
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
10653
+ # @param [String] order_by
10654
+ # Sorts list results by a certain order. By default, results are returned in
10655
+ # alphanumerical order based on the resource name. You can also sort results in
10656
+ # descending order based on the creation timestamp using `orderBy="
10657
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
10658
+ # field in reverse chronological order (newest result first). Use this to sort
10659
+ # resources like operations so that the newest operation is returned first.
10660
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
10661
+ # @param [String] page_token
10662
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
10663
+ # by a previous list request to get the next page of results.
10664
+ # @param [Boolean] return_partial_success
10665
+ # Opt-in for partial success behavior which provides partial results in case of
10666
+ # failure. The default value is false.
10667
+ # @param [String] fields
10668
+ # Selector specifying which fields to include in a partial response.
10669
+ # @param [String] quota_user
10670
+ # Available to use for quota purposes for server-side applications. Can be any
10671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10672
+ # @param [String] user_ip
10673
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10674
+ # @param [Google::Apis::RequestOptions] options
10675
+ # Request-specific options
10676
+ #
10677
+ # @yield [result, err] Result & error if block supplied
10678
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplateAggregatedList] parsed result object
10679
+ # @yieldparam err [StandardError] error object if request failed
10680
+ #
10681
+ # @return [Google::Apis::ComputeV1::InstanceTemplateAggregatedList]
10682
+ #
10683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10686
+ 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)
10687
+ command = make_simple_command(:get, 'projects/{project}/aggregated/instanceTemplates', options)
10688
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplateAggregatedList::Representation
10689
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplateAggregatedList
10690
+ command.params['project'] = project unless project.nil?
10691
+ command.query['filter'] = filter unless filter.nil?
10692
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
10693
+ command.query['maxResults'] = max_results unless max_results.nil?
10694
+ command.query['orderBy'] = order_by unless order_by.nil?
10695
+ command.query['pageToken'] = page_token unless page_token.nil?
10696
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
10697
+ command.query['fields'] = fields unless fields.nil?
10698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10699
+ command.query['userIp'] = user_ip unless user_ip.nil?
10700
+ execute_or_queue_command(command, &block)
10701
+ end
10702
+
10543
10703
  # Deletes the specified instance template. Deleting an instance template is
10544
10704
  # permanent and cannot be undone. It is not possible to delete templates that
10545
10705
  # are already in use by a managed instance group.
@@ -12537,6 +12697,59 @@ module Google
12537
12697
  execute_or_queue_command(command, &block)
12538
12698
  end
12539
12699
 
12700
+ # Sets name of an instance.
12701
+ # @param [String] project
12702
+ # Project ID for this request.
12703
+ # @param [String] zone
12704
+ # The name of the zone for this request.
12705
+ # @param [String] instance
12706
+ # The instance name for this request.
12707
+ # @param [Google::Apis::ComputeV1::InstancesSetNameRequest] instances_set_name_request_object
12708
+ # @param [String] request_id
12709
+ # An optional request ID to identify requests. Specify a unique request ID so
12710
+ # that if you must retry your request, the server will know to ignore the
12711
+ # request if it has already been completed. For example, consider a situation
12712
+ # where you make an initial request and the request times out. If you make the
12713
+ # request again with the same request ID, the server can check if original
12714
+ # operation with the same request ID was received, and if so, will ignore the
12715
+ # second request. This prevents clients from accidentally creating duplicate
12716
+ # commitments. The request ID must be a valid UUID with the exception that zero
12717
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
12718
+ # @param [String] fields
12719
+ # Selector specifying which fields to include in a partial response.
12720
+ # @param [String] quota_user
12721
+ # Available to use for quota purposes for server-side applications. Can be any
12722
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
12723
+ # @param [String] user_ip
12724
+ # Legacy name for parameter that has been superseded by `quotaUser`.
12725
+ # @param [Google::Apis::RequestOptions] options
12726
+ # Request-specific options
12727
+ #
12728
+ # @yield [result, err] Result & error if block supplied
12729
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
12730
+ # @yieldparam err [StandardError] error object if request failed
12731
+ #
12732
+ # @return [Google::Apis::ComputeV1::Operation]
12733
+ #
12734
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12735
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12736
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12737
+ 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)
12738
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setName', options)
12739
+ command.request_representation = Google::Apis::ComputeV1::InstancesSetNameRequest::Representation
12740
+ command.request_object = instances_set_name_request_object
12741
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
12742
+ command.response_class = Google::Apis::ComputeV1::Operation
12743
+ command.params['project'] = project unless project.nil?
12744
+ command.params['zone'] = zone unless zone.nil?
12745
+ command.params['instance'] = instance unless instance.nil?
12746
+ command.query['requestId'] = request_id unless request_id.nil?
12747
+ command.query['fields'] = fields unless fields.nil?
12748
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12749
+ command.query['userIp'] = user_ip unless user_ip.nil?
12750
+ execute_or_queue_command(command, &block)
12751
+ end
12752
+
12540
12753
  # Sets an instance's scheduling options. You can only call this method on a
12541
12754
  # stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
12542
12755
  # Instance Life Cycle for more information on the possible instance states. For
@@ -23133,6 +23346,66 @@ module Google
23133
23346
  execute_or_queue_command(command, &block)
23134
23347
  end
23135
23348
 
23349
+ # Update the specified disk with the data included in the request. Update is
23350
+ # performed only on selected fields included as part of update-mask. Only the
23351
+ # following fields can be modified: user_license.
23352
+ # @param [String] project
23353
+ # Project ID for this request.
23354
+ # @param [String] region
23355
+ # The name of the region for this request.
23356
+ # @param [String] disk
23357
+ # The disk name for this request.
23358
+ # @param [Google::Apis::ComputeV1::Disk] disk_object
23359
+ # @param [Array<String>, String] paths
23360
+ # @param [String] request_id
23361
+ # An optional request ID to identify requests. Specify a unique request ID so
23362
+ # that if you must retry your request, the server will know to ignore the
23363
+ # request if it has already been completed. For example, consider a situation
23364
+ # where you make an initial request and the request times out. If you make the
23365
+ # request again with the same request ID, the server can check if original
23366
+ # operation with the same request ID was received, and if so, will ignore the
23367
+ # second request. This prevents clients from accidentally creating duplicate
23368
+ # commitments. The request ID must be a valid UUID with the exception that zero
23369
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
23370
+ # @param [String] update_mask
23371
+ # update_mask indicates fields to be updated as part of this request.
23372
+ # @param [String] fields
23373
+ # Selector specifying which fields to include in a partial response.
23374
+ # @param [String] quota_user
23375
+ # Available to use for quota purposes for server-side applications. Can be any
23376
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23377
+ # @param [String] user_ip
23378
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23379
+ # @param [Google::Apis::RequestOptions] options
23380
+ # Request-specific options
23381
+ #
23382
+ # @yield [result, err] Result & error if block supplied
23383
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
23384
+ # @yieldparam err [StandardError] error object if request failed
23385
+ #
23386
+ # @return [Google::Apis::ComputeV1::Operation]
23387
+ #
23388
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23389
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23390
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23391
+ def update_region_disk(project, region, disk, disk_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23392
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/disks/{disk}', options)
23393
+ command.request_representation = Google::Apis::ComputeV1::Disk::Representation
23394
+ command.request_object = disk_object
23395
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
23396
+ command.response_class = Google::Apis::ComputeV1::Operation
23397
+ command.params['project'] = project unless project.nil?
23398
+ command.params['region'] = region unless region.nil?
23399
+ command.params['disk'] = disk unless disk.nil?
23400
+ command.query['paths'] = paths unless paths.nil?
23401
+ command.query['requestId'] = request_id unless request_id.nil?
23402
+ command.query['updateMask'] = update_mask unless update_mask.nil?
23403
+ command.query['fields'] = fields unless fields.nil?
23404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23405
+ command.query['userIp'] = user_ip unless user_ip.nil?
23406
+ execute_or_queue_command(command, &block)
23407
+ end
23408
+
23136
23409
  # Deletes the specified regional HealthCheckService.
23137
23410
  # @param [String] project
23138
23411
  # Project ID for this request.
@@ -25249,6 +25522,240 @@ module Google
25249
25522
  execute_or_queue_command(command, &block)
25250
25523
  end
25251
25524
 
25525
+ # Deletes the specified instance template. Deleting an instance template is
25526
+ # permanent and cannot be undone.
25527
+ # @param [String] project
25528
+ # Project ID for this request.
25529
+ # @param [String] region
25530
+ # The name of the region for this request.
25531
+ # @param [String] instance_template
25532
+ # The name of the instance template to delete.
25533
+ # @param [String] request_id
25534
+ # An optional request ID to identify requests. Specify a unique request ID so
25535
+ # that if you must retry your request, the server will know to ignore the
25536
+ # request if it has already been completed. For example, consider a situation
25537
+ # where you make an initial request and the request times out. If you make the
25538
+ # request again with the same request ID, the server can check if original
25539
+ # operation with the same request ID was received, and if so, will ignore the
25540
+ # second request. This prevents clients from accidentally creating duplicate
25541
+ # commitments. The request ID must be a valid UUID with the exception that zero
25542
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25543
+ # @param [String] fields
25544
+ # Selector specifying which fields to include in a partial response.
25545
+ # @param [String] quota_user
25546
+ # Available to use for quota purposes for server-side applications. Can be any
25547
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25548
+ # @param [String] user_ip
25549
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25550
+ # @param [Google::Apis::RequestOptions] options
25551
+ # Request-specific options
25552
+ #
25553
+ # @yield [result, err] Result & error if block supplied
25554
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25555
+ # @yieldparam err [StandardError] error object if request failed
25556
+ #
25557
+ # @return [Google::Apis::ComputeV1::Operation]
25558
+ #
25559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25562
+ def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25563
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25564
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25565
+ command.response_class = Google::Apis::ComputeV1::Operation
25566
+ command.params['project'] = project unless project.nil?
25567
+ command.params['region'] = region unless region.nil?
25568
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25569
+ command.query['requestId'] = request_id unless request_id.nil?
25570
+ command.query['fields'] = fields unless fields.nil?
25571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25572
+ command.query['userIp'] = user_ip unless user_ip.nil?
25573
+ execute_or_queue_command(command, &block)
25574
+ end
25575
+
25576
+ # Returns the specified instance template. Gets a list of available instance
25577
+ # templates by making a list() request.
25578
+ # @param [String] project
25579
+ # Project ID for this request.
25580
+ # @param [String] region
25581
+ # The name of the region for this request.
25582
+ # @param [String] instance_template
25583
+ # The name of the instance template.
25584
+ # @param [String] fields
25585
+ # Selector specifying which fields to include in a partial response.
25586
+ # @param [String] quota_user
25587
+ # Available to use for quota purposes for server-side applications. Can be any
25588
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25589
+ # @param [String] user_ip
25590
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25591
+ # @param [Google::Apis::RequestOptions] options
25592
+ # Request-specific options
25593
+ #
25594
+ # @yield [result, err] Result & error if block supplied
25595
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplate] parsed result object
25596
+ # @yieldparam err [StandardError] error object if request failed
25597
+ #
25598
+ # @return [Google::Apis::ComputeV1::InstanceTemplate]
25599
+ #
25600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25603
+ def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25604
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
25605
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25606
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplate
25607
+ command.params['project'] = project unless project.nil?
25608
+ command.params['region'] = region unless region.nil?
25609
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
25610
+ command.query['fields'] = fields unless fields.nil?
25611
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25612
+ command.query['userIp'] = user_ip unless user_ip.nil?
25613
+ execute_or_queue_command(command, &block)
25614
+ end
25615
+
25616
+ # Creates an instance template in the specified project and region using the
25617
+ # global instance template whose URL is included in the request.
25618
+ # @param [String] project
25619
+ # Project ID for this request.
25620
+ # @param [String] region
25621
+ # The name of the region for this request.
25622
+ # @param [Google::Apis::ComputeV1::InstanceTemplate] instance_template_object
25623
+ # @param [String] request_id
25624
+ # An optional request ID to identify requests. Specify a unique request ID so
25625
+ # that if you must retry your request, the server will know to ignore the
25626
+ # request if it has already been completed. For example, consider a situation
25627
+ # where you make an initial request and the request times out. If you make the
25628
+ # request again with the same request ID, the server can check if original
25629
+ # operation with the same request ID was received, and if so, will ignore the
25630
+ # second request. This prevents clients from accidentally creating duplicate
25631
+ # commitments. The request ID must be a valid UUID with the exception that zero
25632
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25633
+ # @param [String] fields
25634
+ # Selector specifying which fields to include in a partial response.
25635
+ # @param [String] quota_user
25636
+ # Available to use for quota purposes for server-side applications. Can be any
25637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25638
+ # @param [String] user_ip
25639
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25640
+ # @param [Google::Apis::RequestOptions] options
25641
+ # Request-specific options
25642
+ #
25643
+ # @yield [result, err] Result & error if block supplied
25644
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
25645
+ # @yieldparam err [StandardError] error object if request failed
25646
+ #
25647
+ # @return [Google::Apis::ComputeV1::Operation]
25648
+ #
25649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25652
+ 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)
25653
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
25654
+ command.request_representation = Google::Apis::ComputeV1::InstanceTemplate::Representation
25655
+ command.request_object = instance_template_object
25656
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
25657
+ command.response_class = Google::Apis::ComputeV1::Operation
25658
+ command.params['project'] = project unless project.nil?
25659
+ command.params['region'] = region unless region.nil?
25660
+ command.query['requestId'] = request_id unless request_id.nil?
25661
+ command.query['fields'] = fields unless fields.nil?
25662
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25663
+ command.query['userIp'] = user_ip unless user_ip.nil?
25664
+ execute_or_queue_command(command, &block)
25665
+ end
25666
+
25667
+ # Retrieves a list of instance templates that are contained within the specified
25668
+ # project and region.
25669
+ # @param [String] project
25670
+ # Project ID for this request.
25671
+ # @param [String] region
25672
+ # The name of the regions for this request.
25673
+ # @param [String] filter
25674
+ # A filter expression that filters resources listed in the response. Most
25675
+ # Compute resources support two types of filter expressions: expressions that
25676
+ # support regular expressions and expressions that follow API improvement
25677
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
25678
+ # field name, an operator, and the value that you want to use for filtering. The
25679
+ # value must be a string, a number, or a boolean. The operator must be either `=`
25680
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
25681
+ # Engine instances, you can exclude instances named `example-instance` by
25682
+ # specifying `name != example-instance`. The `:` operator can be used with
25683
+ # string fields to match substrings. For non-string fields it is equivalent to
25684
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
25685
+ # been defined. For example, to find all objects with `owner` label use: ```
25686
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
25687
+ # specify `scheduling.automaticRestart = false` to include instances only if
25688
+ # they are not scheduled for automatic restarts. You can use filtering on nested
25689
+ # fields to filter based on resource labels. To filter on multiple expressions,
25690
+ # provide each separate expression within parentheses. For example: ``` (
25691
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
25692
+ # default, each expression is an `AND` expression. However, you can include `AND`
25693
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
25694
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
25695
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
25696
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
25697
+ # expression with or without quotes or against multiple parenthesized
25698
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
25699
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
25700
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
25701
+ # regular expression using Google RE2 library syntax. The literal value must
25702
+ # match the entire field. For example, to filter for instances that do not end
25703
+ # with name "instance", you would use `name ne .*instance`.
25704
+ # @param [Fixnum] max_results
25705
+ # The maximum number of results per page that should be returned. If the number
25706
+ # of available results is larger than `maxResults`, Compute Engine returns a `
25707
+ # nextPageToken` that can be used to get the next page of results in subsequent
25708
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25709
+ # @param [String] order_by
25710
+ # Sorts list results by a certain order. By default, results are returned in
25711
+ # alphanumerical order based on the resource name. You can also sort results in
25712
+ # descending order based on the creation timestamp using `orderBy="
25713
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
25714
+ # field in reverse chronological order (newest result first). Use this to sort
25715
+ # resources like operations so that the newest operation is returned first.
25716
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25717
+ # @param [String] page_token
25718
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25719
+ # by a previous list request to get the next page of results.
25720
+ # @param [Boolean] return_partial_success
25721
+ # Opt-in for partial success behavior which provides partial results in case of
25722
+ # failure. The default value is false.
25723
+ # @param [String] fields
25724
+ # Selector specifying which fields to include in a partial response.
25725
+ # @param [String] quota_user
25726
+ # Available to use for quota purposes for server-side applications. Can be any
25727
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25728
+ # @param [String] user_ip
25729
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25730
+ # @param [Google::Apis::RequestOptions] options
25731
+ # Request-specific options
25732
+ #
25733
+ # @yield [result, err] Result & error if block supplied
25734
+ # @yieldparam result [Google::Apis::ComputeV1::InstanceTemplateList] parsed result object
25735
+ # @yieldparam err [StandardError] error object if request failed
25736
+ #
25737
+ # @return [Google::Apis::ComputeV1::InstanceTemplateList]
25738
+ #
25739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25742
+ 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)
25743
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
25744
+ command.response_representation = Google::Apis::ComputeV1::InstanceTemplateList::Representation
25745
+ command.response_class = Google::Apis::ComputeV1::InstanceTemplateList
25746
+ command.params['project'] = project unless project.nil?
25747
+ command.params['region'] = region unless region.nil?
25748
+ command.query['filter'] = filter unless filter.nil?
25749
+ command.query['maxResults'] = max_results unless max_results.nil?
25750
+ command.query['orderBy'] = order_by unless order_by.nil?
25751
+ command.query['pageToken'] = page_token unless page_token.nil?
25752
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
25753
+ command.query['fields'] = fields unless fields.nil?
25754
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25755
+ command.query['userIp'] = user_ip unless user_ip.nil?
25756
+ execute_or_queue_command(command, &block)
25757
+ end
25758
+
25252
25759
  # Creates multiple instances in a given region. Count specifies the number of
25253
25760
  # instances to create.
25254
25761
  # @param [String] project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.0
4
+ version: 0.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-29 00:00:00.000000000 Z
11
+ date: 2023-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.60.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.62.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []