google-apis-compute_beta 0.53.0 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -13907,7 +13907,7 @@ module Google
13907
13907
  # Name of the instance resource to stop.
13908
13908
  # @param [Boolean] discard_local_ssd
13909
13909
  # If true, discard the contents of any attached localSSD partitions. Default
13910
- # value is false (== preserve localSSD data).
13910
+ # value is false.
13911
13911
  # @param [String] request_id
13912
13912
  # An optional request ID to identify requests. Specify a unique request ID so
13913
13913
  # that if you must retry your request, the server will know to ignore the
@@ -13967,7 +13967,7 @@ module Google
13967
13967
  # Name of the instance resource to suspend.
13968
13968
  # @param [Boolean] discard_local_ssd
13969
13969
  # If true, discard the contents of any attached localSSD partitions. Default
13970
- # value is false (== preserve localSSD data).
13970
+ # value is false.
13971
13971
  # @param [String] request_id
13972
13972
  # An optional request ID to identify requests. Specify a unique request ID so
13973
13973
  # that if you must retry your request, the server will know to ignore the
@@ -15011,7 +15011,7 @@ module Google
15011
15011
  execute_or_queue_command(command, &block)
15012
15012
  end
15013
15013
 
15014
- # Deletes the specified interconnect.
15014
+ # Deletes the specified Interconnect.
15015
15015
  # @param [String] project
15016
15016
  # Project ID for this request.
15017
15017
  # @param [String] interconnect
@@ -15058,7 +15058,7 @@ module Google
15058
15058
  execute_or_queue_command(command, &block)
15059
15059
  end
15060
15060
 
15061
- # Returns the specified interconnect. Get a list of available interconnects by
15061
+ # Returns the specified Interconnect. Get a list of available Interconnects by
15062
15062
  # making a list() request.
15063
15063
  # @param [String] project
15064
15064
  # Project ID for this request.
@@ -15095,7 +15095,7 @@ module Google
15095
15095
  execute_or_queue_command(command, &block)
15096
15096
  end
15097
15097
 
15098
- # Returns the interconnectDiagnostics for the specified interconnect.
15098
+ # Returns the interconnectDiagnostics for the specified Interconnect.
15099
15099
  # @param [String] project
15100
15100
  # Project ID for this request.
15101
15101
  # @param [String] interconnect
@@ -15131,8 +15131,8 @@ module Google
15131
15131
  execute_or_queue_command(command, &block)
15132
15132
  end
15133
15133
 
15134
- # Creates a Interconnect in the specified project using the data included in the
15135
- # request.
15134
+ # Creates an Interconnect in the specified project using the data included in
15135
+ # the request.
15136
15136
  # @param [String] project
15137
15137
  # Project ID for this request.
15138
15138
  # @param [Google::Apis::ComputeBeta::Interconnect] interconnect_object
@@ -15179,7 +15179,7 @@ module Google
15179
15179
  execute_or_queue_command(command, &block)
15180
15180
  end
15181
15181
 
15182
- # Retrieves the list of interconnect available to the specified project.
15182
+ # Retrieves the list of Interconnects available to the specified project.
15183
15183
  # @param [String] project
15184
15184
  # Project ID for this request.
15185
15185
  # @param [String] filter
@@ -15267,7 +15267,7 @@ module Google
15267
15267
  execute_or_queue_command(command, &block)
15268
15268
  end
15269
15269
 
15270
- # Updates the specified interconnect with the data included in the request. This
15270
+ # Updates the specified Interconnect with the data included in the request. This
15271
15271
  # method supports PATCH semantics and uses the JSON merge patch format and
15272
15272
  # processing rules.
15273
15273
  # @param [String] project
@@ -16403,6 +16403,464 @@ module Google
16403
16403
  execute_or_queue_command(command, &block)
16404
16404
  end
16405
16405
 
16406
+ # Retrieves the list of all NetworkAttachment resources, regional and global,
16407
+ # available to the specified project.
16408
+ # @param [String] project
16409
+ # Project ID for this request.
16410
+ # @param [String] filter
16411
+ # A filter expression that filters resources listed in the response. Most
16412
+ # Compute resources support two types of filter expressions: expressions that
16413
+ # support regular expressions and expressions that follow API improvement
16414
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
16415
+ # field name, an operator, and the value that you want to use for filtering. The
16416
+ # value must be a string, a number, or a boolean. The operator must be either `=`
16417
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
16418
+ # Engine instances, you can exclude instances named `example-instance` by
16419
+ # specifying `name != example-instance`. The `:` operator can be used with
16420
+ # string fields to match substrings. For non-string fields it is equivalent to
16421
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
16422
+ # been defined. For example, to find all objects with `owner` label use: ```
16423
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
16424
+ # specify `scheduling.automaticRestart = false` to include instances only if
16425
+ # they are not scheduled for automatic restarts. You can use filtering on nested
16426
+ # fields to filter based on resource labels. To filter on multiple expressions,
16427
+ # provide each separate expression within parentheses. For example: ``` (
16428
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
16429
+ # default, each expression is an `AND` expression. However, you can include `AND`
16430
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
16431
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
16432
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
16433
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
16434
+ # expression with or without quotes or against multiple parenthesized
16435
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
16436
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
16437
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
16438
+ # regular expression using Google RE2 library syntax. The literal value must
16439
+ # match the entire field. For example, to filter for instances that do not end
16440
+ # with name "instance", you would use `name ne .*instance`.
16441
+ # @param [Boolean] include_all_scopes
16442
+ # Indicates whether every visible scope for each scope type (zone, region,
16443
+ # global) should be included in the response. For new resource types added after
16444
+ # this field, the flag has no effect as new resource types will always include
16445
+ # every visible scope for each scope type in response. For resource types which
16446
+ # predate this field, if this flag is omitted or false, only scopes of the scope
16447
+ # types where the resource type is expected to be found will be included.
16448
+ # @param [Fixnum] max_results
16449
+ # The maximum number of results per page that should be returned. If the number
16450
+ # of available results is larger than `maxResults`, Compute Engine returns a `
16451
+ # nextPageToken` that can be used to get the next page of results in subsequent
16452
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
16453
+ # @param [String] order_by
16454
+ # Sorts list results by a certain order. By default, results are returned in
16455
+ # alphanumerical order based on the resource name. You can also sort results in
16456
+ # descending order based on the creation timestamp using `orderBy="
16457
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
16458
+ # field in reverse chronological order (newest result first). Use this to sort
16459
+ # resources like operations so that the newest operation is returned first.
16460
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
16461
+ # @param [String] page_token
16462
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
16463
+ # by a previous list request to get the next page of results.
16464
+ # @param [Boolean] return_partial_success
16465
+ # Opt-in for partial success behavior which provides partial results in case of
16466
+ # failure. The default value is false.
16467
+ # @param [String] fields
16468
+ # Selector specifying which fields to include in a partial response.
16469
+ # @param [String] quota_user
16470
+ # Available to use for quota purposes for server-side applications. Can be any
16471
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16472
+ # @param [String] user_ip
16473
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16474
+ # @param [Google::Apis::RequestOptions] options
16475
+ # Request-specific options
16476
+ #
16477
+ # @yield [result, err] Result & error if block supplied
16478
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList] parsed result object
16479
+ # @yieldparam err [StandardError] error object if request failed
16480
+ #
16481
+ # @return [Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList]
16482
+ #
16483
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16484
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16485
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16486
+ def aggregated_network_attachment_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)
16487
+ command = make_simple_command(:get, 'projects/{project}/aggregated/networkAttachments', options)
16488
+ command.response_representation = Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList::Representation
16489
+ command.response_class = Google::Apis::ComputeBeta::NetworkAttachmentAggregatedList
16490
+ command.params['project'] = project unless project.nil?
16491
+ command.query['filter'] = filter unless filter.nil?
16492
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
16493
+ command.query['maxResults'] = max_results unless max_results.nil?
16494
+ command.query['orderBy'] = order_by unless order_by.nil?
16495
+ command.query['pageToken'] = page_token unless page_token.nil?
16496
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
16497
+ command.query['fields'] = fields unless fields.nil?
16498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16499
+ command.query['userIp'] = user_ip unless user_ip.nil?
16500
+ execute_or_queue_command(command, &block)
16501
+ end
16502
+
16503
+ # Deletes the specified NetworkAttachment in the given scope
16504
+ # @param [String] project
16505
+ # Project ID for this request.
16506
+ # @param [String] region
16507
+ # Name of the region of this request.
16508
+ # @param [String] network_attachment
16509
+ # Name of the NetworkAttachment resource to delete.
16510
+ # @param [String] request_id
16511
+ # An optional request ID to identify requests. Specify a unique request ID so
16512
+ # that if you must retry your request, the server will know to ignore the
16513
+ # request if it has already been completed. For example, consider a situation
16514
+ # where you make an initial request and the request times out. If you make the
16515
+ # request again with the same request ID, the server can check if original
16516
+ # operation with the same request ID was received, and if so, will ignore the
16517
+ # second request. This prevents clients from accidentally creating duplicate
16518
+ # commitments. The request ID must be a valid UUID with the exception that zero
16519
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
16520
+ # MixerMutationRequestBuilder
16521
+ # @param [String] fields
16522
+ # Selector specifying which fields to include in a partial response.
16523
+ # @param [String] quota_user
16524
+ # Available to use for quota purposes for server-side applications. Can be any
16525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16526
+ # @param [String] user_ip
16527
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16528
+ # @param [Google::Apis::RequestOptions] options
16529
+ # Request-specific options
16530
+ #
16531
+ # @yield [result, err] Result & error if block supplied
16532
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16533
+ # @yieldparam err [StandardError] error object if request failed
16534
+ #
16535
+ # @return [Google::Apis::ComputeBeta::Operation]
16536
+ #
16537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16540
+ def delete_network_attachment(project, region, network_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16541
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkAttachments/{networkAttachment}', options)
16542
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16543
+ command.response_class = Google::Apis::ComputeBeta::Operation
16544
+ command.params['project'] = project unless project.nil?
16545
+ command.params['region'] = region unless region.nil?
16546
+ command.params['networkAttachment'] = network_attachment unless network_attachment.nil?
16547
+ command.query['requestId'] = request_id unless request_id.nil?
16548
+ command.query['fields'] = fields unless fields.nil?
16549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16550
+ command.query['userIp'] = user_ip unless user_ip.nil?
16551
+ execute_or_queue_command(command, &block)
16552
+ end
16553
+
16554
+ # Returns the specified NetworkAttachment resource in the given scope.
16555
+ # @param [String] project
16556
+ # Project ID for this request.
16557
+ # @param [String] region
16558
+ # Name of the region of this request.
16559
+ # @param [String] network_attachment
16560
+ # Name of the NetworkAttachment resource to return.
16561
+ # @param [String] fields
16562
+ # Selector specifying which fields to include in a partial response.
16563
+ # @param [String] quota_user
16564
+ # Available to use for quota purposes for server-side applications. Can be any
16565
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16566
+ # @param [String] user_ip
16567
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16568
+ # @param [Google::Apis::RequestOptions] options
16569
+ # Request-specific options
16570
+ #
16571
+ # @yield [result, err] Result & error if block supplied
16572
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkAttachment] parsed result object
16573
+ # @yieldparam err [StandardError] error object if request failed
16574
+ #
16575
+ # @return [Google::Apis::ComputeBeta::NetworkAttachment]
16576
+ #
16577
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16578
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16579
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16580
+ def get_network_attachment(project, region, network_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16581
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkAttachments/{networkAttachment}', options)
16582
+ command.response_representation = Google::Apis::ComputeBeta::NetworkAttachment::Representation
16583
+ command.response_class = Google::Apis::ComputeBeta::NetworkAttachment
16584
+ command.params['project'] = project unless project.nil?
16585
+ command.params['region'] = region unless region.nil?
16586
+ command.params['networkAttachment'] = network_attachment unless network_attachment.nil?
16587
+ command.query['fields'] = fields unless fields.nil?
16588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16589
+ command.query['userIp'] = user_ip unless user_ip.nil?
16590
+ execute_or_queue_command(command, &block)
16591
+ end
16592
+
16593
+ # Gets the access control policy for a resource. May be empty if no such policy
16594
+ # or resource exists.
16595
+ # @param [String] project
16596
+ # Project ID for this request.
16597
+ # @param [String] region
16598
+ # The name of the region for this request.
16599
+ # @param [String] resource
16600
+ # Name or id of the resource for this request.
16601
+ # @param [Fixnum] options_requested_policy_version
16602
+ # Requested IAM Policy version.
16603
+ # @param [String] fields
16604
+ # Selector specifying which fields to include in a partial response.
16605
+ # @param [String] quota_user
16606
+ # Available to use for quota purposes for server-side applications. Can be any
16607
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16608
+ # @param [String] user_ip
16609
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16610
+ # @param [Google::Apis::RequestOptions] options
16611
+ # Request-specific options
16612
+ #
16613
+ # @yield [result, err] Result & error if block supplied
16614
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
16615
+ # @yieldparam err [StandardError] error object if request failed
16616
+ #
16617
+ # @return [Google::Apis::ComputeBeta::Policy]
16618
+ #
16619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16622
+ def get_network_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16623
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkAttachments/{resource}/getIamPolicy', options)
16624
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
16625
+ command.response_class = Google::Apis::ComputeBeta::Policy
16626
+ command.params['project'] = project unless project.nil?
16627
+ command.params['region'] = region unless region.nil?
16628
+ command.params['resource'] = resource unless resource.nil?
16629
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
16630
+ command.query['fields'] = fields unless fields.nil?
16631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16632
+ command.query['userIp'] = user_ip unless user_ip.nil?
16633
+ execute_or_queue_command(command, &block)
16634
+ end
16635
+
16636
+ # Creates a NetworkAttachment in the specified project in the given scope using
16637
+ # the parameters that are included in the request.
16638
+ # @param [String] project
16639
+ # Project ID for this request.
16640
+ # @param [String] region
16641
+ # Name of the region of this request.
16642
+ # @param [Google::Apis::ComputeBeta::NetworkAttachment] network_attachment_object
16643
+ # @param [String] request_id
16644
+ # An optional request ID to identify requests. Specify a unique request ID so
16645
+ # that if you must retry your request, the server will know to ignore the
16646
+ # request if it has already been completed. For example, consider a situation
16647
+ # where you make an initial request and the request times out. If you make the
16648
+ # request again with the same request ID, the server can check if original
16649
+ # operation with the same request ID was received, and if so, will ignore the
16650
+ # second request. This prevents clients from accidentally creating duplicate
16651
+ # commitments. The request ID must be a valid UUID with the exception that zero
16652
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
16653
+ # MixerMutationRequestBuilder
16654
+ # @param [String] fields
16655
+ # Selector specifying which fields to include in a partial response.
16656
+ # @param [String] quota_user
16657
+ # Available to use for quota purposes for server-side applications. Can be any
16658
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16659
+ # @param [String] user_ip
16660
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16661
+ # @param [Google::Apis::RequestOptions] options
16662
+ # Request-specific options
16663
+ #
16664
+ # @yield [result, err] Result & error if block supplied
16665
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16666
+ # @yieldparam err [StandardError] error object if request failed
16667
+ #
16668
+ # @return [Google::Apis::ComputeBeta::Operation]
16669
+ #
16670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16673
+ def insert_network_attachment(project, region, network_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16674
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkAttachments', options)
16675
+ command.request_representation = Google::Apis::ComputeBeta::NetworkAttachment::Representation
16676
+ command.request_object = network_attachment_object
16677
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16678
+ command.response_class = Google::Apis::ComputeBeta::Operation
16679
+ command.params['project'] = project unless project.nil?
16680
+ command.params['region'] = region unless region.nil?
16681
+ command.query['requestId'] = request_id unless request_id.nil?
16682
+ command.query['fields'] = fields unless fields.nil?
16683
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16684
+ command.query['userIp'] = user_ip unless user_ip.nil?
16685
+ execute_or_queue_command(command, &block)
16686
+ end
16687
+
16688
+ # Lists the NetworkAttachments for a project in the given scope.
16689
+ # @param [String] project
16690
+ # Project ID for this request.
16691
+ # @param [String] region
16692
+ # Name of the region of this request.
16693
+ # @param [String] filter
16694
+ # A filter expression that filters resources listed in the response. Most
16695
+ # Compute resources support two types of filter expressions: expressions that
16696
+ # support regular expressions and expressions that follow API improvement
16697
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
16698
+ # field name, an operator, and the value that you want to use for filtering. The
16699
+ # value must be a string, a number, or a boolean. The operator must be either `=`
16700
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
16701
+ # Engine instances, you can exclude instances named `example-instance` by
16702
+ # specifying `name != example-instance`. The `:` operator can be used with
16703
+ # string fields to match substrings. For non-string fields it is equivalent to
16704
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
16705
+ # been defined. For example, to find all objects with `owner` label use: ```
16706
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
16707
+ # specify `scheduling.automaticRestart = false` to include instances only if
16708
+ # they are not scheduled for automatic restarts. You can use filtering on nested
16709
+ # fields to filter based on resource labels. To filter on multiple expressions,
16710
+ # provide each separate expression within parentheses. For example: ``` (
16711
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
16712
+ # default, each expression is an `AND` expression. However, you can include `AND`
16713
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
16714
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
16715
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
16716
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
16717
+ # expression with or without quotes or against multiple parenthesized
16718
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
16719
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
16720
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
16721
+ # regular expression using Google RE2 library syntax. The literal value must
16722
+ # match the entire field. For example, to filter for instances that do not end
16723
+ # with name "instance", you would use `name ne .*instance`.
16724
+ # @param [Fixnum] max_results
16725
+ # The maximum number of results per page that should be returned. If the number
16726
+ # of available results is larger than `maxResults`, Compute Engine returns a `
16727
+ # nextPageToken` that can be used to get the next page of results in subsequent
16728
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
16729
+ # @param [String] order_by
16730
+ # Sorts list results by a certain order. By default, results are returned in
16731
+ # alphanumerical order based on the resource name. You can also sort results in
16732
+ # descending order based on the creation timestamp using `orderBy="
16733
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
16734
+ # field in reverse chronological order (newest result first). Use this to sort
16735
+ # resources like operations so that the newest operation is returned first.
16736
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
16737
+ # @param [String] page_token
16738
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
16739
+ # by a previous list request to get the next page of results.
16740
+ # @param [Boolean] return_partial_success
16741
+ # Opt-in for partial success behavior which provides partial results in case of
16742
+ # failure. The default value is false.
16743
+ # @param [String] fields
16744
+ # Selector specifying which fields to include in a partial response.
16745
+ # @param [String] quota_user
16746
+ # Available to use for quota purposes for server-side applications. Can be any
16747
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16748
+ # @param [String] user_ip
16749
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16750
+ # @param [Google::Apis::RequestOptions] options
16751
+ # Request-specific options
16752
+ #
16753
+ # @yield [result, err] Result & error if block supplied
16754
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkAttachmentList] parsed result object
16755
+ # @yieldparam err [StandardError] error object if request failed
16756
+ #
16757
+ # @return [Google::Apis::ComputeBeta::NetworkAttachmentList]
16758
+ #
16759
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16760
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16761
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16762
+ def list_network_attachments(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)
16763
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkAttachments', options)
16764
+ command.response_representation = Google::Apis::ComputeBeta::NetworkAttachmentList::Representation
16765
+ command.response_class = Google::Apis::ComputeBeta::NetworkAttachmentList
16766
+ command.params['project'] = project unless project.nil?
16767
+ command.params['region'] = region unless region.nil?
16768
+ command.query['filter'] = filter unless filter.nil?
16769
+ command.query['maxResults'] = max_results unless max_results.nil?
16770
+ command.query['orderBy'] = order_by unless order_by.nil?
16771
+ command.query['pageToken'] = page_token unless page_token.nil?
16772
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
16773
+ command.query['fields'] = fields unless fields.nil?
16774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16775
+ command.query['userIp'] = user_ip unless user_ip.nil?
16776
+ execute_or_queue_command(command, &block)
16777
+ end
16778
+
16779
+ # Sets the access control policy on the specified resource. Replaces any
16780
+ # existing policy.
16781
+ # @param [String] project
16782
+ # Project ID for this request.
16783
+ # @param [String] region
16784
+ # The name of the region for this request.
16785
+ # @param [String] resource
16786
+ # Name or id of the resource for this request.
16787
+ # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
16788
+ # @param [String] fields
16789
+ # Selector specifying which fields to include in a partial response.
16790
+ # @param [String] quota_user
16791
+ # Available to use for quota purposes for server-side applications. Can be any
16792
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16793
+ # @param [String] user_ip
16794
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16795
+ # @param [Google::Apis::RequestOptions] options
16796
+ # Request-specific options
16797
+ #
16798
+ # @yield [result, err] Result & error if block supplied
16799
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
16800
+ # @yieldparam err [StandardError] error object if request failed
16801
+ #
16802
+ # @return [Google::Apis::ComputeBeta::Policy]
16803
+ #
16804
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16805
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16806
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16807
+ def set_network_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16808
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkAttachments/{resource}/setIamPolicy', options)
16809
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
16810
+ command.request_object = region_set_policy_request_object
16811
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
16812
+ command.response_class = Google::Apis::ComputeBeta::Policy
16813
+ command.params['project'] = project unless project.nil?
16814
+ command.params['region'] = region unless region.nil?
16815
+ command.params['resource'] = resource unless resource.nil?
16816
+ command.query['fields'] = fields unless fields.nil?
16817
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16818
+ command.query['userIp'] = user_ip unless user_ip.nil?
16819
+ execute_or_queue_command(command, &block)
16820
+ end
16821
+
16822
+ # Returns permissions that a caller has on the specified resource.
16823
+ # @param [String] project
16824
+ # Project ID for this request.
16825
+ # @param [String] region
16826
+ # The name of the region for this request.
16827
+ # @param [String] resource
16828
+ # Name or id of the resource for this request.
16829
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
16830
+ # @param [String] fields
16831
+ # Selector specifying which fields to include in a partial response.
16832
+ # @param [String] quota_user
16833
+ # Available to use for quota purposes for server-side applications. Can be any
16834
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
16835
+ # @param [String] user_ip
16836
+ # Legacy name for parameter that has been superseded by `quotaUser`.
16837
+ # @param [Google::Apis::RequestOptions] options
16838
+ # Request-specific options
16839
+ #
16840
+ # @yield [result, err] Result & error if block supplied
16841
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
16842
+ # @yieldparam err [StandardError] error object if request failed
16843
+ #
16844
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
16845
+ #
16846
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16847
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16848
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16849
+ def test_network_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16850
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkAttachments/{resource}/testIamPermissions', options)
16851
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
16852
+ command.request_object = test_permissions_request_object
16853
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
16854
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
16855
+ command.params['project'] = project unless project.nil?
16856
+ command.params['region'] = region unless region.nil?
16857
+ command.params['resource'] = resource unless resource.nil?
16858
+ command.query['fields'] = fields unless fields.nil?
16859
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16860
+ command.query['userIp'] = user_ip unless user_ip.nil?
16861
+ execute_or_queue_command(command, &block)
16862
+ end
16863
+
16406
16864
  # Retrieves the list of all NetworkEdgeSecurityService resources available to
16407
16865
  # the specified project.
16408
16866
  # @param [String] project
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.53.0
4
+ version: 0.55.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-11-07 00:00:00.000000000 Z
11
+ date: 2022-12-12 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.53.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.55.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: []