google-apis-compute_v1 0.138.0 → 0.139.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: b0f7018623368f4810c91d3e57b66b53a4a2e5e0337ac9d731b516a94ef732a3
|
|
4
|
+
data.tar.gz: 3c7cb4cf722285009f5eb7ed713a29cfb049eaaf2a382e958ff4c33d33a8889d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc700932c4edeb274ff58122632e000aa0648cc01ca97621c4f80a2d9ad65b0356294f7fad428dc6de6500ad7f2b88382cc4b6cfeb97671df2d72dbaa8801c16
|
|
7
|
+
data.tar.gz: 1afbfb1a7c7284d1cdb323a7a21492259f20928de27947a2794ffd2a56d0722be5288c925118f2127e5d836848f6e5001aa902ae2946c41ad990244b1e506534
|
data/CHANGELOG.md
CHANGED
|
@@ -6554,6 +6554,11 @@ module Google
|
|
|
6554
6554
|
# @return [Fixnum]
|
|
6555
6555
|
attr_accessor :count
|
|
6556
6556
|
|
|
6557
|
+
# A flexible specification of machine types for instances to create.
|
|
6558
|
+
# Corresponds to the JSON property `instanceFlexibilityPolicy`
|
|
6559
|
+
# @return [Google::Apis::ComputeV1::InstanceFlexibilityPolicy]
|
|
6560
|
+
attr_accessor :instance_flexibility_policy
|
|
6561
|
+
|
|
6557
6562
|
# The instance properties defining the VM instances to be created. Required
|
|
6558
6563
|
# if sourceInstanceTemplate is not provided.
|
|
6559
6564
|
# Corresponds to the JSON property `instanceProperties`
|
|
@@ -6624,6 +6629,7 @@ module Google
|
|
|
6624
6629
|
# Update properties of this object
|
|
6625
6630
|
def update!(**args)
|
|
6626
6631
|
@count = args[:count] if args.key?(:count)
|
|
6632
|
+
@instance_flexibility_policy = args[:instance_flexibility_policy] if args.key?(:instance_flexibility_policy)
|
|
6627
6633
|
@instance_properties = args[:instance_properties] if args.key?(:instance_properties)
|
|
6628
6634
|
@location_policy = args[:location_policy] if args.key?(:location_policy)
|
|
6629
6635
|
@min_count = args[:min_count] if args.key?(:min_count)
|
|
@@ -18647,6 +18653,76 @@ module Google
|
|
|
18647
18653
|
end
|
|
18648
18654
|
end
|
|
18649
18655
|
|
|
18656
|
+
# A flexible specification of machine types for instances to create.
|
|
18657
|
+
class InstanceFlexibilityPolicy
|
|
18658
|
+
include Google::Apis::Core::Hashable
|
|
18659
|
+
|
|
18660
|
+
# Specification of alternative, flexible instance subsets.
|
|
18661
|
+
# One of them will be selected to create the instances
|
|
18662
|
+
# based on various criteria, like:
|
|
18663
|
+
# - ranks,
|
|
18664
|
+
# - location policy,
|
|
18665
|
+
# - current capacity,
|
|
18666
|
+
# - available reservations (you can specify affinity in
|
|
18667
|
+
# InstanceProperties),
|
|
18668
|
+
# - SWAN/GOOSE limitations.
|
|
18669
|
+
# Key is an arbitrary, unique RFC1035 string that identifies the instance
|
|
18670
|
+
# selection.
|
|
18671
|
+
# Corresponds to the JSON property `instanceSelections`
|
|
18672
|
+
# @return [Hash<String,Google::Apis::ComputeV1::InstanceFlexibilityPolicyInstanceSelection>]
|
|
18673
|
+
attr_accessor :instance_selections
|
|
18674
|
+
|
|
18675
|
+
def initialize(**args)
|
|
18676
|
+
update!(**args)
|
|
18677
|
+
end
|
|
18678
|
+
|
|
18679
|
+
# Update properties of this object
|
|
18680
|
+
def update!(**args)
|
|
18681
|
+
@instance_selections = args[:instance_selections] if args.key?(:instance_selections)
|
|
18682
|
+
end
|
|
18683
|
+
end
|
|
18684
|
+
|
|
18685
|
+
# Specification of machine type to use. Every position inside this message
|
|
18686
|
+
# is an alternative.
|
|
18687
|
+
# The count specified in the shape flexibility must not exceed the number
|
|
18688
|
+
# of entries in per_instance_properties or the capacity of the
|
|
18689
|
+
# name_pattern, if used.
|
|
18690
|
+
class InstanceFlexibilityPolicyInstanceSelection
|
|
18691
|
+
include Google::Apis::Core::Hashable
|
|
18692
|
+
|
|
18693
|
+
# Disks to be attached to the instances created from in this selection.
|
|
18694
|
+
# They override the disks specified in the instance properties.
|
|
18695
|
+
# Corresponds to the JSON property `disks`
|
|
18696
|
+
# @return [Array<Google::Apis::ComputeV1::AttachedDisk>]
|
|
18697
|
+
attr_accessor :disks
|
|
18698
|
+
|
|
18699
|
+
# Alternative machine types to use for instances that are created from
|
|
18700
|
+
# these properties. This field only accepts a machine type names, for
|
|
18701
|
+
# example `n2-standard-4` and not URLs or partial URLs.
|
|
18702
|
+
# Corresponds to the JSON property `machineTypes`
|
|
18703
|
+
# @return [Array<String>]
|
|
18704
|
+
attr_accessor :machine_types
|
|
18705
|
+
|
|
18706
|
+
# Rank when prioritizing the shape flexibilities.
|
|
18707
|
+
# The instance selections with rank are considered
|
|
18708
|
+
# first, in the ascending order of the rank.
|
|
18709
|
+
# If not set, defaults to 0.
|
|
18710
|
+
# Corresponds to the JSON property `rank`
|
|
18711
|
+
# @return [Fixnum]
|
|
18712
|
+
attr_accessor :rank
|
|
18713
|
+
|
|
18714
|
+
def initialize(**args)
|
|
18715
|
+
update!(**args)
|
|
18716
|
+
end
|
|
18717
|
+
|
|
18718
|
+
# Update properties of this object
|
|
18719
|
+
def update!(**args)
|
|
18720
|
+
@disks = args[:disks] if args.key?(:disks)
|
|
18721
|
+
@machine_types = args[:machine_types] if args.key?(:machine_types)
|
|
18722
|
+
@rank = args[:rank] if args.key?(:rank)
|
|
18723
|
+
end
|
|
18724
|
+
end
|
|
18725
|
+
|
|
18650
18726
|
# Represents an Instance Group resource.
|
|
18651
18727
|
# Instance Groups can be used to configure a target forload
|
|
18652
18728
|
# balancing.
|
|
@@ -24458,6 +24534,7 @@ module Google
|
|
|
24458
24534
|
# - BPS_20G: 20 Gbit/s
|
|
24459
24535
|
# - BPS_50G: 50 Gbit/s
|
|
24460
24536
|
# - BPS_100G: 100 Gbit/s
|
|
24537
|
+
# - BPS_400G: 400 Gbit/s
|
|
24461
24538
|
# Corresponds to the JSON property `bandwidth`
|
|
24462
24539
|
# @return [String]
|
|
24463
24540
|
attr_accessor :bandwidth
|
|
@@ -42987,6 +43064,303 @@ module Google
|
|
|
42987
43064
|
end
|
|
42988
43065
|
end
|
|
42989
43066
|
|
|
43067
|
+
# Represents a reservation slot resource.
|
|
43068
|
+
class ReservationSlot
|
|
43069
|
+
include Google::Apis::Core::Hashable
|
|
43070
|
+
|
|
43071
|
+
# Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
|
|
43072
|
+
# Corresponds to the JSON property `creationTimestamp`
|
|
43073
|
+
# @return [String]
|
|
43074
|
+
attr_accessor :creation_timestamp
|
|
43075
|
+
|
|
43076
|
+
# Output only. [Output Only] The unique identifier for this resource. This
|
|
43077
|
+
# identifier is
|
|
43078
|
+
# defined by the server.
|
|
43079
|
+
# Corresponds to the JSON property `id`
|
|
43080
|
+
# @return [Fixnum]
|
|
43081
|
+
attr_accessor :id
|
|
43082
|
+
|
|
43083
|
+
# Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot
|
|
43084
|
+
# for reservation slots.
|
|
43085
|
+
# Corresponds to the JSON property `kind`
|
|
43086
|
+
# @return [String]
|
|
43087
|
+
attr_accessor :kind
|
|
43088
|
+
|
|
43089
|
+
# Output only. [Output Only] The name of the reservation slot.
|
|
43090
|
+
# Corresponds to the JSON property `name`
|
|
43091
|
+
# @return [String]
|
|
43092
|
+
attr_accessor :name
|
|
43093
|
+
|
|
43094
|
+
# Output only. [Output Only] The physical topology of the reservation slot.
|
|
43095
|
+
# Corresponds to the JSON property `physicalTopology`
|
|
43096
|
+
# @return [Google::Apis::ComputeV1::ReservationSlotPhysicalTopology]
|
|
43097
|
+
attr_accessor :physical_topology
|
|
43098
|
+
|
|
43099
|
+
# Output only. [Output Only] A server-defined fully-qualified URL for this
|
|
43100
|
+
# resource.
|
|
43101
|
+
# Corresponds to the JSON property `selfLink`
|
|
43102
|
+
# @return [String]
|
|
43103
|
+
attr_accessor :self_link
|
|
43104
|
+
|
|
43105
|
+
# Output only. [Output Only] A server-defined URL for this resource with the
|
|
43106
|
+
# resource ID.
|
|
43107
|
+
# Corresponds to the JSON property `selfLinkWithId`
|
|
43108
|
+
# @return [String]
|
|
43109
|
+
attr_accessor :self_link_with_id
|
|
43110
|
+
|
|
43111
|
+
# The share setting for reservations and sole tenancy node groups.
|
|
43112
|
+
# Corresponds to the JSON property `shareSettings`
|
|
43113
|
+
# @return [Google::Apis::ComputeV1::ShareSettings]
|
|
43114
|
+
attr_accessor :share_settings
|
|
43115
|
+
|
|
43116
|
+
# Output only. [Output Only] The state of the reservation slot.
|
|
43117
|
+
# Corresponds to the JSON property `state`
|
|
43118
|
+
# @return [String]
|
|
43119
|
+
attr_accessor :state
|
|
43120
|
+
|
|
43121
|
+
# Output only. [Output Only] The status of the reservation slot.
|
|
43122
|
+
# Corresponds to the JSON property `status`
|
|
43123
|
+
# @return [Google::Apis::ComputeV1::ReservationSlotStatus]
|
|
43124
|
+
attr_accessor :status
|
|
43125
|
+
|
|
43126
|
+
# Output only. [Output Only] The zone in which the reservation slot resides.
|
|
43127
|
+
# Corresponds to the JSON property `zone`
|
|
43128
|
+
# @return [String]
|
|
43129
|
+
attr_accessor :zone
|
|
43130
|
+
|
|
43131
|
+
def initialize(**args)
|
|
43132
|
+
update!(**args)
|
|
43133
|
+
end
|
|
43134
|
+
|
|
43135
|
+
# Update properties of this object
|
|
43136
|
+
def update!(**args)
|
|
43137
|
+
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
|
43138
|
+
@id = args[:id] if args.key?(:id)
|
|
43139
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
43140
|
+
@name = args[:name] if args.key?(:name)
|
|
43141
|
+
@physical_topology = args[:physical_topology] if args.key?(:physical_topology)
|
|
43142
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
|
43143
|
+
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
|
|
43144
|
+
@share_settings = args[:share_settings] if args.key?(:share_settings)
|
|
43145
|
+
@state = args[:state] if args.key?(:state)
|
|
43146
|
+
@status = args[:status] if args.key?(:status)
|
|
43147
|
+
@zone = args[:zone] if args.key?(:zone)
|
|
43148
|
+
end
|
|
43149
|
+
end
|
|
43150
|
+
|
|
43151
|
+
#
|
|
43152
|
+
class ReservationSlotPhysicalTopology
|
|
43153
|
+
include Google::Apis::Core::Hashable
|
|
43154
|
+
|
|
43155
|
+
# The unique identifier of the capacity block within the cluster.
|
|
43156
|
+
# Corresponds to the JSON property `block`
|
|
43157
|
+
# @return [String]
|
|
43158
|
+
attr_accessor :block
|
|
43159
|
+
|
|
43160
|
+
# The cluster name of the reservation sub-block.
|
|
43161
|
+
# Corresponds to the JSON property `cluster`
|
|
43162
|
+
# @return [String]
|
|
43163
|
+
attr_accessor :cluster
|
|
43164
|
+
|
|
43165
|
+
# The unique identifier of the capacity host within the capacity sub-block.
|
|
43166
|
+
# Corresponds to the JSON property `host`
|
|
43167
|
+
# @return [String]
|
|
43168
|
+
attr_accessor :host
|
|
43169
|
+
|
|
43170
|
+
# The unique identifier of the capacity sub-block within the capacity
|
|
43171
|
+
# block.
|
|
43172
|
+
# Corresponds to the JSON property `subBlock`
|
|
43173
|
+
# @return [String]
|
|
43174
|
+
attr_accessor :sub_block
|
|
43175
|
+
|
|
43176
|
+
def initialize(**args)
|
|
43177
|
+
update!(**args)
|
|
43178
|
+
end
|
|
43179
|
+
|
|
43180
|
+
# Update properties of this object
|
|
43181
|
+
def update!(**args)
|
|
43182
|
+
@block = args[:block] if args.key?(:block)
|
|
43183
|
+
@cluster = args[:cluster] if args.key?(:cluster)
|
|
43184
|
+
@host = args[:host] if args.key?(:host)
|
|
43185
|
+
@sub_block = args[:sub_block] if args.key?(:sub_block)
|
|
43186
|
+
end
|
|
43187
|
+
end
|
|
43188
|
+
|
|
43189
|
+
#
|
|
43190
|
+
class ReservationSlotStatus
|
|
43191
|
+
include Google::Apis::Core::Hashable
|
|
43192
|
+
|
|
43193
|
+
# Output only. [Output Only] The physical topology of the reservation sub-block.
|
|
43194
|
+
# Corresponds to the JSON property `physicalTopology`
|
|
43195
|
+
# @return [Google::Apis::ComputeV1::ReservationSlotPhysicalTopology]
|
|
43196
|
+
attr_accessor :physical_topology
|
|
43197
|
+
|
|
43198
|
+
# Output only. The RDMA IP address of the physical host.
|
|
43199
|
+
# Corresponds to the JSON property `rdmaIpAddresses`
|
|
43200
|
+
# @return [Array<String>]
|
|
43201
|
+
attr_accessor :rdma_ip_addresses
|
|
43202
|
+
|
|
43203
|
+
# Output only. The URIs of the instances currently running on this slot.
|
|
43204
|
+
# Corresponds to the JSON property `runningInstances`
|
|
43205
|
+
# @return [Array<String>]
|
|
43206
|
+
attr_accessor :running_instances
|
|
43207
|
+
|
|
43208
|
+
def initialize(**args)
|
|
43209
|
+
update!(**args)
|
|
43210
|
+
end
|
|
43211
|
+
|
|
43212
|
+
# Update properties of this object
|
|
43213
|
+
def update!(**args)
|
|
43214
|
+
@physical_topology = args[:physical_topology] if args.key?(:physical_topology)
|
|
43215
|
+
@rdma_ip_addresses = args[:rdma_ip_addresses] if args.key?(:rdma_ip_addresses)
|
|
43216
|
+
@running_instances = args[:running_instances] if args.key?(:running_instances)
|
|
43217
|
+
end
|
|
43218
|
+
end
|
|
43219
|
+
|
|
43220
|
+
#
|
|
43221
|
+
class ReservationSlotsGetResponse
|
|
43222
|
+
include Google::Apis::Core::Hashable
|
|
43223
|
+
|
|
43224
|
+
# Represents a reservation slot resource.
|
|
43225
|
+
# Corresponds to the JSON property `resource`
|
|
43226
|
+
# @return [Google::Apis::ComputeV1::ReservationSlot]
|
|
43227
|
+
attr_accessor :resource
|
|
43228
|
+
|
|
43229
|
+
def initialize(**args)
|
|
43230
|
+
update!(**args)
|
|
43231
|
+
end
|
|
43232
|
+
|
|
43233
|
+
# Update properties of this object
|
|
43234
|
+
def update!(**args)
|
|
43235
|
+
@resource = args[:resource] if args.key?(:resource)
|
|
43236
|
+
end
|
|
43237
|
+
end
|
|
43238
|
+
|
|
43239
|
+
# A list of reservation slots within a single reservation.
|
|
43240
|
+
class ReservationSlotsListResponse
|
|
43241
|
+
include Google::Apis::Core::Hashable
|
|
43242
|
+
|
|
43243
|
+
# The unique identifier for the resource; defined by the server.
|
|
43244
|
+
# Corresponds to the JSON property `id`
|
|
43245
|
+
# @return [String]
|
|
43246
|
+
attr_accessor :id
|
|
43247
|
+
|
|
43248
|
+
# A list of reservation slot resources.
|
|
43249
|
+
# Corresponds to the JSON property `items`
|
|
43250
|
+
# @return [Array<Google::Apis::ComputeV1::ReservationSlot>]
|
|
43251
|
+
attr_accessor :items
|
|
43252
|
+
|
|
43253
|
+
# The type of resource. Alwayscompute#reservationSlot for a list of reservation
|
|
43254
|
+
# slots.
|
|
43255
|
+
# Corresponds to the JSON property `kind`
|
|
43256
|
+
# @return [String]
|
|
43257
|
+
attr_accessor :kind
|
|
43258
|
+
|
|
43259
|
+
# This token allows you to get the next page of results for
|
|
43260
|
+
# list requests. If the number of results is larger thanmaxResults, use the
|
|
43261
|
+
# nextPageToken as a value for
|
|
43262
|
+
# the query parameter pageToken in the next list request.
|
|
43263
|
+
# Subsequent list requests will have their own nextPageToken to
|
|
43264
|
+
# continue paging through the results.
|
|
43265
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
43266
|
+
# @return [String]
|
|
43267
|
+
attr_accessor :next_page_token
|
|
43268
|
+
|
|
43269
|
+
# The server-defined URL for this resource.
|
|
43270
|
+
# Corresponds to the JSON property `selfLink`
|
|
43271
|
+
# @return [String]
|
|
43272
|
+
attr_accessor :self_link
|
|
43273
|
+
|
|
43274
|
+
# An informational warning message.
|
|
43275
|
+
# Corresponds to the JSON property `warning`
|
|
43276
|
+
# @return [Google::Apis::ComputeV1::ReservationSlotsListResponse::Warning]
|
|
43277
|
+
attr_accessor :warning
|
|
43278
|
+
|
|
43279
|
+
def initialize(**args)
|
|
43280
|
+
update!(**args)
|
|
43281
|
+
end
|
|
43282
|
+
|
|
43283
|
+
# Update properties of this object
|
|
43284
|
+
def update!(**args)
|
|
43285
|
+
@id = args[:id] if args.key?(:id)
|
|
43286
|
+
@items = args[:items] if args.key?(:items)
|
|
43287
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
43288
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
43289
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
|
43290
|
+
@warning = args[:warning] if args.key?(:warning)
|
|
43291
|
+
end
|
|
43292
|
+
|
|
43293
|
+
# An informational warning message.
|
|
43294
|
+
class Warning
|
|
43295
|
+
include Google::Apis::Core::Hashable
|
|
43296
|
+
|
|
43297
|
+
# [Output Only] A warning code, if applicable. For example, Compute
|
|
43298
|
+
# Engine returns NO_RESULTS_ON_PAGE if there
|
|
43299
|
+
# are no results in the response.
|
|
43300
|
+
# Corresponds to the JSON property `code`
|
|
43301
|
+
# @return [String]
|
|
43302
|
+
attr_accessor :code
|
|
43303
|
+
|
|
43304
|
+
# [Output Only] Metadata about this warning in key:
|
|
43305
|
+
# value format. For example:
|
|
43306
|
+
# "data": [
|
|
43307
|
+
# `
|
|
43308
|
+
# "key": "scope",
|
|
43309
|
+
# "value": "zones/us-east1-d"
|
|
43310
|
+
# `
|
|
43311
|
+
# Corresponds to the JSON property `data`
|
|
43312
|
+
# @return [Array<Google::Apis::ComputeV1::ReservationSlotsListResponse::Warning::Datum>]
|
|
43313
|
+
attr_accessor :data
|
|
43314
|
+
|
|
43315
|
+
# [Output Only] A human-readable description of the warning code.
|
|
43316
|
+
# Corresponds to the JSON property `message`
|
|
43317
|
+
# @return [String]
|
|
43318
|
+
attr_accessor :message
|
|
43319
|
+
|
|
43320
|
+
def initialize(**args)
|
|
43321
|
+
update!(**args)
|
|
43322
|
+
end
|
|
43323
|
+
|
|
43324
|
+
# Update properties of this object
|
|
43325
|
+
def update!(**args)
|
|
43326
|
+
@code = args[:code] if args.key?(:code)
|
|
43327
|
+
@data = args[:data] if args.key?(:data)
|
|
43328
|
+
@message = args[:message] if args.key?(:message)
|
|
43329
|
+
end
|
|
43330
|
+
|
|
43331
|
+
#
|
|
43332
|
+
class Datum
|
|
43333
|
+
include Google::Apis::Core::Hashable
|
|
43334
|
+
|
|
43335
|
+
# [Output Only] A key that provides more detail on the warning being
|
|
43336
|
+
# returned. For example, for warnings where there are no results in a list
|
|
43337
|
+
# request for a particular zone, this key might be scope and
|
|
43338
|
+
# the key value might be the zone name. Other examples might be a key
|
|
43339
|
+
# indicating a deprecated resource and a suggested replacement, or a
|
|
43340
|
+
# warning about invalid network settings (for example, if an instance
|
|
43341
|
+
# attempts to perform IP forwarding but is not enabled for IP forwarding).
|
|
43342
|
+
# Corresponds to the JSON property `key`
|
|
43343
|
+
# @return [String]
|
|
43344
|
+
attr_accessor :key
|
|
43345
|
+
|
|
43346
|
+
# [Output Only] A warning data value corresponding to the key.
|
|
43347
|
+
# Corresponds to the JSON property `value`
|
|
43348
|
+
# @return [String]
|
|
43349
|
+
attr_accessor :value
|
|
43350
|
+
|
|
43351
|
+
def initialize(**args)
|
|
43352
|
+
update!(**args)
|
|
43353
|
+
end
|
|
43354
|
+
|
|
43355
|
+
# Update properties of this object
|
|
43356
|
+
def update!(**args)
|
|
43357
|
+
@key = args[:key] if args.key?(:key)
|
|
43358
|
+
@value = args[:value] if args.key?(:value)
|
|
43359
|
+
end
|
|
43360
|
+
end
|
|
43361
|
+
end
|
|
43362
|
+
end
|
|
43363
|
+
|
|
42990
43364
|
# Represents a reservation subBlock resource.
|
|
42991
43365
|
class ReservationSubBlock
|
|
42992
43366
|
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.139.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260113"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -2026,6 +2026,18 @@ module Google
|
|
|
2026
2026
|
include Google::Apis::Core::JsonObjectSupport
|
|
2027
2027
|
end
|
|
2028
2028
|
|
|
2029
|
+
class InstanceFlexibilityPolicy
|
|
2030
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
2031
|
+
|
|
2032
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
2033
|
+
end
|
|
2034
|
+
|
|
2035
|
+
class InstanceFlexibilityPolicyInstanceSelection
|
|
2036
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
2037
|
+
|
|
2038
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
2039
|
+
end
|
|
2040
|
+
|
|
2029
2041
|
class InstanceGroup
|
|
2030
2042
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
2031
2043
|
|
|
@@ -5224,6 +5236,48 @@ module Google
|
|
|
5224
5236
|
include Google::Apis::Core::JsonObjectSupport
|
|
5225
5237
|
end
|
|
5226
5238
|
|
|
5239
|
+
class ReservationSlot
|
|
5240
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5241
|
+
|
|
5242
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5243
|
+
end
|
|
5244
|
+
|
|
5245
|
+
class ReservationSlotPhysicalTopology
|
|
5246
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5247
|
+
|
|
5248
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5249
|
+
end
|
|
5250
|
+
|
|
5251
|
+
class ReservationSlotStatus
|
|
5252
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5253
|
+
|
|
5254
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5255
|
+
end
|
|
5256
|
+
|
|
5257
|
+
class ReservationSlotsGetResponse
|
|
5258
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5259
|
+
|
|
5260
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5261
|
+
end
|
|
5262
|
+
|
|
5263
|
+
class ReservationSlotsListResponse
|
|
5264
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5265
|
+
|
|
5266
|
+
class Warning
|
|
5267
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5268
|
+
|
|
5269
|
+
class Datum
|
|
5270
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5271
|
+
|
|
5272
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5273
|
+
end
|
|
5274
|
+
|
|
5275
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5276
|
+
end
|
|
5277
|
+
|
|
5278
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
5279
|
+
end
|
|
5280
|
+
|
|
5227
5281
|
class ReservationSubBlock
|
|
5228
5282
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
5229
5283
|
|
|
@@ -9119,6 +9173,8 @@ module Google
|
|
|
9119
9173
|
# @private
|
|
9120
9174
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
9121
9175
|
property :count, :numeric_string => true, as: 'count'
|
|
9176
|
+
property :instance_flexibility_policy, as: 'instanceFlexibilityPolicy', class: Google::Apis::ComputeV1::InstanceFlexibilityPolicy, decorator: Google::Apis::ComputeV1::InstanceFlexibilityPolicy::Representation
|
|
9177
|
+
|
|
9122
9178
|
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeV1::InstanceProperties, decorator: Google::Apis::ComputeV1::InstanceProperties::Representation
|
|
9123
9179
|
|
|
9124
9180
|
property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeV1::LocationPolicy, decorator: Google::Apis::ComputeV1::LocationPolicy::Representation
|
|
@@ -11693,6 +11749,24 @@ module Google
|
|
|
11693
11749
|
end
|
|
11694
11750
|
end
|
|
11695
11751
|
|
|
11752
|
+
class InstanceFlexibilityPolicy
|
|
11753
|
+
# @private
|
|
11754
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
11755
|
+
hash :instance_selections, as: 'instanceSelections', class: Google::Apis::ComputeV1::InstanceFlexibilityPolicyInstanceSelection, decorator: Google::Apis::ComputeV1::InstanceFlexibilityPolicyInstanceSelection::Representation
|
|
11756
|
+
|
|
11757
|
+
end
|
|
11758
|
+
end
|
|
11759
|
+
|
|
11760
|
+
class InstanceFlexibilityPolicyInstanceSelection
|
|
11761
|
+
# @private
|
|
11762
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
11763
|
+
collection :disks, as: 'disks', class: Google::Apis::ComputeV1::AttachedDisk, decorator: Google::Apis::ComputeV1::AttachedDisk::Representation
|
|
11764
|
+
|
|
11765
|
+
collection :machine_types, as: 'machineTypes'
|
|
11766
|
+
property :rank, :numeric_string => true, as: 'rank'
|
|
11767
|
+
end
|
|
11768
|
+
end
|
|
11769
|
+
|
|
11696
11770
|
class InstanceGroup
|
|
11697
11771
|
# @private
|
|
11698
11772
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -17547,6 +17621,86 @@ module Google
|
|
|
17547
17621
|
end
|
|
17548
17622
|
end
|
|
17549
17623
|
|
|
17624
|
+
class ReservationSlot
|
|
17625
|
+
# @private
|
|
17626
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
17627
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
|
17628
|
+
property :id, :numeric_string => true, as: 'id'
|
|
17629
|
+
property :kind, as: 'kind'
|
|
17630
|
+
property :name, as: 'name'
|
|
17631
|
+
property :physical_topology, as: 'physicalTopology', class: Google::Apis::ComputeV1::ReservationSlotPhysicalTopology, decorator: Google::Apis::ComputeV1::ReservationSlotPhysicalTopology::Representation
|
|
17632
|
+
|
|
17633
|
+
property :self_link, as: 'selfLink'
|
|
17634
|
+
property :self_link_with_id, as: 'selfLinkWithId'
|
|
17635
|
+
property :share_settings, as: 'shareSettings', class: Google::Apis::ComputeV1::ShareSettings, decorator: Google::Apis::ComputeV1::ShareSettings::Representation
|
|
17636
|
+
|
|
17637
|
+
property :state, as: 'state'
|
|
17638
|
+
property :status, as: 'status', class: Google::Apis::ComputeV1::ReservationSlotStatus, decorator: Google::Apis::ComputeV1::ReservationSlotStatus::Representation
|
|
17639
|
+
|
|
17640
|
+
property :zone, as: 'zone'
|
|
17641
|
+
end
|
|
17642
|
+
end
|
|
17643
|
+
|
|
17644
|
+
class ReservationSlotPhysicalTopology
|
|
17645
|
+
# @private
|
|
17646
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
17647
|
+
property :block, as: 'block'
|
|
17648
|
+
property :cluster, as: 'cluster'
|
|
17649
|
+
property :host, as: 'host'
|
|
17650
|
+
property :sub_block, as: 'subBlock'
|
|
17651
|
+
end
|
|
17652
|
+
end
|
|
17653
|
+
|
|
17654
|
+
class ReservationSlotStatus
|
|
17655
|
+
# @private
|
|
17656
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
17657
|
+
property :physical_topology, as: 'physicalTopology', class: Google::Apis::ComputeV1::ReservationSlotPhysicalTopology, decorator: Google::Apis::ComputeV1::ReservationSlotPhysicalTopology::Representation
|
|
17658
|
+
|
|
17659
|
+
collection :rdma_ip_addresses, as: 'rdmaIpAddresses'
|
|
17660
|
+
collection :running_instances, as: 'runningInstances'
|
|
17661
|
+
end
|
|
17662
|
+
end
|
|
17663
|
+
|
|
17664
|
+
class ReservationSlotsGetResponse
|
|
17665
|
+
# @private
|
|
17666
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
17667
|
+
property :resource, as: 'resource', class: Google::Apis::ComputeV1::ReservationSlot, decorator: Google::Apis::ComputeV1::ReservationSlot::Representation
|
|
17668
|
+
|
|
17669
|
+
end
|
|
17670
|
+
end
|
|
17671
|
+
|
|
17672
|
+
class ReservationSlotsListResponse
|
|
17673
|
+
# @private
|
|
17674
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
17675
|
+
property :id, as: 'id'
|
|
17676
|
+
collection :items, as: 'items', class: Google::Apis::ComputeV1::ReservationSlot, decorator: Google::Apis::ComputeV1::ReservationSlot::Representation
|
|
17677
|
+
|
|
17678
|
+
property :kind, as: 'kind'
|
|
17679
|
+
property :next_page_token, as: 'nextPageToken'
|
|
17680
|
+
property :self_link, as: 'selfLink'
|
|
17681
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeV1::ReservationSlotsListResponse::Warning, decorator: Google::Apis::ComputeV1::ReservationSlotsListResponse::Warning::Representation
|
|
17682
|
+
|
|
17683
|
+
end
|
|
17684
|
+
|
|
17685
|
+
class Warning
|
|
17686
|
+
# @private
|
|
17687
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
17688
|
+
property :code, as: 'code'
|
|
17689
|
+
collection :data, as: 'data', class: Google::Apis::ComputeV1::ReservationSlotsListResponse::Warning::Datum, decorator: Google::Apis::ComputeV1::ReservationSlotsListResponse::Warning::Datum::Representation
|
|
17690
|
+
|
|
17691
|
+
property :message, as: 'message'
|
|
17692
|
+
end
|
|
17693
|
+
|
|
17694
|
+
class Datum
|
|
17695
|
+
# @private
|
|
17696
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
17697
|
+
property :key, as: 'key'
|
|
17698
|
+
property :value, as: 'value'
|
|
17699
|
+
end
|
|
17700
|
+
end
|
|
17701
|
+
end
|
|
17702
|
+
end
|
|
17703
|
+
|
|
17550
17704
|
class ReservationSubBlock
|
|
17551
17705
|
# @private
|
|
17552
17706
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -42467,6 +42467,221 @@ module Google
|
|
|
42467
42467
|
execute_or_queue_command(command, &block)
|
|
42468
42468
|
end
|
|
42469
42469
|
|
|
42470
|
+
# Retrieves information about the specified reservation slot.
|
|
42471
|
+
# @param [String] project
|
|
42472
|
+
# The project ID for this request.
|
|
42473
|
+
# @param [String] zone
|
|
42474
|
+
# The name of the zone for this request, formatted as RFC1035.
|
|
42475
|
+
# @param [String] parent_name
|
|
42476
|
+
# The name of the parent reservation and parent block, formatted as
|
|
42477
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
|
|
42478
|
+
# reservationSubBlocks/`reservation_sub_block_name`
|
|
42479
|
+
# @param [String] reservation_slot
|
|
42480
|
+
# The name of the reservation slot, formatted as RFC1035 or a resource ID
|
|
42481
|
+
# number.
|
|
42482
|
+
# @param [String] fields
|
|
42483
|
+
# Selector specifying which fields to include in a partial response.
|
|
42484
|
+
# @param [String] quota_user
|
|
42485
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42486
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
42487
|
+
# @param [String] user_ip
|
|
42488
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
42489
|
+
# @param [Google::Apis::RequestOptions] options
|
|
42490
|
+
# Request-specific options
|
|
42491
|
+
#
|
|
42492
|
+
# @yield [result, err] Result & error if block supplied
|
|
42493
|
+
# @yieldparam result [Google::Apis::ComputeV1::ReservationSlotsGetResponse] parsed result object
|
|
42494
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
42495
|
+
#
|
|
42496
|
+
# @return [Google::Apis::ComputeV1::ReservationSlotsGetResponse]
|
|
42497
|
+
#
|
|
42498
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
42499
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
42500
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
42501
|
+
def get_reservation_slot(project, zone, parent_name, reservation_slot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
42502
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
|
|
42503
|
+
command.response_representation = Google::Apis::ComputeV1::ReservationSlotsGetResponse::Representation
|
|
42504
|
+
command.response_class = Google::Apis::ComputeV1::ReservationSlotsGetResponse
|
|
42505
|
+
command.params['project'] = project unless project.nil?
|
|
42506
|
+
command.params['zone'] = zone unless zone.nil?
|
|
42507
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
42508
|
+
command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
|
|
42509
|
+
command.query['fields'] = fields unless fields.nil?
|
|
42510
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
42511
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
42512
|
+
execute_or_queue_command(command, &block)
|
|
42513
|
+
end
|
|
42514
|
+
|
|
42515
|
+
# Retrieves a list of reservation slots under a single reservation.
|
|
42516
|
+
# @param [String] project
|
|
42517
|
+
# The project ID for this request.
|
|
42518
|
+
# @param [String] zone
|
|
42519
|
+
# The name of the zone for this request, formatted as RFC1035.
|
|
42520
|
+
# @param [String] parent_name
|
|
42521
|
+
# The name of the parent reservation and parent block, formatted as
|
|
42522
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
|
|
42523
|
+
# reservationSubBlocks/`reservation_sub_block_name`
|
|
42524
|
+
# @param [String] filter
|
|
42525
|
+
# A filter expression that filters resources listed in the response. Most
|
|
42526
|
+
# Compute resources support two types of filter expressions:
|
|
42527
|
+
# expressions that support regular expressions and expressions that follow
|
|
42528
|
+
# API improvement proposal AIP-160.
|
|
42529
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
42530
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
42531
|
+
# operator, and the value that you want to use for filtering. The value
|
|
42532
|
+
# must be a string, a number, or a boolean. The operator
|
|
42533
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
42534
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
42535
|
+
# exclude instances named `example-instance` by specifying
|
|
42536
|
+
# `name != example-instance`.
|
|
42537
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
42538
|
+
# For example, to find all objects with `owner` label use:
|
|
42539
|
+
# ```
|
|
42540
|
+
# labels.owner:*
|
|
42541
|
+
# ```
|
|
42542
|
+
# You can also filter nested fields. For example, you could specify
|
|
42543
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
42544
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
42545
|
+
# on nested fields to filter based onresource labels.
|
|
42546
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
42547
|
+
# parentheses. For example:
|
|
42548
|
+
# ```
|
|
42549
|
+
# (scheduling.automaticRestart = true)
|
|
42550
|
+
# (cpuPlatform = "Intel Skylake")
|
|
42551
|
+
# ```
|
|
42552
|
+
# By default, each expression is an `AND` expression. However, you
|
|
42553
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
42554
|
+
# For example:
|
|
42555
|
+
# ```
|
|
42556
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
42557
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
42558
|
+
# (scheduling.automaticRestart = true)
|
|
42559
|
+
# ```
|
|
42560
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
42561
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
42562
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
42563
|
+
# `fieldname eq unquoted literal`
|
|
42564
|
+
# `fieldname eq 'single quoted literal'`
|
|
42565
|
+
# `fieldname eq "double quoted literal"`
|
|
42566
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
42567
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
42568
|
+
# library syntax.
|
|
42569
|
+
# The literal value must match the entire field.
|
|
42570
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
42571
|
+
# you would use `name ne .*instance`.
|
|
42572
|
+
# You cannot combine constraints on multiple fields using regular
|
|
42573
|
+
# expressions.
|
|
42574
|
+
# @param [Fixnum] max_results
|
|
42575
|
+
# The maximum number of results per page that should be returned.
|
|
42576
|
+
# If the number of available results is larger than `maxResults`,
|
|
42577
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
42578
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
42579
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
42580
|
+
# @param [String] order_by
|
|
42581
|
+
# Sorts list results by a certain order. By default, results
|
|
42582
|
+
# are returned in alphanumerical order based on the resource name.
|
|
42583
|
+
# You can also sort results in descending order based on the creation
|
|
42584
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
42585
|
+
# results based on the `creationTimestamp` field in
|
|
42586
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
42587
|
+
# resources like operations so that the newest operation is returned first.
|
|
42588
|
+
# Currently, only sorting by `name` or
|
|
42589
|
+
# `creationTimestamp desc` is supported.
|
|
42590
|
+
# @param [String] page_token
|
|
42591
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
42592
|
+
# `nextPageToken` returned by a previous list request to get
|
|
42593
|
+
# the next page of results.
|
|
42594
|
+
# @param [Boolean] return_partial_success
|
|
42595
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
42596
|
+
# of failure. The default value is false.
|
|
42597
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
42598
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
42599
|
+
# with an error code.
|
|
42600
|
+
# @param [String] fields
|
|
42601
|
+
# Selector specifying which fields to include in a partial response.
|
|
42602
|
+
# @param [String] quota_user
|
|
42603
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42604
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
42605
|
+
# @param [String] user_ip
|
|
42606
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
42607
|
+
# @param [Google::Apis::RequestOptions] options
|
|
42608
|
+
# Request-specific options
|
|
42609
|
+
#
|
|
42610
|
+
# @yield [result, err] Result & error if block supplied
|
|
42611
|
+
# @yieldparam result [Google::Apis::ComputeV1::ReservationSlotsListResponse] parsed result object
|
|
42612
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
42613
|
+
#
|
|
42614
|
+
# @return [Google::Apis::ComputeV1::ReservationSlotsListResponse]
|
|
42615
|
+
#
|
|
42616
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
42617
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
42618
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
42619
|
+
def list_reservation_slots(project, zone, parent_name, 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)
|
|
42620
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots', options)
|
|
42621
|
+
command.response_representation = Google::Apis::ComputeV1::ReservationSlotsListResponse::Representation
|
|
42622
|
+
command.response_class = Google::Apis::ComputeV1::ReservationSlotsListResponse
|
|
42623
|
+
command.params['project'] = project unless project.nil?
|
|
42624
|
+
command.params['zone'] = zone unless zone.nil?
|
|
42625
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
42626
|
+
command.query['filter'] = filter unless filter.nil?
|
|
42627
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
42628
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
42629
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
42630
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
42631
|
+
command.query['fields'] = fields unless fields.nil?
|
|
42632
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
42633
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
42634
|
+
execute_or_queue_command(command, &block)
|
|
42635
|
+
end
|
|
42636
|
+
|
|
42637
|
+
# Update a reservation slot in the specified sub-block.
|
|
42638
|
+
# @param [String] project
|
|
42639
|
+
# The project ID for this request.
|
|
42640
|
+
# @param [String] zone
|
|
42641
|
+
# The name of the zone for this request, formatted as RFC1035.
|
|
42642
|
+
# @param [String] parent_name
|
|
42643
|
+
# The name of the sub-block resource.
|
|
42644
|
+
# @param [String] reservation_slot
|
|
42645
|
+
# The name of the slot resource.
|
|
42646
|
+
# @param [Google::Apis::ComputeV1::ReservationSlot] reservation_slot_object
|
|
42647
|
+
# @param [String] update_mask
|
|
42648
|
+
# The fields to be updated as part of this request.
|
|
42649
|
+
# @param [String] fields
|
|
42650
|
+
# Selector specifying which fields to include in a partial response.
|
|
42651
|
+
# @param [String] quota_user
|
|
42652
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42653
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
42654
|
+
# @param [String] user_ip
|
|
42655
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
42656
|
+
# @param [Google::Apis::RequestOptions] options
|
|
42657
|
+
# Request-specific options
|
|
42658
|
+
#
|
|
42659
|
+
# @yield [result, err] Result & error if block supplied
|
|
42660
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
|
42661
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
42662
|
+
#
|
|
42663
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
|
42664
|
+
#
|
|
42665
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
42666
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
42667
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
42668
|
+
def update_reservation_slot(project, zone, parent_name, reservation_slot, reservation_slot_object = nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
42669
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
|
|
42670
|
+
command.request_representation = Google::Apis::ComputeV1::ReservationSlot::Representation
|
|
42671
|
+
command.request_object = reservation_slot_object
|
|
42672
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
|
42673
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
|
42674
|
+
command.params['project'] = project unless project.nil?
|
|
42675
|
+
command.params['zone'] = zone unless zone.nil?
|
|
42676
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
42677
|
+
command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
|
|
42678
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
42679
|
+
command.query['fields'] = fields unless fields.nil?
|
|
42680
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
42681
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
42682
|
+
execute_or_queue_command(command, &block)
|
|
42683
|
+
end
|
|
42684
|
+
|
|
42470
42685
|
# Retrieves information about the specified reservation subBlock.
|
|
42471
42686
|
# @param [String] project
|
|
42472
42687
|
# Project ID for this request.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.139.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.139.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|