google-apis-compute_v1 0.65.0 → 0.66.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: b0420f4810c9ad29bcafe49bd900cac22a6714fd20626ee3e3a0c2201efd58bc
4
- data.tar.gz: 95c90da514115309ec234ef9c8275466d6d066661d9aa5096e204cb1848e313f
3
+ metadata.gz: 379d7ed4cccecc834051822de3f6e421fed150950e17264e5b33355bd1358007
4
+ data.tar.gz: d695c9ac4ebf0335668565e7dd094f2b6eedf0748dd54561822fdc643ce0f6ff
5
5
  SHA512:
6
- metadata.gz: 31aa4d0fd2a3a979f5222e60a8f77bd109a8178f9e985402eef61fc9c5618b9864c62e1647475c2d8902de93d943b9d6e02b784c66050a54dd39008d5e04be4f
7
- data.tar.gz: f93fddffe81062568f988c218d2dcef84dd8bd87f67228b44b5c1039fbbdfa75a8b3156519e6a65b617add2fcecbf02f0b4b74c2e5645bd0127aabb511e0aae8
6
+ metadata.gz: 237a43853c6740c2d77c5d365fbf3f1faafc3b9d6bf70ae77a6c60ac2cff4815be44a448c7b8c4d3c5deed27650bb83f707fae845ec505f3f6cb0f57626dc204
7
+ data.tar.gz: 4a2ee019955b5b979f90c8af38059d35613a28eec787c2dad673109c026041ac78759b6355ae800662bfa90b3cef65f75f94376376488b5f97a68c8b876bf747
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.66.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230403
6
+
3
7
  ### v0.65.0 (2023-04-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20230322
@@ -1526,6 +1526,14 @@ module Google
1526
1526
  # @return [Fixnum]
1527
1527
  attr_accessor :provisioned_iops
1528
1528
 
1529
+ # Required for each regional disk associated with the instance. Specify the URLs
1530
+ # of the zones where the disk should be replicated to. You must provide exactly
1531
+ # two replica zones, and one zone must be the same as the instance zone. You can'
1532
+ # t use this option with boot disks.
1533
+ # Corresponds to the JSON property `replicaZones`
1534
+ # @return [Array<String>]
1535
+ attr_accessor :replica_zones
1536
+
1529
1537
  # Resource manager tags to be bound to the disk. Tag keys and values have the
1530
1538
  # same definition as resource manager tags. Keys must be in the format `tagKeys/`
1531
1539
  # tag_key_id``, and values are in the format `tagValues/456`. The field is
@@ -1597,6 +1605,7 @@ module Google
1597
1605
  @licenses = args[:licenses] if args.key?(:licenses)
1598
1606
  @on_update_action = args[:on_update_action] if args.key?(:on_update_action)
1599
1607
  @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
1608
+ @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
1600
1609
  @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
1601
1610
  @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
1602
1611
  @source_image = args[:source_image] if args.key?(:source_image)
@@ -8816,6 +8825,13 @@ module Google
8816
8825
  attr_accessor :allow_global_access
8817
8826
  alias_method :allow_global_access?, :allow_global_access
8818
8827
 
8828
+ # This is used in PSC consumer ForwardingRule to control whether the PSC
8829
+ # endpoint can be accessed from another region.
8830
+ # Corresponds to the JSON property `allowPscGlobalAccess`
8831
+ # @return [Boolean]
8832
+ attr_accessor :allow_psc_global_access
8833
+ alias_method :allow_psc_global_access?, :allow_psc_global_access
8834
+
8819
8835
  # Identifies the backend service to which the forwarding rule sends traffic.
8820
8836
  # Required for Internal TCP/UDP Load Balancing and Network Load Balancing; must
8821
8837
  # be omitted for all other load balancer types.
@@ -8941,9 +8957,11 @@ module Google
8941
8957
 
8942
8958
  # This field is not used for external load balancing. For Internal TCP/UDP Load
8943
8959
  # Balancing, this field identifies the network that the load balanced IP should
8944
- # belong to for this Forwarding Rule. If this field is not specified, the
8945
- # default network will be used. For Private Service Connect forwarding rules
8946
- # that forward traffic to Google APIs, a network must be provided.
8960
+ # belong to for this Forwarding Rule. If the subnetwork is specified, the
8961
+ # network of the subnetwork will be used. If neither subnetwork nor this field
8962
+ # is specified, the default network will be used. For Private Service Connect
8963
+ # forwarding rules that forward traffic to Google APIs, a network must be
8964
+ # provided.
8947
8965
  # Corresponds to the JSON property `network`
8948
8966
  # @return [String]
8949
8967
  attr_accessor :network
@@ -9090,6 +9108,7 @@ module Google
9090
9108
  @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
9091
9109
  @all_ports = args[:all_ports] if args.key?(:all_ports)
9092
9110
  @allow_global_access = args[:allow_global_access] if args.key?(:allow_global_access)
9111
+ @allow_psc_global_access = args[:allow_psc_global_access] if args.key?(:allow_psc_global_access)
9093
9112
  @backend_service = args[:backend_service] if args.key?(:backend_service)
9094
9113
  @base_forwarding_rule = args[:base_forwarding_rule] if args.key?(:base_forwarding_rule)
9095
9114
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@@ -20532,7 +20551,7 @@ module Google
20532
20551
  # @return [String]
20533
20552
  attr_accessor :project_id_or_num
20534
20553
 
20535
- # Alias IP ranges from the same subnetwork
20554
+ # Alias IP ranges from the same subnetwork.
20536
20555
  # Corresponds to the JSON property `secondaryIpCidrRanges`
20537
20556
  # @return [Array<String>]
20538
20557
  attr_accessor :secondary_ip_cidr_ranges
@@ -33238,7 +33257,8 @@ module Google
33238
33257
  class SecurityPolicyAdaptiveProtectionConfig
33239
33258
  include Google::Apis::Core::Hashable
33240
33259
 
33241
- # Configuration options for L7 DDoS detection.
33260
+ # Configuration options for L7 DDoS detection. This field is only supported in
33261
+ # Global Security Policies of type CLOUD_ARMOR.
33242
33262
  # Corresponds to the JSON property `layer7DdosDefenseConfig`
33243
33263
  # @return [Google::Apis::ComputeV1::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig]
33244
33264
  attr_accessor :layer7_ddos_defense_config
@@ -33253,18 +33273,21 @@ module Google
33253
33273
  end
33254
33274
  end
33255
33275
 
33256
- # Configuration options for L7 DDoS detection.
33276
+ # Configuration options for L7 DDoS detection. This field is only supported in
33277
+ # Global Security Policies of type CLOUD_ARMOR.
33257
33278
  class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig
33258
33279
  include Google::Apis::Core::Hashable
33259
33280
 
33260
- # If set to true, enables CAAP for L7 DDoS detection.
33281
+ # If set to true, enables CAAP for L7 DDoS detection. This field is only
33282
+ # supported in Global Security Policies of type CLOUD_ARMOR.
33261
33283
  # Corresponds to the JSON property `enable`
33262
33284
  # @return [Boolean]
33263
33285
  attr_accessor :enable
33264
33286
  alias_method :enable?, :enable
33265
33287
 
33266
33288
  # Rule visibility can be one of the following: STANDARD - opaque rules. (default)
33267
- # PREMIUM - transparent rules.
33289
+ # PREMIUM - transparent rules. This field is only supported in Global Security
33290
+ # Policies of type CLOUD_ARMOR.
33268
33291
  # Corresponds to the JSON property `ruleVisibility`
33269
33292
  # @return [String]
33270
33293
  attr_accessor :rule_visibility
@@ -33474,7 +33497,8 @@ module Google
33474
33497
  # using the redirect action with the type of GOOGLE_RECAPTCHA under the security
33475
33498
  # policy. The specified site key needs to be created from the reCAPTCHA API. The
33476
33499
  # user is responsible for the validity of the specified site key. If not
33477
- # specified, a Google-managed site key is used.
33500
+ # specified, a Google-managed site key is used. This field is only supported in
33501
+ # Global Security Policies of type CLOUD_ARMOR.
33478
33502
  # Corresponds to the JSON property `redirectSiteKey`
33479
33503
  # @return [String]
33480
33504
  attr_accessor :redirect_site_key
@@ -33522,7 +33546,8 @@ module Google
33522
33546
  # rate_limit_options to be set. - redirect: redirect to a different target. This
33523
33547
  # can either be an internal reCAPTCHA redirect, or an external URL-based
33524
33548
  # redirect via a 302 response. Parameters for this action can be configured via
33525
- # redirectOptions. - throttle: limit client traffic to the configured threshold.
33549
+ # redirectOptions. This action is only supported in Global Security Policies of
33550
+ # type CLOUD_ARMOR. - throttle: limit client traffic to the configured threshold.
33526
33551
  # Configure parameters for this action in rateLimitOptions. Requires
33527
33552
  # rate_limit_options to be set for this.
33528
33553
  # Corresponds to the JSON property `action`
@@ -33535,7 +33560,8 @@ module Google
33535
33560
  # @return [String]
33536
33561
  attr_accessor :description
33537
33562
 
33538
- # Optional, additional actions that are performed on headers.
33563
+ # Optional, additional actions that are performed on headers. This field is only
33564
+ # supported in Global Security Policies of type CLOUD_ARMOR.
33539
33565
  # Corresponds to the JSON property `headerAction`
33540
33566
  # @return [Google::Apis::ComputeV1::SecurityPolicyRuleHttpHeaderAction]
33541
33567
  attr_accessor :header_action
@@ -33580,7 +33606,8 @@ module Google
33580
33606
  attr_accessor :rate_limit_options
33581
33607
 
33582
33608
  # Parameters defining the redirect action. Cannot be specified for any other
33583
- # actions.
33609
+ # actions. This field is only supported in Global Security Policies of type
33610
+ # CLOUD_ARMOR.
33584
33611
  # Corresponds to the JSON property `redirectOptions`
33585
33612
  # @return [Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions]
33586
33613
  attr_accessor :redirect_options
@@ -33867,6 +33894,14 @@ module Google
33867
33894
  # @return [String]
33868
33895
  attr_accessor :enforce_on_key
33869
33896
 
33897
+ # If specified, any combination of values of enforce_on_key_type/
33898
+ # enforce_on_key_name is treated as the key on which ratelimit threshold/action
33899
+ # is enforced. You can specify up to 3 enforce_on_key_configs. If
33900
+ # enforce_on_key_configs is specified, enforce_on_key must not be specified.
33901
+ # Corresponds to the JSON property `enforceOnKeyConfigs`
33902
+ # @return [Array<Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig>]
33903
+ attr_accessor :enforce_on_key_configs
33904
+
33870
33905
  # Rate limit key name applicable only for the following key types: HTTP_HEADER --
33871
33906
  # Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE --
33872
33907
  # Name of the HTTP cookie whose value is taken as the key value.
@@ -33878,13 +33913,15 @@ module Google
33878
33913
  # to either deny with a specified HTTP response code, or redirect to a
33879
33914
  # different endpoint. Valid options are `deny(STATUS)`, where valid values for `
33880
33915
  # STATUS` are 403, 404, 429, and 502, and `redirect`, where the redirect
33881
- # parameters come from `exceedRedirectOptions` below.
33916
+ # parameters come from `exceedRedirectOptions` below. The `redirect` action is
33917
+ # only supported in Global Security Policies of type CLOUD_ARMOR.
33882
33918
  # Corresponds to the JSON property `exceedAction`
33883
33919
  # @return [String]
33884
33920
  attr_accessor :exceed_action
33885
33921
 
33886
33922
  # Parameters defining the redirect action that is used as the exceed action.
33887
- # Cannot be specified if the exceed action is not redirect.
33923
+ # Cannot be specified if the exceed action is not redirect. This field is only
33924
+ # supported in Global Security Policies of type CLOUD_ARMOR.
33888
33925
  # Corresponds to the JSON property `exceedRedirectOptions`
33889
33926
  # @return [Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions]
33890
33927
  attr_accessor :exceed_redirect_options
@@ -33904,6 +33941,7 @@ module Google
33904
33941
  @ban_threshold = args[:ban_threshold] if args.key?(:ban_threshold)
33905
33942
  @conform_action = args[:conform_action] if args.key?(:conform_action)
33906
33943
  @enforce_on_key = args[:enforce_on_key] if args.key?(:enforce_on_key)
33944
+ @enforce_on_key_configs = args[:enforce_on_key_configs] if args.key?(:enforce_on_key_configs)
33907
33945
  @enforce_on_key_name = args[:enforce_on_key_name] if args.key?(:enforce_on_key_name)
33908
33946
  @exceed_action = args[:exceed_action] if args.key?(:exceed_action)
33909
33947
  @exceed_redirect_options = args[:exceed_redirect_options] if args.key?(:exceed_redirect_options)
@@ -33911,6 +33949,51 @@ module Google
33911
33949
  end
33912
33950
  end
33913
33951
 
33952
+ #
33953
+ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
33954
+ include Google::Apis::Core::Hashable
33955
+
33956
+ # Rate limit key name applicable only for the following key types: HTTP_HEADER --
33957
+ # Name of the HTTP header whose value is taken as the key value. HTTP_COOKIE --
33958
+ # Name of the HTTP cookie whose value is taken as the key value.
33959
+ # Corresponds to the JSON property `enforceOnKeyName`
33960
+ # @return [String]
33961
+ attr_accessor :enforce_on_key_name
33962
+
33963
+ # Determines the key to enforce the rate_limit_threshold on. Possible values are:
33964
+ # - ALL: A single rate limit threshold is applied to all the requests matching
33965
+ # this rule. This is the default value if "enforceOnKeyConfigs" is not
33966
+ # configured. - IP: The source IP address of the request is the key. Each IP has
33967
+ # this limit enforced separately. - HTTP_HEADER: The value of the HTTP header
33968
+ # whose name is configured under "enforceOnKeyName". The key value is truncated
33969
+ # to the first 128 bytes of the header value. If no such header is present in
33970
+ # the request, the key type defaults to ALL. - XFF_IP: The first IP address (i.e.
33971
+ # the originating client IP address) specified in the list of IPs under X-
33972
+ # Forwarded-For HTTP header. If no such header is present or the value is not a
33973
+ # valid IP, the key defaults to the source IP address of the request i.e. key
33974
+ # type IP. - HTTP_COOKIE: The value of the HTTP cookie whose name is configured
33975
+ # under "enforceOnKeyName". The key value is truncated to the first 128 bytes of
33976
+ # the cookie value. If no such cookie is present in the request, the key type
33977
+ # defaults to ALL. - HTTP_PATH: The URL path of the HTTP request. The key value
33978
+ # is truncated to the first 128 bytes. - SNI: Server name indication in the TLS
33979
+ # session of the HTTPS request. The key value is truncated to the first 128
33980
+ # bytes. The key type defaults to ALL on a HTTP session. - REGION_CODE: The
33981
+ # country/region from which the request originates.
33982
+ # Corresponds to the JSON property `enforceOnKeyType`
33983
+ # @return [String]
33984
+ attr_accessor :enforce_on_key_type
33985
+
33986
+ def initialize(**args)
33987
+ update!(**args)
33988
+ end
33989
+
33990
+ # Update properties of this object
33991
+ def update!(**args)
33992
+ @enforce_on_key_name = args[:enforce_on_key_name] if args.key?(:enforce_on_key_name)
33993
+ @enforce_on_key_type = args[:enforce_on_key_type] if args.key?(:enforce_on_key_type)
33994
+ end
33995
+ end
33996
+
33914
33997
  #
33915
33998
  class SecurityPolicyRuleRateLimitOptionsThreshold
33916
33999
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeV1
18
18
  # Version of the google-apis-compute_v1 gem
19
- GEM_VERSION = "0.65.0"
19
+ GEM_VERSION = "0.66.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230322"
25
+ REVISION = "20230403"
26
26
  end
27
27
  end
28
28
  end
@@ -4414,6 +4414,12 @@ module Google
4414
4414
  include Google::Apis::Core::JsonObjectSupport
4415
4415
  end
4416
4416
 
4417
+ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
4418
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4419
+
4420
+ include Google::Apis::Core::JsonObjectSupport
4421
+ end
4422
+
4417
4423
  class SecurityPolicyRuleRateLimitOptionsThreshold
4418
4424
  class Representation < Google::Apis::Core::JsonRepresentation; end
4419
4425
 
@@ -6154,6 +6160,7 @@ module Google
6154
6160
  collection :licenses, as: 'licenses'
6155
6161
  property :on_update_action, as: 'onUpdateAction'
6156
6162
  property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
6163
+ collection :replica_zones, as: 'replicaZones'
6157
6164
  hash :resource_manager_tags, as: 'resourceManagerTags'
6158
6165
  collection :resource_policies, as: 'resourcePolicies'
6159
6166
  property :source_image, as: 'sourceImage'
@@ -7783,6 +7790,7 @@ module Google
7783
7790
  property :ip_protocol, as: 'IPProtocol'
7784
7791
  property :all_ports, as: 'allPorts'
7785
7792
  property :allow_global_access, as: 'allowGlobalAccess'
7793
+ property :allow_psc_global_access, as: 'allowPscGlobalAccess'
7786
7794
  property :backend_service, as: 'backendService'
7787
7795
  property :base_forwarding_rule, as: 'baseForwardingRule'
7788
7796
  property :creation_timestamp, as: 'creationTimestamp'
@@ -14065,6 +14073,8 @@ module Google
14065
14073
 
14066
14074
  property :conform_action, as: 'conformAction'
14067
14075
  property :enforce_on_key, as: 'enforceOnKey'
14076
+ collection :enforce_on_key_configs, as: 'enforceOnKeyConfigs', class: Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig::Representation
14077
+
14068
14078
  property :enforce_on_key_name, as: 'enforceOnKeyName'
14069
14079
  property :exceed_action, as: 'exceedAction'
14070
14080
  property :exceed_redirect_options, as: 'exceedRedirectOptions', class: Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions, decorator: Google::Apis::ComputeV1::SecurityPolicyRuleRedirectOptions::Representation
@@ -14074,6 +14084,14 @@ module Google
14074
14084
  end
14075
14085
  end
14076
14086
 
14087
+ class SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
14088
+ # @private
14089
+ class Representation < Google::Apis::Core::JsonRepresentation
14090
+ property :enforce_on_key_name, as: 'enforceOnKeyName'
14091
+ property :enforce_on_key_type, as: 'enforceOnKeyType'
14092
+ end
14093
+ end
14094
+
14077
14095
  class SecurityPolicyRuleRateLimitOptionsThreshold
14078
14096
  # @private
14079
14097
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -30716,6 +30716,10 @@ module Google
30716
30716
  # of available results is larger than `maxResults`, Compute Engine returns a `
30717
30717
  # nextPageToken` that can be used to get the next page of results in subsequent
30718
30718
  # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30719
+ # @param [String] nat_name
30720
+ # Name of the nat service to filter the Nat Mapping information. If it is
30721
+ # omitted, all nats for this router will be returned. Name should conform to
30722
+ # RFC1035.
30719
30723
  # @param [String] order_by
30720
30724
  # Sorts list results by a certain order. By default, results are returned in
30721
30725
  # alphanumerical order based on the resource name. You can also sort results in
@@ -30749,7 +30753,7 @@ module Google
30749
30753
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30750
30754
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30751
30755
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30752
- def get_router_nat_mapping_info(project, region, router, 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)
30756
+ def get_router_nat_mapping_info(project, region, router, filter: nil, max_results: nil, nat_name: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30753
30757
  command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo', options)
30754
30758
  command.response_representation = Google::Apis::ComputeV1::VmEndpointNatMappingsList::Representation
30755
30759
  command.response_class = Google::Apis::ComputeV1::VmEndpointNatMappingsList
@@ -30758,6 +30762,7 @@ module Google
30758
30762
  command.params['router'] = router unless router.nil?
30759
30763
  command.query['filter'] = filter unless filter.nil?
30760
30764
  command.query['maxResults'] = max_results unless max_results.nil?
30765
+ command.query['natName'] = nat_name unless nat_name.nil?
30761
30766
  command.query['orderBy'] = order_by unless order_by.nil?
30762
30767
  command.query['pageToken'] = page_token unless page_token.nil?
30763
30768
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.66.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-04-02 00:00:00.000000000 Z
11
+ date: 2023-04-16 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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.65.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.66.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []