google-apis-compute_beta 0.8.0 → 0.9.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: 9b87476b50fc20714995b90ed9c0e60aaeca8a38f649d38c2150119c6746e746
4
- data.tar.gz: 5d7ff87732fb1a641ae79f5f683ba66c18b33bc5048e15a6ef4177c72d6f610f
3
+ metadata.gz: ddd7488ab673fba76c65083cab940d4e6a2db83c2b94809b599248ab7d68bf49
4
+ data.tar.gz: 96d1013193b78e8501bc6b2a5316efe63e732e5a566edbee423f643178886312
5
5
  SHA512:
6
- metadata.gz: a350bc3e15ef55bcb053789287bd6c694c1dc71b8b870f12b53bd09f3e19870a804675dde99d2ea669e0e8b5ac4375b8b7c48a3faefc44876604c881c957407f
7
- data.tar.gz: 71b612bb64cbc55b3cbbcbe24e60bf5cfb927bd89173b9249708537321dc2bb52c5a2a321b51dcd625d27b22d28316d250c8a43d9196e96138921d97480b7d6c
6
+ metadata.gz: 8d6d862705118b761703e90a63de2e694d69762758053cb75a251aef412961f0102835489618890626e1236a8a147a4f76f646e878b7427a8e0b1f4a6125f9ec
7
+ data.tar.gz: c6a6da29af2b3564d031aa1bec0359962d0ddb2883f525217c0e43913cd88e1afe20bb5e4b6c05f3260d0abc7bb070a0e1842355cc1a4a41b956ad01812453f6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_beta
2
2
 
3
+ ### v0.9.0 (2021-05-05)
4
+
5
+ * Regenerated from discovery document revision 20210415
6
+
3
7
  ### v0.8.0 (2021-03-30)
4
8
 
5
9
  * Regenerated from discovery document revision 20210316
@@ -1063,6 +1063,13 @@ module Google
1063
1063
  attr_accessor :enable_nested_virtualization
1064
1064
  alias_method :enable_nested_virtualization?, :enable_nested_virtualization
1065
1065
 
1066
+ # The number of threads per physical core. To disable simultaneous
1067
+ # multithreading (SMT) set this to 1. If unset, the maximum number of threads
1068
+ # supported per core by the underlying processor is assumed.
1069
+ # Corresponds to the JSON property `threadsPerCore`
1070
+ # @return [Fixnum]
1071
+ attr_accessor :threads_per_core
1072
+
1066
1073
  def initialize(**args)
1067
1074
  update!(**args)
1068
1075
  end
@@ -1070,6 +1077,7 @@ module Google
1070
1077
  # Update properties of this object
1071
1078
  def update!(**args)
1072
1079
  @enable_nested_virtualization = args[:enable_nested_virtualization] if args.key?(:enable_nested_virtualization)
1080
+ @threads_per_core = args[:threads_per_core] if args.key?(:threads_per_core)
1073
1081
  end
1074
1082
  end
1075
1083
 
@@ -1158,6 +1166,18 @@ module Google
1158
1166
  # @return [String]
1159
1167
  attr_accessor :machine_type
1160
1168
 
1169
+ # Specifies the number of hours after reservation creation where instances using
1170
+ # the reservation won't be scheduled for maintenance.
1171
+ # Corresponds to the JSON property `maintenanceFreezeDurationHours`
1172
+ # @return [Fixnum]
1173
+ attr_accessor :maintenance_freeze_duration_hours
1174
+
1175
+ # For more information about maintenance intervals, see Setting maintenance
1176
+ # intervals.
1177
+ # Corresponds to the JSON property `maintenanceInterval`
1178
+ # @return [String]
1179
+ attr_accessor :maintenance_interval
1180
+
1161
1181
  # Minimum cpu platform the reservation.
1162
1182
  # Corresponds to the JSON property `minCpuPlatform`
1163
1183
  # @return [String]
@@ -1173,6 +1193,8 @@ module Google
1173
1193
  @local_ssds = args[:local_ssds] if args.key?(:local_ssds)
1174
1194
  @location_hint = args[:location_hint] if args.key?(:location_hint)
1175
1195
  @machine_type = args[:machine_type] if args.key?(:machine_type)
1196
+ @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours)
1197
+ @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval)
1176
1198
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
1177
1199
  end
1178
1200
  end
@@ -2719,6 +2741,12 @@ module Google
2719
2741
  # @return [Array<Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader>]
2720
2742
  attr_accessor :bypass_cache_on_request_headers
2721
2743
 
2744
+ # Message containing what to include in the cache key for a request for Cloud
2745
+ # CDN.
2746
+ # Corresponds to the JSON property `cacheKeyPolicy`
2747
+ # @return [Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy]
2748
+ attr_accessor :cache_key_policy
2749
+
2722
2750
  # Specifies the cache setting for all responses from this backend. The possible
2723
2751
  # values are:
2724
2752
  # USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache
@@ -2843,6 +2871,7 @@ module Google
2843
2871
  # Update properties of this object
2844
2872
  def update!(**args)
2845
2873
  @bypass_cache_on_request_headers = args[:bypass_cache_on_request_headers] if args.key?(:bypass_cache_on_request_headers)
2874
+ @cache_key_policy = args[:cache_key_policy] if args.key?(:cache_key_policy)
2846
2875
  @cache_mode = args[:cache_mode] if args.key?(:cache_mode)
2847
2876
  @client_ttl = args[:client_ttl] if args.key?(:client_ttl)
2848
2877
  @default_ttl = args[:default_ttl] if args.key?(:default_ttl)
@@ -2878,6 +2907,34 @@ module Google
2878
2907
  end
2879
2908
  end
2880
2909
 
2910
+ # Message containing what to include in the cache key for a request for Cloud
2911
+ # CDN.
2912
+ class BackendBucketCdnPolicyCacheKeyPolicy
2913
+ include Google::Apis::Core::Hashable
2914
+
2915
+ # Allows HTTP request headers (by name) to be used in the cache key.
2916
+ # Corresponds to the JSON property `includeHttpHeaders`
2917
+ # @return [Array<String>]
2918
+ attr_accessor :include_http_headers
2919
+
2920
+ # Names of query string parameters to include in cache keys. All other
2921
+ # parameters will be excluded. '&' and '=' will be percent encoded and not
2922
+ # treated as delimiters.
2923
+ # Corresponds to the JSON property `queryStringWhitelist`
2924
+ # @return [Array<String>]
2925
+ attr_accessor :query_string_whitelist
2926
+
2927
+ def initialize(**args)
2928
+ update!(**args)
2929
+ end
2930
+
2931
+ # Update properties of this object
2932
+ def update!(**args)
2933
+ @include_http_headers = args[:include_http_headers] if args.key?(:include_http_headers)
2934
+ @query_string_whitelist = args[:query_string_whitelist] if args.key?(:query_string_whitelist)
2935
+ end
2936
+ end
2937
+
2881
2938
  # Specify CDN TTLs for response error codes.
2882
2939
  class BackendBucketCdnPolicyNegativeCachingPolicy
2883
2940
  include Google::Apis::Core::Hashable
@@ -3312,7 +3369,8 @@ module Google
3312
3369
  # @return [String]
3313
3370
  attr_accessor :session_affinity
3314
3371
 
3315
- # Subsetting options to make L4 ILB support any number of backend instances
3372
+ # Subsetting configuration for this BackendService. Currently this is applicable
3373
+ # only for Internal TCP/UDP load balancing and Internal HTTP(S) load balancing.
3316
3374
  # Corresponds to the JSON property `subsetting`
3317
3375
  # @return [Google::Apis::ComputeBeta::Subsetting]
3318
3376
  attr_accessor :subsetting
@@ -4492,16 +4550,17 @@ module Google
4492
4550
 
4493
4551
  # The minimum number of instances to create. If no min_count is specified then
4494
4552
  # count is used as the default value. If min_count instances cannot be created,
4495
- # then no instances will be created.
4553
+ # then no instances will be created and instances already created will be
4554
+ # deleted.
4496
4555
  # Corresponds to the JSON property `minCount`
4497
4556
  # @return [Fixnum]
4498
4557
  attr_accessor :min_count
4499
4558
 
4500
4559
  # The string pattern used for the names of the VMs. Either name_pattern or
4501
- # predefined_names must be set. The pattern should contain one consecutive
4560
+ # per_instance_properties must be set. The pattern should contain one continuous
4502
4561
  # sequence of placeholder hash characters (#) with each character corresponding
4503
4562
  # to one digit of the generated instance name. Example: name_pattern of inst-####
4504
- # will generate instance names like inst-0001, inst-0002, ... . If there
4563
+ # will generate instance names such as inst-0001, inst-0002, ... . If there
4505
4564
  # already exist instance(s) whose names match the name pattern in the same
4506
4565
  # project and zone, then the generated instance numbers will start after the
4507
4566
  # biggest existing number. For example, if there exists an instance with name
@@ -4606,6 +4665,17 @@ module Google
4606
4665
  attr_accessor :include_host
4607
4666
  alias_method :include_host?, :include_host
4608
4667
 
4668
+ # Allows HTTP request headers (by name) to be used in the cache key.
4669
+ # Corresponds to the JSON property `includeHttpHeaders`
4670
+ # @return [Array<String>]
4671
+ attr_accessor :include_http_headers
4672
+
4673
+ # Allows HTTP cookies (by name) to be used in the cache key. The name=value pair
4674
+ # will be used in the cache key Cloud CDN generates.
4675
+ # Corresponds to the JSON property `includeNamedCookies`
4676
+ # @return [Array<String>]
4677
+ attr_accessor :include_named_cookies
4678
+
4609
4679
  # If true, http and https requests will be cached separately.
4610
4680
  # Corresponds to the JSON property `includeProtocol`
4611
4681
  # @return [Boolean]
@@ -4644,6 +4714,8 @@ module Google
4644
4714
  # Update properties of this object
4645
4715
  def update!(**args)
4646
4716
  @include_host = args[:include_host] if args.key?(:include_host)
4717
+ @include_http_headers = args[:include_http_headers] if args.key?(:include_http_headers)
4718
+ @include_named_cookies = args[:include_named_cookies] if args.key?(:include_named_cookies)
4647
4719
  @include_protocol = args[:include_protocol] if args.key?(:include_protocol)
4648
4720
  @include_query_string = args[:include_query_string] if args.key?(:include_query_string)
4649
4721
  @query_string_blacklist = args[:query_string_blacklist] if args.key?(:query_string_blacklist)
@@ -8209,17 +8281,6 @@ module Google
8209
8281
  # @return [Array<String>]
8210
8282
  attr_accessor :target_resources
8211
8283
 
8212
- # A list of secure labels that controls which instances the firewall rule
8213
- # applies to. If targetSecureLabel are specified, then the firewall rule applies
8214
- # only to instances in the VPC network that have one of those secure labels.
8215
- # targetSecureLabel may not be set at the same time as targetServiceAccounts. If
8216
- # neither targetServiceAccounts nor targetSecureLabel are specified, the
8217
- # firewall rule applies to all instances on the specified network. Maximum
8218
- # number of target label values allowed is 256.
8219
- # Corresponds to the JSON property `targetSecureLabels`
8220
- # @return [Array<String>]
8221
- attr_accessor :target_secure_labels
8222
-
8223
8284
  # A list of service accounts indicating the sets of instances that are applied
8224
8285
  # with this rule.
8225
8286
  # Corresponds to the JSON property `targetServiceAccounts`
@@ -8242,7 +8303,6 @@ module Google
8242
8303
  @priority = args[:priority] if args.key?(:priority)
8243
8304
  @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count)
8244
8305
  @target_resources = args[:target_resources] if args.key?(:target_resources)
8245
- @target_secure_labels = args[:target_secure_labels] if args.key?(:target_secure_labels)
8246
8306
  @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts)
8247
8307
  end
8248
8308
  end
@@ -8268,12 +8328,6 @@ module Google
8268
8328
  # @return [Array<String>]
8269
8329
  attr_accessor :src_ip_ranges
8270
8330
 
8271
- # List of firewall label values, which should be matched at the source of the
8272
- # traffic. Maximum number of source label values allowed is 256.
8273
- # Corresponds to the JSON property `srcSecureLabels`
8274
- # @return [Array<String>]
8275
- attr_accessor :src_secure_labels
8276
-
8277
8331
  def initialize(**args)
8278
8332
  update!(**args)
8279
8333
  end
@@ -8283,7 +8337,6 @@ module Google
8283
8337
  @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
8284
8338
  @layer4_configs = args[:layer4_configs] if args.key?(:layer4_configs)
8285
8339
  @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
8286
- @src_secure_labels = args[:src_secure_labels] if args.key?(:src_secure_labels)
8287
8340
  end
8288
8341
  end
8289
8342
 
@@ -13932,6 +13985,17 @@ module Google
13932
13985
  # @return [String]
13933
13986
  attr_accessor :minimal_action
13934
13987
 
13988
+ # Most disruptive action that is allowed to be taken on an instance. You can
13989
+ # specify either NONE to forbid any actions, REFRESH to allow actions that do
13990
+ # not need instance restart, RESTART to allow actions that can be applied
13991
+ # without instance replacing or REPLACE to allow all possible actions. If the
13992
+ # Updater determines that the minimal update action needed is more disruptive
13993
+ # than most disruptive allowed action you specify it will not perform the update
13994
+ # at all.
13995
+ # Corresponds to the JSON property `mostDisruptiveAllowedAction`
13996
+ # @return [String]
13997
+ attr_accessor :most_disruptive_allowed_action
13998
+
13935
13999
  # What action should be used to replace instances. See minimal_action.REPLACE
13936
14000
  # Corresponds to the JSON property `replacementMethod`
13937
14001
  # @return [String]
@@ -13957,6 +14021,7 @@ module Google
13957
14021
  @max_unavailable = args[:max_unavailable] if args.key?(:max_unavailable)
13958
14022
  @min_ready_sec = args[:min_ready_sec] if args.key?(:min_ready_sec)
13959
14023
  @minimal_action = args[:minimal_action] if args.key?(:minimal_action)
14024
+ @most_disruptive_allowed_action = args[:most_disruptive_allowed_action] if args.key?(:most_disruptive_allowed_action)
13960
14025
  @replacement_method = args[:replacement_method] if args.key?(:replacement_method)
13961
14026
  @type = args[:type] if args.key?(:type)
13962
14027
  end
@@ -16438,8 +16503,8 @@ module Google
16438
16503
  # only for interconnect attachment that has the encryption option as IPSEC. The
16439
16504
  # addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway
16440
16505
  # over the interconnect attachment, if the attachment is configured to use an
16441
- # RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from
16442
- # the IP address range specified here. For example, if the HA VPN gateway?s
16506
+ # RFC 1918 IP address, then the VPN gateway's IP address will be allocated from
16507
+ # the IP address range specified here. For example, if the HA VPN gateway's
16443
16508
  # interface 0 is paired to this interconnect attachment, then an RFC 1918 IP
16444
16509
  # address for the VPN gateway interface 0 will be allocated from the IP address
16445
16510
  # specified for this interconnect attachment. If this field is not specified for
@@ -18121,7 +18186,7 @@ module Google
18121
18186
  include Google::Apis::Core::Hashable
18122
18187
 
18123
18188
  # Location configurations mapped by location name. Currently only zone names are
18124
- # supported and must be represented as valid internal URLs, like: zones/us-
18189
+ # supported and must be represented as valid internal URLs, such as zones/us-
18125
18190
  # central1-a.
18126
18191
  # Corresponds to the JSON property `locations`
18127
18192
  # @return [Hash<String,Google::Apis::ComputeBeta::LocationPolicyLocation>]
@@ -18141,7 +18206,7 @@ module Google
18141
18206
  class LocationPolicyLocation
18142
18207
  include Google::Apis::Core::Hashable
18143
18208
 
18144
- #
18209
+ # Preference for a given locaction: ALLOW or DENY.
18145
18210
  # Corresponds to the JSON property `preference`
18146
18211
  # @return [String]
18147
18212
  attr_accessor :preference
@@ -30690,6 +30755,18 @@ module Google
30690
30755
  # @return [String]
30691
30756
  attr_accessor :location_hint
30692
30757
 
30758
+ # Specifies the number of hours after VM instance creation where the VM won't be
30759
+ # scheduled for maintenance.
30760
+ # Corresponds to the JSON property `maintenanceFreezeDurationHours`
30761
+ # @return [Fixnum]
30762
+ attr_accessor :maintenance_freeze_duration_hours
30763
+
30764
+ # For more information about maintenance intervals, see Setting maintenance
30765
+ # intervals.
30766
+ # Corresponds to the JSON property `maintenanceInterval`
30767
+ # @return [String]
30768
+ attr_accessor :maintenance_interval
30769
+
30693
30770
  # The minimum number of virtual CPUs this instance will consume when running on
30694
30771
  # a sole-tenant node.
30695
30772
  # Corresponds to the JSON property `minNodeCpus`
@@ -30727,6 +30804,8 @@ module Google
30727
30804
  def update!(**args)
30728
30805
  @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart)
30729
30806
  @location_hint = args[:location_hint] if args.key?(:location_hint)
30807
+ @maintenance_freeze_duration_hours = args[:maintenance_freeze_duration_hours] if args.key?(:maintenance_freeze_duration_hours)
30808
+ @maintenance_interval = args[:maintenance_interval] if args.key?(:maintenance_interval)
30730
30809
  @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus)
30731
30810
  @node_affinities = args[:node_affinities] if args.key?(:node_affinities)
30732
30811
  @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
@@ -31574,10 +31653,16 @@ module Google
31574
31653
  # A service attachment represents a service that a producer has exposed. It
31575
31654
  # encapsulates the load balancer which fronts the service runs and a list of NAT
31576
31655
  # IP ranges that the producers uses to represent the consumers connecting to the
31577
- # service. next tag = 17
31656
+ # service. next tag = 19
31578
31657
  class ServiceAttachment
31579
31658
  include Google::Apis::Core::Hashable
31580
31659
 
31660
+ # [Output Only] An array of connections for all the consumers connected to this
31661
+ # service attachment.
31662
+ # Corresponds to the JSON property `connectedEndpoints`
31663
+ # @return [Array<Google::Apis::ComputeBeta::ServiceAttachmentConnectedEndpoint>]
31664
+ attr_accessor :connected_endpoints
31665
+
31581
31666
  # The connection preference of service attachment. The value can be set to
31582
31667
  # ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always
31583
31668
  # accepts the connection from consumer forwarding rules.
@@ -31585,12 +31670,23 @@ module Google
31585
31670
  # @return [String]
31586
31671
  attr_accessor :connection_preference
31587
31672
 
31673
+ # Projects that are allowed to connect to this service attachment.
31674
+ # Corresponds to the JSON property `consumerAcceptLists`
31675
+ # @return [Array<Google::Apis::ComputeBeta::ServiceAttachmentConsumerProjectLimit>]
31676
+ attr_accessor :consumer_accept_lists
31677
+
31588
31678
  # [Output Only] An array of forwarding rules for all the consumers connected to
31589
31679
  # this service attachment.
31590
31680
  # Corresponds to the JSON property `consumerForwardingRules`
31591
31681
  # @return [Array<Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule>]
31592
31682
  attr_accessor :consumer_forwarding_rules
31593
31683
 
31684
+ # Projects that are not allowed to connect to this service attachment. The
31685
+ # project can be specified using its id or number.
31686
+ # Corresponds to the JSON property `consumerRejectLists`
31687
+ # @return [Array<String>]
31688
+ attr_accessor :consumer_reject_lists
31689
+
31594
31690
  # [Output Only] Creation timestamp in RFC3339 text format.
31595
31691
  # Corresponds to the JSON property `creationTimestamp`
31596
31692
  # @return [String]
@@ -31610,6 +31706,17 @@ module Google
31610
31706
  attr_accessor :enable_proxy_protocol
31611
31707
  alias_method :enable_proxy_protocol?, :enable_proxy_protocol
31612
31708
 
31709
+ # Fingerprint of this resource. A hash of the contents stored in this object.
31710
+ # This field is used in optimistic locking. This field will be ignored when
31711
+ # inserting a ServiceAttachment. An up-to-date fingerprint must be provided in
31712
+ # order to patch/update the ServiceAttachment; otherwise, the request will fail
31713
+ # with error 412 conditionNotMet. To see the latest fingerprint, make a get()
31714
+ # request to retrieve the ServiceAttachment.
31715
+ # Corresponds to the JSON property `fingerprint`
31716
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
31717
+ # @return [String]
31718
+ attr_accessor :fingerprint
31719
+
31613
31720
  # [Output Only] The unique identifier for the resource type. The server
31614
31721
  # generates this identifier.
31615
31722
  # Corresponds to the JSON property `id`
@@ -31644,6 +31751,11 @@ module Google
31644
31751
  # @return [String]
31645
31752
  attr_accessor :producer_forwarding_rule
31646
31753
 
31754
+ # [Output Only] An 128-bit global unique ID of the PSC service attachment.
31755
+ # Corresponds to the JSON property `pscServiceAttachmentId`
31756
+ # @return [Google::Apis::ComputeBeta::Uint128]
31757
+ attr_accessor :psc_service_attachment_id
31758
+
31647
31759
  # [Output Only] URL of the region where the service attachment resides. This
31648
31760
  # field applies only to the region resource. You must specify this field as part
31649
31761
  # of the HTTP request URL. It is not settable as a field in the request body.
@@ -31656,24 +31768,36 @@ module Google
31656
31768
  # @return [String]
31657
31769
  attr_accessor :self_link
31658
31770
 
31771
+ # The URL of a service serving the endpoint identified by this service
31772
+ # attachment.
31773
+ # Corresponds to the JSON property `targetService`
31774
+ # @return [String]
31775
+ attr_accessor :target_service
31776
+
31659
31777
  def initialize(**args)
31660
31778
  update!(**args)
31661
31779
  end
31662
31780
 
31663
31781
  # Update properties of this object
31664
31782
  def update!(**args)
31783
+ @connected_endpoints = args[:connected_endpoints] if args.key?(:connected_endpoints)
31665
31784
  @connection_preference = args[:connection_preference] if args.key?(:connection_preference)
31785
+ @consumer_accept_lists = args[:consumer_accept_lists] if args.key?(:consumer_accept_lists)
31666
31786
  @consumer_forwarding_rules = args[:consumer_forwarding_rules] if args.key?(:consumer_forwarding_rules)
31787
+ @consumer_reject_lists = args[:consumer_reject_lists] if args.key?(:consumer_reject_lists)
31667
31788
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
31668
31789
  @description = args[:description] if args.key?(:description)
31669
31790
  @enable_proxy_protocol = args[:enable_proxy_protocol] if args.key?(:enable_proxy_protocol)
31791
+ @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
31670
31792
  @id = args[:id] if args.key?(:id)
31671
31793
  @kind = args[:kind] if args.key?(:kind)
31672
31794
  @name = args[:name] if args.key?(:name)
31673
31795
  @nat_subnets = args[:nat_subnets] if args.key?(:nat_subnets)
31674
31796
  @producer_forwarding_rule = args[:producer_forwarding_rule] if args.key?(:producer_forwarding_rule)
31797
+ @psc_service_attachment_id = args[:psc_service_attachment_id] if args.key?(:psc_service_attachment_id)
31675
31798
  @region = args[:region] if args.key?(:region)
31676
31799
  @self_link = args[:self_link] if args.key?(:self_link)
31800
+ @target_service = args[:target_service] if args.key?(:target_service)
31677
31801
  end
31678
31802
  end
31679
31803
 
@@ -31800,7 +31924,45 @@ module Google
31800
31924
  end
31801
31925
  end
31802
31926
 
31927
+ # [Output Only] A connection connected to this service attachment.
31928
+ class ServiceAttachmentConnectedEndpoint
31929
+ include Google::Apis::Core::Hashable
31930
+
31931
+ # The url of a connected endpoint.
31932
+ # Corresponds to the JSON property `endpoint`
31933
+ # @return [String]
31934
+ attr_accessor :endpoint
31935
+
31936
+ # The url of a consumer forwarding rule. [Deprecated] Do not use.
31937
+ # Corresponds to the JSON property `forwardingRule`
31938
+ # @return [String]
31939
+ attr_accessor :forwarding_rule
31940
+
31941
+ # The PSC connection id of the connected endpoint.
31942
+ # Corresponds to the JSON property `pscConnectionId`
31943
+ # @return [Fixnum]
31944
+ attr_accessor :psc_connection_id
31945
+
31946
+ # The status of a connected endpoint to this service attachment.
31947
+ # Corresponds to the JSON property `status`
31948
+ # @return [String]
31949
+ attr_accessor :status
31950
+
31951
+ def initialize(**args)
31952
+ update!(**args)
31953
+ end
31954
+
31955
+ # Update properties of this object
31956
+ def update!(**args)
31957
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
31958
+ @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
31959
+ @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
31960
+ @status = args[:status] if args.key?(:status)
31961
+ end
31962
+ end
31963
+
31803
31964
  # [Output Only] A consumer forwarding rule connected to this service attachment.
31965
+ # [Deprecated] Do not use.
31804
31966
  class ServiceAttachmentConsumerForwardingRule
31805
31967
  include Google::Apis::Core::Hashable
31806
31968
 
@@ -31809,6 +31971,11 @@ module Google
31809
31971
  # @return [String]
31810
31972
  attr_accessor :forwarding_rule
31811
31973
 
31974
+ # The PSC connection id of the PSC Forwarding Rule.
31975
+ # Corresponds to the JSON property `pscConnectionId`
31976
+ # @return [Fixnum]
31977
+ attr_accessor :psc_connection_id
31978
+
31812
31979
  # The status of the forwarding rule.
31813
31980
  # Corresponds to the JSON property `status`
31814
31981
  # @return [String]
@@ -31821,10 +31988,36 @@ module Google
31821
31988
  # Update properties of this object
31822
31989
  def update!(**args)
31823
31990
  @forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
31991
+ @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
31824
31992
  @status = args[:status] if args.key?(:status)
31825
31993
  end
31826
31994
  end
31827
31995
 
31996
+ #
31997
+ class ServiceAttachmentConsumerProjectLimit
31998
+ include Google::Apis::Core::Hashable
31999
+
32000
+ # The value of the limit to set.
32001
+ # Corresponds to the JSON property `connectionLimit`
32002
+ # @return [Fixnum]
32003
+ attr_accessor :connection_limit
32004
+
32005
+ # The project id or number for the project to set the limit for.
32006
+ # Corresponds to the JSON property `projectIdOrNum`
32007
+ # @return [String]
32008
+ attr_accessor :project_id_or_num
32009
+
32010
+ def initialize(**args)
32011
+ update!(**args)
32012
+ end
32013
+
32014
+ # Update properties of this object
32015
+ def update!(**args)
32016
+ @connection_limit = args[:connection_limit] if args.key?(:connection_limit)
32017
+ @project_id_or_num = args[:project_id_or_num] if args.key?(:project_id_or_num)
32018
+ end
32019
+ end
32020
+
31828
32021
  #
31829
32022
  class ServiceAttachmentList
31830
32023
  include Google::Apis::Core::Hashable
@@ -33877,9 +34070,7 @@ module Google
33877
34070
  # applicable to subnetworks that have the purpose set to
33878
34071
  # INTERNAL_HTTPS_LOAD_BALANCER and indicates that connections to the load
33879
34072
  # balancer are being drained. A subnetwork that is draining cannot be used or
33880
- # modified until it reaches a status of READY CREATING: Subnetwork is
33881
- # provisioning DELETING: Subnetwork is being deleted UPDATING: Subnetwork is
33882
- # being updated
34073
+ # modified until it reaches a status of READY
33883
34074
  # Corresponds to the JSON property `state`
33884
34075
  # @return [String]
33885
34076
  attr_accessor :state
@@ -34381,7 +34572,8 @@ module Google
34381
34572
  end
34382
34573
  end
34383
34574
 
34384
- # Subsetting options to make L4 ILB support any number of backend instances
34575
+ # Subsetting configuration for this BackendService. Currently this is applicable
34576
+ # only for Internal TCP/UDP load balancing and Internal HTTP(S) load balancing.
34385
34577
  class Subsetting
34386
34578
  include Google::Apis::Core::Hashable
34387
34579
 
@@ -37827,6 +38019,31 @@ module Google
37827
38019
  end
37828
38020
  end
37829
38021
 
38022
+ #
38023
+ class Uint128
38024
+ include Google::Apis::Core::Hashable
38025
+
38026
+ #
38027
+ # Corresponds to the JSON property `high`
38028
+ # @return [Fixnum]
38029
+ attr_accessor :high
38030
+
38031
+ #
38032
+ # Corresponds to the JSON property `low`
38033
+ # @return [Fixnum]
38034
+ attr_accessor :low
38035
+
38036
+ def initialize(**args)
38037
+ update!(**args)
38038
+ end
38039
+
38040
+ # Update properties of this object
38041
+ def update!(**args)
38042
+ @high = args[:high] if args.key?(:high)
38043
+ @low = args[:low] if args.key?(:low)
38044
+ end
38045
+ end
38046
+
37830
38047
  # Represents a URL Map resource.
37831
38048
  # Google Compute Engine has two URL Map resources:
37832
38049
  # * [Global](/compute/docs/reference/rest/`$api_version`/urlMaps) * [Regional](/
@@ -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.8.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210316"
25
+ REVISION = "20210415"
26
26
  end
27
27
  end
28
28
  end
@@ -346,6 +346,12 @@ module Google
346
346
  include Google::Apis::Core::JsonObjectSupport
347
347
  end
348
348
 
349
+ class BackendBucketCdnPolicyCacheKeyPolicy
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
349
355
  class BackendBucketCdnPolicyNegativeCachingPolicy
350
356
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
357
 
@@ -4120,12 +4126,24 @@ module Google
4120
4126
  include Google::Apis::Core::JsonObjectSupport
4121
4127
  end
4122
4128
 
4129
+ class ServiceAttachmentConnectedEndpoint
4130
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4131
+
4132
+ include Google::Apis::Core::JsonObjectSupport
4133
+ end
4134
+
4123
4135
  class ServiceAttachmentConsumerForwardingRule
4124
4136
  class Representation < Google::Apis::Core::JsonRepresentation; end
4125
4137
 
4126
4138
  include Google::Apis::Core::JsonObjectSupport
4127
4139
  end
4128
4140
 
4141
+ class ServiceAttachmentConsumerProjectLimit
4142
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4143
+
4144
+ include Google::Apis::Core::JsonObjectSupport
4145
+ end
4146
+
4129
4147
  class ServiceAttachmentList
4130
4148
  class Representation < Google::Apis::Core::JsonRepresentation; end
4131
4149
 
@@ -4966,6 +4984,12 @@ module Google
4966
4984
  include Google::Apis::Core::JsonObjectSupport
4967
4985
  end
4968
4986
 
4987
+ class Uint128
4988
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4989
+
4990
+ include Google::Apis::Core::JsonObjectSupport
4991
+ end
4992
+
4969
4993
  class UrlMap
4970
4994
  class Representation < Google::Apis::Core::JsonRepresentation; end
4971
4995
 
@@ -5620,6 +5644,7 @@ module Google
5620
5644
  # @private
5621
5645
  class Representation < Google::Apis::Core::JsonRepresentation
5622
5646
  property :enable_nested_virtualization, as: 'enableNestedVirtualization'
5647
+ property :threads_per_core, as: 'threadsPerCore'
5623
5648
  end
5624
5649
  end
5625
5650
 
@@ -5648,6 +5673,8 @@ module Google
5648
5673
 
5649
5674
  property :location_hint, as: 'locationHint'
5650
5675
  property :machine_type, as: 'machineType'
5676
+ property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
5677
+ property :maintenance_interval, as: 'maintenanceInterval'
5651
5678
  property :min_cpu_platform, as: 'minCpuPlatform'
5652
5679
  end
5653
5680
  end
@@ -5978,6 +6005,8 @@ module Google
5978
6005
  class Representation < Google::Apis::Core::JsonRepresentation
5979
6006
  collection :bypass_cache_on_request_headers, as: 'bypassCacheOnRequestHeaders', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyBypassCacheOnRequestHeader::Representation
5980
6007
 
6008
+ property :cache_key_policy, as: 'cacheKeyPolicy', class: Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy, decorator: Google::Apis::ComputeBeta::BackendBucketCdnPolicyCacheKeyPolicy::Representation
6009
+
5981
6010
  property :cache_mode, as: 'cacheMode'
5982
6011
  property :client_ttl, as: 'clientTtl'
5983
6012
  property :default_ttl, as: 'defaultTtl'
@@ -5999,6 +6028,14 @@ module Google
5999
6028
  end
6000
6029
  end
6001
6030
 
6031
+ class BackendBucketCdnPolicyCacheKeyPolicy
6032
+ # @private
6033
+ class Representation < Google::Apis::Core::JsonRepresentation
6034
+ collection :include_http_headers, as: 'includeHttpHeaders'
6035
+ collection :query_string_whitelist, as: 'queryStringWhitelist'
6036
+ end
6037
+ end
6038
+
6002
6039
  class BackendBucketCdnPolicyNegativeCachingPolicy
6003
6040
  # @private
6004
6041
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6373,6 +6410,8 @@ module Google
6373
6410
  # @private
6374
6411
  class Representation < Google::Apis::Core::JsonRepresentation
6375
6412
  property :include_host, as: 'includeHost'
6413
+ collection :include_http_headers, as: 'includeHttpHeaders'
6414
+ collection :include_named_cookies, as: 'includeNamedCookies'
6376
6415
  property :include_protocol, as: 'includeProtocol'
6377
6416
  property :include_query_string, as: 'includeQueryString'
6378
6417
  collection :query_string_blacklist, as: 'queryStringBlacklist'
@@ -7217,7 +7256,6 @@ module Google
7217
7256
  property :priority, as: 'priority'
7218
7257
  property :rule_tuple_count, as: 'ruleTupleCount'
7219
7258
  collection :target_resources, as: 'targetResources'
7220
- collection :target_secure_labels, as: 'targetSecureLabels'
7221
7259
  collection :target_service_accounts, as: 'targetServiceAccounts'
7222
7260
  end
7223
7261
  end
@@ -7229,7 +7267,6 @@ module Google
7229
7267
  collection :layer4_configs, as: 'layer4Configs', class: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config, decorator: Google::Apis::ComputeBeta::FirewallPolicyRuleMatcherLayer4Config::Representation
7230
7268
 
7231
7269
  collection :src_ip_ranges, as: 'srcIpRanges'
7232
- collection :src_secure_labels, as: 'srcSecureLabels'
7233
7270
  end
7234
7271
  end
7235
7272
 
@@ -8495,6 +8532,7 @@ module Google
8495
8532
 
8496
8533
  property :min_ready_sec, as: 'minReadySec'
8497
8534
  property :minimal_action, as: 'minimalAction'
8535
+ property :most_disruptive_allowed_action, as: 'mostDisruptiveAllowedAction'
8498
8536
  property :replacement_method, as: 'replacementMethod'
8499
8537
  property :type, as: 'type'
8500
8538
  end
@@ -12793,6 +12831,8 @@ module Google
12793
12831
  class Representation < Google::Apis::Core::JsonRepresentation
12794
12832
  property :automatic_restart, as: 'automaticRestart'
12795
12833
  property :location_hint, as: 'locationHint'
12834
+ property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
12835
+ property :maintenance_interval, as: 'maintenanceInterval'
12796
12836
  property :min_node_cpus, as: 'minNodeCpus'
12797
12837
  collection :node_affinities, as: 'nodeAffinities', class: Google::Apis::ComputeBeta::SchedulingNodeAffinity, decorator: Google::Apis::ComputeBeta::SchedulingNodeAffinity::Representation
12798
12838
 
@@ -13010,19 +13050,28 @@ module Google
13010
13050
  class ServiceAttachment
13011
13051
  # @private
13012
13052
  class Representation < Google::Apis::Core::JsonRepresentation
13053
+ collection :connected_endpoints, as: 'connectedEndpoints', class: Google::Apis::ComputeBeta::ServiceAttachmentConnectedEndpoint, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConnectedEndpoint::Representation
13054
+
13013
13055
  property :connection_preference, as: 'connectionPreference'
13056
+ collection :consumer_accept_lists, as: 'consumerAcceptLists', class: Google::Apis::ComputeBeta::ServiceAttachmentConsumerProjectLimit, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConsumerProjectLimit::Representation
13057
+
13014
13058
  collection :consumer_forwarding_rules, as: 'consumerForwardingRules', class: Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule, decorator: Google::Apis::ComputeBeta::ServiceAttachmentConsumerForwardingRule::Representation
13015
13059
 
13060
+ collection :consumer_reject_lists, as: 'consumerRejectLists'
13016
13061
  property :creation_timestamp, as: 'creationTimestamp'
13017
13062
  property :description, as: 'description'
13018
13063
  property :enable_proxy_protocol, as: 'enableProxyProtocol'
13064
+ property :fingerprint, :base64 => true, as: 'fingerprint'
13019
13065
  property :id, :numeric_string => true, as: 'id'
13020
13066
  property :kind, as: 'kind'
13021
13067
  property :name, as: 'name'
13022
13068
  collection :nat_subnets, as: 'natSubnets'
13023
13069
  property :producer_forwarding_rule, as: 'producerForwardingRule'
13070
+ property :psc_service_attachment_id, as: 'pscServiceAttachmentId', class: Google::Apis::ComputeBeta::Uint128, decorator: Google::Apis::ComputeBeta::Uint128::Representation
13071
+
13024
13072
  property :region, as: 'region'
13025
13073
  property :self_link, as: 'selfLink'
13074
+ property :target_service, as: 'targetService'
13026
13075
  end
13027
13076
  end
13028
13077
 
@@ -13059,14 +13108,33 @@ module Google
13059
13108
  end
13060
13109
  end
13061
13110
 
13111
+ class ServiceAttachmentConnectedEndpoint
13112
+ # @private
13113
+ class Representation < Google::Apis::Core::JsonRepresentation
13114
+ property :endpoint, as: 'endpoint'
13115
+ property :forwarding_rule, as: 'forwardingRule'
13116
+ property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
13117
+ property :status, as: 'status'
13118
+ end
13119
+ end
13120
+
13062
13121
  class ServiceAttachmentConsumerForwardingRule
13063
13122
  # @private
13064
13123
  class Representation < Google::Apis::Core::JsonRepresentation
13065
13124
  property :forwarding_rule, as: 'forwardingRule'
13125
+ property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
13066
13126
  property :status, as: 'status'
13067
13127
  end
13068
13128
  end
13069
13129
 
13130
+ class ServiceAttachmentConsumerProjectLimit
13131
+ # @private
13132
+ class Representation < Google::Apis::Core::JsonRepresentation
13133
+ property :connection_limit, as: 'connectionLimit'
13134
+ property :project_id_or_num, as: 'projectIdOrNum'
13135
+ end
13136
+ end
13137
+
13070
13138
  class ServiceAttachmentList
13071
13139
  # @private
13072
13140
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14564,6 +14632,14 @@ module Google
14564
14632
  end
14565
14633
  end
14566
14634
 
14635
+ class Uint128
14636
+ # @private
14637
+ class Representation < Google::Apis::Core::JsonRepresentation
14638
+ property :high, :numeric_string => true, as: 'high'
14639
+ property :low, :numeric_string => true, as: 'low'
14640
+ end
14641
+ end
14642
+
14567
14643
  class UrlMap
14568
14644
  # @private
14569
14645
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -29672,6 +29672,63 @@ module Google
29672
29672
  execute_or_queue_command(command, &block)
29673
29673
  end
29674
29674
 
29675
+ # Patches the specified ServiceAttachment resource with the data included in the
29676
+ # request. This method supports PATCH semantics and uses JSON merge patch format
29677
+ # and processing rules.
29678
+ # @param [String] project
29679
+ # Project ID for this request.
29680
+ # @param [String] region
29681
+ # The region scoping this request and should conform to RFC1035.
29682
+ # @param [String] service_attachment
29683
+ # The resource id of the ServiceAttachment to patch. It should conform to
29684
+ # RFC1035 resource name or be a string form on an unsigned long number.
29685
+ # @param [Google::Apis::ComputeBeta::ServiceAttachment] service_attachment_object
29686
+ # @param [String] request_id
29687
+ # An optional request ID to identify requests. Specify a unique request ID so
29688
+ # that if you must retry your request, the server will know to ignore the
29689
+ # request if it has already been completed.
29690
+ # For example, consider a situation where you make an initial request and the
29691
+ # request times out. If you make the request again with the same request ID, the
29692
+ # server can check if original operation with the same request ID was received,
29693
+ # and if so, will ignore the second request. This prevents clients from
29694
+ # accidentally creating duplicate commitments.
29695
+ # The request ID must be a valid UUID with the exception that zero UUID is not
29696
+ # supported (00000000-0000-0000-0000-000000000000).
29697
+ # @param [String] fields
29698
+ # Selector specifying which fields to include in a partial response.
29699
+ # @param [String] quota_user
29700
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
29701
+ # characters.
29702
+ # @param [String] user_ip
29703
+ # Deprecated. Please use quotaUser instead.
29704
+ # @param [Google::Apis::RequestOptions] options
29705
+ # Request-specific options
29706
+ #
29707
+ # @yield [result, err] Result & error if block supplied
29708
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
29709
+ # @yieldparam err [StandardError] error object if request failed
29710
+ #
29711
+ # @return [Google::Apis::ComputeBeta::Operation]
29712
+ #
29713
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
29714
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
29715
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
29716
+ def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29717
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
29718
+ command.request_representation = Google::Apis::ComputeBeta::ServiceAttachment::Representation
29719
+ command.request_object = service_attachment_object
29720
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
29721
+ command.response_class = Google::Apis::ComputeBeta::Operation
29722
+ command.params['project'] = project unless project.nil?
29723
+ command.params['region'] = region unless region.nil?
29724
+ command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
29725
+ command.query['requestId'] = request_id unless request_id.nil?
29726
+ command.query['fields'] = fields unless fields.nil?
29727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
29728
+ command.query['userIp'] = user_ip unless user_ip.nil?
29729
+ execute_or_queue_command(command, &block)
29730
+ end
29731
+
29675
29732
  # Sets the access control policy on the specified resource. Replaces any
29676
29733
  # existing policy.
29677
29734
  # @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.8.0
4
+ version: 0.9.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: 2021-04-05 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-compute_beta/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.8.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.9.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-compute_beta
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Compute Engine API Beta