google-apis-compute_beta 0.65.0 → 0.67.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.
@@ -13930,6 +13930,61 @@ module Google
13930
13930
  execute_or_queue_command(command, &block)
13931
13931
  end
13932
13932
 
13933
+ # Sets the Google Cloud Armor security policy for the specified instance. For
13934
+ # more information, see Google Cloud Armor Overview
13935
+ # @param [String] project
13936
+ # Project ID for this request.
13937
+ # @param [String] zone
13938
+ # Name of the zone scoping this request.
13939
+ # @param [String] instance
13940
+ # Name of the Instance resource to which the security policy should be set. The
13941
+ # name should conform to RFC1035.
13942
+ # @param [Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest] instances_set_security_policy_request_object
13943
+ # @param [String] request_id
13944
+ # An optional request ID to identify requests. Specify a unique request ID so
13945
+ # that if you must retry your request, the server will know to ignore the
13946
+ # request if it has already been completed. For example, consider a situation
13947
+ # where you make an initial request and the request times out. If you make the
13948
+ # request again with the same request ID, the server can check if original
13949
+ # operation with the same request ID was received, and if so, will ignore the
13950
+ # second request. This prevents clients from accidentally creating duplicate
13951
+ # commitments. The request ID must be a valid UUID with the exception that zero
13952
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
13953
+ # @param [String] fields
13954
+ # Selector specifying which fields to include in a partial response.
13955
+ # @param [String] quota_user
13956
+ # Available to use for quota purposes for server-side applications. Can be any
13957
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
13958
+ # @param [String] user_ip
13959
+ # Legacy name for parameter that has been superseded by `quotaUser`.
13960
+ # @param [Google::Apis::RequestOptions] options
13961
+ # Request-specific options
13962
+ #
13963
+ # @yield [result, err] Result & error if block supplied
13964
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
13965
+ # @yieldparam err [StandardError] error object if request failed
13966
+ #
13967
+ # @return [Google::Apis::ComputeBeta::Operation]
13968
+ #
13969
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13970
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13971
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13972
+ def set_instance_security_policy(project, zone, instance, instances_set_security_policy_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13973
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/setSecurityPolicy', options)
13974
+ command.request_representation = Google::Apis::ComputeBeta::InstancesSetSecurityPolicyRequest::Representation
13975
+ command.request_object = instances_set_security_policy_request_object
13976
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
13977
+ command.response_class = Google::Apis::ComputeBeta::Operation
13978
+ command.params['project'] = project unless project.nil?
13979
+ command.params['zone'] = zone unless zone.nil?
13980
+ command.params['instance'] = instance unless instance.nil?
13981
+ command.query['requestId'] = request_id unless request_id.nil?
13982
+ command.query['fields'] = fields unless fields.nil?
13983
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13984
+ command.query['userIp'] = user_ip unless user_ip.nil?
13985
+ execute_or_queue_command(command, &block)
13986
+ end
13987
+
13933
13988
  # Sets the service account on the instance. For more information, read Changing
13934
13989
  # the service account and access scopes for an instance.
13935
13990
  # @param [String] project
@@ -14156,6 +14211,16 @@ module Google
14156
14211
  # The name of the zone for this request.
14157
14212
  # @param [String] instance
14158
14213
  # Name of the instance scoping this request.
14214
+ # @param [String] request_id
14215
+ # An optional request ID to identify requests. Specify a unique request ID so
14216
+ # that if you must retry your request, the server will know to ignore the
14217
+ # request if it has already been completed. For example, consider a situation
14218
+ # where you make an initial request and the request times out. If you make the
14219
+ # request again with the same request ID, the server can check if original
14220
+ # operation with the same request ID was received, and if so, will ignore the
14221
+ # second request. This prevents clients from accidentally creating duplicate
14222
+ # commitments. The request ID must be a valid UUID with the exception that zero
14223
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
14159
14224
  # @param [String] fields
14160
14225
  # Selector specifying which fields to include in a partial response.
14161
14226
  # @param [String] quota_user
@@ -14175,13 +14240,14 @@ module Google
14175
14240
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14176
14241
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14177
14242
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14178
- def simulate_instance_maintenance_event(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14243
+ def simulate_instance_maintenance_event(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14179
14244
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent', options)
14180
14245
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14181
14246
  command.response_class = Google::Apis::ComputeBeta::Operation
14182
14247
  command.params['project'] = project unless project.nil?
14183
14248
  command.params['zone'] = zone unless zone.nil?
14184
14249
  command.params['instance'] = instance unless instance.nil?
14250
+ command.query['requestId'] = request_id unless request_id.nil?
14185
14251
  command.query['fields'] = fields unless fields.nil?
14186
14252
  command.query['quotaUser'] = quota_user unless quota_user.nil?
14187
14253
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -15410,6 +15476,132 @@ module Google
15410
15476
  execute_or_queue_command(command, &block)
15411
15477
  end
15412
15478
 
15479
+ # Returns the details for the specified interconnect remote location. Gets a
15480
+ # list of available interconnect remote locations by making a list() request.
15481
+ # @param [String] project
15482
+ # Project ID for this request.
15483
+ # @param [String] interconnect_remote_location
15484
+ # Name of the interconnect remote location to return.
15485
+ # @param [String] fields
15486
+ # Selector specifying which fields to include in a partial response.
15487
+ # @param [String] quota_user
15488
+ # Available to use for quota purposes for server-side applications. Can be any
15489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15490
+ # @param [String] user_ip
15491
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15492
+ # @param [Google::Apis::RequestOptions] options
15493
+ # Request-specific options
15494
+ #
15495
+ # @yield [result, err] Result & error if block supplied
15496
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectRemoteLocation] parsed result object
15497
+ # @yieldparam err [StandardError] error object if request failed
15498
+ #
15499
+ # @return [Google::Apis::ComputeBeta::InterconnectRemoteLocation]
15500
+ #
15501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15504
+ def get_interconnect_remote_location(project, interconnect_remote_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15505
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}', options)
15506
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectRemoteLocation::Representation
15507
+ command.response_class = Google::Apis::ComputeBeta::InterconnectRemoteLocation
15508
+ command.params['project'] = project unless project.nil?
15509
+ command.params['interconnectRemoteLocation'] = interconnect_remote_location unless interconnect_remote_location.nil?
15510
+ command.query['fields'] = fields unless fields.nil?
15511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15512
+ command.query['userIp'] = user_ip unless user_ip.nil?
15513
+ execute_or_queue_command(command, &block)
15514
+ end
15515
+
15516
+ # Retrieves the list of interconnect remote locations available to the specified
15517
+ # project.
15518
+ # @param [String] project
15519
+ # Project ID for this request.
15520
+ # @param [String] filter
15521
+ # A filter expression that filters resources listed in the response. Most
15522
+ # Compute resources support two types of filter expressions: expressions that
15523
+ # support regular expressions and expressions that follow API improvement
15524
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
15525
+ # field name, an operator, and the value that you want to use for filtering. The
15526
+ # value must be a string, a number, or a boolean. The operator must be either `=`
15527
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
15528
+ # Engine instances, you can exclude instances named `example-instance` by
15529
+ # specifying `name != example-instance`. The `:` operator can be used with
15530
+ # string fields to match substrings. For non-string fields it is equivalent to
15531
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
15532
+ # been defined. For example, to find all objects with `owner` label use: ```
15533
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
15534
+ # specify `scheduling.automaticRestart = false` to include instances only if
15535
+ # they are not scheduled for automatic restarts. You can use filtering on nested
15536
+ # fields to filter based on resource labels. To filter on multiple expressions,
15537
+ # provide each separate expression within parentheses. For example: ``` (
15538
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
15539
+ # default, each expression is an `AND` expression. However, you can include `AND`
15540
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
15541
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
15542
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
15543
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
15544
+ # expression with or without quotes or against multiple parenthesized
15545
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
15546
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
15547
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
15548
+ # regular expression using Google RE2 library syntax. The literal value must
15549
+ # match the entire field. For example, to filter for instances that do not end
15550
+ # with name "instance", you would use `name ne .*instance`.
15551
+ # @param [Fixnum] max_results
15552
+ # The maximum number of results per page that should be returned. If the number
15553
+ # of available results is larger than `maxResults`, Compute Engine returns a `
15554
+ # nextPageToken` that can be used to get the next page of results in subsequent
15555
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
15556
+ # @param [String] order_by
15557
+ # Sorts list results by a certain order. By default, results are returned in
15558
+ # alphanumerical order based on the resource name. You can also sort results in
15559
+ # descending order based on the creation timestamp using `orderBy="
15560
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
15561
+ # field in reverse chronological order (newest result first). Use this to sort
15562
+ # resources like operations so that the newest operation is returned first.
15563
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
15564
+ # @param [String] page_token
15565
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
15566
+ # by a previous list request to get the next page of results.
15567
+ # @param [Boolean] return_partial_success
15568
+ # Opt-in for partial success behavior which provides partial results in case of
15569
+ # failure. The default value is false.
15570
+ # @param [String] fields
15571
+ # Selector specifying which fields to include in a partial response.
15572
+ # @param [String] quota_user
15573
+ # Available to use for quota purposes for server-side applications. Can be any
15574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
15575
+ # @param [String] user_ip
15576
+ # Legacy name for parameter that has been superseded by `quotaUser`.
15577
+ # @param [Google::Apis::RequestOptions] options
15578
+ # Request-specific options
15579
+ #
15580
+ # @yield [result, err] Result & error if block supplied
15581
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectRemoteLocationList] parsed result object
15582
+ # @yieldparam err [StandardError] error object if request failed
15583
+ #
15584
+ # @return [Google::Apis::ComputeBeta::InterconnectRemoteLocationList]
15585
+ #
15586
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15587
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15588
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15589
+ def list_interconnect_remote_locations(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)
15590
+ command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations', options)
15591
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectRemoteLocationList::Representation
15592
+ command.response_class = Google::Apis::ComputeBeta::InterconnectRemoteLocationList
15593
+ command.params['project'] = project unless project.nil?
15594
+ command.query['filter'] = filter unless filter.nil?
15595
+ command.query['maxResults'] = max_results unless max_results.nil?
15596
+ command.query['orderBy'] = order_by unless order_by.nil?
15597
+ command.query['pageToken'] = page_token unless page_token.nil?
15598
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
15599
+ command.query['fields'] = fields unless fields.nil?
15600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15601
+ command.query['userIp'] = user_ip unless user_ip.nil?
15602
+ execute_or_queue_command(command, &block)
15603
+ end
15604
+
15413
15605
  # Deletes the specified Interconnect.
15414
15606
  # @param [String] project
15415
15607
  # Project ID for this request.
@@ -24336,6 +24528,61 @@ module Google
24336
24528
  execute_or_queue_command(command, &block)
24337
24529
  end
24338
24530
 
24531
+ # Sets the Google Cloud Armor security policy for the specified backend service.
24532
+ # For more information, see Google Cloud Armor Overview
24533
+ # @param [String] project
24534
+ # Project ID for this request.
24535
+ # @param [String] region
24536
+ # Name of the region scoping this request.
24537
+ # @param [String] backend_service
24538
+ # Name of the BackendService resource to which the security policy should be set.
24539
+ # The name should conform to RFC1035.
24540
+ # @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
24541
+ # @param [String] request_id
24542
+ # An optional request ID to identify requests. Specify a unique request ID so
24543
+ # that if you must retry your request, the server will know to ignore the
24544
+ # request if it has already been completed. For example, consider a situation
24545
+ # where you make an initial request and the request times out. If you make the
24546
+ # request again with the same request ID, the server can check if original
24547
+ # operation with the same request ID was received, and if so, will ignore the
24548
+ # second request. This prevents clients from accidentally creating duplicate
24549
+ # commitments. The request ID must be a valid UUID with the exception that zero
24550
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24551
+ # @param [String] fields
24552
+ # Selector specifying which fields to include in a partial response.
24553
+ # @param [String] quota_user
24554
+ # Available to use for quota purposes for server-side applications. Can be any
24555
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24556
+ # @param [String] user_ip
24557
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24558
+ # @param [Google::Apis::RequestOptions] options
24559
+ # Request-specific options
24560
+ #
24561
+ # @yield [result, err] Result & error if block supplied
24562
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
24563
+ # @yieldparam err [StandardError] error object if request failed
24564
+ #
24565
+ # @return [Google::Apis::ComputeBeta::Operation]
24566
+ #
24567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24570
+ def set_region_backend_service_security_policy(project, region, backend_service, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24571
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{backendService}/setSecurityPolicy', options)
24572
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
24573
+ command.request_object = security_policy_reference_object
24574
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24575
+ command.response_class = Google::Apis::ComputeBeta::Operation
24576
+ command.params['project'] = project unless project.nil?
24577
+ command.params['region'] = region unless region.nil?
24578
+ command.params['backendService'] = backend_service unless backend_service.nil?
24579
+ command.query['requestId'] = request_id unless request_id.nil?
24580
+ command.query['fields'] = fields unless fields.nil?
24581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24582
+ command.query['userIp'] = user_ip unless user_ip.nil?
24583
+ execute_or_queue_command(command, &block)
24584
+ end
24585
+
24339
24586
  # Returns permissions that a caller has on the specified resource.
24340
24587
  # @param [String] project
24341
24588
  # Project ID for this request.
@@ -30237,6 +30484,51 @@ module Google
30237
30484
  execute_or_queue_command(command, &block)
30238
30485
  end
30239
30486
 
30487
+ # Inserts a rule into a security policy.
30488
+ # @param [String] project
30489
+ # Project ID for this request.
30490
+ # @param [String] region
30491
+ # Name of the region scoping this request.
30492
+ # @param [String] security_policy
30493
+ # Name of the security policy to update.
30494
+ # @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
30495
+ # @param [Boolean] validate_only
30496
+ # If true, the request will not be committed.
30497
+ # @param [String] fields
30498
+ # Selector specifying which fields to include in a partial response.
30499
+ # @param [String] quota_user
30500
+ # Available to use for quota purposes for server-side applications. Can be any
30501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30502
+ # @param [String] user_ip
30503
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30504
+ # @param [Google::Apis::RequestOptions] options
30505
+ # Request-specific options
30506
+ #
30507
+ # @yield [result, err] Result & error if block supplied
30508
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30509
+ # @yieldparam err [StandardError] error object if request failed
30510
+ #
30511
+ # @return [Google::Apis::ComputeBeta::Operation]
30512
+ #
30513
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30514
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30515
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30516
+ def add_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30517
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
30518
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
30519
+ command.request_object = security_policy_rule_object
30520
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30521
+ command.response_class = Google::Apis::ComputeBeta::Operation
30522
+ command.params['project'] = project unless project.nil?
30523
+ command.params['region'] = region unless region.nil?
30524
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30525
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
30526
+ command.query['fields'] = fields unless fields.nil?
30527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30528
+ command.query['userIp'] = user_ip unless user_ip.nil?
30529
+ execute_or_queue_command(command, &block)
30530
+ end
30531
+
30240
30532
  # Deletes the specified policy.
30241
30533
  # @param [String] project
30242
30534
  # Project ID for this request.
@@ -30326,6 +30618,48 @@ module Google
30326
30618
  execute_or_queue_command(command, &block)
30327
30619
  end
30328
30620
 
30621
+ # Gets a rule at the specified priority.
30622
+ # @param [String] project
30623
+ # Project ID for this request.
30624
+ # @param [String] region
30625
+ # Name of the region scoping this request.
30626
+ # @param [String] security_policy
30627
+ # Name of the security policy to which the queried rule belongs.
30628
+ # @param [Fixnum] priority
30629
+ # The priority of the rule to get from the security policy.
30630
+ # @param [String] fields
30631
+ # Selector specifying which fields to include in a partial response.
30632
+ # @param [String] quota_user
30633
+ # Available to use for quota purposes for server-side applications. Can be any
30634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30635
+ # @param [String] user_ip
30636
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30637
+ # @param [Google::Apis::RequestOptions] options
30638
+ # Request-specific options
30639
+ #
30640
+ # @yield [result, err] Result & error if block supplied
30641
+ # @yieldparam result [Google::Apis::ComputeBeta::SecurityPolicyRule] parsed result object
30642
+ # @yieldparam err [StandardError] error object if request failed
30643
+ #
30644
+ # @return [Google::Apis::ComputeBeta::SecurityPolicyRule]
30645
+ #
30646
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30647
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30648
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30649
+ def get_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30650
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule', options)
30651
+ command.response_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
30652
+ command.response_class = Google::Apis::ComputeBeta::SecurityPolicyRule
30653
+ command.params['project'] = project unless project.nil?
30654
+ command.params['region'] = region unless region.nil?
30655
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30656
+ command.query['priority'] = priority unless priority.nil?
30657
+ command.query['fields'] = fields unless fields.nil?
30658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30659
+ command.query['userIp'] = user_ip unless user_ip.nil?
30660
+ execute_or_queue_command(command, &block)
30661
+ end
30662
+
30329
30663
  # Creates a new policy in the specified project using the data included in the
30330
30664
  # request.
30331
30665
  # @param [String] project
@@ -30528,6 +30862,97 @@ module Google
30528
30862
  execute_or_queue_command(command, &block)
30529
30863
  end
30530
30864
 
30865
+ # Patches a rule at the specified priority. To clear fields in the rule, leave
30866
+ # the fields empty and specify them in the updateMask.
30867
+ # @param [String] project
30868
+ # Project ID for this request.
30869
+ # @param [String] region
30870
+ # Name of the region scoping this request.
30871
+ # @param [String] security_policy
30872
+ # Name of the security policy to update.
30873
+ # @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
30874
+ # @param [Fixnum] priority
30875
+ # The priority of the rule to patch.
30876
+ # @param [Boolean] validate_only
30877
+ # If true, the request will not be committed.
30878
+ # @param [String] fields
30879
+ # Selector specifying which fields to include in a partial response.
30880
+ # @param [String] quota_user
30881
+ # Available to use for quota purposes for server-side applications. Can be any
30882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30883
+ # @param [String] user_ip
30884
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30885
+ # @param [Google::Apis::RequestOptions] options
30886
+ # Request-specific options
30887
+ #
30888
+ # @yield [result, err] Result & error if block supplied
30889
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30890
+ # @yieldparam err [StandardError] error object if request failed
30891
+ #
30892
+ # @return [Google::Apis::ComputeBeta::Operation]
30893
+ #
30894
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30895
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30896
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30897
+ 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)
30898
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule', options)
30899
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
30900
+ command.request_object = security_policy_rule_object
30901
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30902
+ command.response_class = Google::Apis::ComputeBeta::Operation
30903
+ command.params['project'] = project unless project.nil?
30904
+ command.params['region'] = region unless region.nil?
30905
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30906
+ command.query['priority'] = priority unless priority.nil?
30907
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
30908
+ command.query['fields'] = fields unless fields.nil?
30909
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30910
+ command.query['userIp'] = user_ip unless user_ip.nil?
30911
+ execute_or_queue_command(command, &block)
30912
+ end
30913
+
30914
+ # Deletes a rule at the specified priority.
30915
+ # @param [String] project
30916
+ # Project ID for this request.
30917
+ # @param [String] region
30918
+ # Name of the region scoping this request.
30919
+ # @param [String] security_policy
30920
+ # Name of the security policy to update.
30921
+ # @param [Fixnum] priority
30922
+ # The priority of the rule to remove from the security policy.
30923
+ # @param [String] fields
30924
+ # Selector specifying which fields to include in a partial response.
30925
+ # @param [String] quota_user
30926
+ # Available to use for quota purposes for server-side applications. Can be any
30927
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30928
+ # @param [String] user_ip
30929
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30930
+ # @param [Google::Apis::RequestOptions] options
30931
+ # Request-specific options
30932
+ #
30933
+ # @yield [result, err] Result & error if block supplied
30934
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30935
+ # @yieldparam err [StandardError] error object if request failed
30936
+ #
30937
+ # @return [Google::Apis::ComputeBeta::Operation]
30938
+ #
30939
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30940
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30941
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30942
+ def remove_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30943
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule', options)
30944
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30945
+ command.response_class = Google::Apis::ComputeBeta::Operation
30946
+ command.params['project'] = project unless project.nil?
30947
+ command.params['region'] = region unless region.nil?
30948
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
30949
+ command.query['priority'] = priority unless priority.nil?
30950
+ command.query['fields'] = fields unless fields.nil?
30951
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30952
+ command.query['userIp'] = user_ip unless user_ip.nil?
30953
+ execute_or_queue_command(command, &block)
30954
+ end
30955
+
30531
30956
  # Deletes the specified SslCertificate resource in the region.
30532
30957
  # @param [String] project
30533
30958
  # Project ID for this request.
@@ -39776,6 +40201,61 @@ module Google
39776
40201
  execute_or_queue_command(command, &block)
39777
40202
  end
39778
40203
 
40204
+ # Sets the Google Cloud Armor security policy for the specified target instance.
40205
+ # For more information, see Google Cloud Armor Overview
40206
+ # @param [String] project
40207
+ # Project ID for this request.
40208
+ # @param [String] zone
40209
+ # Name of the zone scoping this request.
40210
+ # @param [String] target_instance
40211
+ # Name of the TargetInstance resource to which the security policy should be set.
40212
+ # The name should conform to RFC1035.
40213
+ # @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
40214
+ # @param [String] request_id
40215
+ # An optional request ID to identify requests. Specify a unique request ID so
40216
+ # that if you must retry your request, the server will know to ignore the
40217
+ # request if it has already been completed. For example, consider a situation
40218
+ # where you make an initial request and the request times out. If you make the
40219
+ # request again with the same request ID, the server can check if original
40220
+ # operation with the same request ID was received, and if so, will ignore the
40221
+ # second request. This prevents clients from accidentally creating duplicate
40222
+ # commitments. The request ID must be a valid UUID with the exception that zero
40223
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40224
+ # @param [String] fields
40225
+ # Selector specifying which fields to include in a partial response.
40226
+ # @param [String] quota_user
40227
+ # Available to use for quota purposes for server-side applications. Can be any
40228
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40229
+ # @param [String] user_ip
40230
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40231
+ # @param [Google::Apis::RequestOptions] options
40232
+ # Request-specific options
40233
+ #
40234
+ # @yield [result, err] Result & error if block supplied
40235
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
40236
+ # @yieldparam err [StandardError] error object if request failed
40237
+ #
40238
+ # @return [Google::Apis::ComputeBeta::Operation]
40239
+ #
40240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40243
+ def set_target_instance_security_policy(project, zone, target_instance, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40244
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/targetInstances/{targetInstance}/setSecurityPolicy', options)
40245
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
40246
+ command.request_object = security_policy_reference_object
40247
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
40248
+ command.response_class = Google::Apis::ComputeBeta::Operation
40249
+ command.params['project'] = project unless project.nil?
40250
+ command.params['zone'] = zone unless zone.nil?
40251
+ command.params['targetInstance'] = target_instance unless target_instance.nil?
40252
+ command.query['requestId'] = request_id unless request_id.nil?
40253
+ command.query['fields'] = fields unless fields.nil?
40254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40255
+ command.query['userIp'] = user_ip unless user_ip.nil?
40256
+ execute_or_queue_command(command, &block)
40257
+ end
40258
+
39779
40259
  # Returns permissions that a caller has on the specified resource.
39780
40260
  # @param [String] project
39781
40261
  # Project ID for this request.
@@ -40456,6 +40936,61 @@ module Google
40456
40936
  execute_or_queue_command(command, &block)
40457
40937
  end
40458
40938
 
40939
+ # Sets the Google Cloud Armor security policy for the specified target pool. For
40940
+ # more information, see Google Cloud Armor Overview
40941
+ # @param [String] project
40942
+ # Project ID for this request.
40943
+ # @param [String] region
40944
+ # Name of the region scoping this request.
40945
+ # @param [String] target_pool
40946
+ # Name of the TargetPool resource to which the security policy should be set.
40947
+ # The name should conform to RFC1035.
40948
+ # @param [Google::Apis::ComputeBeta::SecurityPolicyReference] security_policy_reference_object
40949
+ # @param [String] request_id
40950
+ # An optional request ID to identify requests. Specify a unique request ID so
40951
+ # that if you must retry your request, the server will know to ignore the
40952
+ # request if it has already been completed. For example, consider a situation
40953
+ # where you make an initial request and the request times out. If you make the
40954
+ # request again with the same request ID, the server can check if original
40955
+ # operation with the same request ID was received, and if so, will ignore the
40956
+ # second request. This prevents clients from accidentally creating duplicate
40957
+ # commitments. The request ID must be a valid UUID with the exception that zero
40958
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40959
+ # @param [String] fields
40960
+ # Selector specifying which fields to include in a partial response.
40961
+ # @param [String] quota_user
40962
+ # Available to use for quota purposes for server-side applications. Can be any
40963
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40964
+ # @param [String] user_ip
40965
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40966
+ # @param [Google::Apis::RequestOptions] options
40967
+ # Request-specific options
40968
+ #
40969
+ # @yield [result, err] Result & error if block supplied
40970
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
40971
+ # @yieldparam err [StandardError] error object if request failed
40972
+ #
40973
+ # @return [Google::Apis::ComputeBeta::Operation]
40974
+ #
40975
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40976
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40977
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40978
+ def set_target_pool_security_policy(project, region, target_pool, security_policy_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40979
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetPools/{targetPool}/setSecurityPolicy', options)
40980
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyReference::Representation
40981
+ command.request_object = security_policy_reference_object
40982
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
40983
+ command.response_class = Google::Apis::ComputeBeta::Operation
40984
+ command.params['project'] = project unless project.nil?
40985
+ command.params['region'] = region unless region.nil?
40986
+ command.params['targetPool'] = target_pool unless target_pool.nil?
40987
+ command.query['requestId'] = request_id unless request_id.nil?
40988
+ command.query['fields'] = fields unless fields.nil?
40989
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40990
+ command.query['userIp'] = user_ip unless user_ip.nil?
40991
+ execute_or_queue_command(command, &block)
40992
+ end
40993
+
40459
40994
  # Returns permissions that a caller has on the specified resource.
40460
40995
  # @param [String] project
40461
40996
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.67.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-23 00:00:00.000000000 Z
11
+ date: 2023-05-14 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_beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.65.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.67.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
63
63
  post_install_message:
64
64
  rdoc_options: []