google-apis-compute_alpha 0.44.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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::DisksStopGroupAsyncReplicationRequest] disks_stop_group_async_replication_request_object
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, disks_stop_group_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
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::DisksStopGroupAsyncReplicationRequest::Representation
3692
- command.request_object = disks_stop_group_async_replication_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::RegionDisksStopGroupAsyncReplicationRequest] region_disks_stop_group_async_replication_request_object
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, region_disks_stop_group_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
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::RegionDisksStopGroupAsyncReplicationRequest::Representation
27717
- command.request_object = region_disks_stop_group_async_replication_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,366 +32577,6 @@ module Google
32523
32577
  execute_or_queue_command(command, &block)
32524
32578
  end
32525
32579
 
32526
- # Deletes the specified network.
32527
- # @param [String] project
32528
- # Project ID for this request.
32529
- # @param [String] region
32530
- # Name of the region scoping this request.
32531
- # @param [String] network
32532
- # Name of the network to delete.
32533
- # @param [String] request_id
32534
- # An optional request ID to identify requests. Specify a unique request ID so
32535
- # that if you must retry your request, the server will know to ignore the
32536
- # request if it has already been completed. For example, consider a situation
32537
- # where you make an initial request and the request times out. If you make the
32538
- # request again with the same request ID, the server can check if original
32539
- # operation with the same request ID was received, and if so, will ignore the
32540
- # second request. This prevents clients from accidentally creating duplicate
32541
- # commitments. The request ID must be a valid UUID with the exception that zero
32542
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32543
- # @param [String] fields
32544
- # Selector specifying which fields to include in a partial response.
32545
- # @param [String] quota_user
32546
- # Available to use for quota purposes for server-side applications. Can be any
32547
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32548
- # @param [String] user_ip
32549
- # Legacy name for parameter that has been superseded by `quotaUser`.
32550
- # @param [Google::Apis::RequestOptions] options
32551
- # Request-specific options
32552
- #
32553
- # @yield [result, err] Result & error if block supplied
32554
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
32555
- # @yieldparam err [StandardError] error object if request failed
32556
- #
32557
- # @return [Google::Apis::ComputeAlpha::Operation]
32558
- #
32559
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32560
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32561
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32562
- def delete_region_network(project, region, network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32563
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networks/{network}', options)
32564
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32565
- command.response_class = Google::Apis::ComputeAlpha::Operation
32566
- command.params['project'] = project unless project.nil?
32567
- command.params['region'] = region unless region.nil?
32568
- command.params['network'] = network unless network.nil?
32569
- command.query['requestId'] = request_id unless request_id.nil?
32570
- command.query['fields'] = fields unless fields.nil?
32571
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32572
- command.query['userIp'] = user_ip unless user_ip.nil?
32573
- execute_or_queue_command(command, &block)
32574
- end
32575
-
32576
- # Returns the specified network.
32577
- # @param [String] project
32578
- # Project ID for this request.
32579
- # @param [String] region
32580
- # Name of the region scoping this request.
32581
- # @param [String] network
32582
- # Name of the network to return.
32583
- # @param [String] fields
32584
- # Selector specifying which fields to include in a partial response.
32585
- # @param [String] quota_user
32586
- # Available to use for quota purposes for server-side applications. Can be any
32587
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32588
- # @param [String] user_ip
32589
- # Legacy name for parameter that has been superseded by `quotaUser`.
32590
- # @param [Google::Apis::RequestOptions] options
32591
- # Request-specific options
32592
- #
32593
- # @yield [result, err] Result & error if block supplied
32594
- # @yieldparam result [Google::Apis::ComputeAlpha::Network] parsed result object
32595
- # @yieldparam err [StandardError] error object if request failed
32596
- #
32597
- # @return [Google::Apis::ComputeAlpha::Network]
32598
- #
32599
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32600
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32601
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32602
- def get_region_network(project, region, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32603
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks/{network}', options)
32604
- command.response_representation = Google::Apis::ComputeAlpha::Network::Representation
32605
- command.response_class = Google::Apis::ComputeAlpha::Network
32606
- command.params['project'] = project unless project.nil?
32607
- command.params['region'] = region unless region.nil?
32608
- command.params['network'] = network unless network.nil?
32609
- command.query['fields'] = fields unless fields.nil?
32610
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32611
- command.query['userIp'] = user_ip unless user_ip.nil?
32612
- execute_or_queue_command(command, &block)
32613
- end
32614
-
32615
- # Gets the access control policy for a resource. May be empty if no such policy
32616
- # or resource exists.
32617
- # @param [String] project
32618
- # Project ID for this request.
32619
- # @param [String] region
32620
- # The name of the region for this request.
32621
- # @param [String] resource
32622
- # Name or id of the resource for this request.
32623
- # @param [Fixnum] options_requested_policy_version
32624
- # Requested IAM Policy version.
32625
- # @param [String] fields
32626
- # Selector specifying which fields to include in a partial response.
32627
- # @param [String] quota_user
32628
- # Available to use for quota purposes for server-side applications. Can be any
32629
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32630
- # @param [String] user_ip
32631
- # Legacy name for parameter that has been superseded by `quotaUser`.
32632
- # @param [Google::Apis::RequestOptions] options
32633
- # Request-specific options
32634
- #
32635
- # @yield [result, err] Result & error if block supplied
32636
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
32637
- # @yieldparam err [StandardError] error object if request failed
32638
- #
32639
- # @return [Google::Apis::ComputeAlpha::Policy]
32640
- #
32641
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32642
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32643
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32644
- def get_region_network_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32645
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks/{resource}/getIamPolicy', options)
32646
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
32647
- command.response_class = Google::Apis::ComputeAlpha::Policy
32648
- command.params['project'] = project unless project.nil?
32649
- command.params['region'] = region unless region.nil?
32650
- command.params['resource'] = resource unless resource.nil?
32651
- command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
32652
- command.query['fields'] = fields unless fields.nil?
32653
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32654
- command.query['userIp'] = user_ip unless user_ip.nil?
32655
- execute_or_queue_command(command, &block)
32656
- end
32657
-
32658
- # Creates a network in the specified project and region using the data included
32659
- # in the request.
32660
- # @param [String] project
32661
- # Project ID for this request.
32662
- # @param [String] region
32663
- # Name of the region scoping this request.
32664
- # @param [Google::Apis::ComputeAlpha::Network] network_object
32665
- # @param [String] request_id
32666
- # An optional request ID to identify requests. Specify a unique request ID so
32667
- # that if you must retry your request, the server will know to ignore the
32668
- # request if it has already been completed. For example, consider a situation
32669
- # where you make an initial request and the request times out. If you make the
32670
- # request again with the same request ID, the server can check if original
32671
- # operation with the same request ID was received, and if so, will ignore the
32672
- # second request. This prevents clients from accidentally creating duplicate
32673
- # commitments. The request ID must be a valid UUID with the exception that zero
32674
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32675
- # @param [String] fields
32676
- # Selector specifying which fields to include in a partial response.
32677
- # @param [String] quota_user
32678
- # Available to use for quota purposes for server-side applications. Can be any
32679
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32680
- # @param [String] user_ip
32681
- # Legacy name for parameter that has been superseded by `quotaUser`.
32682
- # @param [Google::Apis::RequestOptions] options
32683
- # Request-specific options
32684
- #
32685
- # @yield [result, err] Result & error if block supplied
32686
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
32687
- # @yieldparam err [StandardError] error object if request failed
32688
- #
32689
- # @return [Google::Apis::ComputeAlpha::Operation]
32690
- #
32691
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32692
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32693
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32694
- def insert_region_network(project, region, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32695
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks', options)
32696
- command.request_representation = Google::Apis::ComputeAlpha::Network::Representation
32697
- command.request_object = network_object
32698
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32699
- command.response_class = Google::Apis::ComputeAlpha::Operation
32700
- command.params['project'] = project unless project.nil?
32701
- command.params['region'] = region unless region.nil?
32702
- command.query['requestId'] = request_id unless request_id.nil?
32703
- command.query['fields'] = fields unless fields.nil?
32704
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32705
- command.query['userIp'] = user_ip unless user_ip.nil?
32706
- execute_or_queue_command(command, &block)
32707
- end
32708
-
32709
- # Retrieves the list of networks available to the specified project in the given
32710
- # region.
32711
- # @param [String] project
32712
- # Project ID for this request.
32713
- # @param [String] region
32714
- # Name of the region scoping this request.
32715
- # @param [String] filter
32716
- # A filter expression that filters resources listed in the response. Most
32717
- # Compute resources support two types of filter expressions: expressions that
32718
- # support regular expressions and expressions that follow API improvement
32719
- # proposal AIP-160. If you want to use AIP-160, your expression must specify the
32720
- # field name, an operator, and the value that you want to use for filtering. The
32721
- # value must be a string, a number, or a boolean. The operator must be either `=`
32722
- # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
32723
- # Engine instances, you can exclude instances named `example-instance` by
32724
- # specifying `name != example-instance`. The `:` operator can be used with
32725
- # string fields to match substrings. For non-string fields it is equivalent to
32726
- # the `=` operator. The `:*` comparison can be used to test whether a key has
32727
- # been defined. For example, to find all objects with `owner` label use: ```
32728
- # labels.owner:* ``` You can also filter nested fields. For example, you could
32729
- # specify `scheduling.automaticRestart = false` to include instances only if
32730
- # they are not scheduled for automatic restarts. You can use filtering on nested
32731
- # fields to filter based on resource labels. To filter on multiple expressions,
32732
- # provide each separate expression within parentheses. For example: ``` (
32733
- # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
32734
- # default, each expression is an `AND` expression. However, you can include `AND`
32735
- # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
32736
- # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
32737
- # automaticRestart = true) ``` If you want to use a regular expression, use the `
32738
- # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
32739
- # expression with or without quotes or against multiple parenthesized
32740
- # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
32741
- # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
32742
- # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
32743
- # regular expression using Google RE2 library syntax. The literal value must
32744
- # match the entire field. For example, to filter for instances that do not end
32745
- # with name "instance", you would use `name ne .*instance`.
32746
- # @param [Fixnum] max_results
32747
- # The maximum number of results per page that should be returned. If the number
32748
- # of available results is larger than `maxResults`, Compute Engine returns a `
32749
- # nextPageToken` that can be used to get the next page of results in subsequent
32750
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
32751
- # @param [String] order_by
32752
- # Sorts list results by a certain order. By default, results are returned in
32753
- # alphanumerical order based on the resource name. You can also sort results in
32754
- # descending order based on the creation timestamp using `orderBy="
32755
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
32756
- # field in reverse chronological order (newest result first). Use this to sort
32757
- # resources like operations so that the newest operation is returned first.
32758
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
32759
- # @param [String] page_token
32760
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
32761
- # by a previous list request to get the next page of results.
32762
- # @param [Boolean] return_partial_success
32763
- # Opt-in for partial success behavior which provides partial results in case of
32764
- # failure. The default value is false.
32765
- # @param [String] fields
32766
- # Selector specifying which fields to include in a partial response.
32767
- # @param [String] quota_user
32768
- # Available to use for quota purposes for server-side applications. Can be any
32769
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32770
- # @param [String] user_ip
32771
- # Legacy name for parameter that has been superseded by `quotaUser`.
32772
- # @param [Google::Apis::RequestOptions] options
32773
- # Request-specific options
32774
- #
32775
- # @yield [result, err] Result & error if block supplied
32776
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkList] parsed result object
32777
- # @yieldparam err [StandardError] error object if request failed
32778
- #
32779
- # @return [Google::Apis::ComputeAlpha::NetworkList]
32780
- #
32781
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32782
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32783
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32784
- def list_region_networks(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)
32785
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks', options)
32786
- command.response_representation = Google::Apis::ComputeAlpha::NetworkList::Representation
32787
- command.response_class = Google::Apis::ComputeAlpha::NetworkList
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
32580
  # Retrieves the list of all NotificationEndpoint resources, regional and global,
32887
32581
  # available to the specified project.
32888
32582
  # @param [String] project
@@ -33711,6 +33405,7 @@ module Google
33711
33405
  # @param [String] security_policy
33712
33406
  # Name of the security policy to update.
33713
33407
  # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
33408
+ # @param [Array<String>, String] paths
33714
33409
  # @param [String] request_id
33715
33410
  # An optional request ID to identify requests. Specify a unique request ID so
33716
33411
  # that if you must retry your request, the server will know to ignore the
@@ -33721,6 +33416,8 @@ module Google
33721
33416
  # second request. This prevents clients from accidentally creating duplicate
33722
33417
  # commitments. The request ID must be a valid UUID with the exception that zero
33723
33418
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
33419
+ # @param [String] update_mask
33420
+ # Indicates fields to be cleared as part of this request.
33724
33421
  # @param [String] fields
33725
33422
  # Selector specifying which fields to include in a partial response.
33726
33423
  # @param [String] quota_user
@@ -33740,7 +33437,7 @@ module Google
33740
33437
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33741
33438
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33742
33439
  # @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)
33440
+ 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
33441
  command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
33745
33442
  command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
33746
33443
  command.request_object = security_policy_object
@@ -33749,7 +33446,9 @@ module Google
33749
33446
  command.params['project'] = project unless project.nil?
33750
33447
  command.params['region'] = region unless region.nil?
33751
33448
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
33449
+ command.query['paths'] = paths unless paths.nil?
33752
33450
  command.query['requestId'] = request_id unless request_id.nil?
33451
+ command.query['updateMask'] = update_mask unless update_mask.nil?
33753
33452
  command.query['fields'] = fields unless fields.nil?
33754
33453
  command.query['quotaUser'] = quota_user unless quota_user.nil?
33755
33454
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -38513,6 +38212,7 @@ module Google
38513
38212
  # @param [String] security_policy
38514
38213
  # Name of the security policy to update.
38515
38214
  # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
38215
+ # @param [Array<String>, String] paths
38516
38216
  # @param [String] request_id
38517
38217
  # An optional request ID to identify requests. Specify a unique request ID so
38518
38218
  # that if you must retry your request, the server will know to ignore the
@@ -38523,6 +38223,8 @@ module Google
38523
38223
  # second request. This prevents clients from accidentally creating duplicate
38524
38224
  # commitments. The request ID must be a valid UUID with the exception that zero
38525
38225
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
38226
+ # @param [String] update_mask
38227
+ # Indicates fields to be cleared as part of this request.
38526
38228
  # @param [String] fields
38527
38229
  # Selector specifying which fields to include in a partial response.
38528
38230
  # @param [String] quota_user
@@ -38542,7 +38244,7 @@ module Google
38542
38244
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38543
38245
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38544
38246
  # @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)
38247
+ 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
38248
  command = make_simple_command(:patch, 'projects/{project}/global/securityPolicies/{securityPolicy}', options)
38547
38249
  command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
38548
38250
  command.request_object = security_policy_object
@@ -38550,7 +38252,9 @@ module Google
38550
38252
  command.response_class = Google::Apis::ComputeAlpha::Operation
38551
38253
  command.params['project'] = project unless project.nil?
38552
38254
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
38255
+ command.query['paths'] = paths unless paths.nil?
38553
38256
  command.query['requestId'] = request_id unless request_id.nil?
38257
+ command.query['updateMask'] = update_mask unless update_mask.nil?
38554
38258
  command.query['fields'] = fields unless fields.nil?
38555
38259
  command.query['quotaUser'] = quota_user unless quota_user.nil?
38556
38260
  command.query['userIp'] = user_ip unless user_ip.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.47.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: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.44.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.47.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []