google-apis-compute_v1 0.61.0 → 0.62.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8bd54bba4abc9855ec719fcf95b3aaa4b371cdaa1de0523a8da97bd02368229
|
4
|
+
data.tar.gz: 8ed8a0d3bd89690b2788338c767d04265a87d1c190e54c55fb07b85cec204898
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8288c84ccaa99590c2061340ca27f45ee7685b041cc8dd988a147858557863a31a7b2b765e12d501236d1fa5cfee67d0730a2486183d2c3bea870aa18f11bfa7
|
7
|
+
data.tar.gz: 4c42fe365c4f4d631de396bd320c26228d0b83aa8e038d2533fd3233e884d6eea117f55f2ce54baaa74d5de77d69a4b850af9d180b3b61b5822f82c3b9ebdefb
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
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
|
+
|
3
8
|
### v0.61.0 (2023-02-12)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20230201
|
@@ -12230,10 +12230,13 @@ module Google
|
|
12230
12230
|
# @return [Fixnum]
|
12231
12231
|
attr_accessor :disk_size_gb
|
12232
12232
|
|
12233
|
-
# The name of the image family to which this image belongs.
|
12234
|
-
#
|
12235
|
-
#
|
12236
|
-
# image family
|
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.
|
12237
12240
|
# Corresponds to the JSON property `family`
|
12238
12241
|
# @return [String]
|
12239
12242
|
attr_accessor :family
|
@@ -15796,6 +15799,12 @@ module Google
|
|
15796
15799
|
# @return [Google::Apis::ComputeV1::InstanceProperties]
|
15797
15800
|
attr_accessor :properties
|
15798
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
|
+
|
15799
15808
|
# [Output Only] The URL for this instance template. The server defines this URL.
|
15800
15809
|
# Corresponds to the JSON property `selfLink`
|
15801
15810
|
# @return [String]
|
@@ -15827,12 +15836,130 @@ module Google
|
|
15827
15836
|
@kind = args[:kind] if args.key?(:kind)
|
15828
15837
|
@name = args[:name] if args.key?(:name)
|
15829
15838
|
@properties = args[:properties] if args.key?(:properties)
|
15839
|
+
@region = args[:region] if args.key?(:region)
|
15830
15840
|
@self_link = args[:self_link] if args.key?(:self_link)
|
15831
15841
|
@source_instance = args[:source_instance] if args.key?(:source_instance)
|
15832
15842
|
@source_instance_params = args[:source_instance_params] if args.key?(:source_instance_params)
|
15833
15843
|
end
|
15834
15844
|
end
|
15835
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
|
+
|
15836
15963
|
# A list of instance templates.
|
15837
15964
|
class InstanceTemplateList
|
15838
15965
|
include Google::Apis::Core::Hashable
|
@@ -15951,6 +16078,98 @@ module Google
|
|
15951
16078
|
end
|
15952
16079
|
end
|
15953
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
|
+
|
15954
16173
|
#
|
15955
16174
|
class InstanceWithNamedPorts
|
15956
16175
|
include Google::Apis::Core::Hashable
|
@@ -16268,6 +16487,32 @@ module Google
|
|
16268
16487
|
end
|
16269
16488
|
end
|
16270
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
|
+
|
16271
16516
|
#
|
16272
16517
|
class InstancesSetServiceAccountRequest
|
16273
16518
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.62.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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
|
@@ -8292,8 +8292,11 @@ module Google
|
|
8292
8292
|
end
|
8293
8293
|
|
8294
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.
|
8295
8297
|
# @param [String] project
|
8296
|
-
#
|
8298
|
+
# The image project that the image belongs to. For example, to get a CentOS
|
8299
|
+
# image, specify centos-cloud as the image project.
|
8297
8300
|
# @param [String] family
|
8298
8301
|
# Name of the image family to search for.
|
8299
8302
|
# @param [String] fields
|
@@ -10600,6 +10603,103 @@ module Google
|
|
10600
10603
|
execute_or_queue_command(command, &block)
|
10601
10604
|
end
|
10602
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
|
+
|
10603
10703
|
# Deletes the specified instance template. Deleting an instance template is
|
10604
10704
|
# permanent and cannot be undone. It is not possible to delete templates that
|
10605
10705
|
# are already in use by a managed instance group.
|
@@ -12597,6 +12697,59 @@ module Google
|
|
12597
12697
|
execute_or_queue_command(command, &block)
|
12598
12698
|
end
|
12599
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
|
+
|
12600
12753
|
# Sets an instance's scheduling options. You can only call this method on a
|
12601
12754
|
# stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
|
12602
12755
|
# Instance Life Cycle for more information on the possible instance states. For
|
@@ -25369,6 +25522,240 @@ module Google
|
|
25369
25522
|
execute_or_queue_command(command, &block)
|
25370
25523
|
end
|
25371
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
|
+
|
25372
25759
|
# Creates multiple instances in a given region. Count specifies the number of
|
25373
25760
|
# instances to create.
|
25374
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.
|
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-02-
|
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.
|
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.
|
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.
|
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: []
|