google-apis-compute_beta 0.72.0 → 0.74.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9504,6 +9504,261 @@ module Google
9504
9504
  execute_or_queue_command(command, &block)
9505
9505
  end
9506
9506
 
9507
+ # Deletes the specified, inactive resize request. Requests that are still active
9508
+ # cannot be deleted. Deleting request does not delete instances that were
9509
+ # provisioned previously.
9510
+ # @param [String] project
9511
+ # Project ID for this request.
9512
+ # @param [String] zone
9513
+ # The name of the zone where the managed instance group is located. The name
9514
+ # should conform to RFC1035.
9515
+ # @param [String] instance_group_manager
9516
+ # The name of the managed instance group. The name should conform to RFC1035 or
9517
+ # be a resource ID.
9518
+ # @param [String] resize_request
9519
+ # The name of the resize request to delete. The name should conform to RFC1035
9520
+ # or be a resource ID.
9521
+ # @param [String] request_id
9522
+ # An optional request ID to identify requests. Specify a unique request ID so
9523
+ # that if you must retry your request, the server will know to ignore the
9524
+ # request if it has already been completed. For example, consider a situation
9525
+ # where you make an initial request and the request times out. If you make the
9526
+ # request again with the same request ID, the server can check if original
9527
+ # operation with the same request ID was received, and if so, will ignore the
9528
+ # second request. This prevents clients from accidentally creating duplicate
9529
+ # commitments. The request ID must be a valid UUID with the exception that zero
9530
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9531
+ # @param [String] fields
9532
+ # Selector specifying which fields to include in a partial response.
9533
+ # @param [String] quota_user
9534
+ # Available to use for quota purposes for server-side applications. Can be any
9535
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9536
+ # @param [String] user_ip
9537
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9538
+ # @param [Google::Apis::RequestOptions] options
9539
+ # Request-specific options
9540
+ #
9541
+ # @yield [result, err] Result & error if block supplied
9542
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9543
+ # @yieldparam err [StandardError] error object if request failed
9544
+ #
9545
+ # @return [Google::Apis::ComputeBeta::Operation]
9546
+ #
9547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9550
+ def delete_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9551
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
9552
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9553
+ command.response_class = Google::Apis::ComputeBeta::Operation
9554
+ command.params['project'] = project unless project.nil?
9555
+ command.params['zone'] = zone unless zone.nil?
9556
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9557
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9558
+ command.query['requestId'] = request_id unless request_id.nil?
9559
+ command.query['fields'] = fields unless fields.nil?
9560
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9561
+ command.query['userIp'] = user_ip unless user_ip.nil?
9562
+ execute_or_queue_command(command, &block)
9563
+ end
9564
+
9565
+ # Returns all of the details about the specified resize request.
9566
+ # @param [String] project
9567
+ # Project ID for this request.
9568
+ # @param [String] zone
9569
+ # Name of the href="/compute/docs/regions-zones/#available">zone scoping this
9570
+ # request. Name should conform to RFC1035.
9571
+ # @param [String] instance_group_manager
9572
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
9573
+ # resource ID.
9574
+ # @param [String] resize_request
9575
+ # The name of the resize request. Name should conform to RFC1035 or be a
9576
+ # resource ID.
9577
+ # @param [String] fields
9578
+ # Selector specifying which fields to include in a partial response.
9579
+ # @param [String] quota_user
9580
+ # Available to use for quota purposes for server-side applications. Can be any
9581
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9582
+ # @param [String] user_ip
9583
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9584
+ # @param [Google::Apis::RequestOptions] options
9585
+ # Request-specific options
9586
+ #
9587
+ # @yield [result, err] Result & error if block supplied
9588
+ # @yieldparam result [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest] parsed result object
9589
+ # @yieldparam err [StandardError] error object if request failed
9590
+ #
9591
+ # @return [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest]
9592
+ #
9593
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9594
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9595
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9596
+ def get_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9597
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
9598
+ command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest::Representation
9599
+ command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest
9600
+ command.params['project'] = project unless project.nil?
9601
+ command.params['zone'] = zone unless zone.nil?
9602
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9603
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9604
+ command.query['fields'] = fields unless fields.nil?
9605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9606
+ command.query['userIp'] = user_ip unless user_ip.nil?
9607
+ execute_or_queue_command(command, &block)
9608
+ end
9609
+
9610
+ # Creates a new resize request that starts provisioning VMs immediately or
9611
+ # queues VM creation.
9612
+ # @param [String] project
9613
+ # Project ID for this request.
9614
+ # @param [String] zone
9615
+ # The name of the zone where the managed instance group is located and where the
9616
+ # resize request will be created. Name should conform to RFC1035.
9617
+ # @param [String] instance_group_manager
9618
+ # The name of the managed instance group to which the resize request will be
9619
+ # added. Name should conform to RFC1035 or be a resource ID.
9620
+ # @param [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
9621
+ # @param [String] request_id
9622
+ # An optional request ID to identify requests. Specify a unique request ID so
9623
+ # that if you must retry your request, the server will know to ignore the
9624
+ # request if it has already been completed. For example, consider a situation
9625
+ # where you make an initial request and the request times out. If you make the
9626
+ # request again with the same request ID, the server can check if original
9627
+ # operation with the same request ID was received, and if so, will ignore the
9628
+ # second request. This prevents clients from accidentally creating duplicate
9629
+ # commitments. The request ID must be a valid UUID with the exception that zero
9630
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9631
+ # @param [String] fields
9632
+ # Selector specifying which fields to include in a partial response.
9633
+ # @param [String] quota_user
9634
+ # Available to use for quota purposes for server-side applications. Can be any
9635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9636
+ # @param [String] user_ip
9637
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9638
+ # @param [Google::Apis::RequestOptions] options
9639
+ # Request-specific options
9640
+ #
9641
+ # @yield [result, err] Result & error if block supplied
9642
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
9643
+ # @yieldparam err [StandardError] error object if request failed
9644
+ #
9645
+ # @return [Google::Apis::ComputeBeta::Operation]
9646
+ #
9647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9650
+ def insert_instance_group_manager_resize_request(project, zone, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9651
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
9652
+ command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest::Representation
9653
+ command.request_object = instance_group_manager_resize_request_object
9654
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
9655
+ command.response_class = Google::Apis::ComputeBeta::Operation
9656
+ command.params['project'] = project unless project.nil?
9657
+ command.params['zone'] = zone unless zone.nil?
9658
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9659
+ command.query['requestId'] = request_id unless request_id.nil?
9660
+ command.query['fields'] = fields unless fields.nil?
9661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9662
+ command.query['userIp'] = user_ip unless user_ip.nil?
9663
+ execute_or_queue_command(command, &block)
9664
+ end
9665
+
9666
+ # Retrieves a list of resize requests that are contained in the managed instance
9667
+ # group.
9668
+ # @param [String] project
9669
+ # Project ID for this request.
9670
+ # @param [String] zone
9671
+ # The name of the zone where the managed instance group is located. The name
9672
+ # should conform to RFC1035.
9673
+ # @param [String] instance_group_manager
9674
+ # The name of the managed instance group. The name should conform to RFC1035.
9675
+ # @param [String] filter
9676
+ # A filter expression that filters resources listed in the response. Most
9677
+ # Compute resources support two types of filter expressions: expressions that
9678
+ # support regular expressions and expressions that follow API improvement
9679
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
9680
+ # field name, an operator, and the value that you want to use for filtering. The
9681
+ # value must be a string, a number, or a boolean. The operator must be either `=`
9682
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
9683
+ # Engine instances, you can exclude instances named `example-instance` by
9684
+ # specifying `name != example-instance`. The `:` operator can be used with
9685
+ # string fields to match substrings. For non-string fields it is equivalent to
9686
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
9687
+ # been defined. For example, to find all objects with `owner` label use: ```
9688
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
9689
+ # specify `scheduling.automaticRestart = false` to include instances only if
9690
+ # they are not scheduled for automatic restarts. You can use filtering on nested
9691
+ # fields to filter based on resource labels. To filter on multiple expressions,
9692
+ # provide each separate expression within parentheses. For example: ``` (
9693
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
9694
+ # default, each expression is an `AND` expression. However, you can include `AND`
9695
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
9696
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
9697
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
9698
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
9699
+ # expression with or without quotes or against multiple parenthesized
9700
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
9701
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
9702
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
9703
+ # regular expression using Google RE2 library syntax. The literal value must
9704
+ # match the entire field. For example, to filter for instances that do not end
9705
+ # with name "instance", you would use `name ne .*instance`.
9706
+ # @param [Fixnum] max_results
9707
+ # The maximum number of results per page that should be returned. If the number
9708
+ # of available results is larger than `maxResults`, Compute Engine returns a `
9709
+ # nextPageToken` that can be used to get the next page of results in subsequent
9710
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
9711
+ # @param [String] order_by
9712
+ # Sorts list results by a certain order. By default, results are returned in
9713
+ # alphanumerical order based on the resource name. You can also sort results in
9714
+ # descending order based on the creation timestamp using `orderBy="
9715
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
9716
+ # field in reverse chronological order (newest result first). Use this to sort
9717
+ # resources like operations so that the newest operation is returned first.
9718
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
9719
+ # @param [String] page_token
9720
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
9721
+ # by a previous list request to get the next page of results.
9722
+ # @param [Boolean] return_partial_success
9723
+ # Opt-in for partial success behavior which provides partial results in case of
9724
+ # failure. The default value is false.
9725
+ # @param [String] fields
9726
+ # Selector specifying which fields to include in a partial response.
9727
+ # @param [String] quota_user
9728
+ # Available to use for quota purposes for server-side applications. Can be any
9729
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9730
+ # @param [String] user_ip
9731
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9732
+ # @param [Google::Apis::RequestOptions] options
9733
+ # Request-specific options
9734
+ #
9735
+ # @yield [result, err] Result & error if block supplied
9736
+ # @yieldparam result [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequestsListResponse] parsed result object
9737
+ # @yieldparam err [StandardError] error object if request failed
9738
+ #
9739
+ # @return [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequestsListResponse]
9740
+ #
9741
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9742
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9743
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9744
+ def list_instance_group_manager_resize_requests(project, zone, instance_group_manager, 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)
9745
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
9746
+ command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequestsListResponse::Representation
9747
+ command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequestsListResponse
9748
+ command.params['project'] = project unless project.nil?
9749
+ command.params['zone'] = zone unless zone.nil?
9750
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9751
+ command.query['filter'] = filter unless filter.nil?
9752
+ command.query['maxResults'] = max_results unless max_results.nil?
9753
+ command.query['orderBy'] = order_by unless order_by.nil?
9754
+ command.query['pageToken'] = page_token unless page_token.nil?
9755
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
9756
+ command.query['fields'] = fields unless fields.nil?
9757
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9758
+ command.query['userIp'] = user_ip unless user_ip.nil?
9759
+ execute_or_queue_command(command, &block)
9760
+ end
9761
+
9507
9762
  # Flags the specified instances to be removed from the managed instance group.
9508
9763
  # Abandoning an instance does not delete the instance, but it does remove the
9509
9764
  # instance from any target pools that are applied by the managed instance group.
@@ -16236,6 +16491,42 @@ module Google
16236
16491
  execute_or_queue_command(command, &block)
16237
16492
  end
16238
16493
 
16494
+ # Returns the interconnectMacsecConfig for the specified Interconnect.
16495
+ # @param [String] project
16496
+ # Project ID for this request.
16497
+ # @param [String] interconnect
16498
+ # Name of the interconnect resource to query.
16499
+ # @param [String] fields
16500
+ # Selector specifying which fields to include in a partial response.
16501
+ # @param [String] quota_user
16502
+ # Available to use for quota purposes for server-side applications. Can be any
16503
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16504
+ # @param [String] user_ip
16505
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16506
+ # @param [Google::Apis::RequestOptions] options
16507
+ # Request-specific options
16508
+ #
16509
+ # @yield [result, err] Result & error if block supplied
16510
+ # @yieldparam result [Google::Apis::ComputeBeta::InterconnectsGetMacsecConfigResponse] parsed result object
16511
+ # @yieldparam err [StandardError] error object if request failed
16512
+ #
16513
+ # @return [Google::Apis::ComputeBeta::InterconnectsGetMacsecConfigResponse]
16514
+ #
16515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16518
+ def get_interconnect_macsec_config(project, interconnect, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16519
+ command = make_simple_command(:get, 'projects/{project}/global/interconnects/{interconnect}/getMacsecConfig', options)
16520
+ command.response_representation = Google::Apis::ComputeBeta::InterconnectsGetMacsecConfigResponse::Representation
16521
+ command.response_class = Google::Apis::ComputeBeta::InterconnectsGetMacsecConfigResponse
16522
+ command.params['project'] = project unless project.nil?
16523
+ command.params['interconnect'] = interconnect unless interconnect.nil?
16524
+ command.query['fields'] = fields unless fields.nil?
16525
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16526
+ command.query['userIp'] = user_ip unless user_ip.nil?
16527
+ execute_or_queue_command(command, &block)
16528
+ end
16529
+
16239
16530
  # Creates an Interconnect in the specified project using the data included in
16240
16531
  # the request.
16241
16532
  # @param [String] project
@@ -23397,7 +23688,8 @@ module Google
23397
23688
  # behavior. For more information, see the [known issue](/compute/docs/
23398
23689
  # troubleshooting/known-issues#
23399
23690
  # ving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior)
23400
- # .
23691
+ # . [Deprecated] This method is deprecated. See [moving instance across zones](/
23692
+ # compute/docs/instances/moving-instance-across-zones) instead.
23401
23693
  # @param [String] project
23402
23694
  # Project ID for this request.
23403
23695
  # @param [Google::Apis::ComputeBeta::MoveInstanceRequest] move_instance_request_object
@@ -29821,6 +30113,61 @@ module Google
29821
30113
  execute_or_queue_command(command, &block)
29822
30114
  end
29823
30115
 
30116
+ # Attach a list of network endpoints to the specified network endpoint group.
30117
+ # @param [String] project
30118
+ # Project ID for this request.
30119
+ # @param [String] region
30120
+ # The name of the region where you want to create the network endpoint group. It
30121
+ # should comply with RFC1035.
30122
+ # @param [String] network_endpoint_group
30123
+ # The name of the network endpoint group where you are attaching network
30124
+ # endpoints to. It should comply with RFC1035.
30125
+ # @param [Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest] region_network_endpoint_groups_attach_endpoints_request_object
30126
+ # @param [String] request_id
30127
+ # An optional request ID to identify requests. Specify a unique request ID so
30128
+ # that if you must retry your request, the server will know to ignore the
30129
+ # request if it has already been completed. For example, consider a situation
30130
+ # where you make an initial request and the request times out. If you make the
30131
+ # request again with the same request ID, the server can check if original
30132
+ # operation with the same request ID was received, and if so, will ignore the
30133
+ # second request. This prevents clients from accidentally creating duplicate
30134
+ # commitments. The request ID must be a valid UUID with the exception that zero
30135
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30136
+ # @param [String] fields
30137
+ # Selector specifying which fields to include in a partial response.
30138
+ # @param [String] quota_user
30139
+ # Available to use for quota purposes for server-side applications. Can be any
30140
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30141
+ # @param [String] user_ip
30142
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30143
+ # @param [Google::Apis::RequestOptions] options
30144
+ # Request-specific options
30145
+ #
30146
+ # @yield [result, err] Result & error if block supplied
30147
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30148
+ # @yieldparam err [StandardError] error object if request failed
30149
+ #
30150
+ # @return [Google::Apis::ComputeBeta::Operation]
30151
+ #
30152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30155
+ def attach_region_network_endpoint_group_network_endpoints(project, region, network_endpoint_group, region_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30156
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options)
30157
+ command.request_representation = Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest::Representation
30158
+ command.request_object = region_network_endpoint_groups_attach_endpoints_request_object
30159
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30160
+ command.response_class = Google::Apis::ComputeBeta::Operation
30161
+ command.params['project'] = project unless project.nil?
30162
+ command.params['region'] = region unless region.nil?
30163
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
30164
+ command.query['requestId'] = request_id unless request_id.nil?
30165
+ command.query['fields'] = fields unless fields.nil?
30166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30167
+ command.query['userIp'] = user_ip unless user_ip.nil?
30168
+ execute_or_queue_command(command, &block)
30169
+ end
30170
+
29824
30171
  # Deletes the specified network endpoint group. Note that the NEG cannot be
29825
30172
  # deleted if it is configured as a backend of a backend service.
29826
30173
  # @param [String] project
@@ -29874,6 +30221,62 @@ module Google
29874
30221
  execute_or_queue_command(command, &block)
29875
30222
  end
29876
30223
 
30224
+ # Detach the network endpoint from the specified network endpoint group.
30225
+ # @param [String] project
30226
+ # Project ID for this request.
30227
+ # @param [String] region
30228
+ # The name of the region where the network endpoint group is located. It should
30229
+ # comply with RFC1035.
30230
+ # @param [String] network_endpoint_group
30231
+ # The name of the network endpoint group you are detaching network endpoints
30232
+ # from. It should comply with RFC1035.
30233
+ # @param [Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsDetachEndpointsRequest] region_network_endpoint_groups_detach_endpoints_request_object
30234
+ # @param [String] request_id
30235
+ # An optional request ID to identify requests. Specify a unique request ID so
30236
+ # that if you must retry your request, the server will know to ignore the
30237
+ # request if it has already been completed. For example, consider a situation
30238
+ # where you make an initial request and the request times out. If you make the
30239
+ # request again with the same request ID, the server can check if original
30240
+ # operation with the same request ID was received, and if so, will ignore the
30241
+ # second request. This prevents clients from accidentally creating duplicate
30242
+ # commitments. The request ID must be a valid UUID with the exception that zero
30243
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
30244
+ # MixerMutationRequestBuilder
30245
+ # @param [String] fields
30246
+ # Selector specifying which fields to include in a partial response.
30247
+ # @param [String] quota_user
30248
+ # Available to use for quota purposes for server-side applications. Can be any
30249
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30250
+ # @param [String] user_ip
30251
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30252
+ # @param [Google::Apis::RequestOptions] options
30253
+ # Request-specific options
30254
+ #
30255
+ # @yield [result, err] Result & error if block supplied
30256
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30257
+ # @yieldparam err [StandardError] error object if request failed
30258
+ #
30259
+ # @return [Google::Apis::ComputeBeta::Operation]
30260
+ #
30261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30264
+ def detach_region_network_endpoint_group_network_endpoints(project, region, network_endpoint_group, region_network_endpoint_groups_detach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30265
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints', options)
30266
+ command.request_representation = Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsDetachEndpointsRequest::Representation
30267
+ command.request_object = region_network_endpoint_groups_detach_endpoints_request_object
30268
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30269
+ command.response_class = Google::Apis::ComputeBeta::Operation
30270
+ command.params['project'] = project unless project.nil?
30271
+ command.params['region'] = region unless region.nil?
30272
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
30273
+ command.query['requestId'] = request_id unless request_id.nil?
30274
+ command.query['fields'] = fields unless fields.nil?
30275
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30276
+ command.query['userIp'] = user_ip unless user_ip.nil?
30277
+ execute_or_queue_command(command, &block)
30278
+ end
30279
+
29877
30280
  # Returns the specified network endpoint group.
29878
30281
  # @param [String] project
29879
30282
  # Project ID for this request.
@@ -30059,6 +30462,102 @@ module Google
30059
30462
  execute_or_queue_command(command, &block)
30060
30463
  end
30061
30464
 
30465
+ # Lists the network endpoints in the specified network endpoint group.
30466
+ # @param [String] project
30467
+ # Project ID for this request.
30468
+ # @param [String] region
30469
+ # The name of the region where the network endpoint group is located. It should
30470
+ # comply with RFC1035.
30471
+ # @param [String] network_endpoint_group
30472
+ # The name of the network endpoint group from which you want to generate a list
30473
+ # of included network endpoints. It should comply with RFC1035.
30474
+ # @param [String] filter
30475
+ # A filter expression that filters resources listed in the response. Most
30476
+ # Compute resources support two types of filter expressions: expressions that
30477
+ # support regular expressions and expressions that follow API improvement
30478
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
30479
+ # field name, an operator, and the value that you want to use for filtering. The
30480
+ # value must be a string, a number, or a boolean. The operator must be either `=`
30481
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
30482
+ # Engine instances, you can exclude instances named `example-instance` by
30483
+ # specifying `name != example-instance`. The `:` operator can be used with
30484
+ # string fields to match substrings. For non-string fields it is equivalent to
30485
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
30486
+ # been defined. For example, to find all objects with `owner` label use: ```
30487
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
30488
+ # specify `scheduling.automaticRestart = false` to include instances only if
30489
+ # they are not scheduled for automatic restarts. You can use filtering on nested
30490
+ # fields to filter based on resource labels. To filter on multiple expressions,
30491
+ # provide each separate expression within parentheses. For example: ``` (
30492
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
30493
+ # default, each expression is an `AND` expression. However, you can include `AND`
30494
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
30495
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
30496
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
30497
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
30498
+ # expression with or without quotes or against multiple parenthesized
30499
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
30500
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
30501
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
30502
+ # regular expression using Google RE2 library syntax. The literal value must
30503
+ # match the entire field. For example, to filter for instances that do not end
30504
+ # with name "instance", you would use `name ne .*instance`.
30505
+ # @param [Fixnum] max_results
30506
+ # The maximum number of results per page that should be returned. If the number
30507
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30508
+ # nextPageToken` that can be used to get the next page of results in subsequent
30509
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30510
+ # @param [String] order_by
30511
+ # Sorts list results by a certain order. By default, results are returned in
30512
+ # alphanumerical order based on the resource name. You can also sort results in
30513
+ # descending order based on the creation timestamp using `orderBy="
30514
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
30515
+ # field in reverse chronological order (newest result first). Use this to sort
30516
+ # resources like operations so that the newest operation is returned first.
30517
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30518
+ # @param [String] page_token
30519
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30520
+ # by a previous list request to get the next page of results.
30521
+ # @param [Boolean] return_partial_success
30522
+ # Opt-in for partial success behavior which provides partial results in case of
30523
+ # failure. The default value is false.
30524
+ # @param [String] fields
30525
+ # Selector specifying which fields to include in a partial response.
30526
+ # @param [String] quota_user
30527
+ # Available to use for quota purposes for server-side applications. Can be any
30528
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30529
+ # @param [String] user_ip
30530
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30531
+ # @param [Google::Apis::RequestOptions] options
30532
+ # Request-specific options
30533
+ #
30534
+ # @yield [result, err] Result & error if block supplied
30535
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints] parsed result object
30536
+ # @yieldparam err [StandardError] error object if request failed
30537
+ #
30538
+ # @return [Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints]
30539
+ #
30540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30543
+ def list_region_network_endpoint_group_network_endpoints(project, region, network_endpoint_group, 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)
30544
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints', options)
30545
+ command.response_representation = Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints::Representation
30546
+ command.response_class = Google::Apis::ComputeBeta::NetworkEndpointGroupsListNetworkEndpoints
30547
+ command.params['project'] = project unless project.nil?
30548
+ command.params['region'] = region unless region.nil?
30549
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
30550
+ command.query['filter'] = filter unless filter.nil?
30551
+ command.query['maxResults'] = max_results unless max_results.nil?
30552
+ command.query['orderBy'] = order_by unless order_by.nil?
30553
+ command.query['pageToken'] = page_token unless page_token.nil?
30554
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30555
+ command.query['fields'] = fields unless fields.nil?
30556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30557
+ command.query['userIp'] = user_ip unless user_ip.nil?
30558
+ execute_or_queue_command(command, &block)
30559
+ end
30560
+
30062
30561
  # Inserts an association for the specified network firewall policy.
30063
30562
  # @param [String] project
30064
30563
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.72.0
4
+ version: 0.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-25 00:00:00.000000000 Z
11
+ date: 2023-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.72.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.74.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
63
63
  post_install_message:
64
64
  rdoc_options: []