google-apis-compute_v1 0.80.0 → 0.82.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: a155203fed72f190c2cd6435e4020d1da62362e7dff6f1fbf80841c61b042d24
4
- data.tar.gz: 606373ddf37df5358590898f84fd220282244ab8125cda8b457acca9143328dc
3
+ metadata.gz: 6270432f434cba8ef603d1b2ecc5a1b393a189132ed6a941c87fda8ee8b71341
4
+ data.tar.gz: 4e9b8f411a0fb6fc14f8c7ba4f23b88ab68888cc90b55cbc2c27bd999256f525
5
5
  SHA512:
6
- metadata.gz: 04c3d6fd43bf32fb0bbccfe570458b2e1069a9b6fbe4200ff87539559b7992a487274ac05bf6f42de93bb4cbcefccd25beb87d50b035d0b9dbdba78a94bf1b82
7
- data.tar.gz: 5bbd6743154b0ba8a2c9f1e96297085092d1cdc1e7b92de65e78c3b7e8112537be03affa70e148f77addae211a8a86833d606ec32fb438c461982d0030e95e04
6
+ metadata.gz: 50958362bb808ab5d2690a9b2e8d19249319a935d5164f6b3840fdfad8fa0e4abbb9383c3a142e92e2f5864780b194bc319d6234c4e41b0fe4a737dd7bf1d458
7
+ data.tar.gz: 5a7e01c468f28a387acb2613f126bb1597e95df16dc907a255167196d0dfd1c7caca57b29b2a2d18ba3bfa2ce1173ea4d96ebaca83dfb1f68c561b27ba54bbb4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.82.0 (2023-10-22)
4
+
5
+ * Regenerated from discovery document revision 20231011
6
+
7
+ ### v0.81.0 (2023-10-08)
8
+
9
+ * Regenerated from discovery document revision 20230923
10
+
3
11
  ### v0.80.0 (2023-10-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20230920
@@ -2624,7 +2624,7 @@ module Google
2624
2624
 
2625
2625
  # The time zone to use when interpreting the schedule. The value of this field
2626
2626
  # must be a time zone name from the tz database: https://en.wikipedia.org/wiki/
2627
- # Tz_database. This field is assigned a default value of UTC if left empty.
2627
+ # Tz_database. This field is assigned a default value of "UTC" if left empty.
2628
2628
  # Corresponds to the JSON property `timeZone`
2629
2629
  # @return [String]
2630
2630
  attr_accessor :time_zone
@@ -3539,6 +3539,11 @@ module Google
3539
3539
  # @return [Fixnum]
3540
3540
  attr_accessor :timeout_sec
3541
3541
 
3542
+ #
3543
+ # Corresponds to the JSON property `usedBy`
3544
+ # @return [Array<Google::Apis::ComputeV1::BackendServiceUsedBy>]
3545
+ attr_accessor :used_by
3546
+
3542
3547
  def initialize(**args)
3543
3548
  update!(**args)
3544
3549
  end
@@ -3585,6 +3590,7 @@ module Google
3585
3590
  @session_affinity = args[:session_affinity] if args.key?(:session_affinity)
3586
3591
  @subsetting = args[:subsetting] if args.key?(:subsetting)
3587
3592
  @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
3593
+ @used_by = args[:used_by] if args.key?(:used_by)
3588
3594
  end
3589
3595
  end
3590
3596
 
@@ -4233,6 +4239,124 @@ module Google
4233
4239
  end
4234
4240
  end
4235
4241
 
4242
+ # Contains a list of usable BackendService resources.
4243
+ class BackendServiceListUsable
4244
+ include Google::Apis::Core::Hashable
4245
+
4246
+ # [Output Only] Unique identifier for the resource; defined by the server.
4247
+ # Corresponds to the JSON property `id`
4248
+ # @return [String]
4249
+ attr_accessor :id
4250
+
4251
+ # A list of BackendService resources.
4252
+ # Corresponds to the JSON property `items`
4253
+ # @return [Array<Google::Apis::ComputeV1::BackendService>]
4254
+ attr_accessor :items
4255
+
4256
+ # [Output Only] Type of resource. Always compute#usableBackendServiceList for
4257
+ # lists of usable backend services.
4258
+ # Corresponds to the JSON property `kind`
4259
+ # @return [String]
4260
+ attr_accessor :kind
4261
+
4262
+ # [Output Only] This token allows you to get the next page of results for list
4263
+ # requests. If the number of results is larger than maxResults, use the
4264
+ # nextPageToken as a value for the query parameter pageToken in the next list
4265
+ # request. Subsequent list requests will have their own nextPageToken to
4266
+ # continue paging through the results.
4267
+ # Corresponds to the JSON property `nextPageToken`
4268
+ # @return [String]
4269
+ attr_accessor :next_page_token
4270
+
4271
+ # [Output Only] Server-defined URL for this resource.
4272
+ # Corresponds to the JSON property `selfLink`
4273
+ # @return [String]
4274
+ attr_accessor :self_link
4275
+
4276
+ # [Output Only] Informational warning message.
4277
+ # Corresponds to the JSON property `warning`
4278
+ # @return [Google::Apis::ComputeV1::BackendServiceListUsable::Warning]
4279
+ attr_accessor :warning
4280
+
4281
+ def initialize(**args)
4282
+ update!(**args)
4283
+ end
4284
+
4285
+ # Update properties of this object
4286
+ def update!(**args)
4287
+ @id = args[:id] if args.key?(:id)
4288
+ @items = args[:items] if args.key?(:items)
4289
+ @kind = args[:kind] if args.key?(:kind)
4290
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4291
+ @self_link = args[:self_link] if args.key?(:self_link)
4292
+ @warning = args[:warning] if args.key?(:warning)
4293
+ end
4294
+
4295
+ # [Output Only] Informational warning message.
4296
+ class Warning
4297
+ include Google::Apis::Core::Hashable
4298
+
4299
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
4300
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
4301
+ # Corresponds to the JSON property `code`
4302
+ # @return [String]
4303
+ attr_accessor :code
4304
+
4305
+ # [Output Only] Metadata about this warning in key: value format. For example: "
4306
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
4307
+ # Corresponds to the JSON property `data`
4308
+ # @return [Array<Google::Apis::ComputeV1::BackendServiceListUsable::Warning::Datum>]
4309
+ attr_accessor :data
4310
+
4311
+ # [Output Only] A human-readable description of the warning code.
4312
+ # Corresponds to the JSON property `message`
4313
+ # @return [String]
4314
+ attr_accessor :message
4315
+
4316
+ def initialize(**args)
4317
+ update!(**args)
4318
+ end
4319
+
4320
+ # Update properties of this object
4321
+ def update!(**args)
4322
+ @code = args[:code] if args.key?(:code)
4323
+ @data = args[:data] if args.key?(:data)
4324
+ @message = args[:message] if args.key?(:message)
4325
+ end
4326
+
4327
+ #
4328
+ class Datum
4329
+ include Google::Apis::Core::Hashable
4330
+
4331
+ # [Output Only] A key that provides more detail on the warning being returned.
4332
+ # For example, for warnings where there are no results in a list request for a
4333
+ # particular zone, this key might be scope and the key value might be the zone
4334
+ # name. Other examples might be a key indicating a deprecated resource and a
4335
+ # suggested replacement, or a warning about invalid network settings (for
4336
+ # example, if an instance attempts to perform IP forwarding but is not enabled
4337
+ # for IP forwarding).
4338
+ # Corresponds to the JSON property `key`
4339
+ # @return [String]
4340
+ attr_accessor :key
4341
+
4342
+ # [Output Only] A warning data value corresponding to the key.
4343
+ # Corresponds to the JSON property `value`
4344
+ # @return [String]
4345
+ attr_accessor :value
4346
+
4347
+ def initialize(**args)
4348
+ update!(**args)
4349
+ end
4350
+
4351
+ # Update properties of this object
4352
+ def update!(**args)
4353
+ @key = args[:key] if args.key?(:key)
4354
+ @value = args[:value] if args.key?(:value)
4355
+ end
4356
+ end
4357
+ end
4358
+ end
4359
+
4236
4360
  # Container for either a built-in LB policy supported by gRPC or Envoy or a
4237
4361
  # custom one implemented by the end user.
4238
4362
  class BackendServiceLocalityLoadBalancingPolicyConfig
@@ -4384,6 +4508,25 @@ module Google
4384
4508
  end
4385
4509
  end
4386
4510
 
4511
+ #
4512
+ class BackendServiceUsedBy
4513
+ include Google::Apis::Core::Hashable
4514
+
4515
+ #
4516
+ # Corresponds to the JSON property `reference`
4517
+ # @return [String]
4518
+ attr_accessor :reference
4519
+
4520
+ def initialize(**args)
4521
+ update!(**args)
4522
+ end
4523
+
4524
+ # Update properties of this object
4525
+ def update!(**args)
4526
+ @reference = args[:reference] if args.key?(:reference)
4527
+ end
4528
+ end
4529
+
4387
4530
  #
4388
4531
  class BackendServicesScopedList
4389
4532
  include Google::Apis::Core::Hashable
@@ -21039,6 +21182,12 @@ module Google
21039
21182
  # @return [Google::Apis::ComputeV1::ManagedInstanceLastAttempt]
21040
21183
  attr_accessor :last_attempt
21041
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
+
21042
21191
  # Preserved state for a given instance.
21043
21192
  # Corresponds to the JSON property `preservedStateFromConfig`
21044
21193
  # @return [Google::Apis::ComputeV1::PreservedState]
@@ -21066,6 +21215,7 @@ module Google
21066
21215
  @instance_health = args[:instance_health] if args.key?(:instance_health)
21067
21216
  @instance_status = args[:instance_status] if args.key?(:instance_status)
21068
21217
  @last_attempt = args[:last_attempt] if args.key?(:last_attempt)
21218
+ @name = args[:name] if args.key?(:name)
21069
21219
  @preserved_state_from_config = args[:preserved_state_from_config] if args.key?(:preserved_state_from_config)
21070
21220
  @preserved_state_from_policy = args[:preserved_state_from_policy] if args.key?(:preserved_state_from_policy)
21071
21221
  @version = args[:version] if args.key?(:version)
@@ -21899,6 +22049,13 @@ module Google
21899
22049
  # @return [String]
21900
22050
  attr_accessor :ip_address
21901
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
+
21902
22059
  # The project id or number of the interface to which the IP was assigned.
21903
22060
  # Corresponds to the JSON property `projectIdOrNum`
21904
22061
  # @return [String]
@@ -21920,6 +22077,12 @@ module Google
21920
22077
  # @return [String]
21921
22078
  attr_accessor :subnetwork
21922
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
+
21923
22086
  def initialize(**args)
21924
22087
  update!(**args)
21925
22088
  end
@@ -21927,10 +22090,12 @@ module Google
21927
22090
  # Update properties of this object
21928
22091
  def update!(**args)
21929
22092
  @ip_address = args[:ip_address] if args.key?(:ip_address)
22093
+ @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
21930
22094
  @project_id_or_num = args[:project_id_or_num] if args.key?(:project_id_or_num)
21931
22095
  @secondary_ip_cidr_ranges = args[:secondary_ip_cidr_ranges] if args.key?(:secondary_ip_cidr_ranges)
21932
22096
  @status = args[:status] if args.key?(:status)
21933
22097
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
22098
+ @subnetwork_cidr_range = args[:subnetwork_cidr_range] if args.key?(:subnetwork_cidr_range)
21934
22099
  end
21935
22100
  end
21936
22101
 
@@ -39735,14 +39900,14 @@ module Google
39735
39900
  # Represents a Target HTTP Proxy resource. Google Compute Engine has two Target
39736
39901
  # HTTP Proxy resources: * [Global](/compute/docs/reference/rest/v1/
39737
39902
  # targetHttpProxies) * [Regional](/compute/docs/reference/rest/v1/
39738
- # regionTargetHttpProxies) A target HTTP proxy is a component of GCP HTTP load
39739
- # balancers. * targetHttpProxies are used by global external Application Load
39740
- # Balancers, classic Application Load Balancers, cross-region internal
39741
- # Application Load Balancers, and Traffic Director. * regionTargetHttpProxies
39742
- # are used by regional internal Application Load Balancers and regional external
39743
- # Application Load Balancers. Forwarding rules reference a target HTTP proxy,
39744
- # and the target proxy then references a URL map. For more information, read
39745
- # Using Target Proxies and Forwarding rule concepts.
39903
+ # regionTargetHttpProxies) A target HTTP proxy is a component of Google Cloud
39904
+ # HTTP load balancers. * targetHttpProxies are used by global external
39905
+ # Application Load Balancers, classic Application Load Balancers, cross-region
39906
+ # internal Application Load Balancers, and Traffic Director. *
39907
+ # regionTargetHttpProxies are used by regional internal Application Load
39908
+ # Balancers and regional external Application Load Balancers. Forwarding rules
39909
+ # reference a target HTTP proxy, and the target proxy then references a URL map.
39910
+ # For more information, read Using Target Proxies and Forwarding rule concepts.
39746
39911
  class TargetHttpProxy
39747
39912
  include Google::Apis::Core::Hashable
39748
39913
 
@@ -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.80.0"
19
+ GEM_VERSION = "0.82.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 = "20230920"
25
+ REVISION = "20231011"
26
26
  end
27
27
  end
28
28
  end
@@ -472,6 +472,24 @@ module Google
472
472
  include Google::Apis::Core::JsonObjectSupport
473
473
  end
474
474
 
475
+ class BackendServiceListUsable
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ class Warning
479
+ class Representation < Google::Apis::Core::JsonRepresentation; end
480
+
481
+ class Datum
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
487
+ include Google::Apis::Core::JsonObjectSupport
488
+ end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
475
493
  class BackendServiceLocalityLoadBalancingPolicyConfig
476
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
495
 
@@ -502,6 +520,12 @@ module Google
502
520
  include Google::Apis::Core::JsonObjectSupport
503
521
  end
504
522
 
523
+ class BackendServiceUsedBy
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
505
529
  class BackendServicesScopedList
506
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
531
 
@@ -6856,6 +6880,8 @@ module Google
6856
6880
  property :subsetting, as: 'subsetting', class: Google::Apis::ComputeV1::Subsetting, decorator: Google::Apis::ComputeV1::Subsetting::Representation
6857
6881
 
6858
6882
  property :timeout_sec, as: 'timeoutSec'
6883
+ collection :used_by, as: 'usedBy', class: Google::Apis::ComputeV1::BackendServiceUsedBy, decorator: Google::Apis::ComputeV1::BackendServiceUsedBy::Representation
6884
+
6859
6885
  end
6860
6886
  end
6861
6887
 
@@ -6999,6 +7025,38 @@ module Google
6999
7025
  end
7000
7026
  end
7001
7027
 
7028
+ class BackendServiceListUsable
7029
+ # @private
7030
+ class Representation < Google::Apis::Core::JsonRepresentation
7031
+ property :id, as: 'id'
7032
+ collection :items, as: 'items', class: Google::Apis::ComputeV1::BackendService, decorator: Google::Apis::ComputeV1::BackendService::Representation
7033
+
7034
+ property :kind, as: 'kind'
7035
+ property :next_page_token, as: 'nextPageToken'
7036
+ property :self_link, as: 'selfLink'
7037
+ property :warning, as: 'warning', class: Google::Apis::ComputeV1::BackendServiceListUsable::Warning, decorator: Google::Apis::ComputeV1::BackendServiceListUsable::Warning::Representation
7038
+
7039
+ end
7040
+
7041
+ class Warning
7042
+ # @private
7043
+ class Representation < Google::Apis::Core::JsonRepresentation
7044
+ property :code, as: 'code'
7045
+ collection :data, as: 'data', class: Google::Apis::ComputeV1::BackendServiceListUsable::Warning::Datum, decorator: Google::Apis::ComputeV1::BackendServiceListUsable::Warning::Datum::Representation
7046
+
7047
+ property :message, as: 'message'
7048
+ end
7049
+
7050
+ class Datum
7051
+ # @private
7052
+ class Representation < Google::Apis::Core::JsonRepresentation
7053
+ property :key, as: 'key'
7054
+ property :value, as: 'value'
7055
+ end
7056
+ end
7057
+ end
7058
+ end
7059
+
7002
7060
  class BackendServiceLocalityLoadBalancingPolicyConfig
7003
7061
  # @private
7004
7062
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7041,6 +7099,13 @@ module Google
7041
7099
  end
7042
7100
  end
7043
7101
 
7102
+ class BackendServiceUsedBy
7103
+ # @private
7104
+ class Representation < Google::Apis::Core::JsonRepresentation
7105
+ property :reference, as: 'reference'
7106
+ end
7107
+ end
7108
+
7044
7109
  class BackendServicesScopedList
7045
7110
  # @private
7046
7111
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -11046,6 +11111,7 @@ module Google
11046
11111
  property :instance_status, as: 'instanceStatus'
11047
11112
  property :last_attempt, as: 'lastAttempt', class: Google::Apis::ComputeV1::ManagedInstanceLastAttempt, decorator: Google::Apis::ComputeV1::ManagedInstanceLastAttempt::Representation
11048
11113
 
11114
+ property :name, as: 'name'
11049
11115
  property :preserved_state_from_config, as: 'preservedStateFromConfig', class: Google::Apis::ComputeV1::PreservedState, decorator: Google::Apis::ComputeV1::PreservedState::Representation
11050
11116
 
11051
11117
  property :preserved_state_from_policy, as: 'preservedStateFromPolicy', class: Google::Apis::ComputeV1::PreservedState, decorator: Google::Apis::ComputeV1::PreservedState::Representation
@@ -11265,10 +11331,12 @@ module Google
11265
11331
  # @private
11266
11332
  class Representation < Google::Apis::Core::JsonRepresentation
11267
11333
  property :ip_address, as: 'ipAddress'
11334
+ property :ipv6_address, as: 'ipv6Address'
11268
11335
  property :project_id_or_num, as: 'projectIdOrNum'
11269
11336
  collection :secondary_ip_cidr_ranges, as: 'secondaryIpCidrRanges'
11270
11337
  property :status, as: 'status'
11271
11338
  property :subnetwork, as: 'subnetwork'
11339
+ property :subnetwork_cidr_range, as: 'subnetworkCidrRange'
11272
11340
  end
11273
11341
  end
11274
11342
 
@@ -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
@@ -2143,6 +2262,96 @@ module Google
2143
2262
  execute_or_queue_command(command, &block)
2144
2263
  end
2145
2264
 
2265
+ # Retrieves an aggregated list of all usable backend services in the specified
2266
+ # project.
2267
+ # @param [String] project
2268
+ # Project ID for this request.
2269
+ # @param [String] filter
2270
+ # A filter expression that filters resources listed in the response. Most
2271
+ # Compute resources support two types of filter expressions: expressions that
2272
+ # support regular expressions and expressions that follow API improvement
2273
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
2274
+ # request. If you want to use AIP-160, your expression must specify the field
2275
+ # name, an operator, and the value that you want to use for filtering. The value
2276
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
2277
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
2278
+ # Engine instances, you can exclude instances named `example-instance` by
2279
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
2280
+ # whether a key has been defined. For example, to find all objects with `owner`
2281
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
2282
+ # example, you could specify `scheduling.automaticRestart = false` to include
2283
+ # instances only if they are not scheduled for automatic restarts. You can use
2284
+ # filtering on nested fields to filter based on resource labels. To filter on
2285
+ # multiple expressions, provide each separate expression within parentheses. For
2286
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
2287
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
2288
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
2289
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
2290
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
2291
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
2292
+ # un-parenthesized expression with or without quotes or against multiple
2293
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
2294
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
2295
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
2296
+ # interpreted as a regular expression using Google RE2 library syntax. The
2297
+ # literal value must match the entire field. For example, to filter for
2298
+ # instances that do not end with name "instance", you would use `name ne .*
2299
+ # instance`. You cannot combine constraints on multiple fields using regular
2300
+ # expressions.
2301
+ # @param [Fixnum] max_results
2302
+ # The maximum number of results per page that should be returned. If the number
2303
+ # of available results is larger than `maxResults`, Compute Engine returns a `
2304
+ # nextPageToken` that can be used to get the next page of results in subsequent
2305
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
2306
+ # @param [String] order_by
2307
+ # Sorts list results by a certain order. By default, results are returned in
2308
+ # alphanumerical order based on the resource name. You can also sort results in
2309
+ # descending order based on the creation timestamp using `orderBy="
2310
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
2311
+ # field in reverse chronological order (newest result first). Use this to sort
2312
+ # resources like operations so that the newest operation is returned first.
2313
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
2314
+ # @param [String] page_token
2315
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
2316
+ # by a previous list request to get the next page of results.
2317
+ # @param [Boolean] return_partial_success
2318
+ # Opt-in for partial success behavior which provides partial results in case of
2319
+ # failure. The default value is false.
2320
+ # @param [String] fields
2321
+ # Selector specifying which fields to include in a partial response.
2322
+ # @param [String] quota_user
2323
+ # Available to use for quota purposes for server-side applications. Can be any
2324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2325
+ # @param [String] user_ip
2326
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2327
+ # @param [Google::Apis::RequestOptions] options
2328
+ # Request-specific options
2329
+ #
2330
+ # @yield [result, err] Result & error if block supplied
2331
+ # @yieldparam result [Google::Apis::ComputeV1::BackendServiceListUsable] parsed result object
2332
+ # @yieldparam err [StandardError] error object if request failed
2333
+ #
2334
+ # @return [Google::Apis::ComputeV1::BackendServiceListUsable]
2335
+ #
2336
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2337
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2338
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2339
+ def list_backend_service_usable(project, 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)
2340
+ command = make_simple_command(:get, 'projects/{project}/global/backendServices/listUsable', options)
2341
+ command.response_representation = Google::Apis::ComputeV1::BackendServiceListUsable::Representation
2342
+ command.response_class = Google::Apis::ComputeV1::BackendServiceListUsable
2343
+ command.params['project'] = project unless project.nil?
2344
+ command.query['filter'] = filter unless filter.nil?
2345
+ command.query['maxResults'] = max_results unless max_results.nil?
2346
+ command.query['orderBy'] = order_by unless order_by.nil?
2347
+ command.query['pageToken'] = page_token unless page_token.nil?
2348
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
2349
+ command.query['fields'] = fields unless fields.nil?
2350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2351
+ command.query['userIp'] = user_ip unless user_ip.nil?
2352
+ execute_or_queue_command(command, &block)
2353
+ end
2354
+
2146
2355
  # Patches the specified BackendService resource with the data included in the
2147
2356
  # request. For more information, see Backend services overview. This method
2148
2357
  # supports PATCH semantics and uses the JSON merge patch format and processing
@@ -2339,6 +2548,45 @@ module Google
2339
2548
  execute_or_queue_command(command, &block)
2340
2549
  end
2341
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
+
2342
2590
  # Updates the specified BackendService resource with the data included in the
2343
2591
  # request. For more information, see Backend services overview.
2344
2592
  # @param [String] project
@@ -14786,7 +15034,11 @@ module Google
14786
15034
  execute_or_queue_command(command, &block)
14787
15035
  end
14788
15036
 
14789
- # 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.
14790
15042
  # @param [String] project
14791
15043
  # Project ID for this request.
14792
15044
  # @param [String] interconnect
@@ -16473,6 +16725,62 @@ module Google
16473
16725
  execute_or_queue_command(command, &block)
16474
16726
  end
16475
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
+
16476
16784
  # Sets the access control policy on the specified resource. Replaces any
16477
16785
  # existing policy.
16478
16786
  # @param [String] project
@@ -22790,6 +23098,100 @@ module Google
22790
23098
  execute_or_queue_command(command, &block)
22791
23099
  end
22792
23100
 
23101
+ # Retrieves an aggregated list of all usable backend services in the specified
23102
+ # project in the given region.
23103
+ # @param [String] project
23104
+ # Project ID for this request.
23105
+ # @param [String] region
23106
+ # Name of the region scoping this request. It must be a string that meets the
23107
+ # requirements in RFC1035.
23108
+ # @param [String] filter
23109
+ # A filter expression that filters resources listed in the response. Most
23110
+ # Compute resources support two types of filter expressions: expressions that
23111
+ # support regular expressions and expressions that follow API improvement
23112
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
23113
+ # request. If you want to use AIP-160, your expression must specify the field
23114
+ # name, an operator, and the value that you want to use for filtering. The value
23115
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
23116
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
23117
+ # Engine instances, you can exclude instances named `example-instance` by
23118
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
23119
+ # whether a key has been defined. For example, to find all objects with `owner`
23120
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
23121
+ # example, you could specify `scheduling.automaticRestart = false` to include
23122
+ # instances only if they are not scheduled for automatic restarts. You can use
23123
+ # filtering on nested fields to filter based on resource labels. To filter on
23124
+ # multiple expressions, provide each separate expression within parentheses. For
23125
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
23126
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
23127
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
23128
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
23129
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
23130
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
23131
+ # un-parenthesized expression with or without quotes or against multiple
23132
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
23133
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
23134
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
23135
+ # interpreted as a regular expression using Google RE2 library syntax. The
23136
+ # literal value must match the entire field. For example, to filter for
23137
+ # instances that do not end with name "instance", you would use `name ne .*
23138
+ # instance`. You cannot combine constraints on multiple fields using regular
23139
+ # expressions.
23140
+ # @param [Fixnum] max_results
23141
+ # The maximum number of results per page that should be returned. If the number
23142
+ # of available results is larger than `maxResults`, Compute Engine returns a `
23143
+ # nextPageToken` that can be used to get the next page of results in subsequent
23144
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
23145
+ # @param [String] order_by
23146
+ # Sorts list results by a certain order. By default, results are returned in
23147
+ # alphanumerical order based on the resource name. You can also sort results in
23148
+ # descending order based on the creation timestamp using `orderBy="
23149
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
23150
+ # field in reverse chronological order (newest result first). Use this to sort
23151
+ # resources like operations so that the newest operation is returned first.
23152
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
23153
+ # @param [String] page_token
23154
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
23155
+ # by a previous list request to get the next page of results.
23156
+ # @param [Boolean] return_partial_success
23157
+ # Opt-in for partial success behavior which provides partial results in case of
23158
+ # failure. The default value is false.
23159
+ # @param [String] fields
23160
+ # Selector specifying which fields to include in a partial response.
23161
+ # @param [String] quota_user
23162
+ # Available to use for quota purposes for server-side applications. Can be any
23163
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23164
+ # @param [String] user_ip
23165
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23166
+ # @param [Google::Apis::RequestOptions] options
23167
+ # Request-specific options
23168
+ #
23169
+ # @yield [result, err] Result & error if block supplied
23170
+ # @yieldparam result [Google::Apis::ComputeV1::BackendServiceListUsable] parsed result object
23171
+ # @yieldparam err [StandardError] error object if request failed
23172
+ #
23173
+ # @return [Google::Apis::ComputeV1::BackendServiceListUsable]
23174
+ #
23175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23178
+ def list_region_backend_service_usable(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23179
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/listUsable', options)
23180
+ command.response_representation = Google::Apis::ComputeV1::BackendServiceListUsable::Representation
23181
+ command.response_class = Google::Apis::ComputeV1::BackendServiceListUsable
23182
+ command.params['project'] = project unless project.nil?
23183
+ command.params['region'] = region unless region.nil?
23184
+ command.query['filter'] = filter unless filter.nil?
23185
+ command.query['maxResults'] = max_results unless max_results.nil?
23186
+ command.query['orderBy'] = order_by unless order_by.nil?
23187
+ command.query['pageToken'] = page_token unless page_token.nil?
23188
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
23189
+ command.query['fields'] = fields unless fields.nil?
23190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23191
+ command.query['userIp'] = user_ip unless user_ip.nil?
23192
+ execute_or_queue_command(command, &block)
23193
+ end
23194
+
22793
23195
  # Updates the specified regional BackendService resource with the data included
22794
23196
  # in the request. For more information, see Understanding backend services This
22795
23197
  # method supports PATCH semantics and uses the JSON merge patch format and
@@ -22944,6 +23346,48 @@ module Google
22944
23346
  execute_or_queue_command(command, &block)
22945
23347
  end
22946
23348
 
23349
+ # Returns permissions that a caller has on the specified resource.
23350
+ # @param [String] project
23351
+ # Project ID for this request.
23352
+ # @param [String] region
23353
+ # The name of the region for this request.
23354
+ # @param [String] resource
23355
+ # Name or id of the resource for this request.
23356
+ # @param [Google::Apis::ComputeV1::TestPermissionsRequest] test_permissions_request_object
23357
+ # @param [String] fields
23358
+ # Selector specifying which fields to include in a partial response.
23359
+ # @param [String] quota_user
23360
+ # Available to use for quota purposes for server-side applications. Can be any
23361
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
23362
+ # @param [String] user_ip
23363
+ # Legacy name for parameter that has been superseded by `quotaUser`.
23364
+ # @param [Google::Apis::RequestOptions] options
23365
+ # Request-specific options
23366
+ #
23367
+ # @yield [result, err] Result & error if block supplied
23368
+ # @yieldparam result [Google::Apis::ComputeV1::TestPermissionsResponse] parsed result object
23369
+ # @yieldparam err [StandardError] error object if request failed
23370
+ #
23371
+ # @return [Google::Apis::ComputeV1::TestPermissionsResponse]
23372
+ #
23373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23376
+ 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)
23377
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions', options)
23378
+ command.request_representation = Google::Apis::ComputeV1::TestPermissionsRequest::Representation
23379
+ command.request_object = test_permissions_request_object
23380
+ command.response_representation = Google::Apis::ComputeV1::TestPermissionsResponse::Representation
23381
+ command.response_class = Google::Apis::ComputeV1::TestPermissionsResponse
23382
+ command.params['project'] = project unless project.nil?
23383
+ command.params['region'] = region unless region.nil?
23384
+ command.params['resource'] = resource unless resource.nil?
23385
+ command.query['fields'] = fields unless fields.nil?
23386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23387
+ command.query['userIp'] = user_ip unless user_ip.nil?
23388
+ execute_or_queue_command(command, &block)
23389
+ end
23390
+
22947
23391
  # Updates the specified regional BackendService resource with the data included
22948
23392
  # in the request. For more information, see Backend services overview .
22949
23393
  # @param [String] project
@@ -28888,6 +29332,8 @@ module Google
28888
29332
  # second request. This prevents clients from accidentally creating duplicate
28889
29333
  # commitments. The request ID must be a valid UUID with the exception that zero
28890
29334
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
29335
+ # @param [String] update_mask
29336
+ # Indicates fields to be cleared as part of this request.
28891
29337
  # @param [String] fields
28892
29338
  # Selector specifying which fields to include in a partial response.
28893
29339
  # @param [String] quota_user
@@ -28907,7 +29353,7 @@ module Google
28907
29353
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28908
29354
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28909
29355
  # @raise [Google::Apis::AuthorizationError] Authorization is required
28910
- def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29356
+ def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28911
29357
  command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
28912
29358
  command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
28913
29359
  command.request_object = security_policy_object
@@ -28917,6 +29363,7 @@ module Google
28917
29363
  command.params['region'] = region unless region.nil?
28918
29364
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
28919
29365
  command.query['requestId'] = request_id unless request_id.nil?
29366
+ command.query['updateMask'] = update_mask unless update_mask.nil?
28920
29367
  command.query['fields'] = fields unless fields.nil?
28921
29368
  command.query['quotaUser'] = quota_user unless quota_user.nil?
28922
29369
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -28934,6 +29381,8 @@ module Google
28934
29381
  # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
28935
29382
  # @param [Fixnum] priority
28936
29383
  # The priority of the rule to patch.
29384
+ # @param [String] update_mask
29385
+ # Indicates fields to be cleared as part of this request.
28937
29386
  # @param [Boolean] validate_only
28938
29387
  # If true, the request will not be committed.
28939
29388
  # @param [String] fields
@@ -28955,7 +29404,7 @@ module Google
28955
29404
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28956
29405
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28957
29406
  # @raise [Google::Apis::AuthorizationError] Authorization is required
28958
- def patch_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29407
+ def patch_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, priority: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28959
29408
  command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule', options)
28960
29409
  command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
28961
29410
  command.request_object = security_policy_rule_object
@@ -28965,6 +29414,7 @@ module Google
28965
29414
  command.params['region'] = region unless region.nil?
28966
29415
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
28967
29416
  command.query['priority'] = priority unless priority.nil?
29417
+ command.query['updateMask'] = update_mask unless update_mask.nil?
28968
29418
  command.query['validateOnly'] = validate_only unless validate_only.nil?
28969
29419
  command.query['fields'] = fields unless fields.nil?
28970
29420
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -33523,6 +33973,8 @@ module Google
33523
33973
  # second request. This prevents clients from accidentally creating duplicate
33524
33974
  # commitments. The request ID must be a valid UUID with the exception that zero
33525
33975
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
33976
+ # @param [String] update_mask
33977
+ # Indicates fields to be cleared as part of this request.
33526
33978
  # @param [String] fields
33527
33979
  # Selector specifying which fields to include in a partial response.
33528
33980
  # @param [String] quota_user
@@ -33542,7 +33994,7 @@ module Google
33542
33994
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33543
33995
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33544
33996
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33545
- def patch_security_policy(project, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33997
+ def patch_security_policy(project, security_policy, security_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33546
33998
  command = make_simple_command(:patch, 'projects/{project}/global/securityPolicies/{securityPolicy}', options)
33547
33999
  command.request_representation = Google::Apis::ComputeV1::SecurityPolicy::Representation
33548
34000
  command.request_object = security_policy_object
@@ -33551,6 +34003,7 @@ module Google
33551
34003
  command.params['project'] = project unless project.nil?
33552
34004
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
33553
34005
  command.query['requestId'] = request_id unless request_id.nil?
34006
+ command.query['updateMask'] = update_mask unless update_mask.nil?
33554
34007
  command.query['fields'] = fields unless fields.nil?
33555
34008
  command.query['quotaUser'] = quota_user unless quota_user.nil?
33556
34009
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -33566,6 +34019,8 @@ module Google
33566
34019
  # @param [Google::Apis::ComputeV1::SecurityPolicyRule] security_policy_rule_object
33567
34020
  # @param [Fixnum] priority
33568
34021
  # The priority of the rule to patch.
34022
+ # @param [String] update_mask
34023
+ # Indicates fields to be cleared as part of this request.
33569
34024
  # @param [Boolean] validate_only
33570
34025
  # If true, the request will not be committed.
33571
34026
  # @param [String] fields
@@ -33587,7 +34042,7 @@ module Google
33587
34042
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33588
34043
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33589
34044
  # @raise [Google::Apis::AuthorizationError] Authorization is required
33590
- def patch_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
34045
+ def patch_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33591
34046
  command = make_simple_command(:post, 'projects/{project}/global/securityPolicies/{securityPolicy}/patchRule', options)
33592
34047
  command.request_representation = Google::Apis::ComputeV1::SecurityPolicyRule::Representation
33593
34048
  command.request_object = security_policy_rule_object
@@ -33596,6 +34051,7 @@ module Google
33596
34051
  command.params['project'] = project unless project.nil?
33597
34052
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
33598
34053
  command.query['priority'] = priority unless priority.nil?
34054
+ command.query['updateMask'] = update_mask unless update_mask.nil?
33599
34055
  command.query['validateOnly'] = validate_only unless validate_only.nil?
33600
34056
  command.query['fields'] = fields unless fields.nil?
33601
34057
  command.query['quotaUser'] = quota_user unless quota_user.nil?
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.80.0
4
+ version: 0.82.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-01 00:00:00.000000000 Z
11
+ date: 2023-10-22 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.80.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.82.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: []