google-apis-compute_beta 0.107.0 → 0.109.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2158,6 +2158,42 @@ module Google
2158
2158
  execute_or_queue_command(command, &block)
2159
2159
  end
2160
2160
 
2161
+ # Returns effective security policies applied to this backend service.
2162
+ # @param [String] project
2163
+ # Project ID for this request.
2164
+ # @param [String] backend_service
2165
+ # Name of the Backend Service for this request.
2166
+ # @param [String] fields
2167
+ # Selector specifying which fields to include in a partial response.
2168
+ # @param [String] quota_user
2169
+ # Available to use for quota purposes for server-side applications. Can be any
2170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2171
+ # @param [String] user_ip
2172
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2173
+ # @param [Google::Apis::RequestOptions] options
2174
+ # Request-specific options
2175
+ #
2176
+ # @yield [result, err] Result & error if block supplied
2177
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse] parsed result object
2178
+ # @yieldparam err [StandardError] error object if request failed
2179
+ #
2180
+ # @return [Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse]
2181
+ #
2182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2185
+ def get_backend_service_effective_security_policies(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2186
+ command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies', options)
2187
+ command.response_representation = Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse::Representation
2188
+ command.response_class = Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse
2189
+ command.params['project'] = project unless project.nil?
2190
+ command.params['backendService'] = backend_service unless backend_service.nil?
2191
+ command.query['fields'] = fields unless fields.nil?
2192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2193
+ command.query['userIp'] = user_ip unless user_ip.nil?
2194
+ execute_or_queue_command(command, &block)
2195
+ end
2196
+
2161
2197
  # Gets the most recent health check results for this BackendService. Example
2162
2198
  # request body: ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example"
2163
2199
  # `
@@ -14047,6 +14083,8 @@ module Google
14047
14083
  # The name of the zone for this request.
14048
14084
  # @param [String] instance
14049
14085
  # Name of the instance resource to delete.
14086
+ # @param [Boolean] no_graceful_shutdown
14087
+ # If set to true, Graceful Shutdown is skipped.
14050
14088
  # @param [String] request_id
14051
14089
  # An optional request ID to identify requests. Specify a unique request ID so
14052
14090
  # that if you must retry your request, the server will know to ignore the
@@ -14076,13 +14114,14 @@ module Google
14076
14114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14077
14115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14078
14116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14079
- def delete_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14117
+ def delete_instance(project, zone, instance, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14080
14118
  command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options)
14081
14119
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14082
14120
  command.response_class = Google::Apis::ComputeBeta::Operation
14083
14121
  command.params['project'] = project unless project.nil?
14084
14122
  command.params['zone'] = zone unless zone.nil?
14085
14123
  command.params['instance'] = instance unless instance.nil?
14124
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
14086
14125
  command.query['requestId'] = request_id unless request_id.nil?
14087
14126
  command.query['fields'] = fields unless fields.nil?
14088
14127
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -14473,7 +14512,9 @@ module Google
14473
14512
  # and the adjusted start position is returned as the `start` property value. You
14474
14513
  # can also provide a negative start position, which translates to the most
14475
14514
  # recent number of bytes written to the serial port. For example, -3 is
14476
- # interpreted as the most recent 3 bytes written to the serial console.
14515
+ # interpreted as the most recent 3 bytes written to the serial console. Note
14516
+ # that the negative start is bounded by the retained buffer size, and the
14517
+ # returned serial console output will not exceed the max buffer size.
14477
14518
  # @param [String] fields
14478
14519
  # Selector specifying which fields to include in a partial response.
14479
14520
  # @param [String] quota_user
@@ -16127,6 +16168,8 @@ module Google
16127
16168
  # This property is required if the instance has any attached Local SSD disks. If
16128
16169
  # false, Local SSD data will be preserved when the instance is suspended. If
16129
16170
  # true, the contents of any attached Local SSD disks will be discarded.
16171
+ # @param [Boolean] no_graceful_shutdown
16172
+ # If set to true, Graceful Shutdown is skipped.
16130
16173
  # @param [String] request_id
16131
16174
  # An optional request ID to identify requests. Specify a unique request ID so
16132
16175
  # that if you must retry your request, the server will know to ignore the
@@ -16156,7 +16199,7 @@ module Google
16156
16199
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16157
16200
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16158
16201
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16159
- def stop_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16202
+ def stop_instance(project, zone, instance, discard_local_ssd: nil, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16160
16203
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options)
16161
16204
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16162
16205
  command.response_class = Google::Apis::ComputeBeta::Operation
@@ -16164,6 +16207,7 @@ module Google
16164
16207
  command.params['zone'] = zone unless zone.nil?
16165
16208
  command.params['instance'] = instance unless instance.nil?
16166
16209
  command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
16210
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
16167
16211
  command.query['requestId'] = request_id unless request_id.nil?
16168
16212
  command.query['fields'] = fields unless fields.nil?
16169
16213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -20953,6 +20997,112 @@ module Google
20953
20997
  execute_or_queue_command(command, &block)
20954
20998
  end
20955
20999
 
21000
+ # Retrieves an aggregated list of network firewall policies, listing network
21001
+ # firewall policies from all applicable scopes (global and regional) and
21002
+ # grouping the results per scope. To prevent failure, Google recommends that you
21003
+ # set the `returnPartialSuccess` parameter to `true`.
21004
+ # @param [String] project
21005
+ # Project ID for this request.
21006
+ # @param [String] filter
21007
+ # A filter expression that filters resources listed in the response. Most
21008
+ # Compute resources support two types of filter expressions: expressions that
21009
+ # support regular expressions and expressions that follow API improvement
21010
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
21011
+ # request. If you want to use AIP-160, your expression must specify the field
21012
+ # name, an operator, and the value that you want to use for filtering. The value
21013
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
21014
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
21015
+ # Engine instances, you can exclude instances named `example-instance` by
21016
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
21017
+ # whether a key has been defined. For example, to find all objects with `owner`
21018
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
21019
+ # example, you could specify `scheduling.automaticRestart = false` to include
21020
+ # instances only if they are not scheduled for automatic restarts. You can use
21021
+ # filtering on nested fields to filter based on resource labels. To filter on
21022
+ # multiple expressions, provide each separate expression within parentheses. For
21023
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
21024
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
21025
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
21026
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
21027
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
21028
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
21029
+ # un-parenthesized expression with or without quotes or against multiple
21030
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
21031
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
21032
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
21033
+ # interpreted as a regular expression using Google RE2 library syntax. The
21034
+ # literal value must match the entire field. For example, to filter for
21035
+ # instances that do not end with name "instance", you would use `name ne .*
21036
+ # instance`. You cannot combine constraints on multiple fields using regular
21037
+ # expressions.
21038
+ # @param [Boolean] include_all_scopes
21039
+ # Indicates whether every visible scope for each scope type (zone, region,
21040
+ # global) should be included in the response. For new resource types added after
21041
+ # this field, the flag has no effect as new resource types will always include
21042
+ # every visible scope for each scope type in response. For resource types which
21043
+ # predate this field, if this flag is omitted or false, only scopes of the scope
21044
+ # types where the resource type is expected to be found will be included.
21045
+ # @param [Fixnum] max_results
21046
+ # The maximum number of results per page that should be returned. If the number
21047
+ # of available results is larger than `maxResults`, Compute Engine returns a `
21048
+ # nextPageToken` that can be used to get the next page of results in subsequent
21049
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
21050
+ # @param [String] order_by
21051
+ # Sorts list results by a certain order. By default, results are returned in
21052
+ # alphanumerical order based on the resource name. You can also sort results in
21053
+ # descending order based on the creation timestamp using `orderBy="
21054
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
21055
+ # field in reverse chronological order (newest result first). Use this to sort
21056
+ # resources like operations so that the newest operation is returned first.
21057
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
21058
+ # @param [String] page_token
21059
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
21060
+ # by a previous list request to get the next page of results.
21061
+ # @param [Boolean] return_partial_success
21062
+ # Opt-in for partial success behavior which provides partial results in case of
21063
+ # failure. The default value is false. For example, when partial success
21064
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
21065
+ # resources in the zone or no resources, with an error code.
21066
+ # @param [Fixnum] service_project_number
21067
+ # The Shared VPC service project id or service project number for which
21068
+ # aggregated list request is invoked for subnetworks list-usable api.
21069
+ # @param [String] fields
21070
+ # Selector specifying which fields to include in a partial response.
21071
+ # @param [String] quota_user
21072
+ # Available to use for quota purposes for server-side applications. Can be any
21073
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21074
+ # @param [String] user_ip
21075
+ # Legacy name for parameter that has been superseded by `quotaUser`.
21076
+ # @param [Google::Apis::RequestOptions] options
21077
+ # Request-specific options
21078
+ #
21079
+ # @yield [result, err] Result & error if block supplied
21080
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkFirewallPolicyAggregatedList] parsed result object
21081
+ # @yieldparam err [StandardError] error object if request failed
21082
+ #
21083
+ # @return [Google::Apis::ComputeBeta::NetworkFirewallPolicyAggregatedList]
21084
+ #
21085
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21086
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21087
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21088
+ def aggregated_network_firewall_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21089
+ command = make_simple_command(:get, 'projects/{project}/aggregated/firewallPolicies', options)
21090
+ command.response_representation = Google::Apis::ComputeBeta::NetworkFirewallPolicyAggregatedList::Representation
21091
+ command.response_class = Google::Apis::ComputeBeta::NetworkFirewallPolicyAggregatedList
21092
+ command.params['project'] = project unless project.nil?
21093
+ command.query['filter'] = filter unless filter.nil?
21094
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
21095
+ command.query['maxResults'] = max_results unless max_results.nil?
21096
+ command.query['orderBy'] = order_by unless order_by.nil?
21097
+ command.query['pageToken'] = page_token unless page_token.nil?
21098
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
21099
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
21100
+ command.query['fields'] = fields unless fields.nil?
21101
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21102
+ command.query['userIp'] = user_ip unless user_ip.nil?
21103
+ execute_or_queue_command(command, &block)
21104
+ end
21105
+
20956
21106
  # Copies rules to the specified firewall policy.
20957
21107
  # @param [String] project
20958
21108
  # Project ID for this request.
@@ -35862,6 +36012,60 @@ module Google
35862
36012
  execute_or_queue_command(command, &block)
35863
36013
  end
35864
36014
 
36015
+ # Sets the labels on a security policy. To learn more about labels, read the
36016
+ # Labeling Resources documentation.
36017
+ # @param [String] project
36018
+ # Project ID for this request.
36019
+ # @param [String] region
36020
+ # The region for this request.
36021
+ # @param [String] resource
36022
+ # Name or id of the resource for this request.
36023
+ # @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
36024
+ # @param [String] request_id
36025
+ # An optional request ID to identify requests. Specify a unique request ID so
36026
+ # that if you must retry your request, the server will know to ignore the
36027
+ # request if it has already been completed. For example, consider a situation
36028
+ # where you make an initial request and the request times out. If you make the
36029
+ # request again with the same request ID, the server can check if original
36030
+ # operation with the same request ID was received, and if so, will ignore the
36031
+ # second request. This prevents clients from accidentally creating duplicate
36032
+ # commitments. The request ID must be a valid UUID with the exception that zero
36033
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
36034
+ # @param [String] fields
36035
+ # Selector specifying which fields to include in a partial response.
36036
+ # @param [String] quota_user
36037
+ # Available to use for quota purposes for server-side applications. Can be any
36038
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
36039
+ # @param [String] user_ip
36040
+ # Legacy name for parameter that has been superseded by `quotaUser`.
36041
+ # @param [Google::Apis::RequestOptions] options
36042
+ # Request-specific options
36043
+ #
36044
+ # @yield [result, err] Result & error if block supplied
36045
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
36046
+ # @yieldparam err [StandardError] error object if request failed
36047
+ #
36048
+ # @return [Google::Apis::ComputeBeta::Operation]
36049
+ #
36050
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36051
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36052
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36053
+ def set_region_security_policy_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36054
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels', options)
36055
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
36056
+ command.request_object = region_set_labels_request_object
36057
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
36058
+ command.response_class = Google::Apis::ComputeBeta::Operation
36059
+ command.params['project'] = project unless project.nil?
36060
+ command.params['region'] = region unless region.nil?
36061
+ command.params['resource'] = resource unless resource.nil?
36062
+ command.query['requestId'] = request_id unless request_id.nil?
36063
+ command.query['fields'] = fields unless fields.nil?
36064
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36065
+ command.query['userIp'] = user_ip unless user_ip.nil?
36066
+ execute_or_queue_command(command, &block)
36067
+ end
36068
+
35865
36069
  # Deletes the specified SslCertificate resource in the region.
35866
36070
  # @param [String] project
35867
36071
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.107.0
4
+ version: 0.109.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
10
+ date: 2025-01-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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.107.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.109.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.22
79
- signing_key:
76
+ rubygems_version: 3.6.2
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Compute Engine API Beta
82
79
  test_files: []