google-apis-compute_alpha 0.66.0 → 0.68.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeAlpha
18
18
  # Version of the google-apis-compute_alpha gem
19
- GEM_VERSION = "0.66.0"
19
+ GEM_VERSION = "0.68.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230418"
25
+ REVISION = "20230516"
26
26
  end
27
27
  end
28
28
  end
@@ -694,6 +694,18 @@ module Google
694
694
  include Google::Apis::Core::JsonObjectSupport
695
695
  end
696
696
 
697
+ class CommitmentResourceStatus
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
703
+ class CommitmentResourceStatusCancellationInformation
704
+ class Representation < Google::Apis::Core::JsonRepresentation; end
705
+
706
+ include Google::Apis::Core::JsonObjectSupport
707
+ end
708
+
697
709
  class CommitmentsScopedList
698
710
  class Representation < Google::Apis::Core::JsonRepresentation; end
699
711
 
@@ -1270,6 +1282,18 @@ module Google
1270
1282
  include Google::Apis::Core::JsonObjectSupport
1271
1283
  end
1272
1284
 
1285
+ class FutureReservationStatusLastKnownGoodState
1286
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1287
+
1288
+ include Google::Apis::Core::JsonObjectSupport
1289
+ end
1290
+
1291
+ class FutureReservationStatusLastKnownGoodStateFutureReservationSpecs
1292
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1293
+
1294
+ include Google::Apis::Core::JsonObjectSupport
1295
+ end
1296
+
1273
1297
  class FutureReservationStatusSpecificSkuProperties
1274
1298
  class Representation < Google::Apis::Core::JsonRepresentation; end
1275
1299
 
@@ -1894,6 +1918,18 @@ module Google
1894
1918
  include Google::Apis::Core::JsonObjectSupport
1895
1919
  end
1896
1920
 
1921
+ class InstanceGroupManagerInstanceFlexibilityPolicy
1922
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1923
+
1924
+ include Google::Apis::Core::JsonObjectSupport
1925
+ end
1926
+
1927
+ class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
1928
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1929
+
1930
+ include Google::Apis::Core::JsonObjectSupport
1931
+ end
1932
+
1897
1933
  class InstanceGroupManagerInstanceLifecyclePolicy
1898
1934
  class Representation < Google::Apis::Core::JsonRepresentation; end
1899
1935
 
@@ -3172,6 +3208,12 @@ module Google
3172
3208
  include Google::Apis::Core::JsonObjectSupport
3173
3209
  end
3174
3210
 
3211
+ class Money
3212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3213
+
3214
+ include Google::Apis::Core::JsonObjectSupport
3215
+ end
3216
+
3175
3217
  class MutualTls
3176
3218
  class Representation < Google::Apis::Core::JsonRepresentation; end
3177
3219
 
@@ -3184,6 +3226,24 @@ module Google
3184
3226
  include Google::Apis::Core::JsonObjectSupport
3185
3227
  end
3186
3228
 
3229
+ class NatIpInfo
3230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3231
+
3232
+ include Google::Apis::Core::JsonObjectSupport
3233
+ end
3234
+
3235
+ class NatIpInfoNatIpInfoMapping
3236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3237
+
3238
+ include Google::Apis::Core::JsonObjectSupport
3239
+ end
3240
+
3241
+ class NatIpInfoResponse
3242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3243
+
3244
+ include Google::Apis::Core::JsonObjectSupport
3245
+ end
3246
+
3187
3247
  class Network
3188
3248
  class Representation < Google::Apis::Core::JsonRepresentation; end
3189
3249
 
@@ -5464,6 +5524,18 @@ module Google
5464
5524
  include Google::Apis::Core::JsonObjectSupport
5465
5525
  end
5466
5526
 
5527
+ class SecurityPolicyRuleMatcherExprOptions
5528
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5529
+
5530
+ include Google::Apis::Core::JsonObjectSupport
5531
+ end
5532
+
5533
+ class SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
5534
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5535
+
5536
+ include Google::Apis::Core::JsonObjectSupport
5537
+ end
5538
+
5467
5539
  class SecurityPolicyRuleNetworkMatcher
5468
5540
  class Representation < Google::Apis::Core::JsonRepresentation; end
5469
5541
 
@@ -7390,6 +7462,7 @@ module Google
7390
7462
  collection :reserved_resources, as: 'reservedResources', class: Google::Apis::ComputeAlpha::AllocationAggregateReservationReservedResourceInfo, decorator: Google::Apis::ComputeAlpha::AllocationAggregateReservationReservedResourceInfo::Representation
7391
7463
 
7392
7464
  property :vm_family, as: 'vmFamily'
7465
+ property :workload_type, as: 'workloadType'
7393
7466
  end
7394
7467
  end
7395
7468
 
@@ -7497,6 +7570,7 @@ module Google
7497
7570
  property :disk_name, as: 'diskName'
7498
7571
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
7499
7572
  property :disk_type, as: 'diskType'
7573
+ property :enable_confidential_compute, as: 'enableConfidentialCompute'
7500
7574
  collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
7501
7575
 
7502
7576
  property :interface, as: 'interface'
@@ -8371,6 +8445,8 @@ module Google
8371
8445
  property :region, as: 'region'
8372
8446
  collection :reservations, as: 'reservations', class: Google::Apis::ComputeAlpha::Reservation, decorator: Google::Apis::ComputeAlpha::Reservation::Representation
8373
8447
 
8448
+ property :resource_status, as: 'resourceStatus', class: Google::Apis::ComputeAlpha::CommitmentResourceStatus, decorator: Google::Apis::ComputeAlpha::CommitmentResourceStatus::Representation
8449
+
8374
8450
  collection :resources, as: 'resources', class: Google::Apis::ComputeAlpha::ResourceCommitment, decorator: Google::Apis::ComputeAlpha::ResourceCommitment::Representation
8375
8451
 
8376
8452
  property :self_link, as: 'selfLink'
@@ -8448,6 +8524,28 @@ module Google
8448
8524
  end
8449
8525
  end
8450
8526
 
8527
+ class CommitmentResourceStatus
8528
+ # @private
8529
+ class Representation < Google::Apis::Core::JsonRepresentation
8530
+ property :cancellation_information, as: 'cancellationInformation', class: Google::Apis::ComputeAlpha::CommitmentResourceStatusCancellationInformation, decorator: Google::Apis::ComputeAlpha::CommitmentResourceStatusCancellationInformation::Representation
8531
+
8532
+ end
8533
+ end
8534
+
8535
+ class CommitmentResourceStatusCancellationInformation
8536
+ # @private
8537
+ class Representation < Google::Apis::Core::JsonRepresentation
8538
+ property :canceled_commitment, as: 'canceledCommitment', class: Google::Apis::ComputeAlpha::Money, decorator: Google::Apis::ComputeAlpha::Money::Representation
8539
+
8540
+ property :canceled_commitment_last_updated_timestamp, as: 'canceledCommitmentLastUpdatedTimestamp'
8541
+ property :cancellation_cap, as: 'cancellationCap', class: Google::Apis::ComputeAlpha::Money, decorator: Google::Apis::ComputeAlpha::Money::Representation
8542
+
8543
+ property :cancellation_fee, as: 'cancellationFee', class: Google::Apis::ComputeAlpha::Money, decorator: Google::Apis::ComputeAlpha::Money::Representation
8544
+
8545
+ property :cancellation_fee_expiration_timestamp, as: 'cancellationFeeExpirationTimestamp'
8546
+ end
8547
+ end
8548
+
8451
8549
  class CommitmentsScopedList
8452
8550
  # @private
8453
8551
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8771,6 +8869,7 @@ module Google
8771
8869
 
8772
8870
  hash :async_secondary_disks, as: 'asyncSecondaryDisks', class: Google::Apis::ComputeAlpha::DiskResourceStatusAsyncReplicationStatus, decorator: Google::Apis::ComputeAlpha::DiskResourceStatusAsyncReplicationStatus::Representation
8773
8871
 
8872
+ property :used_bytes, :numeric_string => true, as: 'usedBytes'
8774
8873
  end
8775
8874
  end
8776
8875
 
@@ -9542,8 +9641,11 @@ module Google
9542
9641
  class FutureReservationStatus
9543
9642
  # @private
9544
9643
  class Representation < Google::Apis::Core::JsonRepresentation
9644
+ property :amendment_status, as: 'amendmentStatus'
9545
9645
  collection :auto_created_reservations, as: 'autoCreatedReservations'
9546
9646
  property :fulfilled_count, :numeric_string => true, as: 'fulfilledCount'
9647
+ property :last_known_good_state, as: 'lastKnownGoodState', class: Google::Apis::ComputeAlpha::FutureReservationStatusLastKnownGoodState, decorator: Google::Apis::ComputeAlpha::FutureReservationStatusLastKnownGoodState::Representation
9648
+
9547
9649
  property :lock_time, as: 'lockTime'
9548
9650
  property :procurement_status, as: 'procurementStatus'
9549
9651
  property :specific_sku_properties, as: 'specificSkuProperties', class: Google::Apis::ComputeAlpha::FutureReservationStatusSpecificSkuProperties, decorator: Google::Apis::ComputeAlpha::FutureReservationStatusSpecificSkuProperties::Representation
@@ -9551,6 +9653,29 @@ module Google
9551
9653
  end
9552
9654
  end
9553
9655
 
9656
+ class FutureReservationStatusLastKnownGoodState
9657
+ # @private
9658
+ class Representation < Google::Apis::Core::JsonRepresentation
9659
+ property :description, as: 'description'
9660
+ property :future_reservation_specs, as: 'futureReservationSpecs', class: Google::Apis::ComputeAlpha::FutureReservationStatusLastKnownGoodStateFutureReservationSpecs, decorator: Google::Apis::ComputeAlpha::FutureReservationStatusLastKnownGoodStateFutureReservationSpecs::Representation
9661
+
9662
+ property :name_prefix, as: 'namePrefix'
9663
+ property :procurement_status, as: 'procurementStatus'
9664
+ end
9665
+ end
9666
+
9667
+ class FutureReservationStatusLastKnownGoodStateFutureReservationSpecs
9668
+ # @private
9669
+ class Representation < Google::Apis::Core::JsonRepresentation
9670
+ property :share_settings, as: 'shareSettings', class: Google::Apis::ComputeAlpha::ShareSettings, decorator: Google::Apis::ComputeAlpha::ShareSettings::Representation
9671
+
9672
+ property :specific_sku_properties, as: 'specificSkuProperties', class: Google::Apis::ComputeAlpha::FutureReservationSpecificSkuProperties, decorator: Google::Apis::ComputeAlpha::FutureReservationSpecificSkuProperties::Representation
9673
+
9674
+ property :time_window, as: 'timeWindow', class: Google::Apis::ComputeAlpha::FutureReservationTimeWindow, decorator: Google::Apis::ComputeAlpha::FutureReservationTimeWindow::Representation
9675
+
9676
+ end
9677
+ end
9678
+
9554
9679
  class FutureReservationStatusSpecificSkuProperties
9555
9680
  # @private
9556
9681
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10765,6 +10890,8 @@ module Google
10765
10890
  property :failover_action, as: 'failoverAction'
10766
10891
  property :fingerprint, :base64 => true, as: 'fingerprint'
10767
10892
  property :id, :numeric_string => true, as: 'id'
10893
+ property :instance_flexibility_policy, as: 'instanceFlexibilityPolicy', class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceFlexibilityPolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceFlexibilityPolicy::Representation
10894
+
10768
10895
  property :instance_group, as: 'instanceGroup'
10769
10896
  property :instance_lifecycle_policy, as: 'instanceLifecyclePolicy', class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceLifecyclePolicy::Representation
10770
10897
 
@@ -10786,6 +10913,7 @@ module Google
10786
10913
 
10787
10914
  collection :target_pools, as: 'targetPools'
10788
10915
  property :target_size, as: 'targetSize'
10916
+ property :target_size_unit, as: 'targetSizeUnit'
10789
10917
  property :target_stopped_size, as: 'targetStoppedSize'
10790
10918
  property :target_suspended_size, as: 'targetSuspendedSize'
10791
10919
  property :update_policy, as: 'updatePolicy', class: Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerUpdatePolicy::Representation
@@ -10877,6 +11005,22 @@ module Google
10877
11005
  end
10878
11006
  end
10879
11007
 
11008
+ class InstanceGroupManagerInstanceFlexibilityPolicy
11009
+ # @private
11010
+ class Representation < Google::Apis::Core::JsonRepresentation
11011
+ hash :instance_selection_lists, as: 'instanceSelectionLists', class: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection::Representation
11012
+
11013
+ end
11014
+ end
11015
+
11016
+ class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection
11017
+ # @private
11018
+ class Representation < Google::Apis::Core::JsonRepresentation
11019
+ collection :machine_types, as: 'machineTypes'
11020
+ property :rank, as: 'rank'
11021
+ end
11022
+ end
11023
+
10880
11024
  class InstanceGroupManagerInstanceLifecyclePolicy
10881
11025
  # @private
10882
11026
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13152,6 +13296,15 @@ module Google
13152
13296
  end
13153
13297
  end
13154
13298
 
13299
+ class Money
13300
+ # @private
13301
+ class Representation < Google::Apis::Core::JsonRepresentation
13302
+ property :currency_code, as: 'currencyCode'
13303
+ property :nanos, as: 'nanos'
13304
+ property :units, :numeric_string => true, as: 'units'
13305
+ end
13306
+ end
13307
+
13155
13308
  class MutualTls
13156
13309
  # @private
13157
13310
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13167,6 +13320,32 @@ module Google
13167
13320
  end
13168
13321
  end
13169
13322
 
13323
+ class NatIpInfo
13324
+ # @private
13325
+ class Representation < Google::Apis::Core::JsonRepresentation
13326
+ collection :nat_ip_info_mappings, as: 'natIpInfoMappings', class: Google::Apis::ComputeAlpha::NatIpInfoNatIpInfoMapping, decorator: Google::Apis::ComputeAlpha::NatIpInfoNatIpInfoMapping::Representation
13327
+
13328
+ property :nat_name, as: 'natName'
13329
+ end
13330
+ end
13331
+
13332
+ class NatIpInfoNatIpInfoMapping
13333
+ # @private
13334
+ class Representation < Google::Apis::Core::JsonRepresentation
13335
+ property :mode, as: 'mode'
13336
+ property :nat_ip, as: 'natIp'
13337
+ property :usage, as: 'usage'
13338
+ end
13339
+ end
13340
+
13341
+ class NatIpInfoResponse
13342
+ # @private
13343
+ class Representation < Google::Apis::Core::JsonRepresentation
13344
+ collection :result, as: 'result', class: Google::Apis::ComputeAlpha::NatIpInfo, decorator: Google::Apis::ComputeAlpha::NatIpInfo::Representation
13345
+
13346
+ end
13347
+ end
13348
+
13170
13349
  class Network
13171
13350
  # @private
13172
13351
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -17336,6 +17515,8 @@ module Google
17336
17515
 
17337
17516
  property :expr, as: 'expr', class: Google::Apis::ComputeAlpha::Expr, decorator: Google::Apis::ComputeAlpha::Expr::Representation
17338
17517
 
17518
+ property :expr_options, as: 'exprOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherExprOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherExprOptions::Representation
17519
+
17339
17520
  property :versioned_expr, as: 'versionedExpr'
17340
17521
  end
17341
17522
  end
@@ -17368,6 +17549,22 @@ module Google
17368
17549
  end
17369
17550
  end
17370
17551
 
17552
+ class SecurityPolicyRuleMatcherExprOptions
17553
+ # @private
17554
+ class Representation < Google::Apis::Core::JsonRepresentation
17555
+ property :recaptcha_options, as: 'recaptchaOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions::Representation
17556
+
17557
+ end
17558
+ end
17559
+
17560
+ class SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
17561
+ # @private
17562
+ class Representation < Google::Apis::Core::JsonRepresentation
17563
+ collection :action_token_site_keys, as: 'actionTokenSiteKeys'
17564
+ collection :session_token_site_keys, as: 'sessionTokenSiteKeys'
17565
+ end
17566
+ end
17567
+
17371
17568
  class SecurityPolicyRuleNetworkMatcher
17372
17569
  # @private
17373
17570
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -17831,6 +18028,7 @@ module Google
17831
18028
  property :description, as: 'description'
17832
18029
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
17833
18030
  property :download_bytes, :numeric_string => true, as: 'downloadBytes'
18031
+ property :enable_confidential_compute, as: 'enableConfidentialCompute'
17834
18032
  property :guest_flush, as: 'guestFlush'
17835
18033
  collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
17836
18034
 
@@ -27465,6 +27465,106 @@ module Google
27465
27465
  execute_or_queue_command(command, &block)
27466
27466
  end
27467
27467
 
27468
+ # Calculate cancellation fee for the specified commitment.
27469
+ # @param [String] project
27470
+ # Project ID for this request.
27471
+ # @param [String] region
27472
+ # Name of the region for this request.
27473
+ # @param [String] commitment
27474
+ # Name of the commitment to delete.
27475
+ # @param [String] request_id
27476
+ # An optional request ID to identify requests. Specify a unique request ID so
27477
+ # that if you must retry your request, the server will know to ignore the
27478
+ # request if it has already been completed. For example, consider a situation
27479
+ # where you make an initial request and the request times out. If you make the
27480
+ # request again with the same request ID, the server can check if original
27481
+ # operation with the same request ID was received, and if so, will ignore the
27482
+ # second request. This prevents clients from accidentally creating duplicate
27483
+ # commitments. The request ID must be a valid UUID with the exception that zero
27484
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
27485
+ # @param [String] fields
27486
+ # Selector specifying which fields to include in a partial response.
27487
+ # @param [String] quota_user
27488
+ # Available to use for quota purposes for server-side applications. Can be any
27489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27490
+ # @param [String] user_ip
27491
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27492
+ # @param [Google::Apis::RequestOptions] options
27493
+ # Request-specific options
27494
+ #
27495
+ # @yield [result, err] Result & error if block supplied
27496
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27497
+ # @yieldparam err [StandardError] error object if request failed
27498
+ #
27499
+ # @return [Google::Apis::ComputeAlpha::Operation]
27500
+ #
27501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27504
+ def calculate_region_commitment_cancellation_fee(project, region, commitment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27505
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{commitment}/calculateCancellationFee', options)
27506
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27507
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27508
+ command.params['project'] = project unless project.nil?
27509
+ command.params['region'] = region unless region.nil?
27510
+ command.params['commitment'] = commitment unless commitment.nil?
27511
+ command.query['requestId'] = request_id unless request_id.nil?
27512
+ command.query['fields'] = fields unless fields.nil?
27513
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27514
+ command.query['userIp'] = user_ip unless user_ip.nil?
27515
+ execute_or_queue_command(command, &block)
27516
+ end
27517
+
27518
+ # Cancel the specified commitment.
27519
+ # @param [String] project
27520
+ # Project ID for this request.
27521
+ # @param [String] region
27522
+ # Name of the region for this request.
27523
+ # @param [String] commitment
27524
+ # Name of the commitment to delete.
27525
+ # @param [String] request_id
27526
+ # An optional request ID to identify requests. Specify a unique request ID so
27527
+ # that if you must retry your request, the server will know to ignore the
27528
+ # request if it has already been completed. For example, consider a situation
27529
+ # where you make an initial request and the request times out. If you make the
27530
+ # request again with the same request ID, the server can check if original
27531
+ # operation with the same request ID was received, and if so, will ignore the
27532
+ # second request. This prevents clients from accidentally creating duplicate
27533
+ # commitments. The request ID must be a valid UUID with the exception that zero
27534
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
27535
+ # @param [String] fields
27536
+ # Selector specifying which fields to include in a partial response.
27537
+ # @param [String] quota_user
27538
+ # Available to use for quota purposes for server-side applications. Can be any
27539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
27540
+ # @param [String] user_ip
27541
+ # Legacy name for parameter that has been superseded by `quotaUser`.
27542
+ # @param [Google::Apis::RequestOptions] options
27543
+ # Request-specific options
27544
+ #
27545
+ # @yield [result, err] Result & error if block supplied
27546
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
27547
+ # @yieldparam err [StandardError] error object if request failed
27548
+ #
27549
+ # @return [Google::Apis::ComputeAlpha::Operation]
27550
+ #
27551
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27552
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27553
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
27554
+ def cancel_region_commitment(project, region, commitment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27555
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{commitment}/cancel', options)
27556
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27557
+ command.response_class = Google::Apis::ComputeAlpha::Operation
27558
+ command.params['project'] = project unless project.nil?
27559
+ command.params['region'] = region unless region.nil?
27560
+ command.params['commitment'] = commitment unless commitment.nil?
27561
+ command.query['requestId'] = request_id unless request_id.nil?
27562
+ command.query['fields'] = fields unless fields.nil?
27563
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
27564
+ command.query['userIp'] = user_ip unless user_ip.nil?
27565
+ execute_or_queue_command(command, &block)
27566
+ end
27567
+
27468
27568
  # Returns the specified commitment resource.
27469
27569
  # @param [String] project
27470
27570
  # Project ID for this request.
@@ -38429,6 +38529,50 @@ module Google
38429
38529
  execute_or_queue_command(command, &block)
38430
38530
  end
38431
38531
 
38532
+ # Retrieves runtime NAT IP information.
38533
+ # @param [String] project
38534
+ # Project ID for this request.
38535
+ # @param [String] region
38536
+ # Name of the region for this request.
38537
+ # @param [String] router
38538
+ # Name of the Router resource to query for Nat IP information. The name should
38539
+ # conform to RFC1035.
38540
+ # @param [String] nat_name
38541
+ # Name of the nat service to filter the NAT IP information. If it is omitted,
38542
+ # all nats for this router will be returned. Name should conform to RFC1035.
38543
+ # @param [String] fields
38544
+ # Selector specifying which fields to include in a partial response.
38545
+ # @param [String] quota_user
38546
+ # Available to use for quota purposes for server-side applications. Can be any
38547
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38548
+ # @param [String] user_ip
38549
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38550
+ # @param [Google::Apis::RequestOptions] options
38551
+ # Request-specific options
38552
+ #
38553
+ # @yield [result, err] Result & error if block supplied
38554
+ # @yieldparam result [Google::Apis::ComputeAlpha::NatIpInfoResponse] parsed result object
38555
+ # @yieldparam err [StandardError] error object if request failed
38556
+ #
38557
+ # @return [Google::Apis::ComputeAlpha::NatIpInfoResponse]
38558
+ #
38559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38562
+ def get_router_nat_ip_info(project, region, router, nat_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38563
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getNatIpInfo', options)
38564
+ command.response_representation = Google::Apis::ComputeAlpha::NatIpInfoResponse::Representation
38565
+ command.response_class = Google::Apis::ComputeAlpha::NatIpInfoResponse
38566
+ command.params['project'] = project unless project.nil?
38567
+ command.params['region'] = region unless region.nil?
38568
+ command.params['router'] = router unless router.nil?
38569
+ command.query['natName'] = nat_name unless nat_name.nil?
38570
+ command.query['fields'] = fields unless fields.nil?
38571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38572
+ command.query['userIp'] = user_ip unless user_ip.nil?
38573
+ execute_or_queue_command(command, &block)
38574
+ end
38575
+
38432
38576
  # Retrieves runtime Nat mapping information of VM endpoints.
38433
38577
  # @param [String] project
38434
38578
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.0
4
+ version: 0.68.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-04-30 00:00:00.000000000 Z
11
+ date: 2023-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.66.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.68.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []