google-apis-compute_beta 0.33.0 → 0.36.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: 29d386e17d1c3cbe3bdf8673aacf5f861ac9d95e6baa8c6dd139b9b17d174e1a
4
- data.tar.gz: 36035ca7d4f857426729a4e21a804785dbc65b10669cd5f2f73ec9181a06bf56
3
+ metadata.gz: cee365d4dc1bfdb867b0b6fe7a58a1fc022e833744b60e70a1e850f6f123e2fd
4
+ data.tar.gz: 9d04c5813d6b0573d850b9fb0d90616bd9156370b055d37582d1d4e1dba9033b
5
5
  SHA512:
6
- metadata.gz: 53f3c899cf3dcea97a3e91193b9243eb65cc8c78526623be664c22869c64b3e4fe96ad93ad2d801967d2c8759be51ab3a2a060882226da53c71a97f73309de7a
7
- data.tar.gz: 48395c2d60b225131c466336055fbea1e86672640e2db82c00a26a2c1b354994e9fcb7d7bcae9255fed15d2be645567ff23cb0f585c24bc69993b06faf215d31
6
+ metadata.gz: efdfab648471af063c4929d1f6631df611b73b5d3e732f451a582e1cbf5e0e041cdbc87dbc9563e449502c661e33300f889ebd10303800fcee39496f439c9437
7
+ data.tar.gz: c01c16b31c1f855641a68e7cb836607df3d6cb83ab3c2c1ff5535ab26513455a2dd9867442293eeb9364225d624c195e28bfb5fe1bcc074cf242f1267be01cda
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-compute_beta
2
2
 
3
+ ### v0.36.0 (2022-05-26)
4
+
5
+ * Regenerated from discovery document revision 20220517
6
+
7
+ ### v0.35.0 (2022-05-18)
8
+
9
+ * Regenerated from discovery document revision 20220510
10
+
11
+ ### v0.34.0 (2022-05-11)
12
+
13
+ * Regenerated from discovery document revision 20220506
14
+
3
15
  ### v0.33.0 (2022-04-29)
4
16
 
5
17
  * Regenerated from discovery document revision 20220426
@@ -3137,9 +3137,9 @@ module Google
3137
3137
  # internal HTTP(S) load balancers and Traffic Director and requires
3138
3138
  # GENERATED_COOKIE or HTTP_COOKIE session affinity. If set to 0, the cookie is
3139
3139
  # non-persistent and lasts only until the end of the browser session (or
3140
- # equivalent). The maximum allowed value is one day (86,400). Not supported when
3141
- # the backend service is referenced by a URL map that is bound to target gRPC
3142
- # proxy that has validateForProxyless field set to true.
3140
+ # equivalent). The maximum allowed value is two weeks (1,209,600). Not supported
3141
+ # when the backend service is referenced by a URL map that is bound to target
3142
+ # gRPC proxy that has validateForProxyless field set to true.
3143
3143
  # Corresponds to the JSON property `affinityCookieTtlSec`
3144
3144
  # @return [Fixnum]
3145
3145
  attr_accessor :affinity_cookie_ttl_sec
@@ -8713,21 +8713,26 @@ module Google
8713
8713
  class ForwardingRule
8714
8714
  include Google::Apis::Core::Hashable
8715
8715
 
8716
- # IP address that this forwarding rule serves. When a client sends traffic to
8717
- # this IP address, the forwarding rule directs the traffic to the target that
8718
- # you specify in the forwarding rule. If you don't specify a reserved IP address,
8719
- # an ephemeral IP address is assigned. Methods for specifying an IP address: *
8720
- # IPv4 dotted decimal, as in `100.1.2.3` * Full URL, as in https://www.
8721
- # googleapis.com/compute/v1/projects/project_id/regions/region /addresses/
8722
- # address-name * Partial URL or by name, as in: - projects/project_id/regions/
8723
- # region/addresses/address-name - regions/region/addresses/address-name - global/
8724
- # addresses/address-name - address-name The loadBalancingScheme and the
8725
- # forwarding rule's target determine the type of IP address that you can use.
8726
- # For detailed information, see [IP address specifications](https://cloud.google.
8727
- # com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications).
8728
- # Must be set to `0.0.0.0` when the target is targetGrpcProxy that has
8729
- # validateForProxyless field set to true. For Private Service Connect forwarding
8730
- # rules that forward traffic to Google APIs, IP address must be provided.
8716
+ # IP address for which this forwarding rule accepts traffic. When a client sends
8717
+ # traffic to this IP address, the forwarding rule directs the traffic to the
8718
+ # referenced target or backendService. While creating a forwarding rule,
8719
+ # specifying an IPAddress is required under the following circumstances: - When
8720
+ # the target is set to targetGrpcProxy and validateForProxyless is set to true,
8721
+ # the IPAddress should be set to 0.0.0.0. - When the target is a Private Service
8722
+ # Connect Google APIs bundle, you must specify an IPAddress. Otherwise, you can
8723
+ # optionally specify an IP address that references an existing static (reserved)
8724
+ # IP address resource. When omitted, Google Cloud assigns an ephemeral IP
8725
+ # address. Use one of the following formats to specify an IP address while
8726
+ # creating a forwarding rule: * IP address number, as in `100.1.2.3` * Full
8727
+ # resource URL, as in https://www.googleapis.com/compute/v1/projects/project_id/
8728
+ # regions/region /addresses/address-name * Partial URL or by name, as in: -
8729
+ # projects/project_id/regions/region/addresses/address-name - regions/region/
8730
+ # addresses/address-name - global/addresses/address-name - address-name The
8731
+ # forwarding rule's target or backendService, and in most cases, also the
8732
+ # loadBalancingScheme, determine the type of IP address that you can use. For
8733
+ # detailed information, see [IP address specifications](https://cloud.google.com/
8734
+ # load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). When
8735
+ # reading an IPAddress, the API always returns the IP address number.
8731
8736
  # Corresponds to the JSON property `IPAddress`
8732
8737
  # @return [String]
8733
8738
  attr_accessor :ip_address
@@ -10936,10 +10941,10 @@ module Google
10936
10941
 
10937
10942
  # The list of host patterns to match. They must be valid hostnames with optional
10938
10943
  # port numbers in the format host:port. * matches any string of ([a-z0-9-.]*).
10939
- # In that case, * must be the first character and must be followed in the
10940
- # pattern by either - or .. * based matching is not supported when the URL map
10941
- # is bound to a target gRPC proxy that has the validateForProxyless field set to
10942
- # true.
10944
+ # In that case, * must be the first character, and if followed by anything, the
10945
+ # immediate following character must be either - or .. * based matching is not
10946
+ # supported when the URL map is bound to a target gRPC proxy that has the
10947
+ # validateForProxyless field set to true.
10943
10948
  # Corresponds to the JSON property `hosts`
10944
10949
  # @return [Array<String>]
10945
10950
  attr_accessor :hosts
@@ -12383,8 +12388,8 @@ module Google
12383
12388
  # @return [String]
12384
12389
  attr_accessor :source_snapshot_id
12385
12390
 
12386
- # The type of the image used to create this disk. The default and only value is
12387
- # RAW
12391
+ # The type of the image used to create this disk. The default and only valid
12392
+ # value is RAW.
12388
12393
  # Corresponds to the JSON property `sourceType`
12389
12394
  # @return [String]
12390
12395
  attr_accessor :source_type
@@ -14383,12 +14388,16 @@ module Google
14383
14388
  # @return [Fixnum]
14384
14389
  attr_accessor :min_ready_sec
14385
14390
 
14386
- # Minimal action to be taken on an instance. You can specify either RESTART to
14387
- # restart existing instances or REPLACE to delete and create new instances from
14388
- # the target template. If you specify a RESTART, the Updater will attempt to
14389
- # perform that action only. However, if the Updater determines that the minimal
14390
- # action you specify is not enough to perform the update, it might perform a
14391
- # more disruptive action.
14391
+ # Minimal action to be taken on an instance. Use this option to minimize
14392
+ # disruption as much as possible or to apply a more disruptive action than is
14393
+ # necessary. - To limit disruption as much as possible, set the minimal action
14394
+ # to REFRESH. If your update requires a more disruptive action, Compute Engine
14395
+ # performs the necessary action to execute the update. - To apply a more
14396
+ # disruptive action than is strictly necessary, set the minimal action to
14397
+ # RESTART or REPLACE. For example, Compute Engine does not need to restart a VM
14398
+ # to change its metadata. But if your application reads instance metadata only
14399
+ # when a VM is restarted, you can set the minimal action to RESTART in order to
14400
+ # pick up metadata changes.
14392
14401
  # Corresponds to the JSON property `minimalAction`
14393
14402
  # @return [String]
14394
14403
  attr_accessor :minimal_action
@@ -29547,9 +29556,9 @@ module Google
29547
29556
  class ResourcePolicyGroupPlacementPolicy
29548
29557
  include Google::Apis::Core::Hashable
29549
29558
 
29550
- # The number of availability domains instances will be spread across. If two
29551
- # instances are in different availability domain, they will not be put in the
29552
- # same low latency network
29559
+ # The number of availability domains to spread instances across. If two
29560
+ # instances are in different availability domain, they are not in the same low
29561
+ # latency network.
29553
29562
  # Corresponds to the JSON property `availabilityDomainCount`
29554
29563
  # @return [Fixnum]
29555
29564
  attr_accessor :availability_domain_count
@@ -29559,7 +29568,9 @@ module Google
29559
29568
  # @return [String]
29560
29569
  attr_accessor :collocation
29561
29570
 
29562
- # Number of vms in this placement group
29571
+ # Number of VMs in this placement group. Google does not recommend that you use
29572
+ # this field unless you use a compact policy and you want your policy to work
29573
+ # only if it contains this exact number of VMs.
29563
29574
  # Corresponds to the JSON property `vmCount`
29564
29575
  # @return [Fixnum]
29565
29576
  attr_accessor :vm_count
@@ -32287,8 +32298,8 @@ module Google
32287
32298
 
32288
32299
  # Defines the maintenance behavior for this instance. For standard instances,
32289
32300
  # the default behavior is MIGRATE. For preemptible instances, the default and
32290
- # only possible behavior is TERMINATE. For more information, see Set VM
32291
- # availability policies.
32301
+ # only possible behavior is TERMINATE. For more information, see Set VM host
32302
+ # maintenance policy.
32292
32303
  # Corresponds to the JSON property `onHostMaintenance`
32293
32304
  # @return [String]
32294
32305
  attr_accessor :on_host_maintenance
@@ -32835,6 +32846,11 @@ module Google
32835
32846
  class SecurityPolicyAdaptiveProtectionConfig
32836
32847
  include Google::Apis::Core::Hashable
32837
32848
 
32849
+ # Configuration options for Adaptive Protection auto-deploy feature.
32850
+ # Corresponds to the JSON property `autoDeployConfig`
32851
+ # @return [Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig]
32852
+ attr_accessor :auto_deploy_config
32853
+
32838
32854
  # Configuration options for L7 DDoS detection.
32839
32855
  # Corresponds to the JSON property `layer7DdosDefenseConfig`
32840
32856
  # @return [Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig]
@@ -32846,10 +32862,48 @@ module Google
32846
32862
 
32847
32863
  # Update properties of this object
32848
32864
  def update!(**args)
32865
+ @auto_deploy_config = args[:auto_deploy_config] if args.key?(:auto_deploy_config)
32849
32866
  @layer7_ddos_defense_config = args[:layer7_ddos_defense_config] if args.key?(:layer7_ddos_defense_config)
32850
32867
  end
32851
32868
  end
32852
32869
 
32870
+ # Configuration options for Adaptive Protection auto-deploy feature.
32871
+ class SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig
32872
+ include Google::Apis::Core::Hashable
32873
+
32874
+ #
32875
+ # Corresponds to the JSON property `confidenceThreshold`
32876
+ # @return [Float]
32877
+ attr_accessor :confidence_threshold
32878
+
32879
+ #
32880
+ # Corresponds to the JSON property `expirationSec`
32881
+ # @return [Fixnum]
32882
+ attr_accessor :expiration_sec
32883
+
32884
+ #
32885
+ # Corresponds to the JSON property `impactedBaselineThreshold`
32886
+ # @return [Float]
32887
+ attr_accessor :impacted_baseline_threshold
32888
+
32889
+ #
32890
+ # Corresponds to the JSON property `loadThreshold`
32891
+ # @return [Float]
32892
+ attr_accessor :load_threshold
32893
+
32894
+ def initialize(**args)
32895
+ update!(**args)
32896
+ end
32897
+
32898
+ # Update properties of this object
32899
+ def update!(**args)
32900
+ @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
32901
+ @expiration_sec = args[:expiration_sec] if args.key?(:expiration_sec)
32902
+ @impacted_baseline_threshold = args[:impacted_baseline_threshold] if args.key?(:impacted_baseline_threshold)
32903
+ @load_threshold = args[:load_threshold] if args.key?(:load_threshold)
32904
+ end
32905
+ end
32906
+
32853
32907
  # Configuration options for L7 DDoS detection.
32854
32908
  class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig
32855
32909
  include Google::Apis::Core::Hashable
@@ -34690,6 +34744,16 @@ module Google
34690
34744
  # @return [String]
34691
34745
  attr_accessor :source_disk_id
34692
34746
 
34747
+ # [Output Only] URL of the resource policy which created this scheduled snapshot.
34748
+ # Corresponds to the JSON property `sourceSnapshotSchedulePolicy`
34749
+ # @return [String]
34750
+ attr_accessor :source_snapshot_schedule_policy
34751
+
34752
+ # [Output Only] ID of the resource policy which created this scheduled snapshot.
34753
+ # Corresponds to the JSON property `sourceSnapshotSchedulePolicyId`
34754
+ # @return [String]
34755
+ attr_accessor :source_snapshot_schedule_policy_id
34756
+
34693
34757
  # [Output Only] The status of the snapshot. This can be CREATING, DELETING,
34694
34758
  # FAILED, READY, or UPLOADING.
34695
34759
  # Corresponds to the JSON property `status`
@@ -34749,6 +34813,8 @@ module Google
34749
34813
  @source_disk = args[:source_disk] if args.key?(:source_disk)
34750
34814
  @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key)
34751
34815
  @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id)
34816
+ @source_snapshot_schedule_policy = args[:source_snapshot_schedule_policy] if args.key?(:source_snapshot_schedule_policy)
34817
+ @source_snapshot_schedule_policy_id = args[:source_snapshot_schedule_policy_id] if args.key?(:source_snapshot_schedule_policy_id)
34752
34818
  @status = args[:status] if args.key?(:status)
34753
34819
  @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
34754
34820
  @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status)
@@ -35566,6 +35632,136 @@ module Google
35566
35632
  end
35567
35633
  end
35568
35634
 
35635
+ #
35636
+ class SslPoliciesAggregatedList
35637
+ include Google::Apis::Core::Hashable
35638
+
35639
+ #
35640
+ # Corresponds to the JSON property `etag`
35641
+ # @return [String]
35642
+ attr_accessor :etag
35643
+
35644
+ # [Output Only] Unique identifier for the resource; defined by the server.
35645
+ # Corresponds to the JSON property `id`
35646
+ # @return [String]
35647
+ attr_accessor :id
35648
+
35649
+ # A list of SslPoliciesScopedList resources.
35650
+ # Corresponds to the JSON property `items`
35651
+ # @return [Hash<String,Google::Apis::ComputeBeta::SslPoliciesScopedList>]
35652
+ attr_accessor :items
35653
+
35654
+ # [Output Only] Type of resource. Always compute#sslPolicyAggregatedList for
35655
+ # lists of SSL Policies.
35656
+ # Corresponds to the JSON property `kind`
35657
+ # @return [String]
35658
+ attr_accessor :kind
35659
+
35660
+ # [Output Only] This token allows you to get the next page of results for list
35661
+ # requests. If the number of results is larger than maxResults, use the
35662
+ # nextPageToken as a value for the query parameter pageToken in the next list
35663
+ # request. Subsequent list requests will have their own nextPageToken to
35664
+ # continue paging through the results.
35665
+ # Corresponds to the JSON property `nextPageToken`
35666
+ # @return [String]
35667
+ attr_accessor :next_page_token
35668
+
35669
+ # [Output Only] Server-defined URL for this resource.
35670
+ # Corresponds to the JSON property `selfLink`
35671
+ # @return [String]
35672
+ attr_accessor :self_link
35673
+
35674
+ # [Output Only] Unreachable resources.
35675
+ # Corresponds to the JSON property `unreachables`
35676
+ # @return [Array<String>]
35677
+ attr_accessor :unreachables
35678
+
35679
+ # [Output Only] Informational warning message.
35680
+ # Corresponds to the JSON property `warning`
35681
+ # @return [Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Warning]
35682
+ attr_accessor :warning
35683
+
35684
+ def initialize(**args)
35685
+ update!(**args)
35686
+ end
35687
+
35688
+ # Update properties of this object
35689
+ def update!(**args)
35690
+ @etag = args[:etag] if args.key?(:etag)
35691
+ @id = args[:id] if args.key?(:id)
35692
+ @items = args[:items] if args.key?(:items)
35693
+ @kind = args[:kind] if args.key?(:kind)
35694
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
35695
+ @self_link = args[:self_link] if args.key?(:self_link)
35696
+ @unreachables = args[:unreachables] if args.key?(:unreachables)
35697
+ @warning = args[:warning] if args.key?(:warning)
35698
+ end
35699
+
35700
+ # [Output Only] Informational warning message.
35701
+ class Warning
35702
+ include Google::Apis::Core::Hashable
35703
+
35704
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
35705
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
35706
+ # Corresponds to the JSON property `code`
35707
+ # @return [String]
35708
+ attr_accessor :code
35709
+
35710
+ # [Output Only] Metadata about this warning in key: value format. For example: "
35711
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
35712
+ # Corresponds to the JSON property `data`
35713
+ # @return [Array<Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Warning::Datum>]
35714
+ attr_accessor :data
35715
+
35716
+ # [Output Only] A human-readable description of the warning code.
35717
+ # Corresponds to the JSON property `message`
35718
+ # @return [String]
35719
+ attr_accessor :message
35720
+
35721
+ def initialize(**args)
35722
+ update!(**args)
35723
+ end
35724
+
35725
+ # Update properties of this object
35726
+ def update!(**args)
35727
+ @code = args[:code] if args.key?(:code)
35728
+ @data = args[:data] if args.key?(:data)
35729
+ @message = args[:message] if args.key?(:message)
35730
+ end
35731
+
35732
+ #
35733
+ class Datum
35734
+ include Google::Apis::Core::Hashable
35735
+
35736
+ # [Output Only] A key that provides more detail on the warning being returned.
35737
+ # For example, for warnings where there are no results in a list request for a
35738
+ # particular zone, this key might be scope and the key value might be the zone
35739
+ # name. Other examples might be a key indicating a deprecated resource and a
35740
+ # suggested replacement, or a warning about invalid network settings (for
35741
+ # example, if an instance attempts to perform IP forwarding but is not enabled
35742
+ # for IP forwarding).
35743
+ # Corresponds to the JSON property `key`
35744
+ # @return [String]
35745
+ attr_accessor :key
35746
+
35747
+ # [Output Only] A warning data value corresponding to the key.
35748
+ # Corresponds to the JSON property `value`
35749
+ # @return [String]
35750
+ attr_accessor :value
35751
+
35752
+ def initialize(**args)
35753
+ update!(**args)
35754
+ end
35755
+
35756
+ # Update properties of this object
35757
+ def update!(**args)
35758
+ @key = args[:key] if args.key?(:key)
35759
+ @value = args[:value] if args.key?(:value)
35760
+ end
35761
+ end
35762
+ end
35763
+ end
35764
+
35569
35765
  #
35570
35766
  class SslPoliciesList
35571
35767
  include Google::Apis::Core::Hashable
@@ -35703,6 +35899,97 @@ module Google
35703
35899
  end
35704
35900
  end
35705
35901
 
35902
+ #
35903
+ class SslPoliciesScopedList
35904
+ include Google::Apis::Core::Hashable
35905
+
35906
+ # A list of SslPolicies contained in this scope.
35907
+ # Corresponds to the JSON property `sslPolicies`
35908
+ # @return [Array<Google::Apis::ComputeBeta::SslPolicy>]
35909
+ attr_accessor :ssl_policies
35910
+
35911
+ # Informational warning which replaces the list of SSL policies when the list is
35912
+ # empty.
35913
+ # Corresponds to the JSON property `warning`
35914
+ # @return [Google::Apis::ComputeBeta::SslPoliciesScopedList::Warning]
35915
+ attr_accessor :warning
35916
+
35917
+ def initialize(**args)
35918
+ update!(**args)
35919
+ end
35920
+
35921
+ # Update properties of this object
35922
+ def update!(**args)
35923
+ @ssl_policies = args[:ssl_policies] if args.key?(:ssl_policies)
35924
+ @warning = args[:warning] if args.key?(:warning)
35925
+ end
35926
+
35927
+ # Informational warning which replaces the list of SSL policies when the list is
35928
+ # empty.
35929
+ class Warning
35930
+ include Google::Apis::Core::Hashable
35931
+
35932
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
35933
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
35934
+ # Corresponds to the JSON property `code`
35935
+ # @return [String]
35936
+ attr_accessor :code
35937
+
35938
+ # [Output Only] Metadata about this warning in key: value format. For example: "
35939
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
35940
+ # Corresponds to the JSON property `data`
35941
+ # @return [Array<Google::Apis::ComputeBeta::SslPoliciesScopedList::Warning::Datum>]
35942
+ attr_accessor :data
35943
+
35944
+ # [Output Only] A human-readable description of the warning code.
35945
+ # Corresponds to the JSON property `message`
35946
+ # @return [String]
35947
+ attr_accessor :message
35948
+
35949
+ def initialize(**args)
35950
+ update!(**args)
35951
+ end
35952
+
35953
+ # Update properties of this object
35954
+ def update!(**args)
35955
+ @code = args[:code] if args.key?(:code)
35956
+ @data = args[:data] if args.key?(:data)
35957
+ @message = args[:message] if args.key?(:message)
35958
+ end
35959
+
35960
+ #
35961
+ class Datum
35962
+ include Google::Apis::Core::Hashable
35963
+
35964
+ # [Output Only] A key that provides more detail on the warning being returned.
35965
+ # For example, for warnings where there are no results in a list request for a
35966
+ # particular zone, this key might be scope and the key value might be the zone
35967
+ # name. Other examples might be a key indicating a deprecated resource and a
35968
+ # suggested replacement, or a warning about invalid network settings (for
35969
+ # example, if an instance attempts to perform IP forwarding but is not enabled
35970
+ # for IP forwarding).
35971
+ # Corresponds to the JSON property `key`
35972
+ # @return [String]
35973
+ attr_accessor :key
35974
+
35975
+ # [Output Only] A warning data value corresponding to the key.
35976
+ # Corresponds to the JSON property `value`
35977
+ # @return [String]
35978
+ attr_accessor :value
35979
+
35980
+ def initialize(**args)
35981
+ update!(**args)
35982
+ end
35983
+
35984
+ # Update properties of this object
35985
+ def update!(**args)
35986
+ @key = args[:key] if args.key?(:key)
35987
+ @value = args[:value] if args.key?(:value)
35988
+ end
35989
+ end
35990
+ end
35991
+ end
35992
+
35706
35993
  # Represents an SSL Policy resource. Use SSL policies to control the SSL
35707
35994
  # features, such as versions and cipher suites, offered by an HTTPS or SSL Proxy
35708
35995
  # load balancer. For more information, read SSL Policy Concepts.
@@ -35779,6 +36066,12 @@ module Google
35779
36066
  # @return [String]
35780
36067
  attr_accessor :profile
35781
36068
 
36069
+ # [Output Only] URL of the region where the regional SSL policy resides. This
36070
+ # field is not applicable to global SSL policies.
36071
+ # Corresponds to the JSON property `region`
36072
+ # @return [String]
36073
+ attr_accessor :region
36074
+
35782
36075
  # [Output Only] Server-defined URL for the resource.
35783
36076
  # Corresponds to the JSON property `selfLink`
35784
36077
  # @return [String]
@@ -35806,6 +36099,7 @@ module Google
35806
36099
  @min_tls_version = args[:min_tls_version] if args.key?(:min_tls_version)
35807
36100
  @name = args[:name] if args.key?(:name)
35808
36101
  @profile = args[:profile] if args.key?(:profile)
36102
+ @region = args[:region] if args.key?(:region)
35809
36103
  @self_link = args[:self_link] if args.key?(:self_link)
35810
36104
  @warnings = args[:warnings] if args.key?(:warnings)
35811
36105
  end
@@ -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.33.0"
19
+ GEM_VERSION = "0.36.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 = "20220426"
25
+ REVISION = "20220517"
26
26
  end
27
27
  end
28
28
  end
@@ -4246,6 +4246,12 @@ module Google
4246
4246
  include Google::Apis::Core::JsonObjectSupport
4247
4247
  end
4248
4248
 
4249
+ class SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig
4250
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4251
+
4252
+ include Google::Apis::Core::JsonObjectSupport
4253
+ end
4254
+
4249
4255
  class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig
4250
4256
  class Representation < Google::Apis::Core::JsonRepresentation; end
4251
4257
 
@@ -4630,6 +4636,24 @@ module Google
4630
4636
  include Google::Apis::Core::JsonObjectSupport
4631
4637
  end
4632
4638
 
4639
+ class SslPoliciesAggregatedList
4640
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4641
+
4642
+ class Warning
4643
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4644
+
4645
+ class Datum
4646
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4647
+
4648
+ include Google::Apis::Core::JsonObjectSupport
4649
+ end
4650
+
4651
+ include Google::Apis::Core::JsonObjectSupport
4652
+ end
4653
+
4654
+ include Google::Apis::Core::JsonObjectSupport
4655
+ end
4656
+
4633
4657
  class SslPoliciesList
4634
4658
  class Representation < Google::Apis::Core::JsonRepresentation; end
4635
4659
 
@@ -4654,6 +4678,24 @@ module Google
4654
4678
  include Google::Apis::Core::JsonObjectSupport
4655
4679
  end
4656
4680
 
4681
+ class SslPoliciesScopedList
4682
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4683
+
4684
+ class Warning
4685
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4686
+
4687
+ class Datum
4688
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4689
+
4690
+ include Google::Apis::Core::JsonObjectSupport
4691
+ end
4692
+
4693
+ include Google::Apis::Core::JsonObjectSupport
4694
+ end
4695
+
4696
+ include Google::Apis::Core::JsonObjectSupport
4697
+ end
4698
+
4657
4699
  class SslPolicy
4658
4700
  class Representation < Google::Apis::Core::JsonRepresentation; end
4659
4701
 
@@ -13690,11 +13732,23 @@ module Google
13690
13732
  class SecurityPolicyAdaptiveProtectionConfig
13691
13733
  # @private
13692
13734
  class Representation < Google::Apis::Core::JsonRepresentation
13735
+ property :auto_deploy_config, as: 'autoDeployConfig', class: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig::Representation
13736
+
13693
13737
  property :layer7_ddos_defense_config, as: 'layer7DdosDefenseConfig', class: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig, decorator: Google::Apis::ComputeBeta::SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig::Representation
13694
13738
 
13695
13739
  end
13696
13740
  end
13697
13741
 
13742
+ class SecurityPolicyAdaptiveProtectionConfigAutoDeployConfig
13743
+ # @private
13744
+ class Representation < Google::Apis::Core::JsonRepresentation
13745
+ property :confidence_threshold, as: 'confidenceThreshold'
13746
+ property :expiration_sec, as: 'expirationSec'
13747
+ property :impacted_baseline_threshold, as: 'impactedBaselineThreshold'
13748
+ property :load_threshold, as: 'loadThreshold'
13749
+ end
13750
+ end
13751
+
13698
13752
  class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig
13699
13753
  # @private
13700
13754
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14169,6 +14223,8 @@ module Google
14169
14223
  property :source_disk_encryption_key, as: 'sourceDiskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
14170
14224
 
14171
14225
  property :source_disk_id, as: 'sourceDiskId'
14226
+ property :source_snapshot_schedule_policy, as: 'sourceSnapshotSchedulePolicy'
14227
+ property :source_snapshot_schedule_policy_id, as: 'sourceSnapshotSchedulePolicyId'
14172
14228
  property :status, as: 'status'
14173
14229
  property :storage_bytes, :numeric_string => true, as: 'storageBytes'
14174
14230
  property :storage_bytes_status, as: 'storageBytesStatus'
@@ -14386,6 +14442,40 @@ module Google
14386
14442
  end
14387
14443
  end
14388
14444
 
14445
+ class SslPoliciesAggregatedList
14446
+ # @private
14447
+ class Representation < Google::Apis::Core::JsonRepresentation
14448
+ property :etag, as: 'etag'
14449
+ property :id, as: 'id'
14450
+ hash :items, as: 'items', class: Google::Apis::ComputeBeta::SslPoliciesScopedList, decorator: Google::Apis::ComputeBeta::SslPoliciesScopedList::Representation
14451
+
14452
+ property :kind, as: 'kind'
14453
+ property :next_page_token, as: 'nextPageToken'
14454
+ property :self_link, as: 'selfLink'
14455
+ collection :unreachables, as: 'unreachables'
14456
+ property :warning, as: 'warning', class: Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Warning, decorator: Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Warning::Representation
14457
+
14458
+ end
14459
+
14460
+ class Warning
14461
+ # @private
14462
+ class Representation < Google::Apis::Core::JsonRepresentation
14463
+ property :code, as: 'code'
14464
+ collection :data, as: 'data', class: Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Warning::Datum::Representation
14465
+
14466
+ property :message, as: 'message'
14467
+ end
14468
+
14469
+ class Datum
14470
+ # @private
14471
+ class Representation < Google::Apis::Core::JsonRepresentation
14472
+ property :key, as: 'key'
14473
+ property :value, as: 'value'
14474
+ end
14475
+ end
14476
+ end
14477
+ end
14478
+
14389
14479
  class SslPoliciesList
14390
14480
  # @private
14391
14481
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14425,6 +14515,34 @@ module Google
14425
14515
  end
14426
14516
  end
14427
14517
 
14518
+ class SslPoliciesScopedList
14519
+ # @private
14520
+ class Representation < Google::Apis::Core::JsonRepresentation
14521
+ collection :ssl_policies, as: 'sslPolicies', class: Google::Apis::ComputeBeta::SslPolicy, decorator: Google::Apis::ComputeBeta::SslPolicy::Representation
14522
+
14523
+ property :warning, as: 'warning', class: Google::Apis::ComputeBeta::SslPoliciesScopedList::Warning, decorator: Google::Apis::ComputeBeta::SslPoliciesScopedList::Warning::Representation
14524
+
14525
+ end
14526
+
14527
+ class Warning
14528
+ # @private
14529
+ class Representation < Google::Apis::Core::JsonRepresentation
14530
+ property :code, as: 'code'
14531
+ collection :data, as: 'data', class: Google::Apis::ComputeBeta::SslPoliciesScopedList::Warning::Datum, decorator: Google::Apis::ComputeBeta::SslPoliciesScopedList::Warning::Datum::Representation
14532
+
14533
+ property :message, as: 'message'
14534
+ end
14535
+
14536
+ class Datum
14537
+ # @private
14538
+ class Representation < Google::Apis::Core::JsonRepresentation
14539
+ property :key, as: 'key'
14540
+ property :value, as: 'value'
14541
+ end
14542
+ end
14543
+ end
14544
+ end
14545
+
14428
14546
  class SslPolicy
14429
14547
  # @private
14430
14548
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14438,6 +14556,7 @@ module Google
14438
14556
  property :min_tls_version, as: 'minTlsVersion'
14439
14557
  property :name, as: 'name'
14440
14558
  property :profile, as: 'profile'
14559
+ property :region, as: 'region'
14441
14560
  property :self_link, as: 'selfLink'
14442
14561
  collection :warnings, as: 'warnings', class: Google::Apis::ComputeBeta::SslPolicy::Warning, decorator: Google::Apis::ComputeBeta::SslPolicy::Warning::Representation
14443
14562
 
@@ -13000,8 +13000,8 @@ module Google
13000
13000
  # Sets an instance's scheduling options. You can only call this method on a
13001
13001
  # stopped instance, that is, a VM instance that is in a `TERMINATED` state. See
13002
13002
  # Instance Life Cycle for more information on the possible instance states. For
13003
- # more information about setting scheduling options for a VM, see Set VM
13004
- # availability policies.
13003
+ # more information about setting scheduling options for a VM, see Set VM host
13004
+ # maintenance policy.
13005
13005
  # @param [String] project
13006
13006
  # Project ID for this request.
13007
13007
  # @param [String] zone
@@ -28426,6 +28426,407 @@ module Google
28426
28426
  execute_or_queue_command(command, &block)
28427
28427
  end
28428
28428
 
28429
+ # Deletes the specified SSL policy. The SSL policy resource can be deleted only
28430
+ # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
28431
+ # @param [String] project
28432
+ # Project ID for this request.
28433
+ # @param [String] region
28434
+ # Name of the region scoping this request.
28435
+ # @param [String] ssl_policy
28436
+ # Name of the SSL policy to delete. The name must be 1-63 characters long, and
28437
+ # comply with RFC1035.
28438
+ # @param [String] request_id
28439
+ # An optional request ID to identify requests. Specify a unique request ID so
28440
+ # that if you must retry your request, the server will know to ignore the
28441
+ # request if it has already been completed. For example, consider a situation
28442
+ # where you make an initial request and the request times out. If you make the
28443
+ # request again with the same request ID, the server can check if original
28444
+ # operation with the same request ID was received, and if so, will ignore the
28445
+ # second request. This prevents clients from accidentally creating duplicate
28446
+ # commitments. The request ID must be a valid UUID with the exception that zero
28447
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28448
+ # @param [String] fields
28449
+ # Selector specifying which fields to include in a partial response.
28450
+ # @param [String] quota_user
28451
+ # Available to use for quota purposes for server-side applications. Can be any
28452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28453
+ # @param [String] user_ip
28454
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28455
+ # @param [Google::Apis::RequestOptions] options
28456
+ # Request-specific options
28457
+ #
28458
+ # @yield [result, err] Result & error if block supplied
28459
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
28460
+ # @yieldparam err [StandardError] error object if request failed
28461
+ #
28462
+ # @return [Google::Apis::ComputeBeta::Operation]
28463
+ #
28464
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28465
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28466
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28467
+ def delete_region_ssl_policy(project, region, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28468
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
28469
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
28470
+ command.response_class = Google::Apis::ComputeBeta::Operation
28471
+ command.params['project'] = project unless project.nil?
28472
+ command.params['region'] = region unless region.nil?
28473
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
28474
+ command.query['requestId'] = request_id unless request_id.nil?
28475
+ command.query['fields'] = fields unless fields.nil?
28476
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28477
+ command.query['userIp'] = user_ip unless user_ip.nil?
28478
+ execute_or_queue_command(command, &block)
28479
+ end
28480
+
28481
+ # Lists all of the ordered rules present in a single specified policy.
28482
+ # @param [String] project
28483
+ # Project ID for this request.
28484
+ # @param [String] region
28485
+ # Name of the region scoping this request.
28486
+ # @param [String] ssl_policy
28487
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
28488
+ # comply with RFC1035.
28489
+ # @param [String] fields
28490
+ # Selector specifying which fields to include in a partial response.
28491
+ # @param [String] quota_user
28492
+ # Available to use for quota purposes for server-side applications. Can be any
28493
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28494
+ # @param [String] user_ip
28495
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28496
+ # @param [Google::Apis::RequestOptions] options
28497
+ # Request-specific options
28498
+ #
28499
+ # @yield [result, err] Result & error if block supplied
28500
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPolicy] parsed result object
28501
+ # @yieldparam err [StandardError] error object if request failed
28502
+ #
28503
+ # @return [Google::Apis::ComputeBeta::SslPolicy]
28504
+ #
28505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28508
+ def get_region_ssl_policy(project, region, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28509
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
28510
+ command.response_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
28511
+ command.response_class = Google::Apis::ComputeBeta::SslPolicy
28512
+ command.params['project'] = project unless project.nil?
28513
+ command.params['region'] = region unless region.nil?
28514
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
28515
+ command.query['fields'] = fields unless fields.nil?
28516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28517
+ command.query['userIp'] = user_ip unless user_ip.nil?
28518
+ execute_or_queue_command(command, &block)
28519
+ end
28520
+
28521
+ # Creates a new policy in the specified project and region using the data
28522
+ # included in the request.
28523
+ # @param [String] project
28524
+ # Project ID for this request.
28525
+ # @param [String] region
28526
+ # Name of the region scoping this request.
28527
+ # @param [Google::Apis::ComputeBeta::SslPolicy] ssl_policy_object
28528
+ # @param [String] request_id
28529
+ # An optional request ID to identify requests. Specify a unique request ID so
28530
+ # that if you must retry your request, the server will know to ignore the
28531
+ # request if it has already been completed. For example, consider a situation
28532
+ # where you make an initial request and the request times out. If you make the
28533
+ # request again with the same request ID, the server can check if original
28534
+ # operation with the same request ID was received, and if so, will ignore the
28535
+ # second request. This prevents clients from accidentally creating duplicate
28536
+ # commitments. The request ID must be a valid UUID with the exception that zero
28537
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28538
+ # @param [String] fields
28539
+ # Selector specifying which fields to include in a partial response.
28540
+ # @param [String] quota_user
28541
+ # Available to use for quota purposes for server-side applications. Can be any
28542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28543
+ # @param [String] user_ip
28544
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28545
+ # @param [Google::Apis::RequestOptions] options
28546
+ # Request-specific options
28547
+ #
28548
+ # @yield [result, err] Result & error if block supplied
28549
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
28550
+ # @yieldparam err [StandardError] error object if request failed
28551
+ #
28552
+ # @return [Google::Apis::ComputeBeta::Operation]
28553
+ #
28554
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28555
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28556
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28557
+ def insert_region_ssl_policy(project, region, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28558
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies', options)
28559
+ command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
28560
+ command.request_object = ssl_policy_object
28561
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
28562
+ command.response_class = Google::Apis::ComputeBeta::Operation
28563
+ command.params['project'] = project unless project.nil?
28564
+ command.params['region'] = region unless region.nil?
28565
+ command.query['requestId'] = request_id unless request_id.nil?
28566
+ command.query['fields'] = fields unless fields.nil?
28567
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28568
+ command.query['userIp'] = user_ip unless user_ip.nil?
28569
+ execute_or_queue_command(command, &block)
28570
+ end
28571
+
28572
+ # Lists all the SSL policies that have been configured for the specified project
28573
+ # and region.
28574
+ # @param [String] project
28575
+ # Project ID for this request.
28576
+ # @param [String] region
28577
+ # Name of the region scoping this request.
28578
+ # @param [String] filter
28579
+ # A filter expression that filters resources listed in the response. The
28580
+ # expression must specify the field name, an operator, and the value that you
28581
+ # want to use for filtering. The value must be a string, a number, or a boolean.
28582
+ # The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
28583
+ # example, if you are filtering Compute Engine instances, you can exclude
28584
+ # instances named `example-instance` by specifying `name != example-instance`.
28585
+ # The `:` operator can be used with string fields to match substrings. For non-
28586
+ # string fields it is equivalent to the `=` operator. The `:*` comparison can be
28587
+ # used to test whether a key has been defined. For example, to find all objects
28588
+ # with `owner` label use: ``` labels.owner:* ``` You can also filter nested
28589
+ # fields. For example, you could specify `scheduling.automaticRestart = false`
28590
+ # to include instances only if they are not scheduled for automatic restarts.
28591
+ # You can use filtering on nested fields to filter based on resource labels. To
28592
+ # filter on multiple expressions, provide each separate expression within
28593
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
28594
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
28595
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
28596
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
28597
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
28598
+ # @param [Fixnum] max_results
28599
+ # The maximum number of results per page that should be returned. If the number
28600
+ # of available results is larger than `maxResults`, Compute Engine returns a `
28601
+ # nextPageToken` that can be used to get the next page of results in subsequent
28602
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
28603
+ # @param [String] order_by
28604
+ # Sorts list results by a certain order. By default, results are returned in
28605
+ # alphanumerical order based on the resource name. You can also sort results in
28606
+ # descending order based on the creation timestamp using `orderBy="
28607
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
28608
+ # field in reverse chronological order (newest result first). Use this to sort
28609
+ # resources like operations so that the newest operation is returned first.
28610
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
28611
+ # @param [String] page_token
28612
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
28613
+ # by a previous list request to get the next page of results.
28614
+ # @param [Boolean] return_partial_success
28615
+ # Opt-in for partial success behavior which provides partial results in case of
28616
+ # failure. The default value is false.
28617
+ # @param [String] fields
28618
+ # Selector specifying which fields to include in a partial response.
28619
+ # @param [String] quota_user
28620
+ # Available to use for quota purposes for server-side applications. Can be any
28621
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28622
+ # @param [String] user_ip
28623
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28624
+ # @param [Google::Apis::RequestOptions] options
28625
+ # Request-specific options
28626
+ #
28627
+ # @yield [result, err] Result & error if block supplied
28628
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesList] parsed result object
28629
+ # @yieldparam err [StandardError] error object if request failed
28630
+ #
28631
+ # @return [Google::Apis::ComputeBeta::SslPoliciesList]
28632
+ #
28633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28636
+ def list_region_ssl_policies(project, region, 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)
28637
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies', options)
28638
+ command.response_representation = Google::Apis::ComputeBeta::SslPoliciesList::Representation
28639
+ command.response_class = Google::Apis::ComputeBeta::SslPoliciesList
28640
+ command.params['project'] = project unless project.nil?
28641
+ command.params['region'] = region unless region.nil?
28642
+ command.query['filter'] = filter unless filter.nil?
28643
+ command.query['maxResults'] = max_results unless max_results.nil?
28644
+ command.query['orderBy'] = order_by unless order_by.nil?
28645
+ command.query['pageToken'] = page_token unless page_token.nil?
28646
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
28647
+ command.query['fields'] = fields unless fields.nil?
28648
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28649
+ command.query['userIp'] = user_ip unless user_ip.nil?
28650
+ execute_or_queue_command(command, &block)
28651
+ end
28652
+
28653
+ # Lists all features that can be specified in the SSL policy when using custom
28654
+ # profile.
28655
+ # @param [String] project
28656
+ # Project ID for this request.
28657
+ # @param [String] region
28658
+ # Name of the region scoping this request.
28659
+ # @param [String] filter
28660
+ # A filter expression that filters resources listed in the response. The
28661
+ # expression must specify the field name, an operator, and the value that you
28662
+ # want to use for filtering. The value must be a string, a number, or a boolean.
28663
+ # The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
28664
+ # example, if you are filtering Compute Engine instances, you can exclude
28665
+ # instances named `example-instance` by specifying `name != example-instance`.
28666
+ # The `:` operator can be used with string fields to match substrings. For non-
28667
+ # string fields it is equivalent to the `=` operator. The `:*` comparison can be
28668
+ # used to test whether a key has been defined. For example, to find all objects
28669
+ # with `owner` label use: ``` labels.owner:* ``` You can also filter nested
28670
+ # fields. For example, you could specify `scheduling.automaticRestart = false`
28671
+ # to include instances only if they are not scheduled for automatic restarts.
28672
+ # You can use filtering on nested fields to filter based on resource labels. To
28673
+ # filter on multiple expressions, provide each separate expression within
28674
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
28675
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
28676
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
28677
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
28678
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
28679
+ # @param [Fixnum] max_results
28680
+ # The maximum number of results per page that should be returned. If the number
28681
+ # of available results is larger than `maxResults`, Compute Engine returns a `
28682
+ # nextPageToken` that can be used to get the next page of results in subsequent
28683
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
28684
+ # @param [String] order_by
28685
+ # Sorts list results by a certain order. By default, results are returned in
28686
+ # alphanumerical order based on the resource name. You can also sort results in
28687
+ # descending order based on the creation timestamp using `orderBy="
28688
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
28689
+ # field in reverse chronological order (newest result first). Use this to sort
28690
+ # resources like operations so that the newest operation is returned first.
28691
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
28692
+ # @param [String] page_token
28693
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
28694
+ # by a previous list request to get the next page of results.
28695
+ # @param [Boolean] return_partial_success
28696
+ # Opt-in for partial success behavior which provides partial results in case of
28697
+ # failure. The default value is false.
28698
+ # @param [String] fields
28699
+ # Selector specifying which fields to include in a partial response.
28700
+ # @param [String] quota_user
28701
+ # Available to use for quota purposes for server-side applications. Can be any
28702
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28703
+ # @param [String] user_ip
28704
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28705
+ # @param [Google::Apis::RequestOptions] options
28706
+ # Request-specific options
28707
+ #
28708
+ # @yield [result, err] Result & error if block supplied
28709
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse] parsed result object
28710
+ # @yieldparam err [StandardError] error object if request failed
28711
+ #
28712
+ # @return [Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse]
28713
+ #
28714
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28715
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28716
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28717
+ def list_region_ssl_policy_available_features(project, region, 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)
28718
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures', options)
28719
+ command.response_representation = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse::Representation
28720
+ command.response_class = Google::Apis::ComputeBeta::SslPoliciesListAvailableFeaturesResponse
28721
+ command.params['project'] = project unless project.nil?
28722
+ command.params['region'] = region unless region.nil?
28723
+ command.query['filter'] = filter unless filter.nil?
28724
+ command.query['maxResults'] = max_results unless max_results.nil?
28725
+ command.query['orderBy'] = order_by unless order_by.nil?
28726
+ command.query['pageToken'] = page_token unless page_token.nil?
28727
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
28728
+ command.query['fields'] = fields unless fields.nil?
28729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28730
+ command.query['userIp'] = user_ip unless user_ip.nil?
28731
+ execute_or_queue_command(command, &block)
28732
+ end
28733
+
28734
+ # Patches the specified SSL policy with the data included in the request.
28735
+ # @param [String] project
28736
+ # Project ID for this request.
28737
+ # @param [String] region
28738
+ # Name of the region scoping this request.
28739
+ # @param [String] ssl_policy
28740
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
28741
+ # comply with RFC1035.
28742
+ # @param [Google::Apis::ComputeBeta::SslPolicy] ssl_policy_object
28743
+ # @param [String] request_id
28744
+ # An optional request ID to identify requests. Specify a unique request ID so
28745
+ # that if you must retry your request, the server will know to ignore the
28746
+ # request if it has already been completed. For example, consider a situation
28747
+ # where you make an initial request and the request times out. If you make the
28748
+ # request again with the same request ID, the server can check if original
28749
+ # operation with the same request ID was received, and if so, will ignore the
28750
+ # second request. This prevents clients from accidentally creating duplicate
28751
+ # commitments. The request ID must be a valid UUID with the exception that zero
28752
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28753
+ # @param [String] fields
28754
+ # Selector specifying which fields to include in a partial response.
28755
+ # @param [String] quota_user
28756
+ # Available to use for quota purposes for server-side applications. Can be any
28757
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28758
+ # @param [String] user_ip
28759
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28760
+ # @param [Google::Apis::RequestOptions] options
28761
+ # Request-specific options
28762
+ #
28763
+ # @yield [result, err] Result & error if block supplied
28764
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
28765
+ # @yieldparam err [StandardError] error object if request failed
28766
+ #
28767
+ # @return [Google::Apis::ComputeBeta::Operation]
28768
+ #
28769
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28770
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28771
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28772
+ def patch_region_ssl_policy(project, region, ssl_policy, ssl_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28773
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
28774
+ command.request_representation = Google::Apis::ComputeBeta::SslPolicy::Representation
28775
+ command.request_object = ssl_policy_object
28776
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
28777
+ command.response_class = Google::Apis::ComputeBeta::Operation
28778
+ command.params['project'] = project unless project.nil?
28779
+ command.params['region'] = region unless region.nil?
28780
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
28781
+ command.query['requestId'] = request_id unless request_id.nil?
28782
+ command.query['fields'] = fields unless fields.nil?
28783
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28784
+ command.query['userIp'] = user_ip unless user_ip.nil?
28785
+ execute_or_queue_command(command, &block)
28786
+ end
28787
+
28788
+ # Returns permissions that a caller has on the specified resource.
28789
+ # @param [String] project
28790
+ # Project ID for this request.
28791
+ # @param [String] region
28792
+ # The name of the region for this request.
28793
+ # @param [String] resource
28794
+ # Name or id of the resource for this request.
28795
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
28796
+ # @param [String] fields
28797
+ # Selector specifying which fields to include in a partial response.
28798
+ # @param [String] quota_user
28799
+ # Available to use for quota purposes for server-side applications. Can be any
28800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
28801
+ # @param [String] user_ip
28802
+ # Legacy name for parameter that has been superseded by `quotaUser`.
28803
+ # @param [Google::Apis::RequestOptions] options
28804
+ # Request-specific options
28805
+ #
28806
+ # @yield [result, err] Result & error if block supplied
28807
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
28808
+ # @yieldparam err [StandardError] error object if request failed
28809
+ #
28810
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
28811
+ #
28812
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28813
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28814
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28815
+ def test_region_ssl_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28816
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies/{resource}/testIamPermissions', options)
28817
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
28818
+ command.request_object = test_permissions_request_object
28819
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
28820
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
28821
+ command.params['project'] = project unless project.nil?
28822
+ command.params['region'] = region unless region.nil?
28823
+ command.params['resource'] = resource unless resource.nil?
28824
+ command.query['fields'] = fields unless fields.nil?
28825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28826
+ command.query['userIp'] = user_ip unless user_ip.nil?
28827
+ execute_or_queue_command(command, &block)
28828
+ end
28829
+
28429
28830
  # Deletes the specified TargetHttpProxy resource.
28430
28831
  # @param [String] project
28431
28832
  # Project ID for this request.
@@ -33716,6 +34117,92 @@ module Google
33716
34117
  execute_or_queue_command(command, &block)
33717
34118
  end
33718
34119
 
34120
+ # Retrieves the list of all SslPolicy resources, regional and global, available
34121
+ # to the specified project.
34122
+ # @param [String] project
34123
+ # Name of the project scoping this request.
34124
+ # @param [String] filter
34125
+ # A filter expression that filters resources listed in the response. The
34126
+ # expression must specify the field name, an operator, and the value that you
34127
+ # want to use for filtering. The value must be a string, a number, or a boolean.
34128
+ # The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For
34129
+ # example, if you are filtering Compute Engine instances, you can exclude
34130
+ # instances named `example-instance` by specifying `name != example-instance`.
34131
+ # The `:` operator can be used with string fields to match substrings. For non-
34132
+ # string fields it is equivalent to the `=` operator. The `:*` comparison can be
34133
+ # used to test whether a key has been defined. For example, to find all objects
34134
+ # with `owner` label use: ``` labels.owner:* ``` You can also filter nested
34135
+ # fields. For example, you could specify `scheduling.automaticRestart = false`
34136
+ # to include instances only if they are not scheduled for automatic restarts.
34137
+ # You can use filtering on nested fields to filter based on resource labels. To
34138
+ # filter on multiple expressions, provide each separate expression within
34139
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
34140
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
34141
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
34142
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
34143
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
34144
+ # @param [Boolean] include_all_scopes
34145
+ # Indicates whether every visible scope for each scope type (zone, region,
34146
+ # global) should be included in the response. For new resource types added after
34147
+ # this field, the flag has no effect as new resource types will always include
34148
+ # every visible scope for each scope type in response. For resource types which
34149
+ # predate this field, if this flag is omitted or false, only scopes of the scope
34150
+ # types where the resource type is expected to be found will be included.
34151
+ # @param [Fixnum] max_results
34152
+ # The maximum number of results per page that should be returned. If the number
34153
+ # of available results is larger than `maxResults`, Compute Engine returns a `
34154
+ # nextPageToken` that can be used to get the next page of results in subsequent
34155
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
34156
+ # @param [String] order_by
34157
+ # Sorts list results by a certain order. By default, results are returned in
34158
+ # alphanumerical order based on the resource name. You can also sort results in
34159
+ # descending order based on the creation timestamp using `orderBy="
34160
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
34161
+ # field in reverse chronological order (newest result first). Use this to sort
34162
+ # resources like operations so that the newest operation is returned first.
34163
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
34164
+ # @param [String] page_token
34165
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
34166
+ # by a previous list request to get the next page of results.
34167
+ # @param [Boolean] return_partial_success
34168
+ # Opt-in for partial success behavior which provides partial results in case of
34169
+ # failure. The default value is false.
34170
+ # @param [String] fields
34171
+ # Selector specifying which fields to include in a partial response.
34172
+ # @param [String] quota_user
34173
+ # Available to use for quota purposes for server-side applications. Can be any
34174
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
34175
+ # @param [String] user_ip
34176
+ # Legacy name for parameter that has been superseded by `quotaUser`.
34177
+ # @param [Google::Apis::RequestOptions] options
34178
+ # Request-specific options
34179
+ #
34180
+ # @yield [result, err] Result & error if block supplied
34181
+ # @yieldparam result [Google::Apis::ComputeBeta::SslPoliciesAggregatedList] parsed result object
34182
+ # @yieldparam err [StandardError] error object if request failed
34183
+ #
34184
+ # @return [Google::Apis::ComputeBeta::SslPoliciesAggregatedList]
34185
+ #
34186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
34189
+ def aggregated_ssl_policy_list(project, filter: nil, include_all_scopes: 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)
34190
+ command = make_simple_command(:get, 'projects/{project}/aggregated/sslPolicies', options)
34191
+ command.response_representation = Google::Apis::ComputeBeta::SslPoliciesAggregatedList::Representation
34192
+ command.response_class = Google::Apis::ComputeBeta::SslPoliciesAggregatedList
34193
+ command.params['project'] = project unless project.nil?
34194
+ command.query['filter'] = filter unless filter.nil?
34195
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
34196
+ command.query['maxResults'] = max_results unless max_results.nil?
34197
+ command.query['orderBy'] = order_by unless order_by.nil?
34198
+ command.query['pageToken'] = page_token unless page_token.nil?
34199
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
34200
+ command.query['fields'] = fields unless fields.nil?
34201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
34202
+ command.query['userIp'] = user_ip unless user_ip.nil?
34203
+ execute_or_queue_command(command, &block)
34204
+ end
34205
+
33719
34206
  # Deletes the specified SSL policy. The SSL policy resource can be deleted only
33720
34207
  # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
33721
34208
  # @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.33.0
4
+ version: 0.36.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-05-02 00:00:00.000000000 Z
11
+ date: 2022-05-30 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.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.36.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Compute Engine API Beta