google-apis-compute_v1 0.46.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b18abba5459a86e49191199aa3a6150054bbaa6f455f491704e0b4b440736724
4
- data.tar.gz: 1c9c64248b27d98ab576b49fce295af88399b6832962de2f7548195ad200758b
3
+ metadata.gz: 129922b86efed5050426ec524dbd723ac746284f90423e17e47de47a66448198
4
+ data.tar.gz: 5e4e7aeb31acc05902d9d7d10c169bc6b8e654c4d47f25c39e64e2e87a4e789d
5
5
  SHA512:
6
- metadata.gz: 373ec0a228638c1223e60de37eb7e1e912f47ee35f0108ca074822e1c9cbd73cb442c6234f7fa5dca9624b0bb21260a1b3ba830e6893a14ad9e616a087c271b0
7
- data.tar.gz: 71c6981744484b26c7ceb1cef41c325d8e004aadd9d5191ba01346d17ee07b52769524a3f7f8ef185f8558190bc0efb2009a5d6e8f47abb9f3f9832b2c839c6b
6
+ metadata.gz: 42dc7364cc6c04979fd8705137449151f01ce1356941194088ac461d9851678e7873709b3060b00bb60abf832c65cd21f341de08a4a8eba5b51cc58626cb5101
7
+ data.tar.gz: 568ec905d1b4ad05e038bc6923993166abbd1589a9e9d9dced97b386360d3ffb89b7e7713adf3817c4ed5bc8ff31baf8b554262443e7c362dd7344d0b1336f82
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_v1
2
2
 
3
+ ### v0.47.0 (2022-08-14)
4
+
5
+ * Regenerated from discovery document revision 20220809
6
+
3
7
  ### v0.46.0 (2022-08-06)
4
8
 
5
9
  * Regenerated from discovery document revision 20220726
@@ -4528,25 +4528,28 @@ module Google
4528
4528
  # anyone who is authenticated with a Google account or a service account. * `
4529
4529
  # user:`emailid``: An email address that represents a specific Google account.
4530
4530
  # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
4531
- # address that represents a service account. For example, `my-other-app@appspot.
4532
- # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
4533
- # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
4534
- # `uniqueid``: An email address (plus unique identifier) representing a user
4535
- # that has been recently deleted. For example, `alice@example.com?uid=
4536
- # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
4537
- # emailid`` and the recovered user retains the role in the binding. * `deleted:
4538
- # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
4539
- # identifier) representing a service account that has been recently deleted. For
4540
- # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
4541
- # If the service account is undeleted, this value reverts to `serviceAccount:`
4542
- # emailid`` and the undeleted service account retains the role in the binding. *
4543
- # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
4544
- # identifier) representing a Google group that has been recently deleted. For
4545
- # example, `admins@example.com?uid=123456789012345678901`. If the group is
4546
- # recovered, this value reverts to `group:`emailid`` and the recovered group
4547
- # retains the role in the binding. * `domain:`domain``: The G Suite domain (
4548
- # primary) that represents all the users of that domain. For example, `google.
4549
- # com` or `example.com`.
4531
+ # address that represents a Google service account. For example, `my-other-app@
4532
+ # appspot.gserviceaccount.com`. * `serviceAccount:`projectid`.svc.id.goog[`
4533
+ # namespace`/`kubernetes-sa`]`: An identifier for a [Kubernetes service account](
4534
+ # https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-
4535
+ # accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`
4536
+ # . * `group:`emailid``: An email address that represents a Google group. For
4537
+ # example, `admins@example.com`. * `deleted:user:`emailid`?uid=`uniqueid``: An
4538
+ # email address (plus unique identifier) representing a user that has been
4539
+ # recently deleted. For example, `alice@example.com?uid=123456789012345678901`.
4540
+ # If the user is recovered, this value reverts to `user:`emailid`` and the
4541
+ # recovered user retains the role in the binding. * `deleted:serviceAccount:`
4542
+ # emailid`?uid=`uniqueid``: An email address (plus unique identifier)
4543
+ # representing a service account that has been recently deleted. For example, `
4544
+ # my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
4545
+ # service account is undeleted, this value reverts to `serviceAccount:`emailid``
4546
+ # and the undeleted service account retains the role in the binding. * `deleted:
4547
+ # group:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
4548
+ # representing a Google group that has been recently deleted. For example, `
4549
+ # admins@example.com?uid=123456789012345678901`. If the group is recovered, this
4550
+ # value reverts to `group:`emailid`` and the recovered group retains the role in
4551
+ # the binding. * `domain:`domain``: The G Suite domain (primary) that represents
4552
+ # all the users of that domain. For example, `google.com` or `example.com`.
4550
4553
  # Corresponds to the JSON property `members`
4551
4554
  # @return [Array<String>]
4552
4555
  attr_accessor :members
@@ -12920,6 +12923,68 @@ module Google
12920
12923
  end
12921
12924
  end
12922
12925
 
12926
+ #
12927
+ class InstanceConsumptionData
12928
+ include Google::Apis::Core::Hashable
12929
+
12930
+ # Resources consumed by the instance.
12931
+ # Corresponds to the JSON property `consumptionInfo`
12932
+ # @return [Google::Apis::ComputeV1::InstanceConsumptionInfo]
12933
+ attr_accessor :consumption_info
12934
+
12935
+ # Server-defined URL for the instance.
12936
+ # Corresponds to the JSON property `instance`
12937
+ # @return [String]
12938
+ attr_accessor :instance
12939
+
12940
+ def initialize(**args)
12941
+ update!(**args)
12942
+ end
12943
+
12944
+ # Update properties of this object
12945
+ def update!(**args)
12946
+ @consumption_info = args[:consumption_info] if args.key?(:consumption_info)
12947
+ @instance = args[:instance] if args.key?(:instance)
12948
+ end
12949
+ end
12950
+
12951
+ #
12952
+ class InstanceConsumptionInfo
12953
+ include Google::Apis::Core::Hashable
12954
+
12955
+ # The number of virtual CPUs that are available to the instance.
12956
+ # Corresponds to the JSON property `guestCpus`
12957
+ # @return [Fixnum]
12958
+ attr_accessor :guest_cpus
12959
+
12960
+ # The amount of local SSD storage available to the instance, defined in GiB.
12961
+ # Corresponds to the JSON property `localSsdGb`
12962
+ # @return [Fixnum]
12963
+ attr_accessor :local_ssd_gb
12964
+
12965
+ # The amount of physical memory available to the instance, defined in MiB.
12966
+ # Corresponds to the JSON property `memoryMb`
12967
+ # @return [Fixnum]
12968
+ attr_accessor :memory_mb
12969
+
12970
+ # The minimal guaranteed number of virtual CPUs that are reserved.
12971
+ # Corresponds to the JSON property `minNodeCpus`
12972
+ # @return [Fixnum]
12973
+ attr_accessor :min_node_cpus
12974
+
12975
+ def initialize(**args)
12976
+ update!(**args)
12977
+ end
12978
+
12979
+ # Update properties of this object
12980
+ def update!(**args)
12981
+ @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus)
12982
+ @local_ssd_gb = args[:local_ssd_gb] if args.key?(:local_ssd_gb)
12983
+ @memory_mb = args[:memory_mb] if args.key?(:memory_mb)
12984
+ @min_node_cpus = args[:min_node_cpus] if args.key?(:min_node_cpus)
12985
+ end
12986
+ end
12987
+
12923
12988
  # Represents an Instance Group resource. Instance Groups can be used to
12924
12989
  # configure a target for load balancing. Instance groups can either be managed
12925
12990
  # or unmanaged. To create managed instance groups, use the instanceGroupManager
@@ -21458,6 +21523,11 @@ module Google
21458
21523
  # @return [String]
21459
21524
  attr_accessor :self_link
21460
21525
 
21526
+ # The share setting for reservations and sole tenancy node groups.
21527
+ # Corresponds to the JSON property `shareSettings`
21528
+ # @return [Google::Apis::ComputeV1::ShareSettings]
21529
+ attr_accessor :share_settings
21530
+
21461
21531
  # [Output Only] The total number of nodes in the node group.
21462
21532
  # Corresponds to the JSON property `size`
21463
21533
  # @return [Fixnum]
@@ -21492,6 +21562,7 @@ module Google
21492
21562
  @name = args[:name] if args.key?(:name)
21493
21563
  @node_template = args[:node_template] if args.key?(:node_template)
21494
21564
  @self_link = args[:self_link] if args.key?(:self_link)
21565
+ @share_settings = args[:share_settings] if args.key?(:share_settings)
21495
21566
  @size = args[:size] if args.key?(:size)
21496
21567
  @status = args[:status] if args.key?(:status)
21497
21568
  @zone = args[:zone] if args.key?(:zone)
@@ -21813,6 +21884,11 @@ module Google
21813
21884
  # @return [Array<Google::Apis::ComputeV1::AcceleratorConfig>]
21814
21885
  attr_accessor :accelerators
21815
21886
 
21887
+ # Node resources that are reserved by all instances.
21888
+ # Corresponds to the JSON property `consumedResources`
21889
+ # @return [Google::Apis::ComputeV1::InstanceConsumptionInfo]
21890
+ attr_accessor :consumed_resources
21891
+
21816
21892
  # CPU overcommit.
21817
21893
  # Corresponds to the JSON property `cpuOvercommitType`
21818
21894
  # @return [String]
@@ -21823,6 +21899,11 @@ module Google
21823
21899
  # @return [Array<Google::Apis::ComputeV1::LocalDisk>]
21824
21900
  attr_accessor :disks
21825
21901
 
21902
+ # Instance data that shows consumed resources on the node.
21903
+ # Corresponds to the JSON property `instanceConsumptionData`
21904
+ # @return [Array<Google::Apis::ComputeV1::InstanceConsumptionData>]
21905
+ attr_accessor :instance_consumption_data
21906
+
21826
21907
  # Instances scheduled on this node.
21827
21908
  # Corresponds to the JSON property `instances`
21828
21909
  # @return [Array<String>]
@@ -21859,6 +21940,11 @@ module Google
21859
21940
  # @return [String]
21860
21941
  attr_accessor :status
21861
21942
 
21943
+ # Total amount of available resources on the node.
21944
+ # Corresponds to the JSON property `totalResources`
21945
+ # @return [Google::Apis::ComputeV1::InstanceConsumptionInfo]
21946
+ attr_accessor :total_resources
21947
+
21862
21948
  def initialize(**args)
21863
21949
  update!(**args)
21864
21950
  end
@@ -21866,8 +21952,10 @@ module Google
21866
21952
  # Update properties of this object
21867
21953
  def update!(**args)
21868
21954
  @accelerators = args[:accelerators] if args.key?(:accelerators)
21955
+ @consumed_resources = args[:consumed_resources] if args.key?(:consumed_resources)
21869
21956
  @cpu_overcommit_type = args[:cpu_overcommit_type] if args.key?(:cpu_overcommit_type)
21870
21957
  @disks = args[:disks] if args.key?(:disks)
21958
+ @instance_consumption_data = args[:instance_consumption_data] if args.key?(:instance_consumption_data)
21871
21959
  @instances = args[:instances] if args.key?(:instances)
21872
21960
  @name = args[:name] if args.key?(:name)
21873
21961
  @node_type = args[:node_type] if args.key?(:node_type)
@@ -21875,6 +21963,7 @@ module Google
21875
21963
  @server_binding = args[:server_binding] if args.key?(:server_binding)
21876
21964
  @server_id = args[:server_id] if args.key?(:server_id)
21877
21965
  @status = args[:status] if args.key?(:status)
21966
+ @total_resources = args[:total_resources] if args.key?(:total_resources)
21878
21967
  end
21879
21968
  end
21880
21969
 
@@ -34553,6 +34642,12 @@ module Google
34553
34642
  # @return [String]
34554
34643
  attr_accessor :profile
34555
34644
 
34645
+ # [Output Only] URL of the region where the regional SSL policy resides. This
34646
+ # field is not applicable to global SSL policies.
34647
+ # Corresponds to the JSON property `region`
34648
+ # @return [String]
34649
+ attr_accessor :region
34650
+
34556
34651
  # [Output Only] Server-defined URL for the resource.
34557
34652
  # Corresponds to the JSON property `selfLink`
34558
34653
  # @return [String]
@@ -34580,6 +34675,7 @@ module Google
34580
34675
  @min_tls_version = args[:min_tls_version] if args.key?(:min_tls_version)
34581
34676
  @name = args[:name] if args.key?(:name)
34582
34677
  @profile = args[:profile] if args.key?(:profile)
34678
+ @region = args[:region] if args.key?(:region)
34583
34679
  @self_link = args[:self_link] if args.key?(:self_link)
34584
34680
  @warnings = args[:warnings] if args.key?(:warnings)
34585
34681
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeV1
18
18
  # Version of the google-apis-compute_v1 gem
19
- GEM_VERSION = "0.46.0"
19
+ GEM_VERSION = "0.47.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220726"
25
+ REVISION = "20220809"
26
26
  end
27
27
  end
28
28
  end
@@ -1498,6 +1498,18 @@ module Google
1498
1498
  include Google::Apis::Core::JsonObjectSupport
1499
1499
  end
1500
1500
 
1501
+ class InstanceConsumptionData
1502
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1503
+
1504
+ include Google::Apis::Core::JsonObjectSupport
1505
+ end
1506
+
1507
+ class InstanceConsumptionInfo
1508
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1509
+
1510
+ include Google::Apis::Core::JsonObjectSupport
1511
+ end
1512
+
1501
1513
  class InstanceGroup
1502
1514
  class Representation < Google::Apis::Core::JsonRepresentation; end
1503
1515
 
@@ -8481,6 +8493,25 @@ module Google
8481
8493
  end
8482
8494
  end
8483
8495
 
8496
+ class InstanceConsumptionData
8497
+ # @private
8498
+ class Representation < Google::Apis::Core::JsonRepresentation
8499
+ property :consumption_info, as: 'consumptionInfo', class: Google::Apis::ComputeV1::InstanceConsumptionInfo, decorator: Google::Apis::ComputeV1::InstanceConsumptionInfo::Representation
8500
+
8501
+ property :instance, as: 'instance'
8502
+ end
8503
+ end
8504
+
8505
+ class InstanceConsumptionInfo
8506
+ # @private
8507
+ class Representation < Google::Apis::Core::JsonRepresentation
8508
+ property :guest_cpus, as: 'guestCpus'
8509
+ property :local_ssd_gb, as: 'localSsdGb'
8510
+ property :memory_mb, as: 'memoryMb'
8511
+ property :min_node_cpus, as: 'minNodeCpus'
8512
+ end
8513
+ end
8514
+
8484
8515
  class InstanceGroup
8485
8516
  # @private
8486
8517
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10658,6 +10689,8 @@ module Google
10658
10689
  property :name, as: 'name'
10659
10690
  property :node_template, as: 'nodeTemplate'
10660
10691
  property :self_link, as: 'selfLink'
10692
+ property :share_settings, as: 'shareSettings', class: Google::Apis::ComputeV1::ShareSettings, decorator: Google::Apis::ComputeV1::ShareSettings::Representation
10693
+
10661
10694
  property :size, as: 'size'
10662
10695
  property :status, as: 'status'
10663
10696
  property :zone, as: 'zone'
@@ -10752,9 +10785,13 @@ module Google
10752
10785
  class Representation < Google::Apis::Core::JsonRepresentation
10753
10786
  collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeV1::AcceleratorConfig, decorator: Google::Apis::ComputeV1::AcceleratorConfig::Representation
10754
10787
 
10788
+ property :consumed_resources, as: 'consumedResources', class: Google::Apis::ComputeV1::InstanceConsumptionInfo, decorator: Google::Apis::ComputeV1::InstanceConsumptionInfo::Representation
10789
+
10755
10790
  property :cpu_overcommit_type, as: 'cpuOvercommitType'
10756
10791
  collection :disks, as: 'disks', class: Google::Apis::ComputeV1::LocalDisk, decorator: Google::Apis::ComputeV1::LocalDisk::Representation
10757
10792
 
10793
+ collection :instance_consumption_data, as: 'instanceConsumptionData', class: Google::Apis::ComputeV1::InstanceConsumptionData, decorator: Google::Apis::ComputeV1::InstanceConsumptionData::Representation
10794
+
10758
10795
  collection :instances, as: 'instances'
10759
10796
  property :name, as: 'name'
10760
10797
  property :node_type, as: 'nodeType'
@@ -10763,6 +10800,8 @@ module Google
10763
10800
 
10764
10801
  property :server_id, as: 'serverId'
10765
10802
  property :status, as: 'status'
10803
+ property :total_resources, as: 'totalResources', class: Google::Apis::ComputeV1::InstanceConsumptionInfo, decorator: Google::Apis::ComputeV1::InstanceConsumptionInfo::Representation
10804
+
10766
10805
  end
10767
10806
  end
10768
10807
 
@@ -14009,6 +14048,7 @@ module Google
14009
14048
  property :min_tls_version, as: 'minTlsVersion'
14010
14049
  property :name, as: 'name'
14011
14050
  property :profile, as: 'profile'
14051
+ property :region, as: 'region'
14012
14052
  property :self_link, as: 'selfLink'
14013
14053
  collection :warnings, as: 'warnings', class: Google::Apis::ComputeV1::SslPolicy::Warning, decorator: Google::Apis::ComputeV1::SslPolicy::Warning::Representation
14014
14054
 
@@ -26555,6 +26555,387 @@ module Google
26555
26555
  execute_or_queue_command(command, &block)
26556
26556
  end
26557
26557
 
26558
+ # Deletes the specified SSL policy. The SSL policy resource can be deleted only
26559
+ # if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.
26560
+ # @param [String] project
26561
+ # Project ID for this request.
26562
+ # @param [String] region
26563
+ # Name of the region scoping this request.
26564
+ # @param [String] ssl_policy
26565
+ # Name of the SSL policy to delete. The name must be 1-63 characters long, and
26566
+ # comply with RFC1035.
26567
+ # @param [String] request_id
26568
+ # An optional request ID to identify requests. Specify a unique request ID so
26569
+ # that if you must retry your request, the server will know to ignore the
26570
+ # request if it has already been completed. For example, consider a situation
26571
+ # where you make an initial request and the request times out. If you make the
26572
+ # request again with the same request ID, the server can check if original
26573
+ # operation with the same request ID was received, and if so, will ignore the
26574
+ # second request. This prevents clients from accidentally creating duplicate
26575
+ # commitments. The request ID must be a valid UUID with the exception that zero
26576
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26577
+ # @param [String] fields
26578
+ # Selector specifying which fields to include in a partial response.
26579
+ # @param [String] quota_user
26580
+ # Available to use for quota purposes for server-side applications. Can be any
26581
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26582
+ # @param [String] user_ip
26583
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26584
+ # @param [Google::Apis::RequestOptions] options
26585
+ # Request-specific options
26586
+ #
26587
+ # @yield [result, err] Result & error if block supplied
26588
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
26589
+ # @yieldparam err [StandardError] error object if request failed
26590
+ #
26591
+ # @return [Google::Apis::ComputeV1::Operation]
26592
+ #
26593
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26594
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26595
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26596
+ def delete_region_ssl_policy(project, region, ssl_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26597
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
26598
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
26599
+ command.response_class = Google::Apis::ComputeV1::Operation
26600
+ command.params['project'] = project unless project.nil?
26601
+ command.params['region'] = region unless region.nil?
26602
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
26603
+ command.query['requestId'] = request_id unless request_id.nil?
26604
+ command.query['fields'] = fields unless fields.nil?
26605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26606
+ command.query['userIp'] = user_ip unless user_ip.nil?
26607
+ execute_or_queue_command(command, &block)
26608
+ end
26609
+
26610
+ # Lists all of the ordered rules present in a single specified policy.
26611
+ # @param [String] project
26612
+ # Project ID for this request.
26613
+ # @param [String] region
26614
+ # Name of the region scoping this request.
26615
+ # @param [String] ssl_policy
26616
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
26617
+ # comply with RFC1035.
26618
+ # @param [String] fields
26619
+ # Selector specifying which fields to include in a partial response.
26620
+ # @param [String] quota_user
26621
+ # Available to use for quota purposes for server-side applications. Can be any
26622
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26623
+ # @param [String] user_ip
26624
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26625
+ # @param [Google::Apis::RequestOptions] options
26626
+ # Request-specific options
26627
+ #
26628
+ # @yield [result, err] Result & error if block supplied
26629
+ # @yieldparam result [Google::Apis::ComputeV1::SslPolicy] parsed result object
26630
+ # @yieldparam err [StandardError] error object if request failed
26631
+ #
26632
+ # @return [Google::Apis::ComputeV1::SslPolicy]
26633
+ #
26634
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26635
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26636
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26637
+ def get_region_ssl_policy(project, region, ssl_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26638
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
26639
+ command.response_representation = Google::Apis::ComputeV1::SslPolicy::Representation
26640
+ command.response_class = Google::Apis::ComputeV1::SslPolicy
26641
+ command.params['project'] = project unless project.nil?
26642
+ command.params['region'] = region unless region.nil?
26643
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
26644
+ command.query['fields'] = fields unless fields.nil?
26645
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26646
+ command.query['userIp'] = user_ip unless user_ip.nil?
26647
+ execute_or_queue_command(command, &block)
26648
+ end
26649
+
26650
+ # Creates a new policy in the specified project and region using the data
26651
+ # included in the request.
26652
+ # @param [String] project
26653
+ # Project ID for this request.
26654
+ # @param [String] region
26655
+ # Name of the region scoping this request.
26656
+ # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
26657
+ # @param [String] request_id
26658
+ # An optional request ID to identify requests. Specify a unique request ID so
26659
+ # that if you must retry your request, the server will know to ignore the
26660
+ # request if it has already been completed. For example, consider a situation
26661
+ # where you make an initial request and the request times out. If you make the
26662
+ # request again with the same request ID, the server can check if original
26663
+ # operation with the same request ID was received, and if so, will ignore the
26664
+ # second request. This prevents clients from accidentally creating duplicate
26665
+ # commitments. The request ID must be a valid UUID with the exception that zero
26666
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26667
+ # @param [String] fields
26668
+ # Selector specifying which fields to include in a partial response.
26669
+ # @param [String] quota_user
26670
+ # Available to use for quota purposes for server-side applications. Can be any
26671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26672
+ # @param [String] user_ip
26673
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26674
+ # @param [Google::Apis::RequestOptions] options
26675
+ # Request-specific options
26676
+ #
26677
+ # @yield [result, err] Result & error if block supplied
26678
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
26679
+ # @yieldparam err [StandardError] error object if request failed
26680
+ #
26681
+ # @return [Google::Apis::ComputeV1::Operation]
26682
+ #
26683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26686
+ 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)
26687
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/sslPolicies', options)
26688
+ command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
26689
+ command.request_object = ssl_policy_object
26690
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
26691
+ command.response_class = Google::Apis::ComputeV1::Operation
26692
+ command.params['project'] = project unless project.nil?
26693
+ command.params['region'] = region unless region.nil?
26694
+ command.query['requestId'] = request_id unless request_id.nil?
26695
+ command.query['fields'] = fields unless fields.nil?
26696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26697
+ command.query['userIp'] = user_ip unless user_ip.nil?
26698
+ execute_or_queue_command(command, &block)
26699
+ end
26700
+
26701
+ # Lists all the SSL policies that have been configured for the specified project
26702
+ # and region.
26703
+ # @param [String] project
26704
+ # Project ID for this request.
26705
+ # @param [String] region
26706
+ # Name of the region scoping this request.
26707
+ # @param [String] filter
26708
+ # A filter expression that filters resources listed in the response. Most
26709
+ # Compute resources support two types of filter expressions: expressions that
26710
+ # support regular expressions and expressions that follow API improvement
26711
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
26712
+ # field name, an operator, and the value that you want to use for filtering. The
26713
+ # value must be a string, a number, or a boolean. The operator must be either `=`
26714
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
26715
+ # Engine instances, you can exclude instances named `example-instance` by
26716
+ # specifying `name != example-instance`. The `:` operator can be used with
26717
+ # string fields to match substrings. For non-string fields it is equivalent to
26718
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
26719
+ # been defined. For example, to find all objects with `owner` label use: ```
26720
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
26721
+ # specify `scheduling.automaticRestart = false` to include instances only if
26722
+ # they are not scheduled for automatic restarts. You can use filtering on nested
26723
+ # fields to filter based on resource labels. To filter on multiple expressions,
26724
+ # provide each separate expression within parentheses. For example: ``` (
26725
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
26726
+ # default, each expression is an `AND` expression. However, you can include `AND`
26727
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
26728
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
26729
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
26730
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
26731
+ # expression with or without quotes or against multiple parenthesized
26732
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
26733
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
26734
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
26735
+ # regular expression using Google RE2 library syntax. The literal value must
26736
+ # match the entire field. For example, to filter for instances that do not end
26737
+ # with name "instance", you would use `name ne .*instance`.
26738
+ # @param [Fixnum] max_results
26739
+ # The maximum number of results per page that should be returned. If the number
26740
+ # of available results is larger than `maxResults`, Compute Engine returns a `
26741
+ # nextPageToken` that can be used to get the next page of results in subsequent
26742
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26743
+ # @param [String] order_by
26744
+ # Sorts list results by a certain order. By default, results are returned in
26745
+ # alphanumerical order based on the resource name. You can also sort results in
26746
+ # descending order based on the creation timestamp using `orderBy="
26747
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
26748
+ # field in reverse chronological order (newest result first). Use this to sort
26749
+ # resources like operations so that the newest operation is returned first.
26750
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26751
+ # @param [String] page_token
26752
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26753
+ # by a previous list request to get the next page of results.
26754
+ # @param [Boolean] return_partial_success
26755
+ # Opt-in for partial success behavior which provides partial results in case of
26756
+ # failure. The default value is false.
26757
+ # @param [String] fields
26758
+ # Selector specifying which fields to include in a partial response.
26759
+ # @param [String] quota_user
26760
+ # Available to use for quota purposes for server-side applications. Can be any
26761
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26762
+ # @param [String] user_ip
26763
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26764
+ # @param [Google::Apis::RequestOptions] options
26765
+ # Request-specific options
26766
+ #
26767
+ # @yield [result, err] Result & error if block supplied
26768
+ # @yieldparam result [Google::Apis::ComputeV1::SslPoliciesList] parsed result object
26769
+ # @yieldparam err [StandardError] error object if request failed
26770
+ #
26771
+ # @return [Google::Apis::ComputeV1::SslPoliciesList]
26772
+ #
26773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26776
+ 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)
26777
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies', options)
26778
+ command.response_representation = Google::Apis::ComputeV1::SslPoliciesList::Representation
26779
+ command.response_class = Google::Apis::ComputeV1::SslPoliciesList
26780
+ command.params['project'] = project unless project.nil?
26781
+ command.params['region'] = region unless region.nil?
26782
+ command.query['filter'] = filter unless filter.nil?
26783
+ command.query['maxResults'] = max_results unless max_results.nil?
26784
+ command.query['orderBy'] = order_by unless order_by.nil?
26785
+ command.query['pageToken'] = page_token unless page_token.nil?
26786
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26787
+ command.query['fields'] = fields unless fields.nil?
26788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26789
+ command.query['userIp'] = user_ip unless user_ip.nil?
26790
+ execute_or_queue_command(command, &block)
26791
+ end
26792
+
26793
+ # Lists all features that can be specified in the SSL policy when using custom
26794
+ # profile.
26795
+ # @param [String] project
26796
+ # Project ID for this request.
26797
+ # @param [String] region
26798
+ # Name of the region scoping this request.
26799
+ # @param [String] filter
26800
+ # A filter expression that filters resources listed in the response. Most
26801
+ # Compute resources support two types of filter expressions: expressions that
26802
+ # support regular expressions and expressions that follow API improvement
26803
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
26804
+ # field name, an operator, and the value that you want to use for filtering. The
26805
+ # value must be a string, a number, or a boolean. The operator must be either `=`
26806
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
26807
+ # Engine instances, you can exclude instances named `example-instance` by
26808
+ # specifying `name != example-instance`. The `:` operator can be used with
26809
+ # string fields to match substrings. For non-string fields it is equivalent to
26810
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
26811
+ # been defined. For example, to find all objects with `owner` label use: ```
26812
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
26813
+ # specify `scheduling.automaticRestart = false` to include instances only if
26814
+ # they are not scheduled for automatic restarts. You can use filtering on nested
26815
+ # fields to filter based on resource labels. To filter on multiple expressions,
26816
+ # provide each separate expression within parentheses. For example: ``` (
26817
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
26818
+ # default, each expression is an `AND` expression. However, you can include `AND`
26819
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
26820
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
26821
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
26822
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
26823
+ # expression with or without quotes or against multiple parenthesized
26824
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
26825
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
26826
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
26827
+ # regular expression using Google RE2 library syntax. The literal value must
26828
+ # match the entire field. For example, to filter for instances that do not end
26829
+ # with name "instance", you would use `name ne .*instance`.
26830
+ # @param [Fixnum] max_results
26831
+ # The maximum number of results per page that should be returned. If the number
26832
+ # of available results is larger than `maxResults`, Compute Engine returns a `
26833
+ # nextPageToken` that can be used to get the next page of results in subsequent
26834
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26835
+ # @param [String] order_by
26836
+ # Sorts list results by a certain order. By default, results are returned in
26837
+ # alphanumerical order based on the resource name. You can also sort results in
26838
+ # descending order based on the creation timestamp using `orderBy="
26839
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
26840
+ # field in reverse chronological order (newest result first). Use this to sort
26841
+ # resources like operations so that the newest operation is returned first.
26842
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26843
+ # @param [String] page_token
26844
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26845
+ # by a previous list request to get the next page of results.
26846
+ # @param [Boolean] return_partial_success
26847
+ # Opt-in for partial success behavior which provides partial results in case of
26848
+ # failure. The default value is false.
26849
+ # @param [String] fields
26850
+ # Selector specifying which fields to include in a partial response.
26851
+ # @param [String] quota_user
26852
+ # Available to use for quota purposes for server-side applications. Can be any
26853
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26854
+ # @param [String] user_ip
26855
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26856
+ # @param [Google::Apis::RequestOptions] options
26857
+ # Request-specific options
26858
+ #
26859
+ # @yield [result, err] Result & error if block supplied
26860
+ # @yieldparam result [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse] parsed result object
26861
+ # @yieldparam err [StandardError] error object if request failed
26862
+ #
26863
+ # @return [Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse]
26864
+ #
26865
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26866
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26867
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26868
+ 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)
26869
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/sslPolicies/listAvailableFeatures', options)
26870
+ command.response_representation = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse::Representation
26871
+ command.response_class = Google::Apis::ComputeV1::SslPoliciesListAvailableFeaturesResponse
26872
+ command.params['project'] = project unless project.nil?
26873
+ command.params['region'] = region unless region.nil?
26874
+ command.query['filter'] = filter unless filter.nil?
26875
+ command.query['maxResults'] = max_results unless max_results.nil?
26876
+ command.query['orderBy'] = order_by unless order_by.nil?
26877
+ command.query['pageToken'] = page_token unless page_token.nil?
26878
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26879
+ command.query['fields'] = fields unless fields.nil?
26880
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26881
+ command.query['userIp'] = user_ip unless user_ip.nil?
26882
+ execute_or_queue_command(command, &block)
26883
+ end
26884
+
26885
+ # Patches the specified SSL policy with the data included in the request.
26886
+ # @param [String] project
26887
+ # Project ID for this request.
26888
+ # @param [String] region
26889
+ # Name of the region scoping this request.
26890
+ # @param [String] ssl_policy
26891
+ # Name of the SSL policy to update. The name must be 1-63 characters long, and
26892
+ # comply with RFC1035.
26893
+ # @param [Google::Apis::ComputeV1::SslPolicy] ssl_policy_object
26894
+ # @param [String] request_id
26895
+ # An optional request ID to identify requests. Specify a unique request ID so
26896
+ # that if you must retry your request, the server will know to ignore the
26897
+ # request if it has already been completed. For example, consider a situation
26898
+ # where you make an initial request and the request times out. If you make the
26899
+ # request again with the same request ID, the server can check if original
26900
+ # operation with the same request ID was received, and if so, will ignore the
26901
+ # second request. This prevents clients from accidentally creating duplicate
26902
+ # commitments. The request ID must be a valid UUID with the exception that zero
26903
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26904
+ # @param [String] fields
26905
+ # Selector specifying which fields to include in a partial response.
26906
+ # @param [String] quota_user
26907
+ # Available to use for quota purposes for server-side applications. Can be any
26908
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
26909
+ # @param [String] user_ip
26910
+ # Legacy name for parameter that has been superseded by `quotaUser`.
26911
+ # @param [Google::Apis::RequestOptions] options
26912
+ # Request-specific options
26913
+ #
26914
+ # @yield [result, err] Result & error if block supplied
26915
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
26916
+ # @yieldparam err [StandardError] error object if request failed
26917
+ #
26918
+ # @return [Google::Apis::ComputeV1::Operation]
26919
+ #
26920
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26921
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26922
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26923
+ 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)
26924
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/sslPolicies/{sslPolicy}', options)
26925
+ command.request_representation = Google::Apis::ComputeV1::SslPolicy::Representation
26926
+ command.request_object = ssl_policy_object
26927
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
26928
+ command.response_class = Google::Apis::ComputeV1::Operation
26929
+ command.params['project'] = project unless project.nil?
26930
+ command.params['region'] = region unless region.nil?
26931
+ command.params['sslPolicy'] = ssl_policy unless ssl_policy.nil?
26932
+ command.query['requestId'] = request_id unless request_id.nil?
26933
+ command.query['fields'] = fields unless fields.nil?
26934
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26935
+ command.query['userIp'] = user_ip unless user_ip.nil?
26936
+ execute_or_queue_command(command, &block)
26937
+ end
26938
+
26558
26939
  # Deletes the specified TargetHttpProxy resource.
26559
26940
  # @param [String] project
26560
26941
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.47.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-08-08 00:00:00.000000000 Z
11
+ date: 2022-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_v1/v0.47.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_v1
63
63
  post_install_message:
64
64
  rdoc_options: []