google-apis-compute_alpha 0.45.0 → 0.46.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: 478d2aa46654fbcd2722a71372dd4dfe05cd8406be4b6d59df4fb6daed319a00
4
- data.tar.gz: 6b7ca553a1ff825d858a1df3b6d3782ebc060d5aab750c4d6e7ebc3f4e457584
3
+ metadata.gz: '039f69e44eaa948bd53c90c917c8b2a7a1081beaa075a27ae76e47d5aa5b39ef'
4
+ data.tar.gz: 2bedc3b86dc9ec43135b391f00052f0d88bb51c64e8fd344f0158ff70181c756
5
5
  SHA512:
6
- metadata.gz: 2fbdae738b194f0b85379ebe02358dfd5868340f75b8d4c3ae6d670d6fa51bbc947ca1d0314d08c9b1f984fa09b4ccdd9a4a5d0238ba43571a836b3419f57c78
7
- data.tar.gz: 654fd44720b65a41b87fd7920cc68aff36fab14caebe3a21c5b9638917e250f98da91527faf92680e2bec1aa1a8b7e066c2eb2f465ebbf962782d3b9c9d03386
6
+ metadata.gz: f358c2ae233fd9a2e37f30ceee669fd9579a302d9b9b3d09109edf4f1efd328d09e880f01b96334f802a51238e4523ae5f4fdcb961e04bde416c1b90bf382c0d
7
+ data.tar.gz: 755f7298b850ad9f534c20607f65e036c2704ef114c1a25587d50171d1f5fec0ef7311090f6cc7f7184a713992f0204a43c20c99d1d004e374cfd53adc3bda6b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.46.0 (2022-08-14)
4
+
5
+ * Regenerated from discovery document revision 20220809
6
+
3
7
  ### v0.45.0 (2022-08-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20220726
@@ -1636,6 +1636,13 @@ module Google
1636
1636
  # @return [Fixnum]
1637
1637
  attr_accessor :provisioned_iops
1638
1638
 
1639
+ # Indicates how much throughput to provision for the disk. This sets the number
1640
+ # of throughput mb per second that the disk can handle. Values must be between 1
1641
+ # and 7,124.
1642
+ # Corresponds to the JSON property `provisionedThroughput`
1643
+ # @return [Fixnum]
1644
+ attr_accessor :provisioned_throughput
1645
+
1639
1646
  # URLs of the zones where the disk should be replicated to. Only applicable for
1640
1647
  # regional resources.
1641
1648
  # Corresponds to the JSON property `replicaZones`
@@ -1728,6 +1735,7 @@ module Google
1728
1735
  @multi_writer = args[:multi_writer] if args.key?(:multi_writer)
1729
1736
  @on_update_action = args[:on_update_action] if args.key?(:on_update_action)
1730
1737
  @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
1738
+ @provisioned_throughput = args[:provisioned_throughput] if args.key?(:provisioned_throughput)
1731
1739
  @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
1732
1740
  @resource_manager_tags = args[:resource_manager_tags] if args.key?(:resource_manager_tags)
1733
1741
  @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
@@ -4969,25 +4977,28 @@ module Google
4969
4977
  # anyone who is authenticated with a Google account or a service account. * `
4970
4978
  # user:`emailid``: An email address that represents a specific Google account.
4971
4979
  # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
4972
- # address that represents a service account. For example, `my-other-app@appspot.
4973
- # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
4974
- # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
4975
- # `uniqueid``: An email address (plus unique identifier) representing a user
4976
- # that has been recently deleted. For example, `alice@example.com?uid=
4977
- # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
4978
- # emailid`` and the recovered user retains the role in the binding. * `deleted:
4979
- # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
4980
- # identifier) representing a service account that has been recently deleted. For
4981
- # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
4982
- # If the service account is undeleted, this value reverts to `serviceAccount:`
4983
- # emailid`` and the undeleted service account retains the role in the binding. *
4984
- # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
4985
- # identifier) representing a Google group that has been recently deleted. For
4986
- # example, `admins@example.com?uid=123456789012345678901`. If the group is
4987
- # recovered, this value reverts to `group:`emailid`` and the recovered group
4988
- # retains the role in the binding. * `domain:`domain``: The G Suite domain (
4989
- # primary) that represents all the users of that domain. For example, `google.
4990
- # com` or `example.com`.
4980
+ # address that represents a Google service account. For example, `my-other-app@
4981
+ # appspot.gserviceaccount.com`. * `serviceAccount:`projectid`.svc.id.goog[`
4982
+ # namespace`/`kubernetes-sa`]`: An identifier for a [Kubernetes service account](
4983
+ # https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-
4984
+ # accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`
4985
+ # . * `group:`emailid``: An email address that represents a Google group. For
4986
+ # example, `admins@example.com`. * `deleted:user:`emailid`?uid=`uniqueid``: An
4987
+ # email address (plus unique identifier) representing a user that has been
4988
+ # recently deleted. For example, `alice@example.com?uid=123456789012345678901`.
4989
+ # If the user is recovered, this value reverts to `user:`emailid`` and the
4990
+ # recovered user retains the role in the binding. * `deleted:serviceAccount:`
4991
+ # emailid`?uid=`uniqueid``: An email address (plus unique identifier)
4992
+ # representing a service account that has been recently deleted. For example, `
4993
+ # my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
4994
+ # service account is undeleted, this value reverts to `serviceAccount:`emailid``
4995
+ # and the undeleted service account retains the role in the binding. * `deleted:
4996
+ # group:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
4997
+ # representing a Google group that has been recently deleted. For example, `
4998
+ # admins@example.com?uid=123456789012345678901`. If the group is recovered, this
4999
+ # value reverts to `group:`emailid`` and the recovered group retains the role in
5000
+ # the binding. * `domain:`domain``: The G Suite domain (primary) that represents
5001
+ # all the users of that domain. For example, `google.com` or `example.com`.
4991
5002
  # Corresponds to the JSON property `members`
4992
5003
  # @return [Array<String>]
4993
5004
  attr_accessor :members
@@ -6551,6 +6562,13 @@ module Google
6551
6562
  # @return [Fixnum]
6552
6563
  attr_accessor :provisioned_iops
6553
6564
 
6565
+ # Indicates how much throughput to provision for the disk. This sets the number
6566
+ # of throughput mb per second that the disk can handle. Values must be between 1
6567
+ # and 7,124.
6568
+ # Corresponds to the JSON property `provisionedThroughput`
6569
+ # @return [Fixnum]
6570
+ attr_accessor :provisioned_throughput
6571
+
6554
6572
  # [Output Only] URL of the region where the disk resides. Only applicable for
6555
6573
  # regional resources. You must specify this field as part of the HTTP request
6556
6574
  # URL. It is not settable as a field in the request body.
@@ -6785,6 +6803,7 @@ module Google
6785
6803
  @params = args[:params] if args.key?(:params)
6786
6804
  @physical_block_size_bytes = args[:physical_block_size_bytes] if args.key?(:physical_block_size_bytes)
6787
6805
  @provisioned_iops = args[:provisioned_iops] if args.key?(:provisioned_iops)
6806
+ @provisioned_throughput = args[:provisioned_throughput] if args.key?(:provisioned_throughput)
6788
6807
  @region = args[:region] if args.key?(:region)
6789
6808
  @replica_zones = args[:replica_zones] if args.key?(:replica_zones)
6790
6809
  @resource_policies = args[:resource_policies] if args.key?(:resource_policies)
@@ -7884,8 +7903,10 @@ module Google
7884
7903
  end
7885
7904
  end
7886
7905
 
7887
- #
7888
- class DisksStopGroupAsyncReplicationRequest
7906
+ # A transient resource used in compute.disks.stopGroupAsyncReplication and
7907
+ # compute.regionDisks.stopGroupAsyncReplication. It is only used to process
7908
+ # requests and is not persisted.
7909
+ class DisksStopGroupAsyncReplicationResource
7889
7910
  include Google::Apis::Core::Hashable
7890
7911
 
7891
7912
  # The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This
@@ -16169,10 +16190,9 @@ module Google
16169
16190
 
16170
16191
  # A bit indicating whether to forcefully apply the group's latest configuration
16171
16192
  # when repairing a VM. Valid options are: - NO (default): If configuration
16172
- # updates are available, they are not forcefully applied during repair. However,
16173
- # if you've set up a proactive type of update policy, then configuration updates
16174
- # are applied as usual. - YES: If configuration updates are available, they are
16175
- # applied during repair.
16193
+ # updates are available, they are not forcefully applied during repair. Instead,
16194
+ # configuration updates are applied according to the group's update policy. -
16195
+ # YES: If configuration updates are available, they are applied during repair.
16176
16196
  # Corresponds to the JSON property `forceUpdateOnRepair`
16177
16197
  # @return [String]
16178
16198
  attr_accessor :force_update_on_repair
@@ -25065,6 +25085,12 @@ module Google
25065
25085
  # @return [String]
25066
25086
  attr_accessor :network_endpoint_type
25067
25087
 
25088
+ # All data that is specifically relevant to only network endpoint groups of type
25089
+ # PRIVATE_SERVICE_CONNECT.
25090
+ # Corresponds to the JSON property `pscData`
25091
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupPscData]
25092
+ attr_accessor :psc_data
25093
+
25068
25094
  # The target service url used to set up private service connection to a Google
25069
25095
  # API or a PSC Producer Service Attachment. An example value is: "asia-
25070
25096
  # northeast3-cloudkms.googleapis.com"
@@ -25136,6 +25162,7 @@ module Google
25136
25162
  @name = args[:name] if args.key?(:name)
25137
25163
  @network = args[:network] if args.key?(:network)
25138
25164
  @network_endpoint_type = args[:network_endpoint_type] if args.key?(:network_endpoint_type)
25165
+ @psc_data = args[:psc_data] if args.key?(:psc_data)
25139
25166
  @psc_target_service = args[:psc_target_service] if args.key?(:psc_target_service)
25140
25167
  @region = args[:region] if args.key?(:region)
25141
25168
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -25551,6 +25578,39 @@ module Google
25551
25578
  end
25552
25579
  end
25553
25580
 
25581
+ # All data that is specifically relevant to only network endpoint groups of type
25582
+ # PRIVATE_SERVICE_CONNECT.
25583
+ class NetworkEndpointGroupPscData
25584
+ include Google::Apis::Core::Hashable
25585
+
25586
+ # [Output Only] Address allocated from given subnetwork for PSC. This IP address
25587
+ # acts as a VIP for a PSC NEG, allowing it to act as an endpoint in L7 PSC-XLB.
25588
+ # Corresponds to the JSON property `consumerPscAddress`
25589
+ # @return [String]
25590
+ attr_accessor :consumer_psc_address
25591
+
25592
+ # [Output Only] The PSC connection id of the PSC Network Endpoint Group Consumer.
25593
+ # Corresponds to the JSON property `pscConnectionId`
25594
+ # @return [Fixnum]
25595
+ attr_accessor :psc_connection_id
25596
+
25597
+ # [Output Only] The connection status of the PSC Forwarding Rule.
25598
+ # Corresponds to the JSON property `pscConnectionStatus`
25599
+ # @return [String]
25600
+ attr_accessor :psc_connection_status
25601
+
25602
+ def initialize(**args)
25603
+ update!(**args)
25604
+ end
25605
+
25606
+ # Update properties of this object
25607
+ def update!(**args)
25608
+ @consumer_psc_address = args[:consumer_psc_address] if args.key?(:consumer_psc_address)
25609
+ @psc_connection_id = args[:psc_connection_id] if args.key?(:psc_connection_id)
25610
+ @psc_connection_status = args[:psc_connection_status] if args.key?(:psc_connection_status)
25611
+ end
25612
+ end
25613
+
25554
25614
  # Configuration for a serverless network endpoint group (NEG). The platform must
25555
25615
  # be provided. Note: The target backend service must be in the same project and
25556
25616
  # located in the same region as the Serverless NEG.
@@ -27413,6 +27473,25 @@ module Google
27413
27473
  end
27414
27474
  end
27415
27475
 
27476
+ #
27477
+ class NodeGroupsSimulateMaintenanceEventRequest
27478
+ include Google::Apis::Core::Hashable
27479
+
27480
+ # Names of the nodes to go under maintenance simulation.
27481
+ # Corresponds to the JSON property `nodes`
27482
+ # @return [Array<String>]
27483
+ attr_accessor :nodes
27484
+
27485
+ def initialize(**args)
27486
+ update!(**args)
27487
+ end
27488
+
27489
+ # Update properties of this object
27490
+ def update!(**args)
27491
+ @nodes = args[:nodes] if args.key?(:nodes)
27492
+ end
27493
+ end
27494
+
27416
27495
  # Represent a sole-tenant Node Template resource. You can use a template to
27417
27496
  # define properties for nodes in a node group. For more information, read
27418
27497
  # Creating node groups and instances.
@@ -33106,29 +33185,6 @@ module Google
33106
33185
  end
33107
33186
  end
33108
33187
 
33109
- #
33110
- class RegionDisksStopGroupAsyncReplicationRequest
33111
- include Google::Apis::Core::Hashable
33112
-
33113
- # The URL of the DiskConsistencyGroupPolicy for the group of disks to stop. This
33114
- # may be a full or partial URL, such as: - https://www.googleapis.com/compute/v1/
33115
- # projects/project/regions/region /resourcePolicies/resourcePolicy - projects/
33116
- # project/regions/region/resourcePolicies/resourcePolicy - regions/region/
33117
- # resourcePolicies/resourcePolicy
33118
- # Corresponds to the JSON property `resourcePolicy`
33119
- # @return [String]
33120
- attr_accessor :resource_policy
33121
-
33122
- def initialize(**args)
33123
- update!(**args)
33124
- end
33125
-
33126
- # Update properties of this object
33127
- def update!(**args)
33128
- @resource_policy = args[:resource_policy] if args.key?(:resource_policy)
33129
- end
33130
- end
33131
-
33132
33188
  # Contains a list of InstanceGroup resources.
33133
33189
  class RegionInstanceGroupList
33134
33190
  include Google::Apis::Core::Hashable
@@ -38471,6 +38527,12 @@ module Google
38471
38527
  # @return [Fixnum]
38472
38528
  attr_accessor :current_memory_mb
38473
38529
 
38530
+ # Configuration for properties related to dynamic assignment of computing
38531
+ # resources to VM (CPU and RAM).
38532
+ # Corresponds to the JSON property `dynamicResizeProperties`
38533
+ # @return [Google::Apis::ComputeAlpha::SchedulingDynamicResizeProperties]
38534
+ attr_accessor :dynamic_resize_properties
38535
+
38474
38536
  # Specify the time in seconds for host error detection, the value must be within
38475
38537
  # the range of [90, 330] with the increment of 30, if unset, the default
38476
38538
  # behavior of host error recovery will be used.
@@ -38568,6 +38630,7 @@ module Google
38568
38630
  @availability_domain = args[:availability_domain] if args.key?(:availability_domain)
38569
38631
  @current_cpus = args[:current_cpus] if args.key?(:current_cpus)
38570
38632
  @current_memory_mb = args[:current_memory_mb] if args.key?(:current_memory_mb)
38633
+ @dynamic_resize_properties = args[:dynamic_resize_properties] if args.key?(:dynamic_resize_properties)
38571
38634
  @host_error_timeout_seconds = args[:host_error_timeout_seconds] if args.key?(:host_error_timeout_seconds)
38572
38635
  @instance_termination_action = args[:instance_termination_action] if args.key?(:instance_termination_action)
38573
38636
  @latency_tolerant = args[:latency_tolerant] if args.key?(:latency_tolerant)
@@ -38584,6 +38647,33 @@ module Google
38584
38647
  end
38585
38648
  end
38586
38649
 
38650
+ # Configuration for properties related to dynamic assignment of computing
38651
+ # resources to VM (CPU and RAM).
38652
+ class SchedulingDynamicResizeProperties
38653
+ include Google::Apis::Core::Hashable
38654
+
38655
+ # Set to true if this VM is supporting HotStandby modes (b/235044648).
38656
+ # Corresponds to the JSON property `enableHotStandby`
38657
+ # @return [Boolean]
38658
+ attr_accessor :enable_hot_standby
38659
+ alias_method :enable_hot_standby?, :enable_hot_standby
38660
+
38661
+ # Current Hot Standby state of VM.
38662
+ # Corresponds to the JSON property `hotStandbyState`
38663
+ # @return [String]
38664
+ attr_accessor :hot_standby_state
38665
+
38666
+ def initialize(**args)
38667
+ update!(**args)
38668
+ end
38669
+
38670
+ # Update properties of this object
38671
+ def update!(**args)
38672
+ @enable_hot_standby = args[:enable_hot_standby] if args.key?(:enable_hot_standby)
38673
+ @hot_standby_state = args[:hot_standby_state] if args.key?(:hot_standby_state)
38674
+ end
38675
+ end
38676
+
38587
38677
  # Node Affinity: the configuration of desired nodes onto which this Instance
38588
38678
  # could be scheduled.
38589
38679
  class SchedulingNodeAffinity
@@ -39560,6 +39650,13 @@ module Google
39560
39650
  # @return [Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcher]
39561
39651
  attr_accessor :match
39562
39652
 
39653
+ # Preconfigured WAF configuration to be applied for the rule. If the rule does
39654
+ # not evaluate preconfigured WAF rules, i.e., if evaluatePreconfiguredWaf() is
39655
+ # not used, this field will have no effect.
39656
+ # Corresponds to the JSON property `preconfiguredWafConfig`
39657
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfig]
39658
+ attr_accessor :preconfigured_waf_config
39659
+
39563
39660
  # If set to true, the specified action is not enforced.
39564
39661
  # Corresponds to the JSON property `preview`
39565
39662
  # @return [Boolean]
@@ -39637,6 +39734,7 @@ module Google
39637
39734
  @header_action = args[:header_action] if args.key?(:header_action)
39638
39735
  @kind = args[:kind] if args.key?(:kind)
39639
39736
  @match = args[:match] if args.key?(:match)
39737
+ @preconfigured_waf_config = args[:preconfigured_waf_config] if args.key?(:preconfigured_waf_config)
39640
39738
  @preview = args[:preview] if args.key?(:preview)
39641
39739
  @priority = args[:priority] if args.key?(:priority)
39642
39740
  @rate_limit_options = args[:rate_limit_options] if args.key?(:rate_limit_options)
@@ -39849,6 +39947,107 @@ module Google
39849
39947
  end
39850
39948
  end
39851
39949
 
39950
+ #
39951
+ class SecurityPolicyRulePreconfiguredWafConfig
39952
+ include Google::Apis::Core::Hashable
39953
+
39954
+ # A list of exclusions to apply during preconfigured WAF evaluation.
39955
+ # Corresponds to the JSON property `exclusions`
39956
+ # @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusion>]
39957
+ attr_accessor :exclusions
39958
+
39959
+ def initialize(**args)
39960
+ update!(**args)
39961
+ end
39962
+
39963
+ # Update properties of this object
39964
+ def update!(**args)
39965
+ @exclusions = args[:exclusions] if args.key?(:exclusions)
39966
+ end
39967
+ end
39968
+
39969
+ #
39970
+ class SecurityPolicyRulePreconfiguredWafConfigExclusion
39971
+ include Google::Apis::Core::Hashable
39972
+
39973
+ # A list of request cookie names whose value will be excluded from inspection
39974
+ # during preconfigured WAF evaluation.
39975
+ # Corresponds to the JSON property `requestCookiesToExclude`
39976
+ # @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>]
39977
+ attr_accessor :request_cookies_to_exclude
39978
+
39979
+ # A list of request header names whose value will be excluded from inspection
39980
+ # during preconfigured WAF evaluation.
39981
+ # Corresponds to the JSON property `requestHeadersToExclude`
39982
+ # @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>]
39983
+ attr_accessor :request_headers_to_exclude
39984
+
39985
+ # A list of request query parameter names whose value will be excluded from
39986
+ # inspection during preconfigured WAF evaluation. Note that the parameter can be
39987
+ # in the query string or in the POST body.
39988
+ # Corresponds to the JSON property `requestQueryParamsToExclude`
39989
+ # @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>]
39990
+ attr_accessor :request_query_params_to_exclude
39991
+
39992
+ # A list of request URIs from the request line to be excluded from inspection
39993
+ # during preconfigured WAF evaluation. When specifying this field, the query or
39994
+ # fragment part should be excluded.
39995
+ # Corresponds to the JSON property `requestUrisToExclude`
39996
+ # @return [Array<Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams>]
39997
+ attr_accessor :request_uris_to_exclude
39998
+
39999
+ # A list of target rule IDs under the WAF rule set to apply the preconfigured
40000
+ # WAF exclusion. If omitted, it refers to all the rule IDs under the WAF rule
40001
+ # set.
40002
+ # Corresponds to the JSON property `targetRuleIds`
40003
+ # @return [Array<String>]
40004
+ attr_accessor :target_rule_ids
40005
+
40006
+ # Target WAF rule set to apply the preconfigured WAF exclusion.
40007
+ # Corresponds to the JSON property `targetRuleSet`
40008
+ # @return [String]
40009
+ attr_accessor :target_rule_set
40010
+
40011
+ def initialize(**args)
40012
+ update!(**args)
40013
+ end
40014
+
40015
+ # Update properties of this object
40016
+ def update!(**args)
40017
+ @request_cookies_to_exclude = args[:request_cookies_to_exclude] if args.key?(:request_cookies_to_exclude)
40018
+ @request_headers_to_exclude = args[:request_headers_to_exclude] if args.key?(:request_headers_to_exclude)
40019
+ @request_query_params_to_exclude = args[:request_query_params_to_exclude] if args.key?(:request_query_params_to_exclude)
40020
+ @request_uris_to_exclude = args[:request_uris_to_exclude] if args.key?(:request_uris_to_exclude)
40021
+ @target_rule_ids = args[:target_rule_ids] if args.key?(:target_rule_ids)
40022
+ @target_rule_set = args[:target_rule_set] if args.key?(:target_rule_set)
40023
+ end
40024
+ end
40025
+
40026
+ #
40027
+ class SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
40028
+ include Google::Apis::Core::Hashable
40029
+
40030
+ # The match operator for the field.
40031
+ # Corresponds to the JSON property `op`
40032
+ # @return [String]
40033
+ attr_accessor :op
40034
+
40035
+ # The value of the field.
40036
+ # Corresponds to the JSON property `val`
40037
+ # @return [String]
40038
+ attr_accessor :val
40039
+
40040
+ def initialize(**args)
40041
+ update!(**args)
40042
+ end
40043
+
40044
+ # Update properties of this object
40045
+ def update!(**args)
40046
+ @op = args[:op] if args.key?(:op)
40047
+ @val = args[:val] if args.key?(:val)
40048
+ end
40049
+ end
40050
+
39852
40051
  #
39853
40052
  class SecurityPolicyRuleRateLimitOptions
39854
40053
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ComputeAlpha
18
18
  # Version of the google-apis-compute_alpha gem
19
- GEM_VERSION = "0.45.0"
19
+ GEM_VERSION = "0.46.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
@@ -928,7 +928,7 @@ module Google
928
928
  include Google::Apis::Core::JsonObjectSupport
929
929
  end
930
930
 
931
- class DisksStopGroupAsyncReplicationRequest
931
+ class DisksStopGroupAsyncReplicationResource
932
932
  class Representation < Google::Apis::Core::JsonRepresentation; end
933
933
 
934
934
  include Google::Apis::Core::JsonObjectSupport
@@ -3190,6 +3190,12 @@ module Google
3190
3190
  include Google::Apis::Core::JsonObjectSupport
3191
3191
  end
3192
3192
 
3193
+ class NetworkEndpointGroupPscData
3194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3195
+
3196
+ include Google::Apis::Core::JsonObjectSupport
3197
+ end
3198
+
3193
3199
  class NetworkEndpointGroupServerlessDeployment
3194
3200
  class Representation < Google::Apis::Core::JsonRepresentation; end
3195
3201
 
@@ -3460,6 +3466,12 @@ module Google
3460
3466
  include Google::Apis::Core::JsonObjectSupport
3461
3467
  end
3462
3468
 
3469
+ class NodeGroupsSimulateMaintenanceEventRequest
3470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3471
+
3472
+ include Google::Apis::Core::JsonObjectSupport
3473
+ end
3474
+
3463
3475
  class NodeTemplate
3464
3476
  class Representation < Google::Apis::Core::JsonRepresentation; end
3465
3477
 
@@ -4246,12 +4258,6 @@ module Google
4246
4258
  include Google::Apis::Core::JsonObjectSupport
4247
4259
  end
4248
4260
 
4249
- class RegionDisksStopGroupAsyncReplicationRequest
4250
- class Representation < Google::Apis::Core::JsonRepresentation; end
4251
-
4252
- include Google::Apis::Core::JsonObjectSupport
4253
- end
4254
-
4255
4261
  class RegionInstanceGroupList
4256
4262
  class Representation < Google::Apis::Core::JsonRepresentation; end
4257
4263
 
@@ -5020,6 +5026,12 @@ module Google
5020
5026
  include Google::Apis::Core::JsonObjectSupport
5021
5027
  end
5022
5028
 
5029
+ class SchedulingDynamicResizeProperties
5030
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5031
+
5032
+ include Google::Apis::Core::JsonObjectSupport
5033
+ end
5034
+
5023
5035
  class SchedulingNodeAffinity
5024
5036
  class Representation < Google::Apis::Core::JsonRepresentation; end
5025
5037
 
@@ -5212,6 +5224,24 @@ module Google
5212
5224
  include Google::Apis::Core::JsonObjectSupport
5213
5225
  end
5214
5226
 
5227
+ class SecurityPolicyRulePreconfiguredWafConfig
5228
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5229
+
5230
+ include Google::Apis::Core::JsonObjectSupport
5231
+ end
5232
+
5233
+ class SecurityPolicyRulePreconfiguredWafConfigExclusion
5234
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5235
+
5236
+ include Google::Apis::Core::JsonObjectSupport
5237
+ end
5238
+
5239
+ class SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
5240
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5241
+
5242
+ include Google::Apis::Core::JsonObjectSupport
5243
+ end
5244
+
5215
5245
  class SecurityPolicyRuleRateLimitOptions
5216
5246
  class Representation < Google::Apis::Core::JsonRepresentation; end
5217
5247
 
@@ -7041,6 +7071,7 @@ module Google
7041
7071
  property :multi_writer, as: 'multiWriter'
7042
7072
  property :on_update_action, as: 'onUpdateAction'
7043
7073
  property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
7074
+ property :provisioned_throughput, :numeric_string => true, as: 'provisionedThroughput'
7044
7075
  collection :replica_zones, as: 'replicaZones'
7045
7076
  hash :resource_manager_tags, as: 'resourceManagerTags'
7046
7077
  collection :resource_policies, as: 'resourcePolicies'
@@ -8123,6 +8154,7 @@ module Google
8123
8154
 
8124
8155
  property :physical_block_size_bytes, :numeric_string => true, as: 'physicalBlockSizeBytes'
8125
8156
  property :provisioned_iops, :numeric_string => true, as: 'provisionedIops'
8157
+ property :provisioned_throughput, :numeric_string => true, as: 'provisionedThroughput'
8126
8158
  property :region, as: 'region'
8127
8159
  collection :replica_zones, as: 'replicaZones'
8128
8160
  collection :resource_policies, as: 'resourcePolicies'
@@ -8454,7 +8486,7 @@ module Google
8454
8486
  end
8455
8487
  end
8456
8488
 
8457
- class DisksStopGroupAsyncReplicationRequest
8489
+ class DisksStopGroupAsyncReplicationResource
8458
8490
  # @private
8459
8491
  class Representation < Google::Apis::Core::JsonRepresentation
8460
8492
  property :resource_policy, as: 'resourcePolicy'
@@ -12659,6 +12691,8 @@ module Google
12659
12691
  property :name, as: 'name'
12660
12692
  property :network, as: 'network'
12661
12693
  property :network_endpoint_type, as: 'networkEndpointType'
12694
+ property :psc_data, as: 'pscData', class: Google::Apis::ComputeAlpha::NetworkEndpointGroupPscData, decorator: Google::Apis::ComputeAlpha::NetworkEndpointGroupPscData::Representation
12695
+
12662
12696
  property :psc_target_service, as: 'pscTargetService'
12663
12697
  property :region, as: 'region'
12664
12698
  property :self_link, as: 'selfLink'
@@ -12773,6 +12807,15 @@ module Google
12773
12807
  end
12774
12808
  end
12775
12809
 
12810
+ class NetworkEndpointGroupPscData
12811
+ # @private
12812
+ class Representation < Google::Apis::Core::JsonRepresentation
12813
+ property :consumer_psc_address, as: 'consumerPscAddress'
12814
+ property :psc_connection_id, :numeric_string => true, as: 'pscConnectionId'
12815
+ property :psc_connection_status, as: 'pscConnectionStatus'
12816
+ end
12817
+ end
12818
+
12776
12819
  class NetworkEndpointGroupServerlessDeployment
12777
12820
  # @private
12778
12821
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13264,6 +13307,13 @@ module Google
13264
13307
  end
13265
13308
  end
13266
13309
 
13310
+ class NodeGroupsSimulateMaintenanceEventRequest
13311
+ # @private
13312
+ class Representation < Google::Apis::Core::JsonRepresentation
13313
+ collection :nodes, as: 'nodes'
13314
+ end
13315
+ end
13316
+
13267
13317
  class NodeTemplate
13268
13318
  # @private
13269
13319
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14730,13 +14780,6 @@ module Google
14730
14780
  end
14731
14781
  end
14732
14782
 
14733
- class RegionDisksStopGroupAsyncReplicationRequest
14734
- # @private
14735
- class Representation < Google::Apis::Core::JsonRepresentation
14736
- property :resource_policy, as: 'resourcePolicy'
14737
- end
14738
- end
14739
-
14740
14783
  class RegionInstanceGroupList
14741
14784
  # @private
14742
14785
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -16106,6 +16149,8 @@ module Google
16106
16149
  property :availability_domain, as: 'availabilityDomain'
16107
16150
  property :current_cpus, as: 'currentCpus'
16108
16151
  property :current_memory_mb, :numeric_string => true, as: 'currentMemoryMb'
16152
+ property :dynamic_resize_properties, as: 'dynamicResizeProperties', class: Google::Apis::ComputeAlpha::SchedulingDynamicResizeProperties, decorator: Google::Apis::ComputeAlpha::SchedulingDynamicResizeProperties::Representation
16153
+
16109
16154
  property :host_error_timeout_seconds, as: 'hostErrorTimeoutSeconds'
16110
16155
  property :instance_termination_action, as: 'instanceTerminationAction'
16111
16156
  property :latency_tolerant, as: 'latencyTolerant'
@@ -16124,6 +16169,14 @@ module Google
16124
16169
  end
16125
16170
  end
16126
16171
 
16172
+ class SchedulingDynamicResizeProperties
16173
+ # @private
16174
+ class Representation < Google::Apis::Core::JsonRepresentation
16175
+ property :enable_hot_standby, as: 'enableHotStandby'
16176
+ property :hot_standby_state, as: 'hotStandbyState'
16177
+ end
16178
+ end
16179
+
16127
16180
  class SchedulingNodeAffinity
16128
16181
  # @private
16129
16182
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -16390,6 +16443,8 @@ module Google
16390
16443
  property :kind, as: 'kind'
16391
16444
  property :match, as: 'match', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcher, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleMatcher::Representation
16392
16445
 
16446
+ property :preconfigured_waf_config, as: 'preconfiguredWafConfig', class: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfig, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfig::Representation
16447
+
16393
16448
  property :preview, as: 'preview'
16394
16449
  property :priority, as: 'priority'
16395
16450
  property :rate_limit_options, as: 'rateLimitOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptions::Representation
@@ -16460,6 +16515,38 @@ module Google
16460
16515
  end
16461
16516
  end
16462
16517
 
16518
+ class SecurityPolicyRulePreconfiguredWafConfig
16519
+ # @private
16520
+ class Representation < Google::Apis::Core::JsonRepresentation
16521
+ collection :exclusions, as: 'exclusions', class: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusion, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusion::Representation
16522
+
16523
+ end
16524
+ end
16525
+
16526
+ class SecurityPolicyRulePreconfiguredWafConfigExclusion
16527
+ # @private
16528
+ class Representation < Google::Apis::Core::JsonRepresentation
16529
+ collection :request_cookies_to_exclude, as: 'requestCookiesToExclude', class: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams::Representation
16530
+
16531
+ collection :request_headers_to_exclude, as: 'requestHeadersToExclude', class: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams::Representation
16532
+
16533
+ collection :request_query_params_to_exclude, as: 'requestQueryParamsToExclude', class: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams::Representation
16534
+
16535
+ collection :request_uris_to_exclude, as: 'requestUrisToExclude', class: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams::Representation
16536
+
16537
+ collection :target_rule_ids, as: 'targetRuleIds'
16538
+ property :target_rule_set, as: 'targetRuleSet'
16539
+ end
16540
+ end
16541
+
16542
+ class SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
16543
+ # @private
16544
+ class Representation < Google::Apis::Core::JsonRepresentation
16545
+ property :op, as: 'op'
16546
+ property :val, as: 'val'
16547
+ end
16548
+ end
16549
+
16463
16550
  class SecurityPolicyRuleRateLimitOptions
16464
16551
  # @private
16465
16552
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3656,7 +3656,7 @@ module Google
3656
3656
  # @param [String] zone
3657
3657
  # The name of the zone for this request. This must be the zone of the primary or
3658
3658
  # secondary disks in the consistency group.
3659
- # @param [Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationRequest] disks_stop_group_async_replication_request_object
3659
+ # @param [Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource] disks_stop_group_async_replication_resource_object
3660
3660
  # @param [String] request_id
3661
3661
  # An optional request ID to identify requests. Specify a unique request ID so
3662
3662
  # that if you must retry your request, the server will know to ignore the
@@ -3686,10 +3686,10 @@ module Google
3686
3686
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3687
3687
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3688
3688
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3689
- def stop_disk_group_async_replication(project, zone, disks_stop_group_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3689
+ def stop_disk_group_async_replication(project, zone, disks_stop_group_async_replication_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3690
3690
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/stopGroupAsyncReplication', options)
3691
- command.request_representation = Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationRequest::Representation
3692
- command.request_object = disks_stop_group_async_replication_request_object
3691
+ command.request_representation = Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource::Representation
3692
+ command.request_object = disks_stop_group_async_replication_resource_object
3693
3693
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
3694
3694
  command.response_class = Google::Apis::ComputeAlpha::Operation
3695
3695
  command.params['project'] = project unless project.nil?
@@ -22023,6 +22023,60 @@ module Google
22023
22023
  execute_or_queue_command(command, &block)
22024
22024
  end
22025
22025
 
22026
+ # Simulates maintenance event on specified nodes from the node group.
22027
+ # @param [String] project
22028
+ # Project ID for this request.
22029
+ # @param [String] zone
22030
+ # The name of the zone for this request.
22031
+ # @param [String] node_group
22032
+ # Name of the NodeGroup resource whose nodes will go under maintenance
22033
+ # simulation.
22034
+ # @param [Google::Apis::ComputeAlpha::NodeGroupsSimulateMaintenanceEventRequest] node_groups_simulate_maintenance_event_request_object
22035
+ # @param [String] request_id
22036
+ # An optional request ID to identify requests. Specify a unique request ID so
22037
+ # that if you must retry your request, the server will know to ignore the
22038
+ # request if it has already been completed. For example, consider a situation
22039
+ # where you make an initial request and the request times out. If you make the
22040
+ # request again with the same request ID, the server can check if original
22041
+ # operation with the same request ID was received, and if so, will ignore the
22042
+ # second request. This prevents clients from accidentally creating duplicate
22043
+ # commitments. The request ID must be a valid UUID with the exception that zero
22044
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
22045
+ # @param [String] fields
22046
+ # Selector specifying which fields to include in a partial response.
22047
+ # @param [String] quota_user
22048
+ # Available to use for quota purposes for server-side applications. Can be any
22049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
22050
+ # @param [String] user_ip
22051
+ # Legacy name for parameter that has been superseded by `quotaUser`.
22052
+ # @param [Google::Apis::RequestOptions] options
22053
+ # Request-specific options
22054
+ #
22055
+ # @yield [result, err] Result & error if block supplied
22056
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
22057
+ # @yieldparam err [StandardError] error object if request failed
22058
+ #
22059
+ # @return [Google::Apis::ComputeAlpha::Operation]
22060
+ #
22061
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
22062
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
22063
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
22064
+ def simulate_node_group_maintenance_event(project, zone, node_group, node_groups_simulate_maintenance_event_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
22065
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/simulateMaintenanceEvent', options)
22066
+ command.request_representation = Google::Apis::ComputeAlpha::NodeGroupsSimulateMaintenanceEventRequest::Representation
22067
+ command.request_object = node_groups_simulate_maintenance_event_request_object
22068
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
22069
+ command.response_class = Google::Apis::ComputeAlpha::Operation
22070
+ command.params['project'] = project unless project.nil?
22071
+ command.params['zone'] = zone unless zone.nil?
22072
+ command.params['nodeGroup'] = node_group unless node_group.nil?
22073
+ command.query['requestId'] = request_id unless request_id.nil?
22074
+ command.query['fields'] = fields unless fields.nil?
22075
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
22076
+ command.query['userIp'] = user_ip unless user_ip.nil?
22077
+ execute_or_queue_command(command, &block)
22078
+ end
22079
+
22026
22080
  # Returns permissions that a caller has on the specified resource.
22027
22081
  # @param [String] project
22028
22082
  # Project ID for this request.
@@ -27681,7 +27735,7 @@ module Google
27681
27735
  # @param [String] region
27682
27736
  # The name of the region for this request. This must be the region of the
27683
27737
  # primary or secondary disks in the consistency group.
27684
- # @param [Google::Apis::ComputeAlpha::RegionDisksStopGroupAsyncReplicationRequest] region_disks_stop_group_async_replication_request_object
27738
+ # @param [Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource] disks_stop_group_async_replication_resource_object
27685
27739
  # @param [String] request_id
27686
27740
  # An optional request ID to identify requests. Specify a unique request ID so
27687
27741
  # that if you must retry your request, the server will know to ignore the
@@ -27711,10 +27765,10 @@ module Google
27711
27765
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
27712
27766
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
27713
27767
  # @raise [Google::Apis::AuthorizationError] Authorization is required
27714
- def stop_region_disk_group_async_replication(project, region, region_disks_stop_group_async_replication_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27768
+ def stop_region_disk_group_async_replication(project, region, disks_stop_group_async_replication_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
27715
27769
  command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/stopGroupAsyncReplication', options)
27716
- command.request_representation = Google::Apis::ComputeAlpha::RegionDisksStopGroupAsyncReplicationRequest::Representation
27717
- command.request_object = region_disks_stop_group_async_replication_request_object
27770
+ command.request_representation = Google::Apis::ComputeAlpha::DisksStopGroupAsyncReplicationResource::Representation
27771
+ command.request_object = disks_stop_group_async_replication_resource_object
27718
27772
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
27719
27773
  command.response_class = Google::Apis::ComputeAlpha::Operation
27720
27774
  command.params['project'] = project unless project.nil?
@@ -32523,366 +32577,6 @@ module Google
32523
32577
  execute_or_queue_command(command, &block)
32524
32578
  end
32525
32579
 
32526
- # Deletes the specified network.
32527
- # @param [String] project
32528
- # Project ID for this request.
32529
- # @param [String] region
32530
- # Name of the region scoping this request.
32531
- # @param [String] network
32532
- # Name of the network to delete.
32533
- # @param [String] request_id
32534
- # An optional request ID to identify requests. Specify a unique request ID so
32535
- # that if you must retry your request, the server will know to ignore the
32536
- # request if it has already been completed. For example, consider a situation
32537
- # where you make an initial request and the request times out. If you make the
32538
- # request again with the same request ID, the server can check if original
32539
- # operation with the same request ID was received, and if so, will ignore the
32540
- # second request. This prevents clients from accidentally creating duplicate
32541
- # commitments. The request ID must be a valid UUID with the exception that zero
32542
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32543
- # @param [String] fields
32544
- # Selector specifying which fields to include in a partial response.
32545
- # @param [String] quota_user
32546
- # Available to use for quota purposes for server-side applications. Can be any
32547
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32548
- # @param [String] user_ip
32549
- # Legacy name for parameter that has been superseded by `quotaUser`.
32550
- # @param [Google::Apis::RequestOptions] options
32551
- # Request-specific options
32552
- #
32553
- # @yield [result, err] Result & error if block supplied
32554
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
32555
- # @yieldparam err [StandardError] error object if request failed
32556
- #
32557
- # @return [Google::Apis::ComputeAlpha::Operation]
32558
- #
32559
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32560
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32561
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32562
- def delete_region_network(project, region, network, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32563
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networks/{network}', options)
32564
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32565
- command.response_class = Google::Apis::ComputeAlpha::Operation
32566
- command.params['project'] = project unless project.nil?
32567
- command.params['region'] = region unless region.nil?
32568
- command.params['network'] = network unless network.nil?
32569
- command.query['requestId'] = request_id unless request_id.nil?
32570
- command.query['fields'] = fields unless fields.nil?
32571
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32572
- command.query['userIp'] = user_ip unless user_ip.nil?
32573
- execute_or_queue_command(command, &block)
32574
- end
32575
-
32576
- # Returns the specified network.
32577
- # @param [String] project
32578
- # Project ID for this request.
32579
- # @param [String] region
32580
- # Name of the region scoping this request.
32581
- # @param [String] network
32582
- # Name of the network to return.
32583
- # @param [String] fields
32584
- # Selector specifying which fields to include in a partial response.
32585
- # @param [String] quota_user
32586
- # Available to use for quota purposes for server-side applications. Can be any
32587
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32588
- # @param [String] user_ip
32589
- # Legacy name for parameter that has been superseded by `quotaUser`.
32590
- # @param [Google::Apis::RequestOptions] options
32591
- # Request-specific options
32592
- #
32593
- # @yield [result, err] Result & error if block supplied
32594
- # @yieldparam result [Google::Apis::ComputeAlpha::Network] parsed result object
32595
- # @yieldparam err [StandardError] error object if request failed
32596
- #
32597
- # @return [Google::Apis::ComputeAlpha::Network]
32598
- #
32599
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32600
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32601
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32602
- def get_region_network(project, region, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32603
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks/{network}', options)
32604
- command.response_representation = Google::Apis::ComputeAlpha::Network::Representation
32605
- command.response_class = Google::Apis::ComputeAlpha::Network
32606
- command.params['project'] = project unless project.nil?
32607
- command.params['region'] = region unless region.nil?
32608
- command.params['network'] = network unless network.nil?
32609
- command.query['fields'] = fields unless fields.nil?
32610
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32611
- command.query['userIp'] = user_ip unless user_ip.nil?
32612
- execute_or_queue_command(command, &block)
32613
- end
32614
-
32615
- # Gets the access control policy for a resource. May be empty if no such policy
32616
- # or resource exists.
32617
- # @param [String] project
32618
- # Project ID for this request.
32619
- # @param [String] region
32620
- # The name of the region for this request.
32621
- # @param [String] resource
32622
- # Name or id of the resource for this request.
32623
- # @param [Fixnum] options_requested_policy_version
32624
- # Requested IAM Policy version.
32625
- # @param [String] fields
32626
- # Selector specifying which fields to include in a partial response.
32627
- # @param [String] quota_user
32628
- # Available to use for quota purposes for server-side applications. Can be any
32629
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32630
- # @param [String] user_ip
32631
- # Legacy name for parameter that has been superseded by `quotaUser`.
32632
- # @param [Google::Apis::RequestOptions] options
32633
- # Request-specific options
32634
- #
32635
- # @yield [result, err] Result & error if block supplied
32636
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
32637
- # @yieldparam err [StandardError] error object if request failed
32638
- #
32639
- # @return [Google::Apis::ComputeAlpha::Policy]
32640
- #
32641
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32642
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32643
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32644
- def get_region_network_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32645
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks/{resource}/getIamPolicy', options)
32646
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
32647
- command.response_class = Google::Apis::ComputeAlpha::Policy
32648
- command.params['project'] = project unless project.nil?
32649
- command.params['region'] = region unless region.nil?
32650
- command.params['resource'] = resource unless resource.nil?
32651
- command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
32652
- command.query['fields'] = fields unless fields.nil?
32653
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32654
- command.query['userIp'] = user_ip unless user_ip.nil?
32655
- execute_or_queue_command(command, &block)
32656
- end
32657
-
32658
- # Creates a network in the specified project and region using the data included
32659
- # in the request.
32660
- # @param [String] project
32661
- # Project ID for this request.
32662
- # @param [String] region
32663
- # Name of the region scoping this request.
32664
- # @param [Google::Apis::ComputeAlpha::Network] network_object
32665
- # @param [String] request_id
32666
- # An optional request ID to identify requests. Specify a unique request ID so
32667
- # that if you must retry your request, the server will know to ignore the
32668
- # request if it has already been completed. For example, consider a situation
32669
- # where you make an initial request and the request times out. If you make the
32670
- # request again with the same request ID, the server can check if original
32671
- # operation with the same request ID was received, and if so, will ignore the
32672
- # second request. This prevents clients from accidentally creating duplicate
32673
- # commitments. The request ID must be a valid UUID with the exception that zero
32674
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32675
- # @param [String] fields
32676
- # Selector specifying which fields to include in a partial response.
32677
- # @param [String] quota_user
32678
- # Available to use for quota purposes for server-side applications. Can be any
32679
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32680
- # @param [String] user_ip
32681
- # Legacy name for parameter that has been superseded by `quotaUser`.
32682
- # @param [Google::Apis::RequestOptions] options
32683
- # Request-specific options
32684
- #
32685
- # @yield [result, err] Result & error if block supplied
32686
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
32687
- # @yieldparam err [StandardError] error object if request failed
32688
- #
32689
- # @return [Google::Apis::ComputeAlpha::Operation]
32690
- #
32691
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32692
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32693
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32694
- def insert_region_network(project, region, network_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32695
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks', options)
32696
- command.request_representation = Google::Apis::ComputeAlpha::Network::Representation
32697
- command.request_object = network_object
32698
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32699
- command.response_class = Google::Apis::ComputeAlpha::Operation
32700
- command.params['project'] = project unless project.nil?
32701
- command.params['region'] = region unless region.nil?
32702
- command.query['requestId'] = request_id unless request_id.nil?
32703
- command.query['fields'] = fields unless fields.nil?
32704
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32705
- command.query['userIp'] = user_ip unless user_ip.nil?
32706
- execute_or_queue_command(command, &block)
32707
- end
32708
-
32709
- # Retrieves the list of networks available to the specified project in the given
32710
- # region.
32711
- # @param [String] project
32712
- # Project ID for this request.
32713
- # @param [String] region
32714
- # Name of the region scoping this request.
32715
- # @param [String] filter
32716
- # A filter expression that filters resources listed in the response. Most
32717
- # Compute resources support two types of filter expressions: expressions that
32718
- # support regular expressions and expressions that follow API improvement
32719
- # proposal AIP-160. If you want to use AIP-160, your expression must specify the
32720
- # field name, an operator, and the value that you want to use for filtering. The
32721
- # value must be a string, a number, or a boolean. The operator must be either `=`
32722
- # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
32723
- # Engine instances, you can exclude instances named `example-instance` by
32724
- # specifying `name != example-instance`. The `:` operator can be used with
32725
- # string fields to match substrings. For non-string fields it is equivalent to
32726
- # the `=` operator. The `:*` comparison can be used to test whether a key has
32727
- # been defined. For example, to find all objects with `owner` label use: ```
32728
- # labels.owner:* ``` You can also filter nested fields. For example, you could
32729
- # specify `scheduling.automaticRestart = false` to include instances only if
32730
- # they are not scheduled for automatic restarts. You can use filtering on nested
32731
- # fields to filter based on resource labels. To filter on multiple expressions,
32732
- # provide each separate expression within parentheses. For example: ``` (
32733
- # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
32734
- # default, each expression is an `AND` expression. However, you can include `AND`
32735
- # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
32736
- # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
32737
- # automaticRestart = true) ``` If you want to use a regular expression, use the `
32738
- # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
32739
- # expression with or without quotes or against multiple parenthesized
32740
- # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
32741
- # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
32742
- # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
32743
- # regular expression using Google RE2 library syntax. The literal value must
32744
- # match the entire field. For example, to filter for instances that do not end
32745
- # with name "instance", you would use `name ne .*instance`.
32746
- # @param [Fixnum] max_results
32747
- # The maximum number of results per page that should be returned. If the number
32748
- # of available results is larger than `maxResults`, Compute Engine returns a `
32749
- # nextPageToken` that can be used to get the next page of results in subsequent
32750
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
32751
- # @param [String] order_by
32752
- # Sorts list results by a certain order. By default, results are returned in
32753
- # alphanumerical order based on the resource name. You can also sort results in
32754
- # descending order based on the creation timestamp using `orderBy="
32755
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
32756
- # field in reverse chronological order (newest result first). Use this to sort
32757
- # resources like operations so that the newest operation is returned first.
32758
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
32759
- # @param [String] page_token
32760
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
32761
- # by a previous list request to get the next page of results.
32762
- # @param [Boolean] return_partial_success
32763
- # Opt-in for partial success behavior which provides partial results in case of
32764
- # failure. The default value is false.
32765
- # @param [String] fields
32766
- # Selector specifying which fields to include in a partial response.
32767
- # @param [String] quota_user
32768
- # Available to use for quota purposes for server-side applications. Can be any
32769
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32770
- # @param [String] user_ip
32771
- # Legacy name for parameter that has been superseded by `quotaUser`.
32772
- # @param [Google::Apis::RequestOptions] options
32773
- # Request-specific options
32774
- #
32775
- # @yield [result, err] Result & error if block supplied
32776
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkList] parsed result object
32777
- # @yieldparam err [StandardError] error object if request failed
32778
- #
32779
- # @return [Google::Apis::ComputeAlpha::NetworkList]
32780
- #
32781
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32782
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32783
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32784
- def list_region_networks(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)
32785
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networks', options)
32786
- command.response_representation = Google::Apis::ComputeAlpha::NetworkList::Representation
32787
- command.response_class = Google::Apis::ComputeAlpha::NetworkList
32788
- command.params['project'] = project unless project.nil?
32789
- command.params['region'] = region unless region.nil?
32790
- command.query['filter'] = filter unless filter.nil?
32791
- command.query['maxResults'] = max_results unless max_results.nil?
32792
- command.query['orderBy'] = order_by unless order_by.nil?
32793
- command.query['pageToken'] = page_token unless page_token.nil?
32794
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
32795
- command.query['fields'] = fields unless fields.nil?
32796
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32797
- command.query['userIp'] = user_ip unless user_ip.nil?
32798
- execute_or_queue_command(command, &block)
32799
- end
32800
-
32801
- # Sets the access control policy on the specified resource. Replaces any
32802
- # existing policy.
32803
- # @param [String] project
32804
- # Project ID for this request.
32805
- # @param [String] region
32806
- # The name of the region for this request.
32807
- # @param [String] resource
32808
- # Name or id of the resource for this request.
32809
- # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
32810
- # @param [String] fields
32811
- # Selector specifying which fields to include in a partial response.
32812
- # @param [String] quota_user
32813
- # Available to use for quota purposes for server-side applications. Can be any
32814
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32815
- # @param [String] user_ip
32816
- # Legacy name for parameter that has been superseded by `quotaUser`.
32817
- # @param [Google::Apis::RequestOptions] options
32818
- # Request-specific options
32819
- #
32820
- # @yield [result, err] Result & error if block supplied
32821
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
32822
- # @yieldparam err [StandardError] error object if request failed
32823
- #
32824
- # @return [Google::Apis::ComputeAlpha::Policy]
32825
- #
32826
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32827
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32828
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32829
- def set_region_network_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32830
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks/{resource}/setIamPolicy', options)
32831
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
32832
- command.request_object = region_set_policy_request_object
32833
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
32834
- command.response_class = Google::Apis::ComputeAlpha::Policy
32835
- command.params['project'] = project unless project.nil?
32836
- command.params['region'] = region unless region.nil?
32837
- command.params['resource'] = resource unless resource.nil?
32838
- command.query['fields'] = fields unless fields.nil?
32839
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32840
- command.query['userIp'] = user_ip unless user_ip.nil?
32841
- execute_or_queue_command(command, &block)
32842
- end
32843
-
32844
- # Returns permissions that a caller has on the specified resource.
32845
- # @param [String] project
32846
- # Project ID for this request.
32847
- # @param [String] region
32848
- # The name of the region for this request.
32849
- # @param [String] resource
32850
- # Name or id of the resource for this request.
32851
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
32852
- # @param [String] fields
32853
- # Selector specifying which fields to include in a partial response.
32854
- # @param [String] quota_user
32855
- # Available to use for quota purposes for server-side applications. Can be any
32856
- # arbitrary string assigned to a user, but should not exceed 40 characters.
32857
- # @param [String] user_ip
32858
- # Legacy name for parameter that has been superseded by `quotaUser`.
32859
- # @param [Google::Apis::RequestOptions] options
32860
- # Request-specific options
32861
- #
32862
- # @yield [result, err] Result & error if block supplied
32863
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
32864
- # @yieldparam err [StandardError] error object if request failed
32865
- #
32866
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
32867
- #
32868
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32869
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32870
- # @raise [Google::Apis::AuthorizationError] Authorization is required
32871
- def test_region_network_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32872
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networks/{resource}/testIamPermissions', options)
32873
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
32874
- command.request_object = test_permissions_request_object
32875
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
32876
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
32877
- command.params['project'] = project unless project.nil?
32878
- command.params['region'] = region unless region.nil?
32879
- command.params['resource'] = resource unless resource.nil?
32880
- command.query['fields'] = fields unless fields.nil?
32881
- command.query['quotaUser'] = quota_user unless quota_user.nil?
32882
- command.query['userIp'] = user_ip unless user_ip.nil?
32883
- execute_or_queue_command(command, &block)
32884
- end
32885
-
32886
32580
  # Retrieves the list of all NotificationEndpoint resources, regional and global,
32887
32581
  # available to the specified project.
32888
32582
  # @param [String] project
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.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_alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.45.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.46.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
63
63
  post_install_message:
64
64
  rdoc_options: []