google-apis-compute_beta 0.58.0 → 0.59.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac0004b8deb9e1a9549b724dfe3d30eb10ae5172183f1c65a12c3585b20533dd
|
4
|
+
data.tar.gz: 8b55b98afe5bf9eb3e57d8ff1db5a42e98dd1ff0867ef197b9b866104fbcf999
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f317d983b49dbc290084cfb8691bb5d15fb8ceff70f19351885f51f100a5093c0b9012d37b00bf981d0dfe7cc1d9882c4bbaaef261060662c336c889bc5643f
|
7
|
+
data.tar.gz: f774ae321fbb81ab95f544618e92debb4a33bf9ae87cd932f542124ced002e1d0fec56b3c3b781758494d0375a236319e190f64cc8dcc36ff267d0089834d5fb
|
data/CHANGELOG.md
CHANGED
@@ -1636,6 +1636,13 @@ module Google
|
|
1636
1636
|
# @return [Fixnum]
|
1637
1637
|
attr_accessor :provisioned_iops
|
1638
1638
|
|
1639
|
+
# Indicates how much throughput to provision for the disk. This sets the number
|
1640
|
+
# of throughput mb per second that the disk can handle. Values must be between 1
|
1641
|
+
# and 7,124.
|
1642
|
+
# Corresponds to the JSON property `provisionedThroughput`
|
1643
|
+
# @return [Fixnum]
|
1644
|
+
attr_accessor :provisioned_throughput
|
1645
|
+
|
1639
1646
|
# Resource manager tags to be bound to the disk. Tag keys and values have the
|
1640
1647
|
# same definition as resource manager tags. Keys must be in the format `tagKeys/`
|
1641
1648
|
# tag_key_id``, and values are in the format `tagValues/456`. The field is
|
@@ -1709,6 +1716,7 @@ module Google
|
|
1709
1716
|
@multi_writer = args[:multi_writer] if args.key?(:multi_writer)
|
1710
1717
|
@on_update_action = args[:on_update_action] if args.key?(:on_update_action)
|
1711
1718
|
@provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
|
1719
|
+
@provisioned_throughput = args[:provisioned_throughput] if args.key?(:provisioned_throughput)
|
1712
1720
|
@resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
|
1713
1721
|
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
1714
1722
|
@source_image = args[:source_image] if args.key?(:source_image)
|
@@ -3414,11 +3422,14 @@ module Google
|
|
3414
3422
|
# @return [String]
|
3415
3423
|
attr_accessor :load_balancing_scheme
|
3416
3424
|
|
3417
|
-
# A list of locality load
|
3418
|
-
#
|
3419
|
-
#
|
3420
|
-
#
|
3421
|
-
#
|
3425
|
+
# A list of locality load-balancing policies to be used in order of preference.
|
3426
|
+
# When you use localityLbPolicies, you must set at least one value for either
|
3427
|
+
# the localityLbPolicies[].policy or the localityLbPolicies[].customPolicy field.
|
3428
|
+
# localityLbPolicies overrides any value set in the localityLbPolicy field. For
|
3429
|
+
# an example of how to use this field, see Define a list of preferred policies.
|
3430
|
+
# Caution: This field and its children are intended for use in a service mesh
|
3431
|
+
# that includes gRPC clients only. Envoy proxies can't use backend services that
|
3432
|
+
# have this configuration.
|
3422
3433
|
# Corresponds to the JSON property `localityLbPolicies`
|
3423
3434
|
# @return [Array<Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfig>]
|
3424
3435
|
attr_accessor :locality_lb_policies
|
@@ -4304,12 +4315,13 @@ module Google
|
|
4304
4315
|
# @return [String]
|
4305
4316
|
attr_accessor :data
|
4306
4317
|
|
4307
|
-
# Identifies the custom policy. The value should match the
|
4308
|
-
# implementation
|
4309
|
-
#
|
4310
|
-
# myorg.CustomLbPolicy). The maximum length is 256 characters.
|
4311
|
-
#
|
4312
|
-
# configuration
|
4318
|
+
# Identifies the custom policy. The value should match the name of a custom
|
4319
|
+
# implementation registered on the gRPC clients. It should follow protocol
|
4320
|
+
# buffer message naming conventions and include the full path (for example,
|
4321
|
+
# myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify
|
4322
|
+
# the same custom policy more than once for a backend. If you do, the
|
4323
|
+
# configuration is rejected. For an example of how to use this field, see Use a
|
4324
|
+
# custom policy.
|
4313
4325
|
# Corresponds to the JSON property `name`
|
4314
4326
|
# @return [String]
|
4315
4327
|
attr_accessor :name
|
@@ -4329,11 +4341,10 @@ module Google
|
|
4329
4341
|
class BackendServiceLocalityLoadBalancingPolicyConfigPolicy
|
4330
4342
|
include Google::Apis::Core::Hashable
|
4331
4343
|
|
4332
|
-
# The name of a locality load
|
4333
|
-
#
|
4334
|
-
#
|
4335
|
-
#
|
4336
|
-
# than once for a backend is not a valid configuration and will be rejected.
|
4344
|
+
# The name of a locality load-balancing policy. Valid values include ROUND_ROBIN
|
4345
|
+
# and, for Java clients, LEAST_REQUEST. For information about these values, see
|
4346
|
+
# the description of localityLbPolicy. Do not specify the same policy more than
|
4347
|
+
# once for a backend. If you do, the configuration is rejected.
|
4337
4348
|
# Corresponds to the JSON property `name`
|
4338
4349
|
# @return [String]
|
4339
4350
|
attr_accessor :name
|
@@ -4360,6 +4371,22 @@ module Google
|
|
4360
4371
|
attr_accessor :enable
|
4361
4372
|
alias_method :enable?, :enable
|
4362
4373
|
|
4374
|
+
# This field can only be specified if logging is enabled for this backend
|
4375
|
+
# service and "logConfig.optionalMode" was set to CUSTOM. Contains a list of
|
4376
|
+
# optional fields you want to include in the logs. For example: serverInstance,
|
4377
|
+
# serverGkeDetails.cluster, serverGkeDetails.pod.podNamespace
|
4378
|
+
# Corresponds to the JSON property `optionalFields`
|
4379
|
+
# @return [Array<String>]
|
4380
|
+
attr_accessor :optional_fields
|
4381
|
+
|
4382
|
+
# This field can only be specified if logging is enabled for this backend
|
4383
|
+
# service. Configures whether all, none or a subset of optional fields should be
|
4384
|
+
# added to the reported logs. One of [INCLUDE_ALL_OPTIONAL, EXCLUDE_ALL_OPTIONAL,
|
4385
|
+
# CUSTOM]. Default is EXCLUDE_ALL_OPTIONAL.
|
4386
|
+
# Corresponds to the JSON property `optionalMode`
|
4387
|
+
# @return [String]
|
4388
|
+
attr_accessor :optional_mode
|
4389
|
+
|
4363
4390
|
# This field can only be specified if logging is enabled for this backend
|
4364
4391
|
# service. The value of the field must be in [0, 1]. This configures the
|
4365
4392
|
# sampling rate of requests to the load balancer where 1.0 means all logged
|
@@ -4376,6 +4403,8 @@ module Google
|
|
4376
4403
|
# Update properties of this object
|
4377
4404
|
def update!(**args)
|
4378
4405
|
@enable = args[:enable] if args.key?(:enable)
|
4406
|
+
@optional_fields = args[:optional_fields] if args.key?(:optional_fields)
|
4407
|
+
@optional_mode = args[:optional_mode] if args.key?(:optional_mode)
|
4379
4408
|
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
4380
4409
|
end
|
4381
4410
|
end
|
@@ -6161,6 +6190,13 @@ module Google
|
|
6161
6190
|
# @return [Fixnum]
|
6162
6191
|
attr_accessor :provisioned_iops
|
6163
6192
|
|
6193
|
+
# Indicates how much throughput to provision for the disk. This sets the number
|
6194
|
+
# of throughput mb per second that the disk can handle. Values must be between 1
|
6195
|
+
# and 7,124.
|
6196
|
+
# Corresponds to the JSON property `provisionedThroughput`
|
6197
|
+
# @return [Fixnum]
|
6198
|
+
attr_accessor :provisioned_throughput
|
6199
|
+
|
6164
6200
|
# [Output Only] URL of the region where the disk resides. Only applicable for
|
6165
6201
|
# regional resources. You must specify this field as part of the HTTP request
|
6166
6202
|
# URL. It is not settable as a field in the request body.
|
@@ -6352,6 +6388,7 @@ module Google
|
|
6352
6388
|
@params = args[:params] if args.key?(:params)
|
6353
6389
|
@physical_block_size_bytes = args[:physical_block_size_bytes] if args.key?(:physical_block_size_bytes)
|
6354
6390
|
@provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
|
6391
|
+
@provisioned_throughput = args[:provisioned_throughput] if args.key?(:provisioned_throughput)
|
6355
6392
|
@region = args[:region] if args.key?(:region)
|
6356
6393
|
@replica_zones = args[:replica_zones] if args.key?(:replica_zones)
|
6357
6394
|
@resource_policies = args[:resource_policies] if args.key?(:resource_policies)
|
@@ -17656,7 +17693,7 @@ module Google
|
|
17656
17693
|
# @return [String]
|
17657
17694
|
attr_accessor :type
|
17658
17695
|
|
17659
|
-
# The IEEE 802.1Q VLAN tag for this attachment, in the range 2-
|
17696
|
+
# The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4093. Only
|
17660
17697
|
# specified at creation time.
|
17661
17698
|
# Corresponds to the JSON property `vlanTag8021q`
|
17662
17699
|
# @return [Fixnum]
|
@@ -34598,16 +34635,17 @@ module Google
|
|
34598
34635
|
include Google::Apis::Core::Hashable
|
34599
34636
|
|
34600
34637
|
# The Action to perform when the rule is matched. The following are the valid
|
34601
|
-
# actions: - allow: allow access to target. - deny(): deny access to
|
34602
|
-
# returns the HTTP response code specified
|
34603
|
-
# - rate_based_ban: limit client traffic to the
|
34604
|
-
# client if the traffic exceeds the threshold.
|
34605
|
-
# action in RateLimitOptions. Requires
|
34606
|
-
# redirect to a different target. This
|
34607
|
-
# redirect, or an external URL-based
|
34608
|
-
# this action can be configured via
|
34609
|
-
# traffic to the configured threshold.
|
34610
|
-
#
|
34638
|
+
# actions: - allow: allow access to target. - deny(STATUS): deny access to
|
34639
|
+
# target, returns the HTTP response code specified. Valid values for `STATUS`
|
34640
|
+
# are 403, 404, and 502. - rate_based_ban: limit client traffic to the
|
34641
|
+
# configured threshold and ban the client if the traffic exceeds the threshold.
|
34642
|
+
# Configure parameters for this action in RateLimitOptions. Requires
|
34643
|
+
# rate_limit_options to be set. - redirect: redirect to a different target. This
|
34644
|
+
# can either be an internal reCAPTCHA redirect, or an external URL-based
|
34645
|
+
# redirect via a 302 response. Parameters for this action can be configured via
|
34646
|
+
# redirectOptions. - throttle: limit client traffic to the configured threshold.
|
34647
|
+
# Configure parameters for this action in rateLimitOptions. Requires
|
34648
|
+
# rate_limit_options to be set for this.
|
34611
34649
|
# Corresponds to the JSON property `action`
|
34612
34650
|
# @return [String]
|
34613
34651
|
attr_accessor :action
|
@@ -35062,9 +35100,9 @@ module Google
|
|
35062
35100
|
|
35063
35101
|
# Action to take for requests that are above the configured rate limit threshold,
|
35064
35102
|
# to either deny with a specified HTTP response code, or redirect to a
|
35065
|
-
# different endpoint. Valid options are
|
35066
|
-
#
|
35067
|
-
# parameters come from exceedRedirectOptions below.
|
35103
|
+
# different endpoint. Valid options are `deny(STATUS)`, where valid values for `
|
35104
|
+
# STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect
|
35105
|
+
# parameters come from `exceedRedirectOptions` below.
|
35068
35106
|
# Corresponds to the JSON property `exceedAction`
|
35069
35107
|
# @return [String]
|
35070
35108
|
attr_accessor :exceed_action
|
@@ -44890,6 +44928,13 @@ module Google
|
|
44890
44928
|
# @return [String]
|
44891
44929
|
attr_accessor :id
|
44892
44930
|
|
44931
|
+
# The sensitivity value associated with the WAF rule ID. This corresponds to the
|
44932
|
+
# ModSecurity paranoia level, ranging from 1 to 4. 0 is reserved for opt-in only
|
44933
|
+
# rules.
|
44934
|
+
# Corresponds to the JSON property `sensitivity`
|
44935
|
+
# @return [Fixnum]
|
44936
|
+
attr_accessor :sensitivity
|
44937
|
+
|
44893
44938
|
def initialize(**args)
|
44894
44939
|
update!(**args)
|
44895
44940
|
end
|
@@ -44897,6 +44942,7 @@ module Google
|
|
44897
44942
|
# Update properties of this object
|
44898
44943
|
def update!(**args)
|
44899
44944
|
@id = args[:id] if args.key?(:id)
|
44945
|
+
@sensitivity = args[:sensitivity] if args.key?(:sensitivity)
|
44900
44946
|
end
|
44901
44947
|
end
|
44902
44948
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ComputeBeta
|
18
18
|
# Version of the google-apis-compute_beta gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.59.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230119"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -6347,6 +6347,7 @@ module Google
|
|
6347
6347
|
property :multi_writer, as: 'multiWriter'
|
6348
6348
|
property :on_update_action, as: 'onUpdateAction'
|
6349
6349
|
property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
|
6350
|
+
property :provisioned_throughput, :numeric_string => true, as: 'provisionedThroughput'
|
6350
6351
|
hash :resource_manager_tags, as: 'resourceManagerTags'
|
6351
6352
|
collection :resource_policies, as: 'resourcePolicies'
|
6352
6353
|
property :source_image, as: 'sourceImage'
|
@@ -6927,6 +6928,8 @@ module Google
|
|
6927
6928
|
# @private
|
6928
6929
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6929
6930
|
property :enable, as: 'enable'
|
6931
|
+
collection :optional_fields, as: 'optionalFields'
|
6932
|
+
property :optional_mode, as: 'optionalMode'
|
6930
6933
|
property :sample_rate, as: 'sampleRate'
|
6931
6934
|
end
|
6932
6935
|
end
|
@@ -7337,6 +7340,7 @@ module Google
|
|
7337
7340
|
|
7338
7341
|
property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
|
7339
7342
|
property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
|
7343
|
+
property :provisioned_throughput, :numeric_string => true, as: 'provisionedThroughput'
|
7340
7344
|
property :region, as: 'region'
|
7341
7345
|
collection :replica_zones, as: 'replicaZones'
|
7342
7346
|
collection :resource_policies, as: 'resourcePolicies'
|
@@ -16969,6 +16973,7 @@ module Google
|
|
16969
16973
|
# @private
|
16970
16974
|
class Representation < Google::Apis::Core::JsonRepresentation
|
16971
16975
|
property :id, as: 'id'
|
16976
|
+
property :sensitivity, as: 'sensitivity'
|
16972
16977
|
end
|
16973
16978
|
end
|
16974
16979
|
|
@@ -32953,6 +32953,62 @@ module Google
|
|
32953
32953
|
execute_or_queue_command(command, &block)
|
32954
32954
|
end
|
32955
32955
|
|
32956
|
+
# Modify the specified resource policy.
|
32957
|
+
# @param [String] project
|
32958
|
+
# Project ID for this request.
|
32959
|
+
# @param [String] region
|
32960
|
+
# Name of the region for this request.
|
32961
|
+
# @param [String] resource_policy
|
32962
|
+
# Id of the resource policy to patch.
|
32963
|
+
# @param [Google::Apis::ComputeBeta::ResourcePolicy] resource_policy_object
|
32964
|
+
# @param [String] request_id
|
32965
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32966
|
+
# that if you must retry your request, the server will know to ignore the
|
32967
|
+
# request if it has already been completed. For example, consider a situation
|
32968
|
+
# where you make an initial request and the request times out. If you make the
|
32969
|
+
# request again with the same request ID, the server can check if original
|
32970
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32971
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32972
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32973
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32974
|
+
# @param [String] update_mask
|
32975
|
+
# update_mask indicates fields to be updated as part of this request.
|
32976
|
+
# @param [String] fields
|
32977
|
+
# Selector specifying which fields to include in a partial response.
|
32978
|
+
# @param [String] quota_user
|
32979
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32980
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32981
|
+
# @param [String] user_ip
|
32982
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32983
|
+
# @param [Google::Apis::RequestOptions] options
|
32984
|
+
# Request-specific options
|
32985
|
+
#
|
32986
|
+
# @yield [result, err] Result & error if block supplied
|
32987
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
32988
|
+
# @yieldparam err [StandardError] error object if request failed
|
32989
|
+
#
|
32990
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
32991
|
+
#
|
32992
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32993
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32994
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32995
|
+
def patch_resource_policy(project, region, resource_policy, resource_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32996
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
|
32997
|
+
command.request_representation = Google::Apis::ComputeBeta::ResourcePolicy::Representation
|
32998
|
+
command.request_object = resource_policy_object
|
32999
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33000
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
33001
|
+
command.params['project'] = project unless project.nil?
|
33002
|
+
command.params['region'] = region unless region.nil?
|
33003
|
+
command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
|
33004
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33005
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
33006
|
+
command.query['fields'] = fields unless fields.nil?
|
33007
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33008
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33009
|
+
execute_or_queue_command(command, &block)
|
33010
|
+
end
|
33011
|
+
|
32956
33012
|
# Sets the access control policy on the specified resource. Replaces any
|
32957
33013
|
# existing policy.
|
32958
33014
|
# @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.
|
4
|
+
version: 0.59.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-01-
|
11
|
+
date: 2023-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.59.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: []
|