google-apis-compute_alpha 0.45.0 → 0.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/compute_alpha/classes.rb +284 -69
- data/lib/google/apis/compute_alpha/gem_version.rb +2 -2
- data/lib/google/apis/compute_alpha/representations.rb +104 -15
- data/lib/google/apis/compute_alpha/service.rb +369 -488
- metadata +3 -3
@@ -3656,7 +3656,7 @@ module Google
|
|
3656
3656
|
# @param [String] zone
|
3657
3657
|
# The name of the zone for this request. This must be the zone of the primary or
|
3658
3658
|
# secondary disks in the consistency group.
|
3659
|
-
# @param [Google::Apis::ComputeAlpha::
|
3659
|
+
# @param [Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource] disks_stop_group_async_replication_resource_object
|
3660
3660
|
# @param [String] request_id
|
3661
3661
|
# An optional request ID to identify requests. Specify a unique request ID so
|
3662
3662
|
# that if you must retry your request, the server will know to ignore the
|
@@ -3686,10 +3686,10 @@ module Google
|
|
3686
3686
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3687
3687
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3688
3688
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3689
|
-
def stop_disk_group_async_replication(project, zone,
|
3689
|
+
def stop_disk_group_async_replication(project, zone, disks_stop_group_async_replication_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3690
3690
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication', options)
|
3691
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
3692
|
-
command.request_object =
|
3691
|
+
command.request_representation = Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource::Representation
|
3692
|
+
command.request_object = disks_stop_group_async_replication_resource_object
|
3693
3693
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3694
3694
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3695
3695
|
command.params['project'] = project unless project.nil?
|
@@ -22023,6 +22023,60 @@ module Google
|
|
22023
22023
|
execute_or_queue_command(command, &block)
|
22024
22024
|
end
|
22025
22025
|
|
22026
|
+
# Simulates maintenance event on specified nodes from the node group.
|
22027
|
+
# @param [String] project
|
22028
|
+
# Project ID for this request.
|
22029
|
+
# @param [String] zone
|
22030
|
+
# The name of the zone for this request.
|
22031
|
+
# @param [String] node_group
|
22032
|
+
# Name of the NodeGroup resource whose nodes will go under maintenance
|
22033
|
+
# simulation.
|
22034
|
+
# @param [Google::Apis::ComputeAlpha::NodeGroupsSimulateMaintenanceEventRequest] node_groups_simulate_maintenance_event_request_object
|
22035
|
+
# @param [String] request_id
|
22036
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
22037
|
+
# that if you must retry your request, the server will know to ignore the
|
22038
|
+
# request if it has already been completed. For example, consider a situation
|
22039
|
+
# where you make an initial request and the request times out. If you make the
|
22040
|
+
# request again with the same request ID, the server can check if original
|
22041
|
+
# operation with the same request ID was received, and if so, will ignore the
|
22042
|
+
# second request. This prevents clients from accidentally creating duplicate
|
22043
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
22044
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
22045
|
+
# @param [String] fields
|
22046
|
+
# Selector specifying which fields to include in a partial response.
|
22047
|
+
# @param [String] quota_user
|
22048
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
22049
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
22050
|
+
# @param [String] user_ip
|
22051
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
22052
|
+
# @param [Google::Apis::RequestOptions] options
|
22053
|
+
# Request-specific options
|
22054
|
+
#
|
22055
|
+
# @yield [result, err] Result & error if block supplied
|
22056
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
22057
|
+
# @yieldparam err [StandardError] error object if request failed
|
22058
|
+
#
|
22059
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
22060
|
+
#
|
22061
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
22062
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
22063
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
22064
|
+
def simulate_node_group_maintenance_event(project, zone, node_group, node_groups_simulate_maintenance_event_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
22065
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent', options)
|
22066
|
+
command.request_representation = Google::Apis::ComputeAlpha::NodeGroupsSimulateMaintenanceEventRequest::Representation
|
22067
|
+
command.request_object = node_groups_simulate_maintenance_event_request_object
|
22068
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
22069
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
22070
|
+
command.params['project'] = project unless project.nil?
|
22071
|
+
command.params['zone'] = zone unless zone.nil?
|
22072
|
+
command.params['nodeGroup'] = node_group unless node_group.nil?
|
22073
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
22074
|
+
command.query['fields'] = fields unless fields.nil?
|
22075
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
22076
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
22077
|
+
execute_or_queue_command(command, &block)
|
22078
|
+
end
|
22079
|
+
|
22026
22080
|
# Returns permissions that a caller has on the specified resource.
|
22027
22081
|
# @param [String] project
|
22028
22082
|
# Project ID for this request.
|
@@ -27681,7 +27735,7 @@ module Google
|
|
27681
27735
|
# @param [String] region
|
27682
27736
|
# The name of the region for this request. This must be the region of the
|
27683
27737
|
# primary or secondary disks in the consistency group.
|
27684
|
-
# @param [Google::Apis::ComputeAlpha::
|
27738
|
+
# @param [Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource] disks_stop_group_async_replication_resource_object
|
27685
27739
|
# @param [String] request_id
|
27686
27740
|
# An optional request ID to identify requests. Specify a unique request ID so
|
27687
27741
|
# that if you must retry your request, the server will know to ignore the
|
@@ -27711,10 +27765,10 @@ module Google
|
|
27711
27765
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27712
27766
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27713
27767
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27714
|
-
def stop_region_disk_group_async_replication(project, region,
|
27768
|
+
def stop_region_disk_group_async_replication(project, region, disks_stop_group_async_replication_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27715
27769
|
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/stopGroupAsyncReplication', options)
|
27716
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
27717
|
-
command.request_object =
|
27770
|
+
command.request_representation = Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource::Representation
|
27771
|
+
command.request_object = disks_stop_group_async_replication_resource_object
|
27718
27772
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27719
27773
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27720
27774
|
command.params['project'] = project unless project.nil?
|
@@ -32523,23 +32577,67 @@ module Google
|
|
32523
32577
|
execute_or_queue_command(command, &block)
|
32524
32578
|
end
|
32525
32579
|
|
32526
|
-
#
|
32580
|
+
# Retrieves the list of all NotificationEndpoint resources, regional and global,
|
32581
|
+
# available to the specified project.
|
32527
32582
|
# @param [String] project
|
32528
|
-
#
|
32529
|
-
# @param [String]
|
32530
|
-
#
|
32531
|
-
#
|
32532
|
-
#
|
32533
|
-
#
|
32534
|
-
#
|
32535
|
-
#
|
32536
|
-
#
|
32537
|
-
#
|
32538
|
-
#
|
32539
|
-
#
|
32540
|
-
#
|
32541
|
-
#
|
32542
|
-
#
|
32583
|
+
# Name of the project scoping this request.
|
32584
|
+
# @param [String] filter
|
32585
|
+
# A filter expression that filters resources listed in the response. Most
|
32586
|
+
# Compute resources support two types of filter expressions: expressions that
|
32587
|
+
# support regular expressions and expressions that follow API improvement
|
32588
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
32589
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
32590
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
32591
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
32592
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
32593
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
32594
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
32595
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
32596
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
32597
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
32598
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
32599
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
32600
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
32601
|
+
# provide each separate expression within parentheses. For example: ``` (
|
32602
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
32603
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
32604
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
32605
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
32606
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
32607
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
32608
|
+
# expression with or without quotes or against multiple parenthesized
|
32609
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
32610
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
32611
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
32612
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
32613
|
+
# match the entire field. For example, to filter for instances that do not end
|
32614
|
+
# with name "instance", you would use `name ne .*instance`.
|
32615
|
+
# @param [Boolean] include_all_scopes
|
32616
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
32617
|
+
# global) should be included in the response. For new resource types added after
|
32618
|
+
# this field, the flag has no effect as new resource types will always include
|
32619
|
+
# every visible scope for each scope type in response. For resource types which
|
32620
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
32621
|
+
# types where the resource type is expected to be found will be included.
|
32622
|
+
# @param [Fixnum] max_results
|
32623
|
+
# The maximum number of results per page that should be returned. If the number
|
32624
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
32625
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
32626
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
32627
|
+
# @param [String] order_by
|
32628
|
+
# Sorts list results by a certain order. By default, results are returned in
|
32629
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
32630
|
+
# descending order based on the creation timestamp using `orderBy="
|
32631
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
32632
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
32633
|
+
# resources like operations so that the newest operation is returned first.
|
32634
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
32635
|
+
# @param [String] page_token
|
32636
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
32637
|
+
# by a previous list request to get the next page of results.
|
32638
|
+
# @param [Boolean] return_partial_success
|
32639
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
32640
|
+
# failure. The default value is false.
|
32543
32641
|
# @param [String] fields
|
32544
32642
|
# Selector specifying which fields to include in a partial response.
|
32545
32643
|
# @param [String] quota_user
|
@@ -32551,35 +32649,48 @@ module Google
|
|
32551
32649
|
# Request-specific options
|
32552
32650
|
#
|
32553
32651
|
# @yield [result, err] Result & error if block supplied
|
32554
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
32652
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList] parsed result object
|
32555
32653
|
# @yieldparam err [StandardError] error object if request failed
|
32556
32654
|
#
|
32557
|
-
# @return [Google::Apis::ComputeAlpha::
|
32655
|
+
# @return [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList]
|
32558
32656
|
#
|
32559
32657
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32560
32658
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32561
32659
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32562
|
-
def
|
32563
|
-
command = make_simple_command(:
|
32564
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
32565
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
32660
|
+
def aggregated_region_notification_endpoint_list(project, filter: nil, include_all_scopes: 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)
|
32661
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/notificationEndpoints', options)
|
32662
|
+
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList::Representation
|
32663
|
+
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList
|
32566
32664
|
command.params['project'] = project unless project.nil?
|
32567
|
-
command.
|
32568
|
-
command.
|
32569
|
-
command.query['
|
32665
|
+
command.query['filter'] = filter unless filter.nil?
|
32666
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
32667
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
32668
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
32669
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
32670
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
32570
32671
|
command.query['fields'] = fields unless fields.nil?
|
32571
32672
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32572
32673
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
32573
32674
|
execute_or_queue_command(command, &block)
|
32574
32675
|
end
|
32575
32676
|
|
32576
|
-
#
|
32677
|
+
# Deletes the specified NotificationEndpoint in the given region
|
32577
32678
|
# @param [String] project
|
32578
32679
|
# Project ID for this request.
|
32579
32680
|
# @param [String] region
|
32580
32681
|
# Name of the region scoping this request.
|
32581
|
-
# @param [String]
|
32582
|
-
# Name of the
|
32682
|
+
# @param [String] notification_endpoint
|
32683
|
+
# Name of the NotificationEndpoint resource to delete.
|
32684
|
+
# @param [String] request_id
|
32685
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32686
|
+
# that if you must retry your request, the server will know to ignore the
|
32687
|
+
# request if it has already been completed. For example, consider a situation
|
32688
|
+
# where you make an initial request and the request times out. If you make the
|
32689
|
+
# request again with the same request ID, the server can check if original
|
32690
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32691
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32692
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32693
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32583
32694
|
# @param [String] fields
|
32584
32695
|
# Selector specifying which fields to include in a partial response.
|
32585
32696
|
# @param [String] quota_user
|
@@ -32591,37 +32702,35 @@ module Google
|
|
32591
32702
|
# Request-specific options
|
32592
32703
|
#
|
32593
32704
|
# @yield [result, err] Result & error if block supplied
|
32594
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
32705
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32595
32706
|
# @yieldparam err [StandardError] error object if request failed
|
32596
32707
|
#
|
32597
|
-
# @return [Google::Apis::ComputeAlpha::
|
32708
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32598
32709
|
#
|
32599
32710
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32600
32711
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32601
32712
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32602
|
-
def
|
32603
|
-
command = make_simple_command(:
|
32604
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
32605
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
32713
|
+
def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32714
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
|
32715
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32716
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32606
32717
|
command.params['project'] = project unless project.nil?
|
32607
32718
|
command.params['region'] = region unless region.nil?
|
32608
|
-
command.params['
|
32719
|
+
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
|
32720
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32609
32721
|
command.query['fields'] = fields unless fields.nil?
|
32610
32722
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32611
32723
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
32612
32724
|
execute_or_queue_command(command, &block)
|
32613
32725
|
end
|
32614
32726
|
|
32615
|
-
#
|
32616
|
-
# or resource exists.
|
32727
|
+
# Returns the specified NotificationEndpoint resource in the given region.
|
32617
32728
|
# @param [String] project
|
32618
32729
|
# Project ID for this request.
|
32619
32730
|
# @param [String] region
|
32620
|
-
#
|
32621
|
-
# @param [String]
|
32622
|
-
# Name
|
32623
|
-
# @param [Fixnum] options_requested_policy_version
|
32624
|
-
# Requested IAM Policy version.
|
32731
|
+
# Name of the region scoping this request.
|
32732
|
+
# @param [String] notification_endpoint
|
32733
|
+
# Name of the NotificationEndpoint resource to return.
|
32625
32734
|
# @param [String] fields
|
32626
32735
|
# Selector specifying which fields to include in a partial response.
|
32627
32736
|
# @param [String] quota_user
|
@@ -32633,35 +32742,34 @@ module Google
|
|
32633
32742
|
# Request-specific options
|
32634
32743
|
#
|
32635
32744
|
# @yield [result, err] Result & error if block supplied
|
32636
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
32745
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpoint] parsed result object
|
32637
32746
|
# @yieldparam err [StandardError] error object if request failed
|
32638
32747
|
#
|
32639
|
-
# @return [Google::Apis::ComputeAlpha::
|
32748
|
+
# @return [Google::Apis::ComputeAlpha::NotificationEndpoint]
|
32640
32749
|
#
|
32641
32750
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32642
32751
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32643
32752
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32644
|
-
def
|
32645
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
32646
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
32647
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
32753
|
+
def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32754
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
|
32755
|
+
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
|
32756
|
+
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint
|
32648
32757
|
command.params['project'] = project unless project.nil?
|
32649
32758
|
command.params['region'] = region unless region.nil?
|
32650
|
-
command.params['
|
32651
|
-
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
32759
|
+
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
|
32652
32760
|
command.query['fields'] = fields unless fields.nil?
|
32653
32761
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32654
32762
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
32655
32763
|
execute_or_queue_command(command, &block)
|
32656
32764
|
end
|
32657
32765
|
|
32658
|
-
#
|
32659
|
-
# in the request.
|
32766
|
+
# Create a NotificationEndpoint in the specified project in the given region
|
32767
|
+
# using the parameters that are included in the request.
|
32660
32768
|
# @param [String] project
|
32661
32769
|
# Project ID for this request.
|
32662
32770
|
# @param [String] region
|
32663
32771
|
# Name of the region scoping this request.
|
32664
|
-
# @param [Google::Apis::ComputeAlpha::
|
32772
|
+
# @param [Google::Apis::ComputeAlpha::NotificationEndpoint] notification_endpoint_object
|
32665
32773
|
# @param [String] request_id
|
32666
32774
|
# An optional request ID to identify requests. Specify a unique request ID so
|
32667
32775
|
# that if you must retry your request, the server will know to ignore the
|
@@ -32691,10 +32799,10 @@ module Google
|
|
32691
32799
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32692
32800
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32693
32801
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32694
|
-
def
|
32695
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
32696
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
32697
|
-
command.request_object =
|
32802
|
+
def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32803
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options)
|
32804
|
+
command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
|
32805
|
+
command.request_object = notification_endpoint_object
|
32698
32806
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32699
32807
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32700
32808
|
command.params['project'] = project unless project.nil?
|
@@ -32706,8 +32814,7 @@ module Google
|
|
32706
32814
|
execute_or_queue_command(command, &block)
|
32707
32815
|
end
|
32708
32816
|
|
32709
|
-
#
|
32710
|
-
# region.
|
32817
|
+
# Lists the NotificationEndpoints for a project in the given region.
|
32711
32818
|
# @param [String] project
|
32712
32819
|
# Project ID for this request.
|
32713
32820
|
# @param [String] region
|
@@ -32773,431 +32880,18 @@ module Google
|
|
32773
32880
|
# Request-specific options
|
32774
32881
|
#
|
32775
32882
|
# @yield [result, err] Result & error if block supplied
|
32776
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
32883
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
|
32777
32884
|
# @yieldparam err [StandardError] error object if request failed
|
32778
32885
|
#
|
32779
|
-
# @return [Google::Apis::ComputeAlpha::
|
32886
|
+
# @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
|
32780
32887
|
#
|
32781
32888
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32782
32889
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32783
32890
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32784
|
-
def
|
32785
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
32786
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
32787
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
32788
|
-
command.params['project'] = project unless project.nil?
|
32789
|
-
command.params['region'] = region unless region.nil?
|
32790
|
-
command.query['filter'] = filter unless filter.nil?
|
32791
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
32792
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
32793
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
32794
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
32795
|
-
command.query['fields'] = fields unless fields.nil?
|
32796
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32797
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
32798
|
-
execute_or_queue_command(command, &block)
|
32799
|
-
end
|
32800
|
-
|
32801
|
-
# Sets the access control policy on the specified resource. Replaces any
|
32802
|
-
# existing policy.
|
32803
|
-
# @param [String] project
|
32804
|
-
# Project ID for this request.
|
32805
|
-
# @param [String] region
|
32806
|
-
# The name of the region for this request.
|
32807
|
-
# @param [String] resource
|
32808
|
-
# Name or id of the resource for this request.
|
32809
|
-
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
32810
|
-
# @param [String] fields
|
32811
|
-
# Selector specifying which fields to include in a partial response.
|
32812
|
-
# @param [String] quota_user
|
32813
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
32814
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32815
|
-
# @param [String] user_ip
|
32816
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32817
|
-
# @param [Google::Apis::RequestOptions] options
|
32818
|
-
# Request-specific options
|
32819
|
-
#
|
32820
|
-
# @yield [result, err] Result & error if block supplied
|
32821
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
32822
|
-
# @yieldparam err [StandardError] error object if request failed
|
32823
|
-
#
|
32824
|
-
# @return [Google::Apis::ComputeAlpha::Policy]
|
32825
|
-
#
|
32826
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32827
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32828
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32829
|
-
def set_region_network_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32830
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks/{resource}/setIamPolicy', options)
|
32831
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
32832
|
-
command.request_object = region_set_policy_request_object
|
32833
|
-
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
32834
|
-
command.response_class = Google::Apis::ComputeAlpha::Policy
|
32835
|
-
command.params['project'] = project unless project.nil?
|
32836
|
-
command.params['region'] = region unless region.nil?
|
32837
|
-
command.params['resource'] = resource unless resource.nil?
|
32838
|
-
command.query['fields'] = fields unless fields.nil?
|
32839
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32840
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
32841
|
-
execute_or_queue_command(command, &block)
|
32842
|
-
end
|
32843
|
-
|
32844
|
-
# Returns permissions that a caller has on the specified resource.
|
32845
|
-
# @param [String] project
|
32846
|
-
# Project ID for this request.
|
32847
|
-
# @param [String] region
|
32848
|
-
# The name of the region for this request.
|
32849
|
-
# @param [String] resource
|
32850
|
-
# Name or id of the resource for this request.
|
32851
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
32852
|
-
# @param [String] fields
|
32853
|
-
# Selector specifying which fields to include in a partial response.
|
32854
|
-
# @param [String] quota_user
|
32855
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
32856
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32857
|
-
# @param [String] user_ip
|
32858
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32859
|
-
# @param [Google::Apis::RequestOptions] options
|
32860
|
-
# Request-specific options
|
32861
|
-
#
|
32862
|
-
# @yield [result, err] Result & error if block supplied
|
32863
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
32864
|
-
# @yieldparam err [StandardError] error object if request failed
|
32865
|
-
#
|
32866
|
-
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
32867
|
-
#
|
32868
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32869
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32870
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32871
|
-
def test_region_network_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32872
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks/{resource}/testIamPermissions', options)
|
32873
|
-
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
32874
|
-
command.request_object = test_permissions_request_object
|
32875
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
32876
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
32877
|
-
command.params['project'] = project unless project.nil?
|
32878
|
-
command.params['region'] = region unless region.nil?
|
32879
|
-
command.params['resource'] = resource unless resource.nil?
|
32880
|
-
command.query['fields'] = fields unless fields.nil?
|
32881
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32882
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
32883
|
-
execute_or_queue_command(command, &block)
|
32884
|
-
end
|
32885
|
-
|
32886
|
-
# Retrieves the list of all NotificationEndpoint resources, regional and global,
|
32887
|
-
# available to the specified project.
|
32888
|
-
# @param [String] project
|
32889
|
-
# Name of the project scoping this request.
|
32890
|
-
# @param [String] filter
|
32891
|
-
# A filter expression that filters resources listed in the response. Most
|
32892
|
-
# Compute resources support two types of filter expressions: expressions that
|
32893
|
-
# support regular expressions and expressions that follow API improvement
|
32894
|
-
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
32895
|
-
# field name, an operator, and the value that you want to use for filtering. The
|
32896
|
-
# value must be a string, a number, or a boolean. The operator must be either `=`
|
32897
|
-
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
32898
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
32899
|
-
# specifying `name != example-instance`. The `:` operator can be used with
|
32900
|
-
# string fields to match substrings. For non-string fields it is equivalent to
|
32901
|
-
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
32902
|
-
# been defined. For example, to find all objects with `owner` label use: ```
|
32903
|
-
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
32904
|
-
# specify `scheduling.automaticRestart = false` to include instances only if
|
32905
|
-
# they are not scheduled for automatic restarts. You can use filtering on nested
|
32906
|
-
# fields to filter based on resource labels. To filter on multiple expressions,
|
32907
|
-
# provide each separate expression within parentheses. For example: ``` (
|
32908
|
-
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
32909
|
-
# default, each expression is an `AND` expression. However, you can include `AND`
|
32910
|
-
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
32911
|
-
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
32912
|
-
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
32913
|
-
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
32914
|
-
# expression with or without quotes or against multiple parenthesized
|
32915
|
-
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
32916
|
-
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
32917
|
-
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
32918
|
-
# regular expression using Google RE2 library syntax. The literal value must
|
32919
|
-
# match the entire field. For example, to filter for instances that do not end
|
32920
|
-
# with name "instance", you would use `name ne .*instance`.
|
32921
|
-
# @param [Boolean] include_all_scopes
|
32922
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
32923
|
-
# global) should be included in the response. For new resource types added after
|
32924
|
-
# this field, the flag has no effect as new resource types will always include
|
32925
|
-
# every visible scope for each scope type in response. For resource types which
|
32926
|
-
# predate this field, if this flag is omitted or false, only scopes of the scope
|
32927
|
-
# types where the resource type is expected to be found will be included.
|
32928
|
-
# @param [Fixnum] max_results
|
32929
|
-
# The maximum number of results per page that should be returned. If the number
|
32930
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
32931
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
32932
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
32933
|
-
# @param [String] order_by
|
32934
|
-
# Sorts list results by a certain order. By default, results are returned in
|
32935
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
32936
|
-
# descending order based on the creation timestamp using `orderBy="
|
32937
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
32938
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
32939
|
-
# resources like operations so that the newest operation is returned first.
|
32940
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
32941
|
-
# @param [String] page_token
|
32942
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
32943
|
-
# by a previous list request to get the next page of results.
|
32944
|
-
# @param [Boolean] return_partial_success
|
32945
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
32946
|
-
# failure. The default value is false.
|
32947
|
-
# @param [String] fields
|
32948
|
-
# Selector specifying which fields to include in a partial response.
|
32949
|
-
# @param [String] quota_user
|
32950
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
32951
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32952
|
-
# @param [String] user_ip
|
32953
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32954
|
-
# @param [Google::Apis::RequestOptions] options
|
32955
|
-
# Request-specific options
|
32956
|
-
#
|
32957
|
-
# @yield [result, err] Result & error if block supplied
|
32958
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList] parsed result object
|
32959
|
-
# @yieldparam err [StandardError] error object if request failed
|
32960
|
-
#
|
32961
|
-
# @return [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList]
|
32962
|
-
#
|
32963
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32964
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32965
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32966
|
-
def aggregated_region_notification_endpoint_list(project, filter: nil, include_all_scopes: 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)
|
32967
|
-
command = make_simple_command(:get, 'projects/{project}/aggregated/notificationEndpoints', options)
|
32968
|
-
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList::Representation
|
32969
|
-
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList
|
32970
|
-
command.params['project'] = project unless project.nil?
|
32971
|
-
command.query['filter'] = filter unless filter.nil?
|
32972
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
32973
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
32974
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
32975
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
32976
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
32977
|
-
command.query['fields'] = fields unless fields.nil?
|
32978
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32979
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
32980
|
-
execute_or_queue_command(command, &block)
|
32981
|
-
end
|
32982
|
-
|
32983
|
-
# Deletes the specified NotificationEndpoint in the given region
|
32984
|
-
# @param [String] project
|
32985
|
-
# Project ID for this request.
|
32986
|
-
# @param [String] region
|
32987
|
-
# Name of the region scoping this request.
|
32988
|
-
# @param [String] notification_endpoint
|
32989
|
-
# Name of the NotificationEndpoint resource to delete.
|
32990
|
-
# @param [String] request_id
|
32991
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
32992
|
-
# that if you must retry your request, the server will know to ignore the
|
32993
|
-
# request if it has already been completed. For example, consider a situation
|
32994
|
-
# where you make an initial request and the request times out. If you make the
|
32995
|
-
# request again with the same request ID, the server can check if original
|
32996
|
-
# operation with the same request ID was received, and if so, will ignore the
|
32997
|
-
# second request. This prevents clients from accidentally creating duplicate
|
32998
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
32999
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33000
|
-
# @param [String] fields
|
33001
|
-
# Selector specifying which fields to include in a partial response.
|
33002
|
-
# @param [String] quota_user
|
33003
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
33004
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33005
|
-
# @param [String] user_ip
|
33006
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33007
|
-
# @param [Google::Apis::RequestOptions] options
|
33008
|
-
# Request-specific options
|
33009
|
-
#
|
33010
|
-
# @yield [result, err] Result & error if block supplied
|
33011
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33012
|
-
# @yieldparam err [StandardError] error object if request failed
|
33013
|
-
#
|
33014
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
33015
|
-
#
|
33016
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33017
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33018
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33019
|
-
def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33020
|
-
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
|
33021
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33022
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33023
|
-
command.params['project'] = project unless project.nil?
|
33024
|
-
command.params['region'] = region unless region.nil?
|
33025
|
-
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
|
33026
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
33027
|
-
command.query['fields'] = fields unless fields.nil?
|
33028
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33029
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33030
|
-
execute_or_queue_command(command, &block)
|
33031
|
-
end
|
33032
|
-
|
33033
|
-
# Returns the specified NotificationEndpoint resource in the given region.
|
33034
|
-
# @param [String] project
|
33035
|
-
# Project ID for this request.
|
33036
|
-
# @param [String] region
|
33037
|
-
# Name of the region scoping this request.
|
33038
|
-
# @param [String] notification_endpoint
|
33039
|
-
# Name of the NotificationEndpoint resource to return.
|
33040
|
-
# @param [String] fields
|
33041
|
-
# Selector specifying which fields to include in a partial response.
|
33042
|
-
# @param [String] quota_user
|
33043
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
33044
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33045
|
-
# @param [String] user_ip
|
33046
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33047
|
-
# @param [Google::Apis::RequestOptions] options
|
33048
|
-
# Request-specific options
|
33049
|
-
#
|
33050
|
-
# @yield [result, err] Result & error if block supplied
|
33051
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpoint] parsed result object
|
33052
|
-
# @yieldparam err [StandardError] error object if request failed
|
33053
|
-
#
|
33054
|
-
# @return [Google::Apis::ComputeAlpha::NotificationEndpoint]
|
33055
|
-
#
|
33056
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33057
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33058
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33059
|
-
def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33060
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
|
33061
|
-
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
|
33062
|
-
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint
|
33063
|
-
command.params['project'] = project unless project.nil?
|
33064
|
-
command.params['region'] = region unless region.nil?
|
33065
|
-
command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
|
33066
|
-
command.query['fields'] = fields unless fields.nil?
|
33067
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33068
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33069
|
-
execute_or_queue_command(command, &block)
|
33070
|
-
end
|
33071
|
-
|
33072
|
-
# Create a NotificationEndpoint in the specified project in the given region
|
33073
|
-
# using the parameters that are included in the request.
|
33074
|
-
# @param [String] project
|
33075
|
-
# Project ID for this request.
|
33076
|
-
# @param [String] region
|
33077
|
-
# Name of the region scoping this request.
|
33078
|
-
# @param [Google::Apis::ComputeAlpha::NotificationEndpoint] notification_endpoint_object
|
33079
|
-
# @param [String] request_id
|
33080
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
33081
|
-
# that if you must retry your request, the server will know to ignore the
|
33082
|
-
# request if it has already been completed. For example, consider a situation
|
33083
|
-
# where you make an initial request and the request times out. If you make the
|
33084
|
-
# request again with the same request ID, the server can check if original
|
33085
|
-
# operation with the same request ID was received, and if so, will ignore the
|
33086
|
-
# second request. This prevents clients from accidentally creating duplicate
|
33087
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
33088
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33089
|
-
# @param [String] fields
|
33090
|
-
# Selector specifying which fields to include in a partial response.
|
33091
|
-
# @param [String] quota_user
|
33092
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
33093
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33094
|
-
# @param [String] user_ip
|
33095
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33096
|
-
# @param [Google::Apis::RequestOptions] options
|
33097
|
-
# Request-specific options
|
33098
|
-
#
|
33099
|
-
# @yield [result, err] Result & error if block supplied
|
33100
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33101
|
-
# @yieldparam err [StandardError] error object if request failed
|
33102
|
-
#
|
33103
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
33104
|
-
#
|
33105
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33106
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33107
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33108
|
-
def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33109
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options)
|
33110
|
-
command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
|
33111
|
-
command.request_object = notification_endpoint_object
|
33112
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33113
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33114
|
-
command.params['project'] = project unless project.nil?
|
33115
|
-
command.params['region'] = region unless region.nil?
|
33116
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
33117
|
-
command.query['fields'] = fields unless fields.nil?
|
33118
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33119
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
33120
|
-
execute_or_queue_command(command, &block)
|
33121
|
-
end
|
33122
|
-
|
33123
|
-
# Lists the NotificationEndpoints for a project in the given region.
|
33124
|
-
# @param [String] project
|
33125
|
-
# Project ID for this request.
|
33126
|
-
# @param [String] region
|
33127
|
-
# Name of the region scoping this request.
|
33128
|
-
# @param [String] filter
|
33129
|
-
# A filter expression that filters resources listed in the response. Most
|
33130
|
-
# Compute resources support two types of filter expressions: expressions that
|
33131
|
-
# support regular expressions and expressions that follow API improvement
|
33132
|
-
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
33133
|
-
# field name, an operator, and the value that you want to use for filtering. The
|
33134
|
-
# value must be a string, a number, or a boolean. The operator must be either `=`
|
33135
|
-
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
33136
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
33137
|
-
# specifying `name != example-instance`. The `:` operator can be used with
|
33138
|
-
# string fields to match substrings. For non-string fields it is equivalent to
|
33139
|
-
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
33140
|
-
# been defined. For example, to find all objects with `owner` label use: ```
|
33141
|
-
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
33142
|
-
# specify `scheduling.automaticRestart = false` to include instances only if
|
33143
|
-
# they are not scheduled for automatic restarts. You can use filtering on nested
|
33144
|
-
# fields to filter based on resource labels. To filter on multiple expressions,
|
33145
|
-
# provide each separate expression within parentheses. For example: ``` (
|
33146
|
-
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
33147
|
-
# default, each expression is an `AND` expression. However, you can include `AND`
|
33148
|
-
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
33149
|
-
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
33150
|
-
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
33151
|
-
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
33152
|
-
# expression with or without quotes or against multiple parenthesized
|
33153
|
-
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
33154
|
-
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
33155
|
-
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
33156
|
-
# regular expression using Google RE2 library syntax. The literal value must
|
33157
|
-
# match the entire field. For example, to filter for instances that do not end
|
33158
|
-
# with name "instance", you would use `name ne .*instance`.
|
33159
|
-
# @param [Fixnum] max_results
|
33160
|
-
# The maximum number of results per page that should be returned. If the number
|
33161
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33162
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
33163
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33164
|
-
# @param [String] order_by
|
33165
|
-
# Sorts list results by a certain order. By default, results are returned in
|
33166
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
33167
|
-
# descending order based on the creation timestamp using `orderBy="
|
33168
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
33169
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
33170
|
-
# resources like operations so that the newest operation is returned first.
|
33171
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33172
|
-
# @param [String] page_token
|
33173
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33174
|
-
# by a previous list request to get the next page of results.
|
33175
|
-
# @param [Boolean] return_partial_success
|
33176
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
33177
|
-
# failure. The default value is false.
|
33178
|
-
# @param [String] fields
|
33179
|
-
# Selector specifying which fields to include in a partial response.
|
33180
|
-
# @param [String] quota_user
|
33181
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
33182
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33183
|
-
# @param [String] user_ip
|
33184
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33185
|
-
# @param [Google::Apis::RequestOptions] options
|
33186
|
-
# Request-specific options
|
33187
|
-
#
|
33188
|
-
# @yield [result, err] Result & error if block supplied
|
33189
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
|
33190
|
-
# @yieldparam err [StandardError] error object if request failed
|
33191
|
-
#
|
33192
|
-
# @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
|
33193
|
-
#
|
33194
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33195
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33196
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33197
|
-
def list_region_notification_endpoints(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)
|
33198
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
|
33199
|
-
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
|
33200
|
-
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
|
32891
|
+
def list_region_notification_endpoints(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)
|
32892
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
|
32893
|
+
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
|
32894
|
+
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
|
33201
32895
|
command.params['project'] = project unless project.nil?
|
33202
32896
|
command.params['region'] = region unless region.nil?
|
33203
32897
|
command.query['filter'] = filter unless filter.nil?
|
@@ -33468,6 +33162,51 @@ module Google
|
|
33468
33162
|
execute_or_queue_command(command, &block)
|
33469
33163
|
end
|
33470
33164
|
|
33165
|
+
# Inserts a rule into a security policy.
|
33166
|
+
# @param [String] project
|
33167
|
+
# Project ID for this request.
|
33168
|
+
# @param [String] region
|
33169
|
+
# Name of the region scoping this request.
|
33170
|
+
# @param [String] security_policy
|
33171
|
+
# Name of the security policy to update.
|
33172
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
33173
|
+
# @param [Boolean] validate_only
|
33174
|
+
# If true, the request will not be committed.
|
33175
|
+
# @param [String] fields
|
33176
|
+
# Selector specifying which fields to include in a partial response.
|
33177
|
+
# @param [String] quota_user
|
33178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33180
|
+
# @param [String] user_ip
|
33181
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33182
|
+
# @param [Google::Apis::RequestOptions] options
|
33183
|
+
# Request-specific options
|
33184
|
+
#
|
33185
|
+
# @yield [result, err] Result & error if block supplied
|
33186
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33187
|
+
# @yieldparam err [StandardError] error object if request failed
|
33188
|
+
#
|
33189
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33190
|
+
#
|
33191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33194
|
+
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)
|
33195
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
|
33196
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
33197
|
+
command.request_object = security_policy_rule_object
|
33198
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33199
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33200
|
+
command.params['project'] = project unless project.nil?
|
33201
|
+
command.params['region'] = region unless region.nil?
|
33202
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33203
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
33204
|
+
command.query['fields'] = fields unless fields.nil?
|
33205
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33206
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33207
|
+
execute_or_queue_command(command, &block)
|
33208
|
+
end
|
33209
|
+
|
33471
33210
|
# Deletes the specified policy.
|
33472
33211
|
# @param [String] project
|
33473
33212
|
# Project ID for this request.
|
@@ -33557,6 +33296,48 @@ module Google
|
|
33557
33296
|
execute_or_queue_command(command, &block)
|
33558
33297
|
end
|
33559
33298
|
|
33299
|
+
# Gets a rule at the specified priority.
|
33300
|
+
# @param [String] project
|
33301
|
+
# Project ID for this request.
|
33302
|
+
# @param [String] region
|
33303
|
+
# Name of the region scoping this request.
|
33304
|
+
# @param [String] security_policy
|
33305
|
+
# Name of the security policy to which the queried rule belongs.
|
33306
|
+
# @param [Fixnum] priority
|
33307
|
+
# The priority of the rule to get from the security policy.
|
33308
|
+
# @param [String] fields
|
33309
|
+
# Selector specifying which fields to include in a partial response.
|
33310
|
+
# @param [String] quota_user
|
33311
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33312
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33313
|
+
# @param [String] user_ip
|
33314
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33315
|
+
# @param [Google::Apis::RequestOptions] options
|
33316
|
+
# Request-specific options
|
33317
|
+
#
|
33318
|
+
# @yield [result, err] Result & error if block supplied
|
33319
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyRule] parsed result object
|
33320
|
+
# @yieldparam err [StandardError] error object if request failed
|
33321
|
+
#
|
33322
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
|
33323
|
+
#
|
33324
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33325
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33326
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33327
|
+
def get_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33328
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule', options)
|
33329
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
33330
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
|
33331
|
+
command.params['project'] = project unless project.nil?
|
33332
|
+
command.params['region'] = region unless region.nil?
|
33333
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33334
|
+
command.query['priority'] = priority unless priority.nil?
|
33335
|
+
command.query['fields'] = fields unless fields.nil?
|
33336
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33337
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33338
|
+
execute_or_queue_command(command, &block)
|
33339
|
+
end
|
33340
|
+
|
33560
33341
|
# Creates a new policy in the specified project using the data included in the
|
33561
33342
|
# request.
|
33562
33343
|
# @param [String] project
|
@@ -33711,6 +33492,7 @@ module Google
|
|
33711
33492
|
# @param [String] security_policy
|
33712
33493
|
# Name of the security policy to update.
|
33713
33494
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
33495
|
+
# @param [Array<String>, String] paths
|
33714
33496
|
# @param [String] request_id
|
33715
33497
|
# An optional request ID to identify requests. Specify a unique request ID so
|
33716
33498
|
# that if you must retry your request, the server will know to ignore the
|
@@ -33721,6 +33503,8 @@ module Google
|
|
33721
33503
|
# second request. This prevents clients from accidentally creating duplicate
|
33722
33504
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
33723
33505
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33506
|
+
# @param [String] update_mask
|
33507
|
+
# Indicates fields to be cleared as part of this request.
|
33724
33508
|
# @param [String] fields
|
33725
33509
|
# Selector specifying which fields to include in a partial response.
|
33726
33510
|
# @param [String] quota_user
|
@@ -33740,7 +33524,7 @@ module Google
|
|
33740
33524
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33741
33525
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33742
33526
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33743
|
-
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)
|
33527
|
+
def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33744
33528
|
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
33745
33529
|
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
33746
33530
|
command.request_object = security_policy_object
|
@@ -33749,7 +33533,99 @@ module Google
|
|
33749
33533
|
command.params['project'] = project unless project.nil?
|
33750
33534
|
command.params['region'] = region unless region.nil?
|
33751
33535
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33536
|
+
command.query['paths'] = paths unless paths.nil?
|
33752
33537
|
command.query['requestId'] = request_id unless request_id.nil?
|
33538
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
33539
|
+
command.query['fields'] = fields unless fields.nil?
|
33540
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33541
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33542
|
+
execute_or_queue_command(command, &block)
|
33543
|
+
end
|
33544
|
+
|
33545
|
+
# Patches a rule at the specified priority.
|
33546
|
+
# @param [String] project
|
33547
|
+
# Project ID for this request.
|
33548
|
+
# @param [String] region
|
33549
|
+
# Name of the region scoping this request.
|
33550
|
+
# @param [String] security_policy
|
33551
|
+
# Name of the security policy to update.
|
33552
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
33553
|
+
# @param [Fixnum] priority
|
33554
|
+
# The priority of the rule to patch.
|
33555
|
+
# @param [Boolean] validate_only
|
33556
|
+
# If true, the request will not be committed.
|
33557
|
+
# @param [String] fields
|
33558
|
+
# Selector specifying which fields to include in a partial response.
|
33559
|
+
# @param [String] quota_user
|
33560
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33561
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33562
|
+
# @param [String] user_ip
|
33563
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33564
|
+
# @param [Google::Apis::RequestOptions] options
|
33565
|
+
# Request-specific options
|
33566
|
+
#
|
33567
|
+
# @yield [result, err] Result & error if block supplied
|
33568
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33569
|
+
# @yieldparam err [StandardError] error object if request failed
|
33570
|
+
#
|
33571
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33572
|
+
#
|
33573
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33574
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33575
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33576
|
+
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)
|
33577
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/patchRule', options)
|
33578
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
33579
|
+
command.request_object = security_policy_rule_object
|
33580
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33581
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33582
|
+
command.params['project'] = project unless project.nil?
|
33583
|
+
command.params['region'] = region unless region.nil?
|
33584
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33585
|
+
command.query['priority'] = priority unless priority.nil?
|
33586
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
33587
|
+
command.query['fields'] = fields unless fields.nil?
|
33588
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33589
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33590
|
+
execute_or_queue_command(command, &block)
|
33591
|
+
end
|
33592
|
+
|
33593
|
+
# Deletes a rule at the specified priority.
|
33594
|
+
# @param [String] project
|
33595
|
+
# Project ID for this request.
|
33596
|
+
# @param [String] region
|
33597
|
+
# Name of the region scoping this request.
|
33598
|
+
# @param [String] security_policy
|
33599
|
+
# Name of the security policy to update.
|
33600
|
+
# @param [Fixnum] priority
|
33601
|
+
# The priority of the rule to remove from the security policy.
|
33602
|
+
# @param [String] fields
|
33603
|
+
# Selector specifying which fields to include in a partial response.
|
33604
|
+
# @param [String] quota_user
|
33605
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33606
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33607
|
+
# @param [String] user_ip
|
33608
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33609
|
+
# @param [Google::Apis::RequestOptions] options
|
33610
|
+
# Request-specific options
|
33611
|
+
#
|
33612
|
+
# @yield [result, err] Result & error if block supplied
|
33613
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33614
|
+
# @yieldparam err [StandardError] error object if request failed
|
33615
|
+
#
|
33616
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33617
|
+
#
|
33618
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33619
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33620
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33621
|
+
def remove_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33622
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/removeRule', options)
|
33623
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33624
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33625
|
+
command.params['project'] = project unless project.nil?
|
33626
|
+
command.params['region'] = region unless region.nil?
|
33627
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
33628
|
+
command.query['priority'] = priority unless priority.nil?
|
33753
33629
|
command.query['fields'] = fields unless fields.nil?
|
33754
33630
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33755
33631
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -38513,6 +38389,7 @@ module Google
|
|
38513
38389
|
# @param [String] security_policy
|
38514
38390
|
# Name of the security policy to update.
|
38515
38391
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
38392
|
+
# @param [Array<String>, String] paths
|
38516
38393
|
# @param [String] request_id
|
38517
38394
|
# An optional request ID to identify requests. Specify a unique request ID so
|
38518
38395
|
# that if you must retry your request, the server will know to ignore the
|
@@ -38523,6 +38400,8 @@ module Google
|
|
38523
38400
|
# second request. This prevents clients from accidentally creating duplicate
|
38524
38401
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
38525
38402
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
38403
|
+
# @param [String] update_mask
|
38404
|
+
# Indicates fields to be cleared as part of this request.
|
38526
38405
|
# @param [String] fields
|
38527
38406
|
# Selector specifying which fields to include in a partial response.
|
38528
38407
|
# @param [String] quota_user
|
@@ -38542,7 +38421,7 @@ module Google
|
|
38542
38421
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38543
38422
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38544
38423
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38545
|
-
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)
|
38424
|
+
def patch_security_policy(project, security_policy, security_policy_object = nil, paths: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38546
38425
|
command = make_simple_command(:patch, 'projects/{project}/global/securityPolicies/{securityPolicy}', options)
|
38547
38426
|
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
38548
38427
|
command.request_object = security_policy_object
|
@@ -38550,7 +38429,9 @@ module Google
|
|
38550
38429
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
38551
38430
|
command.params['project'] = project unless project.nil?
|
38552
38431
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
38432
|
+
command.query['paths'] = paths unless paths.nil?
|
38553
38433
|
command.query['requestId'] = request_id unless request_id.nil?
|
38434
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
38554
38435
|
command.query['fields'] = fields unless fields.nil?
|
38555
38436
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38556
38437
|
command.query['userIp'] = user_ip unless user_ip.nil?
|