google-apis-compute_v1 0.116.0 → 0.118.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/compute_v1/classes.rb +611 -45
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +195 -0
- data/lib/google/apis/compute_v1/service.rb +294 -0
- metadata +3 -3
@@ -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.118.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250415"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -484,6 +484,12 @@ module Google
|
|
484
484
|
include Google::Apis::Core::JsonObjectSupport
|
485
485
|
end
|
486
486
|
|
487
|
+
class BackendServiceHaPolicy
|
488
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
|
+
|
490
|
+
include Google::Apis::Core::JsonObjectSupport
|
491
|
+
end
|
492
|
+
|
487
493
|
class BackendServiceHttpCookie
|
488
494
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
495
|
|
@@ -1324,6 +1330,12 @@ module Google
|
|
1324
1330
|
include Google::Apis::Core::JsonObjectSupport
|
1325
1331
|
end
|
1326
1332
|
|
1333
|
+
class GroupMaintenanceInfo
|
1334
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1335
|
+
|
1336
|
+
include Google::Apis::Core::JsonObjectSupport
|
1337
|
+
end
|
1338
|
+
|
1327
1339
|
class GuestAttributes
|
1328
1340
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1329
1341
|
|
@@ -4438,6 +4450,42 @@ module Google
|
|
4438
4450
|
include Google::Apis::Core::JsonObjectSupport
|
4439
4451
|
end
|
4440
4452
|
|
4453
|
+
class ReservationBlock
|
4454
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4455
|
+
|
4456
|
+
include Google::Apis::Core::JsonObjectSupport
|
4457
|
+
end
|
4458
|
+
|
4459
|
+
class ReservationBlockPhysicalTopology
|
4460
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4461
|
+
|
4462
|
+
include Google::Apis::Core::JsonObjectSupport
|
4463
|
+
end
|
4464
|
+
|
4465
|
+
class ReservationBlocksGetResponse
|
4466
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4467
|
+
|
4468
|
+
include Google::Apis::Core::JsonObjectSupport
|
4469
|
+
end
|
4470
|
+
|
4471
|
+
class ReservationBlocksListResponse
|
4472
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4473
|
+
|
4474
|
+
class Warning
|
4475
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4476
|
+
|
4477
|
+
class Datum
|
4478
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4479
|
+
|
4480
|
+
include Google::Apis::Core::JsonObjectSupport
|
4481
|
+
end
|
4482
|
+
|
4483
|
+
include Google::Apis::Core::JsonObjectSupport
|
4484
|
+
end
|
4485
|
+
|
4486
|
+
include Google::Apis::Core::JsonObjectSupport
|
4487
|
+
end
|
4488
|
+
|
4441
4489
|
class ReservationList
|
4442
4490
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4443
4491
|
|
@@ -4456,6 +4504,18 @@ module Google
|
|
4456
4504
|
include Google::Apis::Core::JsonObjectSupport
|
4457
4505
|
end
|
4458
4506
|
|
4507
|
+
class ReservationsBlocksPerformMaintenanceRequest
|
4508
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4509
|
+
|
4510
|
+
include Google::Apis::Core::JsonObjectSupport
|
4511
|
+
end
|
4512
|
+
|
4513
|
+
class ReservationsPerformMaintenanceRequest
|
4514
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4515
|
+
|
4516
|
+
include Google::Apis::Core::JsonObjectSupport
|
4517
|
+
end
|
4518
|
+
|
4459
4519
|
class ReservationsResizeRequest
|
4460
4520
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4461
4521
|
|
@@ -4822,6 +4882,12 @@ module Google
|
|
4822
4882
|
include Google::Apis::Core::JsonObjectSupport
|
4823
4883
|
end
|
4824
4884
|
|
4885
|
+
class RouterNatSubnetworkToNat64
|
4886
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4887
|
+
|
4888
|
+
include Google::Apis::Core::JsonObjectSupport
|
4889
|
+
end
|
4890
|
+
|
4825
4891
|
class RouterStatus
|
4826
4892
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
4827
4893
|
|
@@ -7086,6 +7152,9 @@ module Google
|
|
7086
7152
|
class AllocationResourceStatus
|
7087
7153
|
# @private
|
7088
7154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
7155
|
+
property :reservation_block_count, as: 'reservationBlockCount'
|
7156
|
+
property :reservation_maintenance, as: 'reservationMaintenance', class: Google::Apis::ComputeV1::GroupMaintenanceInfo, decorator: Google::Apis::ComputeV1::GroupMaintenanceInfo::Representation
|
7157
|
+
|
7089
7158
|
property :specific_sku_allocation, as: 'specificSkuAllocation', class: Google::Apis::ComputeV1::AllocationResourceStatusSpecificSkuAllocation, decorator: Google::Apis::ComputeV1::AllocationResourceStatusSpecificSkuAllocation::Representation
|
7090
7159
|
|
7091
7160
|
end
|
@@ -7554,9 +7623,13 @@ module Google
|
|
7554
7623
|
property :description, as: 'description'
|
7555
7624
|
property :edge_security_policy, as: 'edgeSecurityPolicy'
|
7556
7625
|
property :enable_cdn, as: 'enableCDN'
|
7626
|
+
property :external_managed_migration_state, as: 'externalManagedMigrationState'
|
7627
|
+
property :external_managed_migration_testing_percentage, as: 'externalManagedMigrationTestingPercentage'
|
7557
7628
|
property :failover_policy, as: 'failoverPolicy', class: Google::Apis::ComputeV1::BackendServiceFailoverPolicy, decorator: Google::Apis::ComputeV1::BackendServiceFailoverPolicy::Representation
|
7558
7629
|
|
7559
7630
|
property :fingerprint, :base64 => true, as: 'fingerprint'
|
7631
|
+
property :ha_policy, as: 'haPolicy', class: Google::Apis::ComputeV1::BackendServiceHaPolicy, decorator: Google::Apis::ComputeV1::BackendServiceHaPolicy::Representation
|
7632
|
+
|
7560
7633
|
collection :health_checks, as: 'healthChecks'
|
7561
7634
|
property :iap, as: 'iap', class: Google::Apis::ComputeV1::BackendServiceIap, decorator: Google::Apis::ComputeV1::BackendServiceIap::Representation
|
7562
7635
|
|
@@ -7703,6 +7776,13 @@ module Google
|
|
7703
7776
|
end
|
7704
7777
|
end
|
7705
7778
|
|
7779
|
+
class BackendServiceHaPolicy
|
7780
|
+
# @private
|
7781
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7782
|
+
property :fast_ip_move, as: 'fastIPMove'
|
7783
|
+
end
|
7784
|
+
end
|
7785
|
+
|
7706
7786
|
class BackendServiceHttpCookie
|
7707
7787
|
# @private
|
7708
7788
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8000,6 +8080,7 @@ module Google
|
|
8000
8080
|
class CacheInvalidationRule
|
8001
8081
|
# @private
|
8002
8082
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8083
|
+
collection :cache_tags, as: 'cacheTags'
|
8003
8084
|
property :host, as: 'host'
|
8004
8085
|
property :path, as: 'path'
|
8005
8086
|
end
|
@@ -9255,6 +9336,17 @@ module Google
|
|
9255
9336
|
end
|
9256
9337
|
end
|
9257
9338
|
|
9339
|
+
class GroupMaintenanceInfo
|
9340
|
+
# @private
|
9341
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9342
|
+
property :maintenance_ongoing_count, as: 'maintenanceOngoingCount'
|
9343
|
+
property :maintenance_pending_count, as: 'maintenancePendingCount'
|
9344
|
+
property :scheduling_type, as: 'schedulingType'
|
9345
|
+
property :upcoming_group_maintenance, as: 'upcomingGroupMaintenance', class: Google::Apis::ComputeV1::UpcomingMaintenance, decorator: Google::Apis::ComputeV1::UpcomingMaintenance::Representation
|
9346
|
+
|
9347
|
+
end
|
9348
|
+
end
|
9349
|
+
|
9258
9350
|
class GuestAttributes
|
9259
9351
|
# @private
|
9260
9352
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -12098,6 +12190,8 @@ module Google
|
|
12098
12190
|
property :instance_properties, as: 'instanceProperties', class: Google::Apis::ComputeV1::InstanceProperties, decorator: Google::Apis::ComputeV1::InstanceProperties::Representation
|
12099
12191
|
|
12100
12192
|
property :kind, as: 'kind'
|
12193
|
+
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
12194
|
+
hash :labels, as: 'labels'
|
12101
12195
|
property :machine_image_encryption_key, as: 'machineImageEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
|
12102
12196
|
|
12103
12197
|
property :name, as: 'name'
|
@@ -13055,10 +13149,14 @@ module Google
|
|
13055
13149
|
property :allow_class_d_firewalls, as: 'allowClassDFirewalls'
|
13056
13150
|
property :allow_cloud_nat, as: 'allowCloudNat'
|
13057
13151
|
property :allow_cloud_router, as: 'allowCloudRouter'
|
13152
|
+
property :allow_default_nic_attachment, as: 'allowDefaultNicAttachment'
|
13058
13153
|
property :allow_external_ip_access, as: 'allowExternalIpAccess'
|
13059
13154
|
property :allow_interconnect, as: 'allowInterconnect'
|
13155
|
+
property :allow_ip_forwarding, as: 'allowIpForwarding'
|
13060
13156
|
property :allow_load_balancing, as: 'allowLoadBalancing'
|
13061
13157
|
property :allow_multi_nic_in_same_network, as: 'allowMultiNicInSameNetwork'
|
13158
|
+
property :allow_ncc, as: 'allowNcc'
|
13159
|
+
property :allow_network_migration, as: 'allowNetworkMigration'
|
13062
13160
|
property :allow_packet_mirroring, as: 'allowPacketMirroring'
|
13063
13161
|
property :allow_private_google_access, as: 'allowPrivateGoogleAccess'
|
13064
13162
|
property :allow_psc, as: 'allowPsc'
|
@@ -13070,6 +13168,8 @@ module Google
|
|
13070
13168
|
collection :interface_types, as: 'interfaceTypes'
|
13071
13169
|
collection :subnet_purposes, as: 'subnetPurposes'
|
13072
13170
|
collection :subnet_stack_types, as: 'subnetStackTypes'
|
13171
|
+
collection :subnetwork_purposes, as: 'subnetworkPurposes'
|
13172
|
+
collection :subnetwork_stack_types, as: 'subnetworkStackTypes'
|
13073
13173
|
property :unicast, as: 'unicast'
|
13074
13174
|
end
|
13075
13175
|
end
|
@@ -15012,9 +15112,11 @@ module Google
|
|
15012
15112
|
|
15013
15113
|
property :commitment, as: 'commitment'
|
15014
15114
|
property :creation_timestamp, as: 'creationTimestamp'
|
15115
|
+
property :deployment_type, as: 'deploymentType'
|
15015
15116
|
property :description, as: 'description'
|
15016
15117
|
property :id, :numeric_string => true, as: 'id'
|
15017
15118
|
property :kind, as: 'kind'
|
15119
|
+
collection :linked_commitments, as: 'linkedCommitments'
|
15018
15120
|
property :name, as: 'name'
|
15019
15121
|
property :reservation_sharing_policy, as: 'reservationSharingPolicy', class: Google::Apis::ComputeV1::AllocationReservationSharingPolicy, decorator: Google::Apis::ComputeV1::AllocationReservationSharingPolicy::Representation
|
15020
15122
|
|
@@ -15075,6 +15177,74 @@ module Google
|
|
15075
15177
|
end
|
15076
15178
|
end
|
15077
15179
|
|
15180
|
+
class ReservationBlock
|
15181
|
+
# @private
|
15182
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15183
|
+
property :count, as: 'count'
|
15184
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
15185
|
+
property :id, :numeric_string => true, as: 'id'
|
15186
|
+
property :in_use_count, as: 'inUseCount'
|
15187
|
+
property :kind, as: 'kind'
|
15188
|
+
property :name, as: 'name'
|
15189
|
+
property :physical_topology, as: 'physicalTopology', class: Google::Apis::ComputeV1::ReservationBlockPhysicalTopology, decorator: Google::Apis::ComputeV1::ReservationBlockPhysicalTopology::Representation
|
15190
|
+
|
15191
|
+
property :reservation_maintenance, as: 'reservationMaintenance', class: Google::Apis::ComputeV1::GroupMaintenanceInfo, decorator: Google::Apis::ComputeV1::GroupMaintenanceInfo::Representation
|
15192
|
+
|
15193
|
+
property :self_link, as: 'selfLink'
|
15194
|
+
property :self_link_with_id, as: 'selfLinkWithId'
|
15195
|
+
property :status, as: 'status'
|
15196
|
+
property :zone, as: 'zone'
|
15197
|
+
end
|
15198
|
+
end
|
15199
|
+
|
15200
|
+
class ReservationBlockPhysicalTopology
|
15201
|
+
# @private
|
15202
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15203
|
+
property :block, as: 'block'
|
15204
|
+
property :cluster, as: 'cluster'
|
15205
|
+
end
|
15206
|
+
end
|
15207
|
+
|
15208
|
+
class ReservationBlocksGetResponse
|
15209
|
+
# @private
|
15210
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15211
|
+
property :resource, as: 'resource', class: Google::Apis::ComputeV1::ReservationBlock, decorator: Google::Apis::ComputeV1::ReservationBlock::Representation
|
15212
|
+
|
15213
|
+
end
|
15214
|
+
end
|
15215
|
+
|
15216
|
+
class ReservationBlocksListResponse
|
15217
|
+
# @private
|
15218
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15219
|
+
property :id, as: 'id'
|
15220
|
+
collection :items, as: 'items', class: Google::Apis::ComputeV1::ReservationBlock, decorator: Google::Apis::ComputeV1::ReservationBlock::Representation
|
15221
|
+
|
15222
|
+
property :kind, as: 'kind'
|
15223
|
+
property :next_page_token, as: 'nextPageToken'
|
15224
|
+
property :self_link, as: 'selfLink'
|
15225
|
+
property :warning, as: 'warning', class: Google::Apis::ComputeV1::ReservationBlocksListResponse::Warning, decorator: Google::Apis::ComputeV1::ReservationBlocksListResponse::Warning::Representation
|
15226
|
+
|
15227
|
+
end
|
15228
|
+
|
15229
|
+
class Warning
|
15230
|
+
# @private
|
15231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15232
|
+
property :code, as: 'code'
|
15233
|
+
collection :data, as: 'data', class: Google::Apis::ComputeV1::ReservationBlocksListResponse::Warning::Datum, decorator: Google::Apis::ComputeV1::ReservationBlocksListResponse::Warning::Datum::Representation
|
15234
|
+
|
15235
|
+
property :message, as: 'message'
|
15236
|
+
end
|
15237
|
+
|
15238
|
+
class Datum
|
15239
|
+
# @private
|
15240
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15241
|
+
property :key, as: 'key'
|
15242
|
+
property :value, as: 'value'
|
15243
|
+
end
|
15244
|
+
end
|
15245
|
+
end
|
15246
|
+
end
|
15247
|
+
|
15078
15248
|
class ReservationList
|
15079
15249
|
# @private
|
15080
15250
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -15107,6 +15277,20 @@ module Google
|
|
15107
15277
|
end
|
15108
15278
|
end
|
15109
15279
|
|
15280
|
+
class ReservationsBlocksPerformMaintenanceRequest
|
15281
|
+
# @private
|
15282
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15283
|
+
property :maintenance_scope, as: 'maintenanceScope'
|
15284
|
+
end
|
15285
|
+
end
|
15286
|
+
|
15287
|
+
class ReservationsPerformMaintenanceRequest
|
15288
|
+
# @private
|
15289
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15290
|
+
property :maintenance_scope, as: 'maintenanceScope'
|
15291
|
+
end
|
15292
|
+
end
|
15293
|
+
|
15110
15294
|
class ReservationsResizeRequest
|
15111
15295
|
# @private
|
15112
15296
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -15747,11 +15931,14 @@ module Google
|
|
15747
15931
|
property :max_ports_per_vm, as: 'maxPortsPerVm'
|
15748
15932
|
property :min_ports_per_vm, as: 'minPortsPerVm'
|
15749
15933
|
property :name, as: 'name'
|
15934
|
+
collection :nat64_subnetworks, as: 'nat64Subnetworks', class: Google::Apis::ComputeV1::RouterNatSubnetworkToNat64, decorator: Google::Apis::ComputeV1::RouterNatSubnetworkToNat64::Representation
|
15935
|
+
|
15750
15936
|
property :nat_ip_allocate_option, as: 'natIpAllocateOption'
|
15751
15937
|
collection :nat_ips, as: 'natIps'
|
15752
15938
|
collection :rules, as: 'rules', class: Google::Apis::ComputeV1::RouterNatRule, decorator: Google::Apis::ComputeV1::RouterNatRule::Representation
|
15753
15939
|
|
15754
15940
|
property :source_subnetwork_ip_ranges_to_nat, as: 'sourceSubnetworkIpRangesToNat'
|
15941
|
+
property :source_subnetwork_ip_ranges_to_nat64, as: 'sourceSubnetworkIpRangesToNat64'
|
15755
15942
|
collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeV1::RouterNatSubnetworkToNat, decorator: Google::Apis::ComputeV1::RouterNatSubnetworkToNat::Representation
|
15756
15943
|
|
15757
15944
|
property :tcp_established_idle_timeout_sec, as: 'tcpEstablishedIdleTimeoutSec'
|
@@ -15800,6 +15987,13 @@ module Google
|
|
15800
15987
|
end
|
15801
15988
|
end
|
15802
15989
|
|
15990
|
+
class RouterNatSubnetworkToNat64
|
15991
|
+
# @private
|
15992
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
15993
|
+
property :name, as: 'name'
|
15994
|
+
end
|
15995
|
+
end
|
15996
|
+
|
15803
15997
|
class RouterStatus
|
15804
15998
|
# @private
|
15805
15999
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -16766,6 +16960,7 @@ module Google
|
|
16766
16960
|
property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
|
16767
16961
|
property :download_bytes, :numeric_string => true, as: 'downloadBytes'
|
16768
16962
|
property :enable_confidential_compute, as: 'enableConfidentialCompute'
|
16963
|
+
property :guest_flush, as: 'guestFlush'
|
16769
16964
|
collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeV1::GuestOsFeature, decorator: Google::Apis::ComputeV1::GuestOsFeature::Representation
|
16770
16965
|
|
16771
16966
|
property :id, :numeric_string => true, as: 'id'
|
@@ -17537,6 +17537,46 @@ module Google
|
|
17537
17537
|
execute_or_queue_command(command, &block)
|
17538
17538
|
end
|
17539
17539
|
|
17540
|
+
# Sets the labels on a machine image. To learn more about labels, read the
|
17541
|
+
# Labeling Resources documentation.
|
17542
|
+
# @param [String] project
|
17543
|
+
# Project ID for this request.
|
17544
|
+
# @param [String] resource
|
17545
|
+
# Name or id of the resource for this request.
|
17546
|
+
# @param [Google::Apis::ComputeV1::GlobalSetLabelsRequest] global_set_labels_request_object
|
17547
|
+
# @param [String] fields
|
17548
|
+
# Selector specifying which fields to include in a partial response.
|
17549
|
+
# @param [String] quota_user
|
17550
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17551
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17552
|
+
# @param [String] user_ip
|
17553
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17554
|
+
# @param [Google::Apis::RequestOptions] options
|
17555
|
+
# Request-specific options
|
17556
|
+
#
|
17557
|
+
# @yield [result, err] Result & error if block supplied
|
17558
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
17559
|
+
# @yieldparam err [StandardError] error object if request failed
|
17560
|
+
#
|
17561
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
17562
|
+
#
|
17563
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17564
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17565
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17566
|
+
def set_machine_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17567
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setLabels', options)
|
17568
|
+
command.request_representation = Google::Apis::ComputeV1::GlobalSetLabelsRequest::Representation
|
17569
|
+
command.request_object = global_set_labels_request_object
|
17570
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
17571
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
17572
|
+
command.params['project'] = project unless project.nil?
|
17573
|
+
command.params['resource'] = resource unless resource.nil?
|
17574
|
+
command.query['fields'] = fields unless fields.nil?
|
17575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17576
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17577
|
+
execute_or_queue_command(command, &block)
|
17578
|
+
end
|
17579
|
+
|
17540
17580
|
# Returns permissions that a caller has on the specified resource.
|
17541
17581
|
# @param [String] project
|
17542
17582
|
# Project ID for this request.
|
@@ -34663,6 +34703,206 @@ module Google
|
|
34663
34703
|
execute_or_queue_command(command, &block)
|
34664
34704
|
end
|
34665
34705
|
|
34706
|
+
# Retrieves information about the specified reservation block.
|
34707
|
+
# @param [String] project
|
34708
|
+
# Project ID for this request.
|
34709
|
+
# @param [String] zone
|
34710
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
34711
|
+
# @param [String] reservation
|
34712
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
34713
|
+
# ID.
|
34714
|
+
# @param [String] reservation_block
|
34715
|
+
# The name of the reservation block. Name should conform to RFC1035 or be a
|
34716
|
+
# resource ID.
|
34717
|
+
# @param [String] fields
|
34718
|
+
# Selector specifying which fields to include in a partial response.
|
34719
|
+
# @param [String] quota_user
|
34720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34722
|
+
# @param [String] user_ip
|
34723
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34724
|
+
# @param [Google::Apis::RequestOptions] options
|
34725
|
+
# Request-specific options
|
34726
|
+
#
|
34727
|
+
# @yield [result, err] Result & error if block supplied
|
34728
|
+
# @yieldparam result [Google::Apis::ComputeV1::ReservationBlocksGetResponse] parsed result object
|
34729
|
+
# @yieldparam err [StandardError] error object if request failed
|
34730
|
+
#
|
34731
|
+
# @return [Google::Apis::ComputeV1::ReservationBlocksGetResponse]
|
34732
|
+
#
|
34733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34736
|
+
def get_reservation_block(project, zone, reservation, reservation_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34737
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}', options)
|
34738
|
+
command.response_representation = Google::Apis::ComputeV1::ReservationBlocksGetResponse::Representation
|
34739
|
+
command.response_class = Google::Apis::ComputeV1::ReservationBlocksGetResponse
|
34740
|
+
command.params['project'] = project unless project.nil?
|
34741
|
+
command.params['zone'] = zone unless zone.nil?
|
34742
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
34743
|
+
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
34744
|
+
command.query['fields'] = fields unless fields.nil?
|
34745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34746
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34747
|
+
execute_or_queue_command(command, &block)
|
34748
|
+
end
|
34749
|
+
|
34750
|
+
# Retrieves a list of reservation blocks under a single reservation.
|
34751
|
+
# @param [String] project
|
34752
|
+
# Project ID for this request.
|
34753
|
+
# @param [String] zone
|
34754
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
34755
|
+
# @param [String] reservation
|
34756
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
34757
|
+
# ID.
|
34758
|
+
# @param [String] filter
|
34759
|
+
# A filter expression that filters resources listed in the response. Most
|
34760
|
+
# Compute resources support two types of filter expressions: expressions that
|
34761
|
+
# support regular expressions and expressions that follow API improvement
|
34762
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
34763
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
34764
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
34765
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
34766
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
34767
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
34768
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
34769
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
34770
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
34771
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
34772
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
34773
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
34774
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
34775
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
34776
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
34777
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
34778
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
34779
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
34780
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
34781
|
+
# un-parenthesized expression with or without quotes or against multiple
|
34782
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
34783
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
34784
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
34785
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
34786
|
+
# literal value must match the entire field. For example, to filter for
|
34787
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
34788
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
34789
|
+
# expressions.
|
34790
|
+
# @param [Fixnum] max_results
|
34791
|
+
# The maximum number of results per page that should be returned. If the number
|
34792
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34793
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34794
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34795
|
+
# @param [String] order_by
|
34796
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34797
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
34798
|
+
# descending order based on the creation timestamp using `orderBy="
|
34799
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
34800
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
34801
|
+
# resources like operations so that the newest operation is returned first.
|
34802
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34803
|
+
# @param [String] page_token
|
34804
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34805
|
+
# by a previous list request to get the next page of results.
|
34806
|
+
# @param [Boolean] return_partial_success
|
34807
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34808
|
+
# failure. The default value is false. For example, when partial success
|
34809
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
34810
|
+
# resources in the zone or no resources, with an error code.
|
34811
|
+
# @param [String] fields
|
34812
|
+
# Selector specifying which fields to include in a partial response.
|
34813
|
+
# @param [String] quota_user
|
34814
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34815
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34816
|
+
# @param [String] user_ip
|
34817
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34818
|
+
# @param [Google::Apis::RequestOptions] options
|
34819
|
+
# Request-specific options
|
34820
|
+
#
|
34821
|
+
# @yield [result, err] Result & error if block supplied
|
34822
|
+
# @yieldparam result [Google::Apis::ComputeV1::ReservationBlocksListResponse] parsed result object
|
34823
|
+
# @yieldparam err [StandardError] error object if request failed
|
34824
|
+
#
|
34825
|
+
# @return [Google::Apis::ComputeV1::ReservationBlocksListResponse]
|
34826
|
+
#
|
34827
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34828
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34829
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34830
|
+
def list_reservation_blocks(project, zone, reservation, 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)
|
34831
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks', options)
|
34832
|
+
command.response_representation = Google::Apis::ComputeV1::ReservationBlocksListResponse::Representation
|
34833
|
+
command.response_class = Google::Apis::ComputeV1::ReservationBlocksListResponse
|
34834
|
+
command.params['project'] = project unless project.nil?
|
34835
|
+
command.params['zone'] = zone unless zone.nil?
|
34836
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
34837
|
+
command.query['filter'] = filter unless filter.nil?
|
34838
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34839
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34840
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34841
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34842
|
+
command.query['fields'] = fields unless fields.nil?
|
34843
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34844
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34845
|
+
execute_or_queue_command(command, &block)
|
34846
|
+
end
|
34847
|
+
|
34848
|
+
# Allows customers to perform maintenance on a reservation block
|
34849
|
+
# @param [String] project
|
34850
|
+
# Project ID for this request.
|
34851
|
+
# @param [String] zone
|
34852
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
34853
|
+
# @param [String] reservation
|
34854
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
34855
|
+
# ID.
|
34856
|
+
# @param [String] reservation_block
|
34857
|
+
# The name of the reservation block. Name should conform to RFC1035 or be a
|
34858
|
+
# resource ID.
|
34859
|
+
# @param [Google::Apis::ComputeV1::ReservationsBlocksPerformMaintenanceRequest] reservations_blocks_perform_maintenance_request_object
|
34860
|
+
# @param [String] request_id
|
34861
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34862
|
+
# that if you must retry your request, the server will know to ignore the
|
34863
|
+
# request if it has already been completed. For example, consider a situation
|
34864
|
+
# where you make an initial request and the request times out. If you make the
|
34865
|
+
# request again with the same request ID, the server can check if original
|
34866
|
+
# operation with the same request ID was received, and if so, will ignore the
|
34867
|
+
# second request. This prevents clients from accidentally creating duplicate
|
34868
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
34869
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34870
|
+
# @param [String] fields
|
34871
|
+
# Selector specifying which fields to include in a partial response.
|
34872
|
+
# @param [String] quota_user
|
34873
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34874
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34875
|
+
# @param [String] user_ip
|
34876
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34877
|
+
# @param [Google::Apis::RequestOptions] options
|
34878
|
+
# Request-specific options
|
34879
|
+
#
|
34880
|
+
# @yield [result, err] Result & error if block supplied
|
34881
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
34882
|
+
# @yieldparam err [StandardError] error object if request failed
|
34883
|
+
#
|
34884
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
34885
|
+
#
|
34886
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34887
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34888
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34889
|
+
def perform_reservation_block_maintenance(project, zone, reservation, reservation_block, reservations_blocks_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34890
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}/performMaintenance', options)
|
34891
|
+
command.request_representation = Google::Apis::ComputeV1::ReservationsBlocksPerformMaintenanceRequest::Representation
|
34892
|
+
command.request_object = reservations_blocks_perform_maintenance_request_object
|
34893
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
34894
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
34895
|
+
command.params['project'] = project unless project.nil?
|
34896
|
+
command.params['zone'] = zone unless zone.nil?
|
34897
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
34898
|
+
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
34899
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34900
|
+
command.query['fields'] = fields unless fields.nil?
|
34901
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34902
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34903
|
+
execute_or_queue_command(command, &block)
|
34904
|
+
end
|
34905
|
+
|
34666
34906
|
# Retrieves an aggregated list of reservations. To prevent failure, Google
|
34667
34907
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
34668
34908
|
# @param [String] project
|
@@ -35045,6 +35285,60 @@ module Google
|
|
35045
35285
|
execute_or_queue_command(command, &block)
|
35046
35286
|
end
|
35047
35287
|
|
35288
|
+
# Perform maintenance on an extended reservation
|
35289
|
+
# @param [String] project
|
35290
|
+
# Project ID for this request.
|
35291
|
+
# @param [String] zone
|
35292
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
35293
|
+
# @param [String] reservation
|
35294
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
35295
|
+
# ID.
|
35296
|
+
# @param [Google::Apis::ComputeV1::ReservationsPerformMaintenanceRequest] reservations_perform_maintenance_request_object
|
35297
|
+
# @param [String] request_id
|
35298
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
35299
|
+
# that if you must retry your request, the server will know to ignore the
|
35300
|
+
# request if it has already been completed. For example, consider a situation
|
35301
|
+
# where you make an initial request and the request times out. If you make the
|
35302
|
+
# request again with the same request ID, the server can check if original
|
35303
|
+
# operation with the same request ID was received, and if so, will ignore the
|
35304
|
+
# second request. This prevents clients from accidentally creating duplicate
|
35305
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
35306
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
35307
|
+
# @param [String] fields
|
35308
|
+
# Selector specifying which fields to include in a partial response.
|
35309
|
+
# @param [String] quota_user
|
35310
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35311
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35312
|
+
# @param [String] user_ip
|
35313
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35314
|
+
# @param [Google::Apis::RequestOptions] options
|
35315
|
+
# Request-specific options
|
35316
|
+
#
|
35317
|
+
# @yield [result, err] Result & error if block supplied
|
35318
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
35319
|
+
# @yieldparam err [StandardError] error object if request failed
|
35320
|
+
#
|
35321
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
35322
|
+
#
|
35323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35326
|
+
def perform_reservation_maintenance(project, zone, reservation, reservations_perform_maintenance_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35327
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/reservations/{reservation}/performMaintenance', options)
|
35328
|
+
command.request_representation = Google::Apis::ComputeV1::ReservationsPerformMaintenanceRequest::Representation
|
35329
|
+
command.request_object = reservations_perform_maintenance_request_object
|
35330
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
35331
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
35332
|
+
command.params['project'] = project unless project.nil?
|
35333
|
+
command.params['zone'] = zone unless zone.nil?
|
35334
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
35335
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
35336
|
+
command.query['fields'] = fields unless fields.nil?
|
35337
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35338
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35339
|
+
execute_or_queue_command(command, &block)
|
35340
|
+
end
|
35341
|
+
|
35048
35342
|
# Resizes the reservation (applicable to standalone reservations only). For more
|
35049
35343
|
# information, read Modifying reservations.
|
35050
35344
|
# @param [String] project
|