google-apis-compute_v1 0.81.0 → 0.83.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: be1eaebd730ec1d09a50cd198bd3f90d7b92b4cbf1c7bb9e26072d7c735387ec
4
- data.tar.gz: 414bdf42d2af95c69b012028e890e8b9a5ca6b32655164dfe3c198bfd9b2eca7
3
+ metadata.gz: 57b5e7fc815fa7e5c11829829e337d7b11e96d59a049dee76ad2e7c3a5b1656c
4
+ data.tar.gz: e6e2ed5480718ea02f81c4ae4f4103d1c805c97146dd08253665b0b523361cd5
5
5
  SHA512:
6
- metadata.gz: 05f48b822b0e802a43269e9b74d93fa99b022ec4fea58a8cd58e7aed25f1a470f253792d7294a550d4bed5735c5ddbb5f84394dfe0c5550d600c8118941a6f23
7
- data.tar.gz: 47c366ae55487d2dd91acdc150bfcc3bdf6e2bbb1c1025f36ade20ccac178d818611342c2c0084526f892257fbdd9fcc4a5fd355c2dcc305430dd1e27be0ff56
6
+ metadata.gz: 3e72c220ebade6c5c9bf580a77f30a8df397223a2e3816cc64293ac27a8d6b7ccd1d3bbf5a0bcaec130880c0f76d260b6046b557d6ea2ccd54c0437d6a15e277
7
+ data.tar.gz: b9fb39b590a008f55435ce6259b6c8eeb888441275f5e6e08c88c78276ae0b6fa60f3b8c0d955cfd0917732d8beda92600915f51847c908f51e1e8eb7dd3023b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.83.0 (2023-10-29)
4
+
5
+ * Regenerated from discovery document revision 20231017
6
+
7
+ ### v0.82.0 (2023-10-22)
8
+
9
+ * Regenerated from discovery document revision 20231011
10
+
3
11
  ### v0.81.0 (2023-10-08)
4
12
 
5
13
  * Regenerated from discovery document revision 20230923
@@ -21182,6 +21182,12 @@ module Google
21182
21182
  # @return [Google::Apis::ComputeV1::ManagedInstanceLastAttempt]
21183
21183
  attr_accessor :last_attempt
21184
21184
 
21185
+ # [Output Only] The name of the instance. The name always exists even if the
21186
+ # instance has not yet been created.
21187
+ # Corresponds to the JSON property `name`
21188
+ # @return [String]
21189
+ attr_accessor :name
21190
+
21185
21191
  # Preserved state for a given instance.
21186
21192
  # Corresponds to the JSON property `preservedStateFromConfig`
21187
21193
  # @return [Google::Apis::ComputeV1::PreservedState]
@@ -21209,6 +21215,7 @@ module Google
21209
21215
  @instance_health = args[:instance_health] if args.key?(:instance_health)
21210
21216
  @instance_status = args[:instance_status] if args.key?(:instance_status)
21211
21217
  @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
21218
+ @name = args[:name] if args.key?(:name)
21212
21219
  @preserved_state_from_config = args[:preserved_state_from_config] if args.key?(:preserved_state_from_config)
21213
21220
  @preserved_state_from_policy = args[:preserved_state_from_policy] if args.key?(:preserved_state_from_policy)
21214
21221
  @version = args[:version] if args.key?(:version)
@@ -22042,6 +22049,13 @@ module Google
22042
22049
  # @return [String]
22043
22050
  attr_accessor :ip_address
22044
22051
 
22052
+ # The IPv6 address assigned to the producer instance network interface. This is
22053
+ # only assigned when the stack types of both the instance network interface and
22054
+ # the consumer subnet are IPv4_IPv6.
22055
+ # Corresponds to the JSON property `ipv6Address`
22056
+ # @return [String]
22057
+ attr_accessor :ipv6_address
22058
+
22045
22059
  # The project id or number of the interface to which the IP was assigned.
22046
22060
  # Corresponds to the JSON property `projectIdOrNum`
22047
22061
  # @return [String]
@@ -22063,6 +22077,12 @@ module Google
22063
22077
  # @return [String]
22064
22078
  attr_accessor :subnetwork
22065
22079
 
22080
+ # [Output Only] The CIDR range of the subnet from which the IPv4 internal IP was
22081
+ # allocated from.
22082
+ # Corresponds to the JSON property `subnetworkCidrRange`
22083
+ # @return [String]
22084
+ attr_accessor :subnetwork_cidr_range
22085
+
22066
22086
  def initialize(**args)
22067
22087
  update!(**args)
22068
22088
  end
@@ -22070,10 +22090,12 @@ module Google
22070
22090
  # Update properties of this object
22071
22091
  def update!(**args)
22072
22092
  @ip_address = args[:ip_address] if args.key?(:ip_address)
22093
+ @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
22073
22094
  @project_id_or_num = args[:project_id_or_num] if args.key?(:project_id_or_num)
22074
22095
  @secondary_ip_cidr_ranges = args[:secondary_ip_cidr_ranges] if args.key?(:secondary_ip_cidr_ranges)
22075
22096
  @status = args[:status] if args.key?(:status)
22076
22097
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
22098
+ @subnetwork_cidr_range = args[:subnetwork_cidr_range] if args.key?(:subnetwork_cidr_range)
22077
22099
  end
22078
22100
  end
22079
22101
 
@@ -28221,6 +28243,11 @@ module Google
28221
28243
  class PublicAdvertisedPrefix
28222
28244
  include Google::Apis::Core::Hashable
28223
28245
 
28246
+ # [Output Only] The version of BYOIP API.
28247
+ # Corresponds to the JSON property `byoipApiVersion`
28248
+ # @return [String]
28249
+ attr_accessor :byoip_api_version
28250
+
28224
28251
  # [Output Only] Creation timestamp in RFC3339 text format.
28225
28252
  # Corresponds to the JSON property `creationTimestamp`
28226
28253
  # @return [String]
@@ -28276,6 +28303,16 @@ module Google
28276
28303
  # @return [String]
28277
28304
  attr_accessor :name
28278
28305
 
28306
+ # Specifies how child public delegated prefix will be scoped. It could be one of
28307
+ # following values: - `REGIONAL`: The public delegated prefix is regional only.
28308
+ # The provisioning will take a few minutes. - `GLOBAL`: The public delegated
28309
+ # prefix is global only. The provisioning will take ~4 weeks. - `
28310
+ # GLOBAL_AND_REGIONAL` [output only]: The public delegated prefixes is BYOIP V1
28311
+ # legacy prefix. This is output only value and no longer supported in BYOIP V2.
28312
+ # Corresponds to the JSON property `pdpScope`
28313
+ # @return [String]
28314
+ attr_accessor :pdp_scope
28315
+
28279
28316
  # [Output Only] The list of public delegated prefixes that exist for this public
28280
28317
  # advertised prefix.
28281
28318
  # Corresponds to the JSON property `publicDelegatedPrefixs`
@@ -28309,6 +28346,7 @@ module Google
28309
28346
 
28310
28347
  # Update properties of this object
28311
28348
  def update!(**args)
28349
+ @byoip_api_version = args[:byoip_api_version] if args.key?(:byoip_api_version)
28312
28350
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
28313
28351
  @description = args[:description] if args.key?(:description)
28314
28352
  @dns_verification_ip = args[:dns_verification_ip] if args.key?(:dns_verification_ip)
@@ -28317,6 +28355,7 @@ module Google
28317
28355
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
28318
28356
  @kind = args[:kind] if args.key?(:kind)
28319
28357
  @name = args[:name] if args.key?(:name)
28358
+ @pdp_scope = args[:pdp_scope] if args.key?(:pdp_scope)
28320
28359
  @public_delegated_prefixs = args[:public_delegated_prefixs] if args.key?(:public_delegated_prefixs)
28321
28360
  @self_link = args[:self_link] if args.key?(:self_link)
28322
28361
  @shared_secret = args[:shared_secret] if args.key?(:shared_secret)
@@ -28496,6 +28535,11 @@ module Google
28496
28535
  class PublicDelegatedPrefix
28497
28536
  include Google::Apis::Core::Hashable
28498
28537
 
28538
+ # [Output Only] The version of BYOIP API.
28539
+ # Corresponds to the JSON property `byoipApiVersion`
28540
+ # @return [String]
28541
+ attr_accessor :byoip_api_version
28542
+
28499
28543
  # [Output Only] Creation timestamp in RFC3339 text format.
28500
28544
  # Corresponds to the JSON property `creationTimestamp`
28501
28545
  # @return [String]
@@ -28593,6 +28637,7 @@ module Google
28593
28637
 
28594
28638
  # Update properties of this object
28595
28639
  def update!(**args)
28640
+ @byoip_api_version = args[:byoip_api_version] if args.key?(:byoip_api_version)
28596
28641
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
28597
28642
  @description = args[:description] if args.key?(:description)
28598
28643
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@@ -37165,6 +37210,11 @@ module Google
37165
37210
  # @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
37166
37211
  attr_accessor :source_disk_encryption_key
37167
37212
 
37213
+ # The source disk whose recovery checkpoint will be used to create this snapshot.
37214
+ # Corresponds to the JSON property `sourceDiskForRecoveryCheckpoint`
37215
+ # @return [String]
37216
+ attr_accessor :source_disk_for_recovery_checkpoint
37217
+
37168
37218
  # [Output Only] The ID value of the disk used to create this snapshot. This
37169
37219
  # value may be used to determine whether the snapshot was taken from the current
37170
37220
  # or a previous instance of a given disk name.
@@ -37236,6 +37286,7 @@ module Google
37236
37286
  @snapshot_type = args[:snapshot_type] if args.key?(:snapshot_type)
37237
37287
  @source_disk = args[:source_disk] if args.key?(:source_disk)
37238
37288
  @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key)
37289
+ @source_disk_for_recovery_checkpoint = args[:source_disk_for_recovery_checkpoint] if args.key?(:source_disk_for_recovery_checkpoint)
37239
37290
  @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id)
37240
37291
  @source_snapshot_schedule_policy = args[:source_snapshot_schedule_policy] if args.key?(:source_snapshot_schedule_policy)
37241
37292
  @source_snapshot_schedule_policy_id = args[:source_snapshot_schedule_policy_id] if args.key?(:source_snapshot_schedule_policy_id)
@@ -37363,6 +37414,71 @@ module Google
37363
37414
  end
37364
37415
  end
37365
37416
 
37417
+ #
37418
+ class SnapshotSettings
37419
+ include Google::Apis::Core::Hashable
37420
+
37421
+ # Policy of which storage location is going to be resolved, and additional data
37422
+ # that particularizes how the policy is going to be carried out.
37423
+ # Corresponds to the JSON property `storageLocation`
37424
+ # @return [Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettings]
37425
+ attr_accessor :storage_location
37426
+
37427
+ def initialize(**args)
37428
+ update!(**args)
37429
+ end
37430
+
37431
+ # Update properties of this object
37432
+ def update!(**args)
37433
+ @storage_location = args[:storage_location] if args.key?(:storage_location)
37434
+ end
37435
+ end
37436
+
37437
+ #
37438
+ class SnapshotSettingsStorageLocationSettings
37439
+ include Google::Apis::Core::Hashable
37440
+
37441
+ # When the policy is SPECIFIC_LOCATIONS, snapshots will be stored in the
37442
+ # locations listed in this field. Keys are GCS bucket locations.
37443
+ # Corresponds to the JSON property `locations`
37444
+ # @return [Hash<String,Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettingsStorageLocationPreference>]
37445
+ attr_accessor :locations
37446
+
37447
+ # The chosen location policy.
37448
+ # Corresponds to the JSON property `policy`
37449
+ # @return [String]
37450
+ attr_accessor :policy
37451
+
37452
+ def initialize(**args)
37453
+ update!(**args)
37454
+ end
37455
+
37456
+ # Update properties of this object
37457
+ def update!(**args)
37458
+ @locations = args[:locations] if args.key?(:locations)
37459
+ @policy = args[:policy] if args.key?(:policy)
37460
+ end
37461
+ end
37462
+
37463
+ # A structure for specifying storage locations.
37464
+ class SnapshotSettingsStorageLocationSettingsStorageLocationPreference
37465
+ include Google::Apis::Core::Hashable
37466
+
37467
+ # Name of the location. It should be one of the GCS buckets.
37468
+ # Corresponds to the JSON property `name`
37469
+ # @return [String]
37470
+ attr_accessor :name
37471
+
37472
+ def initialize(**args)
37473
+ update!(**args)
37474
+ end
37475
+
37476
+ # Update properties of this object
37477
+ def update!(**args)
37478
+ @name = args[:name] if args.key?(:name)
37479
+ end
37480
+ end
37481
+
37366
37482
  #
37367
37483
  class SourceDiskEncryptionKey
37368
37484
  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.81.0"
19
+ GEM_VERSION = "0.83.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 = "20230923"
25
+ REVISION = "20231017"
26
26
  end
27
27
  end
28
28
  end
@@ -4888,6 +4888,24 @@ module Google
4888
4888
  include Google::Apis::Core::JsonObjectSupport
4889
4889
  end
4890
4890
 
4891
+ class SnapshotSettings
4892
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4893
+
4894
+ include Google::Apis::Core::JsonObjectSupport
4895
+ end
4896
+
4897
+ class SnapshotSettingsStorageLocationSettings
4898
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4899
+
4900
+ include Google::Apis::Core::JsonObjectSupport
4901
+ end
4902
+
4903
+ class SnapshotSettingsStorageLocationSettingsStorageLocationPreference
4904
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4905
+
4906
+ include Google::Apis::Core::JsonObjectSupport
4907
+ end
4908
+
4891
4909
  class SourceDiskEncryptionKey
4892
4910
  class Representation < Google::Apis::Core::JsonRepresentation; end
4893
4911
 
@@ -11111,6 +11129,7 @@ module Google
11111
11129
  property :instance_status, as: 'instanceStatus'
11112
11130
  property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Representation
11113
11131
 
11132
+ property :name, as: 'name'
11114
11133
  property :preserved_state_from_config, as: 'preservedStateFromConfig', class: Google::Apis::ComputeV1::PreservedState, decorator: Google::Apis::ComputeV1::PreservedState::Representation
11115
11134
 
11116
11135
  property :preserved_state_from_policy, as: 'preservedStateFromPolicy', class: Google::Apis::ComputeV1::PreservedState, decorator: Google::Apis::ComputeV1::PreservedState::Representation
@@ -11330,10 +11349,12 @@ module Google
11330
11349
  # @private
11331
11350
  class Representation < Google::Apis::Core::JsonRepresentation
11332
11351
  property :ip_address, as: 'ipAddress'
11352
+ property :ipv6_address, as: 'ipv6Address'
11333
11353
  property :project_id_or_num, as: 'projectIdOrNum'
11334
11354
  collection :secondary_ip_cidr_ranges, as: 'secondaryIpCidrRanges'
11335
11355
  property :status, as: 'status'
11336
11356
  property :subnetwork, as: 'subnetwork'
11357
+ property :subnetwork_cidr_range, as: 'subnetworkCidrRange'
11337
11358
  end
11338
11359
  end
11339
11360
 
@@ -12912,6 +12933,7 @@ module Google
12912
12933
  class PublicAdvertisedPrefix
12913
12934
  # @private
12914
12935
  class Representation < Google::Apis::Core::JsonRepresentation
12936
+ property :byoip_api_version, as: 'byoipApiVersion'
12915
12937
  property :creation_timestamp, as: 'creationTimestamp'
12916
12938
  property :description, as: 'description'
12917
12939
  property :dns_verification_ip, as: 'dnsVerificationIp'
@@ -12920,6 +12942,7 @@ module Google
12920
12942
  property :ip_cidr_range, as: 'ipCidrRange'
12921
12943
  property :kind, as: 'kind'
12922
12944
  property :name, as: 'name'
12945
+ property :pdp_scope, as: 'pdpScope'
12923
12946
  collection :public_delegated_prefixs, as: 'publicDelegatedPrefixs', class: Google::Apis::ComputeV1::PublicAdvertisedPrefixPublicDelegatedPrefix, decorator: Google::Apis::ComputeV1::PublicAdvertisedPrefixPublicDelegatedPrefix::Representation
12924
12947
 
12925
12948
  property :self_link, as: 'selfLink'
@@ -12974,6 +12997,7 @@ module Google
12974
12997
  class PublicDelegatedPrefix
12975
12998
  # @private
12976
12999
  class Representation < Google::Apis::Core::JsonRepresentation
13000
+ property :byoip_api_version, as: 'byoipApiVersion'
12977
13001
  property :creation_timestamp, as: 'creationTimestamp'
12978
13002
  property :description, as: 'description'
12979
13003
  property :fingerprint, :base64 => true, as: 'fingerprint'
@@ -15196,6 +15220,7 @@ module Google
15196
15220
  property :source_disk, as: 'sourceDisk'
15197
15221
  property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeV1::CustomerEncryptionKey, decorator: Google::Apis::ComputeV1::CustomerEncryptionKey::Representation
15198
15222
 
15223
+ property :source_disk_for_recovery_checkpoint, as: 'sourceDiskForRecoveryCheckpoint'
15199
15224
  property :source_disk_id, as: 'sourceDiskId'
15200
15225
  property :source_snapshot_schedule_policy, as: 'sourceSnapshotSchedulePolicy'
15201
15226
  property :source_snapshot_schedule_policy_id, as: 'sourceSnapshotSchedulePolicyId'
@@ -15238,6 +15263,30 @@ module Google
15238
15263
  end
15239
15264
  end
15240
15265
 
15266
+ class SnapshotSettings
15267
+ # @private
15268
+ class Representation < Google::Apis::Core::JsonRepresentation
15269
+ property :storage_location, as: 'storageLocation', class: Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettings, decorator: Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettings::Representation
15270
+
15271
+ end
15272
+ end
15273
+
15274
+ class SnapshotSettingsStorageLocationSettings
15275
+ # @private
15276
+ class Representation < Google::Apis::Core::JsonRepresentation
15277
+ hash :locations, as: 'locations', class: Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettingsStorageLocationPreference, decorator: Google::Apis::ComputeV1::SnapshotSettingsStorageLocationSettingsStorageLocationPreference::Representation
15278
+
15279
+ property :policy, as: 'policy'
15280
+ end
15281
+ end
15282
+
15283
+ class SnapshotSettingsStorageLocationSettingsStorageLocationPreference
15284
+ # @private
15285
+ class Representation < Google::Apis::Core::JsonRepresentation
15286
+ property :name, as: 'name'
15287
+ end
15288
+ end
15289
+
15241
15290
  class SourceDiskEncryptionKey
15242
15291
  # @private
15243
15292
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1347,6 +1347,46 @@ module Google
1347
1347
  execute_or_queue_command(command, &block)
1348
1348
  end
1349
1349
 
1350
+ # Gets the access control policy for a resource. May be empty if no such policy
1351
+ # or resource exists.
1352
+ # @param [String] project
1353
+ # Project ID for this request.
1354
+ # @param [String] resource
1355
+ # Name or id of the resource for this request.
1356
+ # @param [Fixnum] options_requested_policy_version
1357
+ # Requested IAM Policy version.
1358
+ # @param [String] fields
1359
+ # Selector specifying which fields to include in a partial response.
1360
+ # @param [String] quota_user
1361
+ # Available to use for quota purposes for server-side applications. Can be any
1362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1363
+ # @param [String] user_ip
1364
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1365
+ # @param [Google::Apis::RequestOptions] options
1366
+ # Request-specific options
1367
+ #
1368
+ # @yield [result, err] Result & error if block supplied
1369
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
1370
+ # @yieldparam err [StandardError] error object if request failed
1371
+ #
1372
+ # @return [Google::Apis::ComputeV1::Policy]
1373
+ #
1374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1377
+ def get_backend_bucket_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1378
+ command = make_simple_command(:get, 'projects/{project}/global/backendBuckets/{resource}/getIamPolicy', options)
1379
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
1380
+ command.response_class = Google::Apis::ComputeV1::Policy
1381
+ command.params['project'] = project unless project.nil?
1382
+ command.params['resource'] = resource unless resource.nil?
1383
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1384
+ command.query['fields'] = fields unless fields.nil?
1385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1386
+ command.query['userIp'] = user_ip unless user_ip.nil?
1387
+ execute_or_queue_command(command, &block)
1388
+ end
1389
+
1350
1390
  # Creates a BackendBucket resource in the specified project using the data
1351
1391
  # included in the request.
1352
1392
  # @param [String] project
@@ -1588,6 +1628,85 @@ module Google
1588
1628
  execute_or_queue_command(command, &block)
1589
1629
  end
1590
1630
 
1631
+ # Sets the access control policy on the specified resource. Replaces any
1632
+ # existing policy.
1633
+ # @param [String] project
1634
+ # Project ID for this request.
1635
+ # @param [String] resource
1636
+ # Name or id of the resource for this request.
1637
+ # @param [Google::Apis::ComputeV1::GlobalSetPolicyRequest] global_set_policy_request_object
1638
+ # @param [String] fields
1639
+ # Selector specifying which fields to include in a partial response.
1640
+ # @param [String] quota_user
1641
+ # Available to use for quota purposes for server-side applications. Can be any
1642
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1643
+ # @param [String] user_ip
1644
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1645
+ # @param [Google::Apis::RequestOptions] options
1646
+ # Request-specific options
1647
+ #
1648
+ # @yield [result, err] Result & error if block supplied
1649
+ # @yieldparam result [Google::Apis::ComputeV1::Policy] parsed result object
1650
+ # @yieldparam err [StandardError] error object if request failed
1651
+ #
1652
+ # @return [Google::Apis::ComputeV1::Policy]
1653
+ #
1654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1657
+ def set_backend_bucket_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1658
+ command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/setIamPolicy', options)
1659
+ command.request_representation = Google::Apis::ComputeV1::GlobalSetPolicyRequest::Representation
1660
+ command.request_object = global_set_policy_request_object
1661
+ command.response_representation = Google::Apis::ComputeV1::Policy::Representation
1662
+ command.response_class = Google::Apis::ComputeV1::Policy
1663
+ command.params['project'] = project unless project.nil?
1664
+ command.params['resource'] = resource unless resource.nil?
1665
+ command.query['fields'] = fields unless fields.nil?
1666
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1667
+ command.query['userIp'] = user_ip unless user_ip.nil?
1668
+ execute_or_queue_command(command, &block)
1669
+ end
1670
+
1671
+ # Returns permissions that a caller has on the specified resource.
1672
+ # @param [String] project
1673
+ # Project ID for this request.
1674
+ # @param [String] resource
1675
+ # Name or id of the resource for this request.
1676
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
1677
+ # @param [String] fields
1678
+ # Selector specifying which fields to include in a partial response.
1679
+ # @param [String] quota_user
1680
+ # Available to use for quota purposes for server-side applications. Can be any
1681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1682
+ # @param [String] user_ip
1683
+ # Legacy name for parameter that has been superseded by `quotaUser`.
1684
+ # @param [Google::Apis::RequestOptions] options
1685
+ # Request-specific options
1686
+ #
1687
+ # @yield [result, err] Result & error if block supplied
1688
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
1689
+ # @yieldparam err [StandardError] error object if request failed
1690
+ #
1691
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
1692
+ #
1693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1696
+ def test_backend_bucket_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1697
+ command = make_simple_command(:post, 'projects/{project}/global/backendBuckets/{resource}/testIamPermissions', options)
1698
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
1699
+ command.request_object = test_permissions_request_object
1700
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
1701
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
1702
+ command.params['project'] = project unless project.nil?
1703
+ command.params['resource'] = resource unless resource.nil?
1704
+ command.query['fields'] = fields unless fields.nil?
1705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1706
+ command.query['userIp'] = user_ip unless user_ip.nil?
1707
+ execute_or_queue_command(command, &block)
1708
+ end
1709
+
1591
1710
  # Updates the specified BackendBucket resource with the data included in the
1592
1711
  # request.
1593
1712
  # @param [String] project
@@ -2429,6 +2548,45 @@ module Google
2429
2548
  execute_or_queue_command(command, &block)
2430
2549
  end
2431
2550
 
2551
+ # Returns permissions that a caller has on the specified resource.
2552
+ # @param [String] project
2553
+ # Project ID for this request.
2554
+ # @param [String] resource
2555
+ # Name or id of the resource for this request.
2556
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
2557
+ # @param [String] fields
2558
+ # Selector specifying which fields to include in a partial response.
2559
+ # @param [String] quota_user
2560
+ # Available to use for quota purposes for server-side applications. Can be any
2561
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2562
+ # @param [String] user_ip
2563
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2564
+ # @param [Google::Apis::RequestOptions] options
2565
+ # Request-specific options
2566
+ #
2567
+ # @yield [result, err] Result & error if block supplied
2568
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
2569
+ # @yieldparam err [StandardError] error object if request failed
2570
+ #
2571
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
2572
+ #
2573
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2574
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2575
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2576
+ def test_backend_service_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2577
+ command = make_simple_command(:post, 'projects/{project}/global/backendServices/{resource}/testIamPermissions', options)
2578
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
2579
+ command.request_object = test_permissions_request_object
2580
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
2581
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
2582
+ command.params['project'] = project unless project.nil?
2583
+ command.params['resource'] = resource unless resource.nil?
2584
+ command.query['fields'] = fields unless fields.nil?
2585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2586
+ command.query['userIp'] = user_ip unless user_ip.nil?
2587
+ execute_or_queue_command(command, &block)
2588
+ end
2589
+
2432
2590
  # Updates the specified BackendService resource with the data included in the
2433
2591
  # request. For more information, see Backend services overview.
2434
2592
  # @param [String] project
@@ -14876,7 +15034,11 @@ module Google
14876
15034
  execute_or_queue_command(command, &block)
14877
15035
  end
14878
15036
 
14879
- # Returns the interconnectDiagnostics for the specified Interconnect.
15037
+ # Returns the interconnectDiagnostics for the specified Interconnect. In the
15038
+ # event of a global outage, do not use this API to make decisions about where to
15039
+ # redirect your network traffic. Unlike a VLAN attachment, which is regional, a
15040
+ # Cloud Interconnect connection is a global resource. A global outage can
15041
+ # prevent this API from functioning properly.
14880
15042
  # @param [String] project
14881
15043
  # Project ID for this request.
14882
15044
  # @param [String] interconnect
@@ -16563,6 +16725,62 @@ module Google
16563
16725
  execute_or_queue_command(command, &block)
16564
16726
  end
16565
16727
 
16728
+ # Patches the specified NetworkAttachment resource with the data included in the
16729
+ # request. This method supports PATCH semantics and uses JSON merge patch format
16730
+ # and processing rules.
16731
+ # @param [String] project
16732
+ # Project ID for this request.
16733
+ # @param [String] region
16734
+ # Name of the region for this request.
16735
+ # @param [String] network_attachment
16736
+ # Name of the NetworkAttachment resource to patch.
16737
+ # @param [Google::Apis::ComputeV1::NetworkAttachment] network_attachment_object
16738
+ # @param [String] request_id
16739
+ # An optional request ID to identify requests. Specify a unique request ID so
16740
+ # that if you must retry your request, the server will know to ignore the
16741
+ # request if it has already been completed. For example, consider a situation
16742
+ # where you make an initial request and the request times out. If you make the
16743
+ # request again with the same request ID, the server can check if original
16744
+ # operation with the same request ID was received, and if so, will ignore the
16745
+ # second request. This prevents clients from accidentally creating duplicate
16746
+ # commitments. The request ID must be a valid UUID with the exception that zero
16747
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
16748
+ # MixerMutationRequestBuilder
16749
+ # @param [String] fields
16750
+ # Selector specifying which fields to include in a partial response.
16751
+ # @param [String] quota_user
16752
+ # Available to use for quota purposes for server-side applications. Can be any
16753
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16754
+ # @param [String] user_ip
16755
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16756
+ # @param [Google::Apis::RequestOptions] options
16757
+ # Request-specific options
16758
+ #
16759
+ # @yield [result, err] Result & error if block supplied
16760
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
16761
+ # @yieldparam err [StandardError] error object if request failed
16762
+ #
16763
+ # @return [Google::Apis::ComputeV1::Operation]
16764
+ #
16765
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16766
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16767
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16768
+ def patch_network_attachment(project, region, network_attachment, network_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16769
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkAttachments/{networkAttachment}', options)
16770
+ command.request_representation = Google::Apis::ComputeV1::NetworkAttachment::Representation
16771
+ command.request_object = network_attachment_object
16772
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
16773
+ command.response_class = Google::Apis::ComputeV1::Operation
16774
+ command.params['project'] = project unless project.nil?
16775
+ command.params['region'] = region unless region.nil?
16776
+ command.params['networkAttachment'] = network_attachment unless network_attachment.nil?
16777
+ command.query['requestId'] = request_id unless request_id.nil?
16778
+ command.query['fields'] = fields unless fields.nil?
16779
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16780
+ command.query['userIp'] = user_ip unless user_ip.nil?
16781
+ execute_or_queue_command(command, &block)
16782
+ end
16783
+
16566
16784
  # Sets the access control policy on the specified resource. Replaces any
16567
16785
  # existing policy.
16568
16786
  # @param [String] project
@@ -21562,6 +21780,53 @@ module Google
21562
21780
  execute_or_queue_command(command, &block)
21563
21781
  end
21564
21782
 
21783
+ # Announces the specified PublicAdvertisedPrefix
21784
+ # @param [String] project
21785
+ # Project ID for this request.
21786
+ # @param [String] public_advertised_prefix
21787
+ # The name of the public advertised prefix. It should comply with RFC1035.
21788
+ # @param [String] request_id
21789
+ # An optional request ID to identify requests. Specify a unique request ID so
21790
+ # that if you must retry your request, the server will know to ignore the
21791
+ # request if it has already been completed. For example, consider a situation
21792
+ # where you make an initial request and the request times out. If you make the
21793
+ # request again with the same request ID, the server can check if original
21794
+ # operation with the same request ID was received, and if so, will ignore the
21795
+ # second request. This prevents clients from accidentally creating duplicate
21796
+ # commitments. The request ID must be a valid UUID with the exception that zero
21797
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
21798
+ # @param [String] fields
21799
+ # Selector specifying which fields to include in a partial response.
21800
+ # @param [String] quota_user
21801
+ # Available to use for quota purposes for server-side applications. Can be any
21802
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21803
+ # @param [String] user_ip
21804
+ # Legacy name for parameter that has been superseded by `quotaUser`.
21805
+ # @param [Google::Apis::RequestOptions] options
21806
+ # Request-specific options
21807
+ #
21808
+ # @yield [result, err] Result & error if block supplied
21809
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
21810
+ # @yieldparam err [StandardError] error object if request failed
21811
+ #
21812
+ # @return [Google::Apis::ComputeV1::Operation]
21813
+ #
21814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21817
+ def announce_public_advertised_prefix(project, public_advertised_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21818
+ command = make_simple_command(:post, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/announce', options)
21819
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
21820
+ command.response_class = Google::Apis::ComputeV1::Operation
21821
+ command.params['project'] = project unless project.nil?
21822
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
21823
+ command.query['requestId'] = request_id unless request_id.nil?
21824
+ command.query['fields'] = fields unless fields.nil?
21825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21826
+ command.query['userIp'] = user_ip unless user_ip.nil?
21827
+ execute_or_queue_command(command, &block)
21828
+ end
21829
+
21565
21830
  # Deletes the specified PublicAdvertisedPrefix
21566
21831
  # @param [String] project
21567
21832
  # Project ID for this request.
@@ -21834,6 +22099,53 @@ module Google
21834
22099
  execute_or_queue_command(command, &block)
21835
22100
  end
21836
22101
 
22102
+ # Withdraws the specified PublicAdvertisedPrefix
22103
+ # @param [String] project
22104
+ # Project ID for this request.
22105
+ # @param [String] public_advertised_prefix
22106
+ # The name of the public advertised prefix. It should comply with RFC1035.
22107
+ # @param [String] request_id
22108
+ # An optional request ID to identify requests. Specify a unique request ID so
22109
+ # that if you must retry your request, the server will know to ignore the
22110
+ # request if it has already been completed. For example, consider a situation
22111
+ # where you make an initial request and the request times out. If you make the
22112
+ # request again with the same request ID, the server can check if original
22113
+ # operation with the same request ID was received, and if so, will ignore the
22114
+ # second request. This prevents clients from accidentally creating duplicate
22115
+ # commitments. The request ID must be a valid UUID with the exception that zero
22116
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
22117
+ # @param [String] fields
22118
+ # Selector specifying which fields to include in a partial response.
22119
+ # @param [String] quota_user
22120
+ # Available to use for quota purposes for server-side applications. Can be any
22121
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
22122
+ # @param [String] user_ip
22123
+ # Legacy name for parameter that has been superseded by `quotaUser`.
22124
+ # @param [Google::Apis::RequestOptions] options
22125
+ # Request-specific options
22126
+ #
22127
+ # @yield [result, err] Result & error if block supplied
22128
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
22129
+ # @yieldparam err [StandardError] error object if request failed
22130
+ #
22131
+ # @return [Google::Apis::ComputeV1::Operation]
22132
+ #
22133
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22134
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22135
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22136
+ def withdraw_public_advertised_prefix(project, public_advertised_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22137
+ command = make_simple_command(:post, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}/withdraw', options)
22138
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
22139
+ command.response_class = Google::Apis::ComputeV1::Operation
22140
+ command.params['project'] = project unless project.nil?
22141
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
22142
+ command.query['requestId'] = request_id unless request_id.nil?
22143
+ command.query['fields'] = fields unless fields.nil?
22144
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22145
+ command.query['userIp'] = user_ip unless user_ip.nil?
22146
+ execute_or_queue_command(command, &block)
22147
+ end
22148
+
21837
22149
  # Lists all PublicDelegatedPrefix resources owned by the specific project across
21838
22150
  # all scopes.
21839
22151
  # @param [String] project
@@ -21934,6 +22246,57 @@ module Google
21934
22246
  execute_or_queue_command(command, &block)
21935
22247
  end
21936
22248
 
22249
+ # Announces the specified PublicDelegatedPrefix in the given region.
22250
+ # @param [String] project
22251
+ # Project ID for this request.
22252
+ # @param [String] region
22253
+ # The name of the region where the public delegated prefix is located. It should
22254
+ # comply with RFC1035.
22255
+ # @param [String] public_delegated_prefix
22256
+ # The name of the public delegated prefix. It should comply with RFC1035.
22257
+ # @param [String] request_id
22258
+ # An optional request ID to identify requests. Specify a unique request ID so
22259
+ # that if you must retry your request, the server will know to ignore the
22260
+ # request if it has already been completed. For example, consider a situation
22261
+ # where you make an initial request and the request times out. If you make the
22262
+ # request again with the same request ID, the server can check if original
22263
+ # operation with the same request ID was received, and if so, will ignore the
22264
+ # second request. This prevents clients from accidentally creating duplicate
22265
+ # commitments. The request ID must be a valid UUID with the exception that zero
22266
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
22267
+ # @param [String] fields
22268
+ # Selector specifying which fields to include in a partial response.
22269
+ # @param [String] quota_user
22270
+ # Available to use for quota purposes for server-side applications. Can be any
22271
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
22272
+ # @param [String] user_ip
22273
+ # Legacy name for parameter that has been superseded by `quotaUser`.
22274
+ # @param [Google::Apis::RequestOptions] options
22275
+ # Request-specific options
22276
+ #
22277
+ # @yield [result, err] Result & error if block supplied
22278
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
22279
+ # @yieldparam err [StandardError] error object if request failed
22280
+ #
22281
+ # @return [Google::Apis::ComputeV1::Operation]
22282
+ #
22283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22286
+ def announce_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22287
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/announce', options)
22288
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
22289
+ command.response_class = Google::Apis::ComputeV1::Operation
22290
+ command.params['project'] = project unless project.nil?
22291
+ command.params['region'] = region unless region.nil?
22292
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
22293
+ command.query['requestId'] = request_id unless request_id.nil?
22294
+ command.query['fields'] = fields unless fields.nil?
22295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22296
+ command.query['userIp'] = user_ip unless user_ip.nil?
22297
+ execute_or_queue_command(command, &block)
22298
+ end
22299
+
21937
22300
  # Deletes the specified PublicDelegatedPrefix in the given region.
21938
22301
  # @param [String] project
21939
22302
  # Project ID for this request.
@@ -22221,6 +22584,57 @@ module Google
22221
22584
  execute_or_queue_command(command, &block)
22222
22585
  end
22223
22586
 
22587
+ # Withdraws the specified PublicDelegatedPrefix in the given region.
22588
+ # @param [String] project
22589
+ # Project ID for this request.
22590
+ # @param [String] region
22591
+ # The name of the region where the public delegated prefix is located. It should
22592
+ # comply with RFC1035.
22593
+ # @param [String] public_delegated_prefix
22594
+ # The name of the public delegated prefix. It should comply with RFC1035.
22595
+ # @param [String] request_id
22596
+ # An optional request ID to identify requests. Specify a unique request ID so
22597
+ # that if you must retry your request, the server will know to ignore the
22598
+ # request if it has already been completed. For example, consider a situation
22599
+ # where you make an initial request and the request times out. If you make the
22600
+ # request again with the same request ID, the server can check if original
22601
+ # operation with the same request ID was received, and if so, will ignore the
22602
+ # second request. This prevents clients from accidentally creating duplicate
22603
+ # commitments. The request ID must be a valid UUID with the exception that zero
22604
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
22605
+ # @param [String] fields
22606
+ # Selector specifying which fields to include in a partial response.
22607
+ # @param [String] quota_user
22608
+ # Available to use for quota purposes for server-side applications. Can be any
22609
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
22610
+ # @param [String] user_ip
22611
+ # Legacy name for parameter that has been superseded by `quotaUser`.
22612
+ # @param [Google::Apis::RequestOptions] options
22613
+ # Request-specific options
22614
+ #
22615
+ # @yield [result, err] Result & error if block supplied
22616
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
22617
+ # @yieldparam err [StandardError] error object if request failed
22618
+ #
22619
+ # @return [Google::Apis::ComputeV1::Operation]
22620
+ #
22621
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22622
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22623
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22624
+ def withdraw_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22625
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}/withdraw', options)
22626
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
22627
+ command.response_class = Google::Apis::ComputeV1::Operation
22628
+ command.params['project'] = project unless project.nil?
22629
+ command.params['region'] = region unless region.nil?
22630
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
22631
+ command.query['requestId'] = request_id unless request_id.nil?
22632
+ command.query['fields'] = fields unless fields.nil?
22633
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22634
+ command.query['userIp'] = user_ip unless user_ip.nil?
22635
+ execute_or_queue_command(command, &block)
22636
+ end
22637
+
22224
22638
  # Deletes the specified autoscaler.
22225
22639
  # @param [String] project
22226
22640
  # Project ID for this request.
@@ -23128,6 +23542,48 @@ module Google
23128
23542
  execute_or_queue_command(command, &block)
23129
23543
  end
23130
23544
 
23545
+ # Returns permissions that a caller has on the specified resource.
23546
+ # @param [String] project
23547
+ # Project ID for this request.
23548
+ # @param [String] region
23549
+ # The name of the region for this request.
23550
+ # @param [String] resource
23551
+ # Name or id of the resource for this request.
23552
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
23553
+ # @param [String] fields
23554
+ # Selector specifying which fields to include in a partial response.
23555
+ # @param [String] quota_user
23556
+ # Available to use for quota purposes for server-side applications. Can be any
23557
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23558
+ # @param [String] user_ip
23559
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23560
+ # @param [Google::Apis::RequestOptions] options
23561
+ # Request-specific options
23562
+ #
23563
+ # @yield [result, err] Result & error if block supplied
23564
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
23565
+ # @yieldparam err [StandardError] error object if request failed
23566
+ #
23567
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
23568
+ #
23569
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23570
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23571
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23572
+ def test_region_backend_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23573
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions', options)
23574
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
23575
+ command.request_object = test_permissions_request_object
23576
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
23577
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
23578
+ command.params['project'] = project unless project.nil?
23579
+ command.params['region'] = region unless region.nil?
23580
+ command.params['resource'] = resource unless resource.nil?
23581
+ command.query['fields'] = fields unless fields.nil?
23582
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23583
+ command.query['userIp'] = user_ip unless user_ip.nil?
23584
+ execute_or_queue_command(command, &block)
23585
+ end
23586
+
23131
23587
  # Updates the specified regional BackendService resource with the data included
23132
23588
  # in the request. For more information, see Backend services overview .
23133
23589
  # @param [String] project
@@ -34394,6 +34850,89 @@ module Google
34394
34850
  execute_or_queue_command(command, &block)
34395
34851
  end
34396
34852
 
34853
+ # Get snapshot settings.
34854
+ # @param [String] project
34855
+ # Project ID for this request.
34856
+ # @param [String] fields
34857
+ # Selector specifying which fields to include in a partial response.
34858
+ # @param [String] quota_user
34859
+ # Available to use for quota purposes for server-side applications. Can be any
34860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34861
+ # @param [String] user_ip
34862
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34863
+ # @param [Google::Apis::RequestOptions] options
34864
+ # Request-specific options
34865
+ #
34866
+ # @yield [result, err] Result & error if block supplied
34867
+ # @yieldparam result [Google::Apis::ComputeV1::SnapshotSettings] parsed result object
34868
+ # @yieldparam err [StandardError] error object if request failed
34869
+ #
34870
+ # @return [Google::Apis::ComputeV1::SnapshotSettings]
34871
+ #
34872
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34873
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34874
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34875
+ def get_snapshot_setting(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34876
+ command = make_simple_command(:get, 'projects/{project}/global/snapshotSettings', options)
34877
+ command.response_representation = Google::Apis::ComputeV1::SnapshotSettings::Representation
34878
+ command.response_class = Google::Apis::ComputeV1::SnapshotSettings
34879
+ command.params['project'] = project unless project.nil?
34880
+ command.query['fields'] = fields unless fields.nil?
34881
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34882
+ command.query['userIp'] = user_ip unless user_ip.nil?
34883
+ execute_or_queue_command(command, &block)
34884
+ end
34885
+
34886
+ # Patch snapshot settings.
34887
+ # @param [String] project
34888
+ # Project ID for this request.
34889
+ # @param [Google::Apis::ComputeV1::SnapshotSettings] snapshot_settings_object
34890
+ # @param [String] request_id
34891
+ # An optional request ID to identify requests. Specify a unique request ID so
34892
+ # that if you must retry your request, the server will know to ignore the
34893
+ # request if it has already been completed. For example, consider a situation
34894
+ # where you make an initial request and the request times out. If you make the
34895
+ # request again with the same request ID, the server can check if original
34896
+ # operation with the same request ID was received, and if so, will ignore the
34897
+ # second request. This prevents clients from accidentally creating duplicate
34898
+ # commitments. The request ID must be a valid UUID with the exception that zero
34899
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
34900
+ # @param [String] update_mask
34901
+ # update_mask indicates fields to be updated as part of this request.
34902
+ # @param [String] fields
34903
+ # Selector specifying which fields to include in a partial response.
34904
+ # @param [String] quota_user
34905
+ # Available to use for quota purposes for server-side applications. Can be any
34906
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34907
+ # @param [String] user_ip
34908
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34909
+ # @param [Google::Apis::RequestOptions] options
34910
+ # Request-specific options
34911
+ #
34912
+ # @yield [result, err] Result & error if block supplied
34913
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
34914
+ # @yieldparam err [StandardError] error object if request failed
34915
+ #
34916
+ # @return [Google::Apis::ComputeV1::Operation]
34917
+ #
34918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34921
+ def patch_snapshot_setting(project, snapshot_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34922
+ command = make_simple_command(:patch, 'projects/{project}/global/snapshotSettings', options)
34923
+ command.request_representation = Google::Apis::ComputeV1::SnapshotSettings::Representation
34924
+ command.request_object = snapshot_settings_object
34925
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
34926
+ command.response_class = Google::Apis::ComputeV1::Operation
34927
+ command.params['project'] = project unless project.nil?
34928
+ command.query['requestId'] = request_id unless request_id.nil?
34929
+ command.query['updateMask'] = update_mask unless update_mask.nil?
34930
+ command.query['fields'] = fields unless fields.nil?
34931
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34932
+ command.query['userIp'] = user_ip unless user_ip.nil?
34933
+ execute_or_queue_command(command, &block)
34934
+ end
34935
+
34397
34936
  # Deletes the specified Snapshot resource. Keep in mind that deleting a single
34398
34937
  # snapshot might not necessarily delete all the data on that snapshot. If any
34399
34938
  # data on the snapshot that is marked for deletion is needed for subsequent
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.81.0
4
+ version: 0.83.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-10-08 00:00:00.000000000 Z
11
+ date: 2023-10-29 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.81.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.83.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []