google-apis-compute_beta 0.30.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3411f7be30e2be1c439aa92374ed7cea7bc76a44b5175c3440d571097e07f67
4
- data.tar.gz: 72ea070d40d0b2c95b33493f9b7c096f5701567f5f915f65a4908c811dd6ca82
3
+ metadata.gz: 1c0c619469fbb47ad3d38657f9dd6e19bc88e13348b69e537bcb48726accaefa
4
+ data.tar.gz: f38dc4cb71c30a58bcfb0c4a947fb73ab25cafc62c0ae313414e87989c9627cd
5
5
  SHA512:
6
- metadata.gz: 2ef0bf91ea8461d9b62abd563eb9763723fd96ef91185d1aa069b134e58fcbecbdbfdb544f6c36b840bb831d5cba6c6c9e6f277e13a6dcaaf5da14e1f22cfd02
7
- data.tar.gz: 0217d7781280c67a7f1846dfb3f281c344ad99d70bb0fc2c72ce7f244b15d01c5c05e2580644a8277b1ae5436f4cd0767f0b76496952a321f9bc47aaba28a660
6
+ metadata.gz: 943534bd538370cfad26d22a16a791613c31d0898cf0c568e3d18727869da48fcfed124a4f0820d4d4eb1a22aeed21d343fab8f9f21080fe4fd0fb5ef631362a
7
+ data.tar.gz: 3187a2c3f8870cb28276055ff219b52a6ed034a788042df66de1ef7930ba3b7a241b4c864be52322f409b8db0152da4832be4e43a02e61dcd627d4d605f4e046
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_beta
2
2
 
3
+ ### v0.31.0 (2022-03-30)
4
+
5
+ * Regenerated from discovery document revision 20220322
6
+
3
7
  ### v0.30.0 (2022-03-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20220315
@@ -1085,6 +1085,14 @@ module Google
1085
1085
  # @return [Fixnum]
1086
1086
  attr_accessor :threads_per_core
1087
1087
 
1088
+ # The number of physical cores to expose to an instance. Multiply by the number
1089
+ # of threads per core to compute the total number of virtual CPUs to expose to
1090
+ # the instance. If unset, the number of cores is inferred from the instance's
1091
+ # nominal CPU count and the underlying platform's SMT width.
1092
+ # Corresponds to the JSON property `visibleCoreCount`
1093
+ # @return [Fixnum]
1094
+ attr_accessor :visible_core_count
1095
+
1088
1096
  def initialize(**args)
1089
1097
  update!(**args)
1090
1098
  end
@@ -1094,6 +1102,7 @@ module Google
1094
1102
  @enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
1095
1103
  @enable_uefi_networking = args[:enable_uefi_networking] if args.key?(:enable_uefi_networking)
1096
1104
  @threads_per_core = args[:threads_per_core] if args.key?(:threads_per_core)
1105
+ @visible_core_count = args[:visible_core_count] if args.key?(:visible_core_count)
1097
1106
  end
1098
1107
  end
1099
1108
 
@@ -3266,6 +3275,15 @@ module Google
3266
3275
  # @return [String]
3267
3276
  attr_accessor :load_balancing_scheme
3268
3277
 
3278
+ # A list of locality load balancing policies to be used in order of preference.
3279
+ # Either the policy or the customPolicy field should be set. Overrides any value
3280
+ # set in the localityLbPolicy field. localityLbPolicies is only supported when
3281
+ # the BackendService is referenced by a URL Map that is referenced by a target
3282
+ # gRPC proxy that has the validateForProxyless field set to true.
3283
+ # Corresponds to the JSON property `localityLbPolicies`
3284
+ # @return [Array<Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfig>]
3285
+ attr_accessor :locality_lb_policies
3286
+
3269
3287
  # The load balancing algorithm used within the scope of the locality. The
3270
3288
  # possible values are: - ROUND_ROBIN: This is a simple policy in which each
3271
3289
  # healthy backend is selected in round robin order. This is the default. -
@@ -3442,6 +3460,7 @@ module Google
3442
3460
  @id = args[:id] if args.key?(:id)
3443
3461
  @kind = args[:kind] if args.key?(:kind)
3444
3462
  @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
3463
+ @locality_lb_policies = args[:locality_lb_policies] if args.key?(:locality_lb_policies)
3445
3464
  @locality_lb_policy = args[:locality_lb_policy] if args.key?(:locality_lb_policy)
3446
3465
  @log_config = args[:log_config] if args.key?(:log_config)
3447
3466
  @max_stream_duration = args[:max_stream_duration] if args.key?(:max_stream_duration)
@@ -4108,6 +4127,88 @@ module Google
4108
4127
  end
4109
4128
  end
4110
4129
 
4130
+ # Container for either a built-in LB policy supported by gRPC or Envoy or a
4131
+ # custom one implemented by the end user.
4132
+ class BackendServiceLocalityLoadBalancingPolicyConfig
4133
+ include Google::Apis::Core::Hashable
4134
+
4135
+ # The configuration for a custom policy implemented by the user and deployed
4136
+ # with the client.
4137
+ # Corresponds to the JSON property `customPolicy`
4138
+ # @return [Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy]
4139
+ attr_accessor :custom_policy
4140
+
4141
+ # The configuration for a built-in load balancing policy.
4142
+ # Corresponds to the JSON property `policy`
4143
+ # @return [Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigPolicy]
4144
+ attr_accessor :policy
4145
+
4146
+ def initialize(**args)
4147
+ update!(**args)
4148
+ end
4149
+
4150
+ # Update properties of this object
4151
+ def update!(**args)
4152
+ @custom_policy = args[:custom_policy] if args.key?(:custom_policy)
4153
+ @policy = args[:policy] if args.key?(:policy)
4154
+ end
4155
+ end
4156
+
4157
+ # The configuration for a custom policy implemented by the user and deployed
4158
+ # with the client.
4159
+ class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
4160
+ include Google::Apis::Core::Hashable
4161
+
4162
+ # An optional, arbitrary JSON object with configuration data, understood by a
4163
+ # locally installed custom policy implementation.
4164
+ # Corresponds to the JSON property `data`
4165
+ # @return [String]
4166
+ attr_accessor :data
4167
+
4168
+ # Identifies the custom policy. The value should match the type the custom
4169
+ # implementation is registered with on the gRPC clients. It should follow
4170
+ # protocol buffer message naming conventions and include the full path (e.g.
4171
+ # myorg.CustomLbPolicy). The maximum length is 256 characters. Note that
4172
+ # specifying the same custom policy more than once for a backend is not a valid
4173
+ # configuration and will be rejected.
4174
+ # Corresponds to the JSON property `name`
4175
+ # @return [String]
4176
+ attr_accessor :name
4177
+
4178
+ def initialize(**args)
4179
+ update!(**args)
4180
+ end
4181
+
4182
+ # Update properties of this object
4183
+ def update!(**args)
4184
+ @data = args[:data] if args.key?(:data)
4185
+ @name = args[:name] if args.key?(:name)
4186
+ end
4187
+ end
4188
+
4189
+ # The configuration for a built-in load balancing policy.
4190
+ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy
4191
+ include Google::Apis::Core::Hashable
4192
+
4193
+ # The name of a locality load balancer policy to be used. The value should be
4194
+ # one of the predefined ones as supported by localityLbPolicy, although at the
4195
+ # moment only ROUND_ROBIN is supported. This field should only be populated when
4196
+ # the customPolicy field is not used. Note that specifying the same policy more
4197
+ # than once for a backend is not a valid configuration and will be rejected.
4198
+ # Corresponds to the JSON property `name`
4199
+ # @return [String]
4200
+ attr_accessor :name
4201
+
4202
+ def initialize(**args)
4203
+ update!(**args)
4204
+ end
4205
+
4206
+ # Update properties of this object
4207
+ def update!(**args)
4208
+ @name = args[:name] if args.key?(:name)
4209
+ end
4210
+ end
4211
+
4111
4212
  # The available logging options for the load balancer traffic served by this
4112
4213
  # backend service.
4113
4214
  class BackendServiceLogConfig
@@ -8359,6 +8460,12 @@ module Google
8359
8460
  # @return [Fixnum]
8360
8461
  attr_accessor :priority
8361
8462
 
8463
+ # An optional name for the rule. This field is not a unique identifier and can
8464
+ # be updated.
8465
+ # Corresponds to the JSON property `ruleName`
8466
+ # @return [String]
8467
+ attr_accessor :rule_name
8468
+
8362
8469
  # [Output Only] Calculation of the complexity of a single firewall policy rule.
8363
8470
  # Corresponds to the JSON property `ruleTupleCount`
8364
8471
  # @return [Fixnum]
@@ -8403,6 +8510,7 @@ module Google
8403
8510
  @kind = args[:kind] if args.key?(:kind)
8404
8511
  @match = args[:match] if args.key?(:match)
8405
8512
  @priority = args[:priority] if args.key?(:priority)
8513
+ @rule_name = args[:rule_name] if args.key?(:rule_name)
8406
8514
  @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count)
8407
8515
  @target_resources = args[:target_resources] if args.key?(:target_resources)
8408
8516
  @target_secure_tags = args[:target_secure_tags] if args.key?(:target_secure_tags)
@@ -8421,6 +8529,20 @@ module Google
8421
8529
  # @return [Array<String>]
8422
8530
  attr_accessor :dest_ip_ranges
8423
8531
 
8532
+ # Region codes whose IP addresses will be used to match for destination of
8533
+ # traffic. Should be specified as 2 letter country code defined as per ISO 3166
8534
+ # alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is
8535
+ # 5000.
8536
+ # Corresponds to the JSON property `destRegionCodes`
8537
+ # @return [Array<String>]
8538
+ attr_accessor :dest_region_codes
8539
+
8540
+ # Names of Network Threat Intelligence lists. The IPs in these lists will be
8541
+ # matched against traffic destination.
8542
+ # Corresponds to the JSON property `destThreatIntelligences`
8543
+ # @return [Array<String>]
8544
+ attr_accessor :dest_threat_intelligences
8545
+
8424
8546
  # Pairs of IP protocols and ports that the rule should match.
8425
8547
  # Corresponds to the JSON property `layer4Configs`
8426
8548
  # @return [Array<Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config>]
@@ -8431,6 +8553,13 @@ module Google
8431
8553
  # @return [Array<String>]
8432
8554
  attr_accessor :src_ip_ranges
8433
8555
 
8556
+ # Region codes whose IP addresses will be used to match for source of traffic.
8557
+ # Should be specified as 2 letter country code defined as per ISO 3166 alpha-2
8558
+ # country codes. ex."US" Maximum number of source region codes allowed is 5000.
8559
+ # Corresponds to the JSON property `srcRegionCodes`
8560
+ # @return [Array<String>]
8561
+ attr_accessor :src_region_codes
8562
+
8434
8563
  # List of secure tag values, which should be matched at the source of the
8435
8564
  # traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there
8436
8565
  # is no srcIpRange, this rule will be ignored. Maximum number of source tag
@@ -8439,6 +8568,12 @@ module Google
8439
8568
  # @return [Array<Google::Apis::ComputeBeta::FirewallPolicyRuleSecureTag>]
8440
8569
  attr_accessor :src_secure_tags
8441
8570
 
8571
+ # Names of Network Threat Intelligence lists. The IPs in these lists will be
8572
+ # matched against traffic source.
8573
+ # Corresponds to the JSON property `srcThreatIntelligences`
8574
+ # @return [Array<String>]
8575
+ attr_accessor :src_threat_intelligences
8576
+
8442
8577
  def initialize(**args)
8443
8578
  update!(**args)
8444
8579
  end
@@ -8446,9 +8581,13 @@ module Google
8446
8581
  # Update properties of this object
8447
8582
  def update!(**args)
8448
8583
  @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
8584
+ @dest_region_codes = args[:dest_region_codes] if args.key?(:dest_region_codes)
8585
+ @dest_threat_intelligences = args[:dest_threat_intelligences] if args.key?(:dest_threat_intelligences)
8449
8586
  @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs)
8450
8587
  @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
8588
+ @src_region_codes = args[:src_region_codes] if args.key?(:src_region_codes)
8451
8589
  @src_secure_tags = args[:src_secure_tags] if args.key?(:src_secure_tags)
8590
+ @src_threat_intelligences = args[:src_threat_intelligences] if args.key?(:src_threat_intelligences)
8452
8591
  end
8453
8592
  end
8454
8593
 
@@ -35645,7 +35784,7 @@ module Google
35645
35784
  attr_accessor :enable_flow_logs
35646
35785
  alias_method :enable_flow_logs?, :enable_flow_logs
35647
35786
 
35648
- # [Output Only] The range of external IPv6 addresses that are owned by this
35787
+ # [Output Only] The external IPv6 address range that is assigned to this
35649
35788
  # subnetwork.
35650
35789
  # Corresponds to the JSON property `externalIpv6Prefix`
35651
35790
  # @return [String]
@@ -35674,9 +35813,8 @@ module Google
35674
35813
  # @return [Fixnum]
35675
35814
  attr_accessor :id
35676
35815
 
35677
- # [Output Only] The range of internal IPv6 addresses that are owned by this
35678
- # subnetwork. Note this is for general VM to VM communication, not to be
35679
- # confused with the ipv6_cidr_range field.
35816
+ # [Output Only] The internal IPv6 address range that is assigned to this
35817
+ # subnetwork.
35680
35818
  # Corresponds to the JSON property `internalIpv6Prefix`
35681
35819
  # @return [String]
35682
35820
  attr_accessor :internal_ipv6_prefix
@@ -35693,14 +35831,12 @@ module Google
35693
35831
 
35694
35832
  # The access type of IPv6 address this subnet holds. It's immutable and can only
35695
35833
  # be specified during creation or the first time the subnet is updated into
35696
- # IPV4_IPV6 dual stack. If the ipv6_type is EXTERNAL then this subnet cannot
35697
- # enable direct path.
35834
+ # IPV4_IPV6 dual stack.
35698
35835
  # Corresponds to the JSON property `ipv6AccessType`
35699
35836
  # @return [String]
35700
35837
  attr_accessor :ipv6_access_type
35701
35838
 
35702
- # [Output Only] The range of internal IPv6 addresses that are owned by this
35703
- # subnetwork. Note this will be for private google access only eventually.
35839
+ # [Output Only] This field is for internal use.
35704
35840
  # Corresponds to the JSON property `ipv6CidrRange`
35705
35841
  # @return [String]
35706
35842
  attr_accessor :ipv6_cidr_range
@@ -35741,10 +35877,8 @@ module Google
35741
35877
  attr_accessor :private_ip_google_access
35742
35878
  alias_method :private_ip_google_access?, :private_ip_google_access
35743
35879
 
35744
- # The private IPv6 google access type for the VMs in this subnet. This is an
35745
- # expanded field of enablePrivateV6Access. If both fields are set,
35746
- # privateIpv6GoogleAccess will take priority. This field can be both set at
35747
- # resource creation time and updated using patch.
35880
+ # This field is for internal use. This field can be both set at resource
35881
+ # creation time and updated using patch.
35748
35882
  # Corresponds to the JSON property `privateIpv6GoogleAccess`
35749
35883
  # @return [String]
35750
35884
  attr_accessor :private_ipv6_google_access
@@ -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.30.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220315"
25
+ REVISION = "20220322"
26
26
  end
27
27
  end
28
28
  end
@@ -460,6 +460,24 @@ module Google
460
460
  include Google::Apis::Core::JsonObjectSupport
461
461
  end
462
462
 
463
+ class BackendServiceLocalityLoadBalancingPolicyConfig
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
469
+ class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
475
+ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
463
481
  class BackendServiceLogConfig
464
482
  class Representation < Google::Apis::Core::JsonRepresentation; end
465
483
 
@@ -5894,6 +5912,7 @@ module Google
5894
5912
  property :enable_nested_virtualization, as: 'enableNestedVirtualization'
5895
5913
  property :enable_uefi_networking, as: 'enableUefiNetworking'
5896
5914
  property :threads_per_core, as: 'threadsPerCore'
5915
+ property :visible_core_count, as: 'visibleCoreCount'
5897
5916
  end
5898
5917
  end
5899
5918
 
@@ -6363,6 +6382,8 @@ module Google
6363
6382
  property :id, :numeric_string => true, as: 'id'
6364
6383
  property :kind, as: 'kind'
6365
6384
  property :load_balancing_scheme, as: 'loadBalancingScheme'
6385
+ collection :locality_lb_policies, as: 'localityLbPolicies', class: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfig::Representation
6386
+
6366
6387
  property :locality_lb_policy, as: 'localityLbPolicy'
6367
6388
  property :log_config, as: 'logConfig', class: Google::Apis::ComputeBeta::BackendServiceLogConfig, decorator: Google::Apis::ComputeBeta::BackendServiceLogConfig::Representation
6368
6389
 
@@ -6528,6 +6549,31 @@ module Google
6528
6549
  end
6529
6550
  end
6530
6551
 
6552
+ class BackendServiceLocalityLoadBalancingPolicyConfig
6553
+ # @private
6554
+ class Representation < Google::Apis::Core::JsonRepresentation
6555
+ property :custom_policy, as: 'customPolicy', class: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy::Representation
6556
+
6557
+ property :policy, as: 'policy', class: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigPolicy, decorator: Google::Apis::ComputeBeta::BackendServiceLocalityLoadBalancingPolicyConfigPolicy::Representation
6558
+
6559
+ end
6560
+ end
6561
+
6562
+ class BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
6563
+ # @private
6564
+ class Representation < Google::Apis::Core::JsonRepresentation
6565
+ property :data, as: 'data'
6566
+ property :name, as: 'name'
6567
+ end
6568
+ end
6569
+
6570
+ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy
6571
+ # @private
6572
+ class Representation < Google::Apis::Core::JsonRepresentation
6573
+ property :name, as: 'name'
6574
+ end
6575
+ end
6576
+
6531
6577
  class BackendServiceLogConfig
6532
6578
  # @private
6533
6579
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7519,6 +7565,7 @@ module Google
7519
7565
  property :match, as: 'match', class: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcher, decorator: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcher::Representation
7520
7566
 
7521
7567
  property :priority, as: 'priority'
7568
+ property :rule_name, as: 'ruleName'
7522
7569
  property :rule_tuple_count, as: 'ruleTupleCount'
7523
7570
  collection :target_resources, as: 'targetResources'
7524
7571
  collection :target_secure_tags, as: 'targetSecureTags', class: Google::Apis::ComputeBeta::FirewallPolicyRuleSecureTag, decorator: Google::Apis::ComputeBeta::FirewallPolicyRuleSecureTag::Representation
@@ -7531,11 +7578,15 @@ module Google
7531
7578
  # @private
7532
7579
  class Representation < Google::Apis::Core::JsonRepresentation
7533
7580
  collection :dest_ip_ranges, as: 'destIpRanges'
7581
+ collection :dest_region_codes, as: 'destRegionCodes'
7582
+ collection :dest_threat_intelligences, as: 'destThreatIntelligences'
7534
7583
  collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config::Representation
7535
7584
 
7536
7585
  collection :src_ip_ranges, as: 'srcIpRanges'
7586
+ collection :src_region_codes, as: 'srcRegionCodes'
7537
7587
  collection :src_secure_tags, as: 'srcSecureTags', class: Google::Apis::ComputeBeta::FirewallPolicyRuleSecureTag, decorator: Google::Apis::ComputeBeta::FirewallPolicyRuleSecureTag::Representation
7538
7588
 
7589
+ collection :src_threat_intelligences, as: 'srcThreatIntelligences'
7539
7590
  end
7540
7591
  end
7541
7592
 
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.30.0
4
+ version: 0.31.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-03-28 00:00:00.000000000 Z
11
+ date: 2022-04-04 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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.31.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: []