google-apis-compute_alpha 0.125.0 → 0.126.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 828ca2cde4c02039c2168b39c66eb15959173bcaa241e25d2c833f0ed1169bae
4
- data.tar.gz: 380507e924d7d6beaf5988e3e5390d68b4141472bcbbc93469c70ba1778ba850
3
+ metadata.gz: c11186e4f4c9d3c457f5c112c782529aba1c0de15056ca9e6a9c661aee21240e
4
+ data.tar.gz: 3162f52a459b3d973e08ad312aad50f3835b227c6008d1679acc6987eff64aaa
5
5
  SHA512:
6
- metadata.gz: 82d917fa20a5f9d82c88f4845154d570a99cc28d307479960190b941d2b1b49b050f47995f1c659c31ee513e8d6da6ca5c3bf14d0fce5105c8b18ea136f8839f
7
- data.tar.gz: bde4a48b59f453ef355088fe314e8ac74e2adbb72108ea62a5c42e28071c91891a91e849d17b9e6d098439376ac4d578960ae538e2c249ac12f6dab05ff017dd
6
+ metadata.gz: 036a9897cd0d118332d7919ed9a586b4d85449bb3c79e0bcc5c46a48d9d0817c4feb72da896f84762c121a175b131655044ea9aca7960d0b68caf49ca04b9c17
7
+ data.tar.gz: c409844e5d51b063a5f197aea35e042ef3417b5b94c1c6a6d8778c0d29769c023af8d46bbe8c9f145a2c41703e4820bf6065b6e96f4ea985a303a16aee8bd05e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.126.0 (2025-11-09)
4
+
5
+ * Regenerated from discovery document revision 20251031
6
+
3
7
  ### v0.125.0 (2025-10-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20251019
@@ -14118,6 +14118,16 @@ module Google
14118
14118
  # @return [Array<String>]
14119
14119
  attr_accessor :dest_ip_ranges
14120
14120
 
14121
+ # Network context of the traffic destination. Allowed values are:
14122
+ #
14123
+ #
14124
+ # - UNSPECIFIED
14125
+ # - INTERNET
14126
+ # - NON_INTERNET
14127
+ # Corresponds to the JSON property `destNetworkContext`
14128
+ # @return [String]
14129
+ attr_accessor :dest_network_context
14130
+
14121
14131
  # Network scope of the traffic destination.
14122
14132
  # Corresponds to the JSON property `destNetworkScope`
14123
14133
  # @return [String]
@@ -14171,6 +14181,18 @@ module Google
14171
14181
  # @return [Array<String>]
14172
14182
  attr_accessor :src_ip_ranges
14173
14183
 
14184
+ # Network context of the traffic source. Allowed values are:
14185
+ #
14186
+ #
14187
+ # - UNSPECIFIED
14188
+ # - INTERNET
14189
+ # - INTRA_VPC
14190
+ # - NON_INTERNET
14191
+ # - VPC_NETWORKS
14192
+ # Corresponds to the JSON property `srcNetworkContext`
14193
+ # @return [String]
14194
+ attr_accessor :src_network_context
14195
+
14174
14196
  # Network scope of the traffic source.
14175
14197
  # Corresponds to the JSON property `srcNetworkScope`
14176
14198
  # @return [String]
@@ -14225,6 +14247,7 @@ module Google
14225
14247
  @dest_address_groups = args[:dest_address_groups] if args.key?(:dest_address_groups)
14226
14248
  @dest_fqdns = args[:dest_fqdns] if args.key?(:dest_fqdns)
14227
14249
  @dest_ip_ranges = args[:dest_ip_ranges] if args.key?(:dest_ip_ranges)
14250
+ @dest_network_context = args[:dest_network_context] if args.key?(:dest_network_context)
14228
14251
  @dest_network_scope = args[:dest_network_scope] if args.key?(:dest_network_scope)
14229
14252
  @dest_network_type = args[:dest_network_type] if args.key?(:dest_network_type)
14230
14253
  @dest_region_codes = args[:dest_region_codes] if args.key?(:dest_region_codes)
@@ -14233,6 +14256,7 @@ module Google
14233
14256
  @src_address_groups = args[:src_address_groups] if args.key?(:src_address_groups)
14234
14257
  @src_fqdns = args[:src_fqdns] if args.key?(:src_fqdns)
14235
14258
  @src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
14259
+ @src_network_context = args[:src_network_context] if args.key?(:src_network_context)
14236
14260
  @src_network_scope = args[:src_network_scope] if args.key?(:src_network_scope)
14237
14261
  @src_network_type = args[:src_network_type] if args.key?(:src_network_type)
14238
14262
  @src_networks = args[:src_networks] if args.key?(:src_networks)
@@ -21688,7 +21712,7 @@ module Google
21688
21712
  # Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or
21689
21713
  # rangeMatch must be set.
21690
21714
  # Regular expressions can only be used when the loadBalancingScheme is
21691
- # set to INTERNAL_SELF_MANAGED.
21715
+ # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED.
21692
21716
  # Corresponds to the JSON property `regexMatch`
21693
21717
  # @return [String]
21694
21718
  attr_accessor :regex_match
@@ -22032,7 +22056,7 @@ module Google
22032
22056
  # more information about regular expression syntax, see Syntax.
22033
22057
  # Only one of presentMatch, exactMatch, orregexMatch must be set.
22034
22058
  # Regular expressions can only be used when the loadBalancingScheme is
22035
- # set to INTERNAL_SELF_MANAGED.
22059
+ # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED.
22036
22060
  # Corresponds to the JSON property `regexMatch`
22037
22061
  # @return [String]
22038
22062
  attr_accessor :regex_match
@@ -22424,7 +22448,8 @@ module Google
22424
22448
  # any query parameters and anchor
22425
22449
  # that may be part of the original URL.
22426
22450
  # fullPathMatch must be from 1 to 1024 characters.
22427
- # Only one of prefixMatch, fullPathMatch or regexMatch must be
22451
+ # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must
22452
+ # be
22428
22453
  # specified.
22429
22454
  # Corresponds to the JSON property `fullPathMatch`
22430
22455
  # @return [String]
@@ -22488,7 +22513,9 @@ module Google
22488
22513
  # For satisfying the matchRule condition, the request's
22489
22514
  # path must begin with the specified prefixMatch.prefixMatch must begin with a /.
22490
22515
  # The value must be from 1 to 1024 characters.
22491
- # Only one of prefixMatch, fullPathMatch or regexMatch must be
22516
+ # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must
22517
+ # be
22518
+ # specified.
22492
22519
  # specified.
22493
22520
  # Corresponds to the JSON property `prefixMatch`
22494
22521
  # @return [String]
@@ -22506,10 +22533,11 @@ module Google
22506
22533
  # removing any query parameters and anchor
22507
22534
  # supplied with the original URL. For
22508
22535
  # more information about regular expression syntax, see Syntax.
22509
- # Only one of prefixMatch, fullPathMatch orregexMatch must be
22536
+ # Only one of prefixMatch, fullPathMatch,regexMatch or path_template_match must
22537
+ # be
22510
22538
  # specified.
22511
22539
  # Regular expressions can only be used when the loadBalancingScheme is
22512
- # set to INTERNAL_SELF_MANAGED.
22540
+ # set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED orINTERNAL_MANAGED.
22513
22541
  # Corresponds to the JSON property `regexMatch`
22514
22542
  # @return [String]
22515
22543
  attr_accessor :regex_match
@@ -37999,11 +38027,22 @@ module Google
37999
38027
  class ManagedInstancePropertiesFromFlexibilityPolicy
38000
38028
  include Google::Apis::Core::Hashable
38001
38029
 
38030
+ # List of disks to be attached to the instance.
38031
+ # Corresponds to the JSON property `disks`
38032
+ # @return [Array<Google::Apis::ComputeAlpha::AttachedDisk>]
38033
+ attr_accessor :disks
38034
+
38002
38035
  # The machine type to be used for this instance.
38003
38036
  # Corresponds to the JSON property `machineType`
38004
38037
  # @return [String]
38005
38038
  attr_accessor :machine_type
38006
38039
 
38040
+ # Name of the minimum CPU platform to be used by this instance.
38041
+ # e.g. 'Intel Ice Lake'.
38042
+ # Corresponds to the JSON property `minCpuPlatform`
38043
+ # @return [String]
38044
+ attr_accessor :min_cpu_platform
38045
+
38007
38046
  # The provisioning model to be used for this instance.
38008
38047
  # Corresponds to the JSON property `provisioningModel`
38009
38048
  # @return [String]
@@ -38015,7 +38054,9 @@ module Google
38015
38054
 
38016
38055
  # Update properties of this object
38017
38056
  def update!(**args)
38057
+ @disks = args[:disks] if args.key?(:disks)
38018
38058
  @machine_type = args[:machine_type] if args.key?(:machine_type)
38059
+ @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
38019
38060
  @provisioning_model = args[:provisioning_model] if args.key?(:provisioning_model)
38020
38061
  end
38021
38062
  end
@@ -42733,16 +42774,6 @@ module Google
42733
42774
  # @return [Fixnum]
42734
42775
  attr_accessor :dscp_value
42735
42776
 
42736
- # The field type could be one of: TRAFFIC_CLASS or DSCP.
42737
- # Corresponds to the JSON property `fieldType`
42738
- # @return [String]
42739
- attr_accessor :field_type
42740
-
42741
- # For field_type = TRAFFIC_CLASS: 1 to 6. For field_type = DSCP: 0 to 63.
42742
- # Corresponds to the JSON property `fieldValue`
42743
- # @return [Fixnum]
42744
- attr_accessor :field_value
42745
-
42746
42777
  # The traffic class that should be applied to the matching packet.
42747
42778
  # Corresponds to the JSON property `trafficClass`
42748
42779
  # @return [String]
@@ -42761,8 +42792,6 @@ module Google
42761
42792
  def update!(**args)
42762
42793
  @dscp_mode = args[:dscp_mode] if args.key?(:dscp_mode)
42763
42794
  @dscp_value = args[:dscp_value] if args.key?(:dscp_value)
42764
- @field_type = args[:field_type] if args.key?(:field_type)
42765
- @field_value = args[:field_value] if args.key?(:field_value)
42766
42795
  @traffic_class = args[:traffic_class] if args.key?(:traffic_class)
42767
42796
  @type = args[:type] if args.key?(:type)
42768
42797
  end
@@ -50331,16 +50360,19 @@ module Google
50331
50360
  end
50332
50361
  end
50333
50362
 
50334
- #
50363
+ # [Output only] Result of queuing and provisioning based on deferred
50364
+ # capacity.
50335
50365
  class QueuedResourceStatus
50336
50366
  include Google::Apis::Core::Hashable
50337
50367
 
50338
- #
50368
+ # Additional status detail for the FAILED state.
50339
50369
  # Corresponds to the JSON property `failedData`
50340
50370
  # @return [Google::Apis::ComputeAlpha::QueuedResourceStatusFailedData]
50341
50371
  attr_accessor :failed_data
50342
50372
 
50343
- #
50373
+ # [Output only] Fully qualified URL of the provisioning GCE operation to
50374
+ # track the provisioning along with provisioning errors. The referenced
50375
+ # operation may not exist after having been deleted or expired.
50344
50376
  # Corresponds to the JSON property `provisioningOperations`
50345
50377
  # @return [Array<String>]
50346
50378
  attr_accessor :provisioning_operations
@@ -50362,11 +50394,11 @@ module Google
50362
50394
  end
50363
50395
  end
50364
50396
 
50365
- #
50397
+ # Additional status detail for the FAILED state.
50366
50398
  class QueuedResourceStatusFailedData
50367
50399
  include Google::Apis::Core::Hashable
50368
50400
 
50369
- #
50401
+ # The error(s) that caused the QueuedResource to enter the FAILED state.
50370
50402
  # Corresponds to the JSON property `error`
50371
50403
  # @return [Google::Apis::ComputeAlpha::QueuedResourceStatusFailedData::Error]
50372
50404
  attr_accessor :error
@@ -50380,7 +50412,7 @@ module Google
50380
50412
  @error = args[:error] if args.key?(:error)
50381
50413
  end
50382
50414
 
50383
- #
50415
+ # The error(s) that caused the QueuedResource to enter the FAILED state.
50384
50416
  class Error
50385
50417
  include Google::Apis::Core::Hashable
50386
50418
 
@@ -57501,8 +57533,7 @@ module Google
57501
57533
  attr_accessor :rollout_entity
57502
57534
 
57503
57535
  # Required. Rollout Plan used to model the Rollout.
57504
- # Ex. progressiverollout.googleapis.com/v1/organizations/1/rolloutPlans
57505
- # Ex. progressiverollout.googleapis.com/v1/folders/1/rolloutPlans
57536
+ # Ex. compute.googleapis.com/v1/projects/1234/rolloutPlans/rp1
57506
57537
  # Corresponds to the JSON property `rolloutPlan`
57507
57538
  # @return [String]
57508
57539
  attr_accessor :rollout_plan
@@ -58095,10 +58126,9 @@ module Google
58095
58126
  # is applied across regions, this contains the name of the global
58096
58127
  # resource created by the user which contains a payload for a resource
58097
58128
  # that is orchestrated across regions. This follows the following format:
58098
- # //.googleapis.com/organizations//locations/global//
58129
+ # //.googleapis.com/projects//locations/global//
58099
58130
  # e.g.
58100
- # //osconfig.googleapis.com/organizations/1/locations/global/policyOrchestrators/
58101
- # po1
58131
+ # //osconfig.googleapis.com/projects/1/locations/global/policyOrchestrators/po1
58102
58132
  # Corresponds to the JSON property `orchestrationSource`
58103
58133
  # @return [String]
58104
58134
  attr_accessor :orchestration_source
@@ -77639,6 +77669,12 @@ module Google
77639
77669
  class VpnTunnel
77640
77670
  include Google::Apis::Core::Hashable
77641
77671
 
77672
+ # Capacity tier of the VPN tunnel. This is used for IPsec over Interconnect
77673
+ # tunnels to indicate different bandwidth limits.
77674
+ # Corresponds to the JSON property `capacityTier`
77675
+ # @return [String]
77676
+ attr_accessor :capacity_tier
77677
+
77642
77678
  # User specified list of ciphers to use for the phase 1 and phase 2 of the
77643
77679
  # IKE protocol.
77644
77680
  # Corresponds to the JSON property `cipherSuite`
@@ -77861,6 +77897,7 @@ module Google
77861
77897
 
77862
77898
  # Update properties of this object
77863
77899
  def update!(**args)
77900
+ @capacity_tier = args[:capacity_tier] if args.key?(:capacity_tier)
77864
77901
  @cipher_suite = args[:cipher_suite] if args.key?(:cipher_suite)
77865
77902
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
77866
77903
  @description = args[:description] if args.key?(:description)
@@ -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.125.0"
19
+ GEM_VERSION = "0.126.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251019"
25
+ REVISION = "20251031"
26
26
  end
27
27
  end
28
28
  end
@@ -12970,6 +12970,7 @@ module Google
12970
12970
  collection :dest_address_groups, as: 'destAddressGroups'
12971
12971
  collection :dest_fqdns, as: 'destFqdns'
12972
12972
  collection :dest_ip_ranges, as: 'destIpRanges'
12973
+ property :dest_network_context, as: 'destNetworkContext'
12973
12974
  property :dest_network_scope, as: 'destNetworkScope'
12974
12975
  property :dest_network_type, as: 'destNetworkType'
12975
12976
  collection :dest_region_codes, as: 'destRegionCodes'
@@ -12979,6 +12980,7 @@ module Google
12979
12980
  collection :src_address_groups, as: 'srcAddressGroups'
12980
12981
  collection :src_fqdns, as: 'srcFqdns'
12981
12982
  collection :src_ip_ranges, as: 'srcIpRanges'
12983
+ property :src_network_context, as: 'srcNetworkContext'
12982
12984
  property :src_network_scope, as: 'srcNetworkScope'
12983
12985
  property :src_network_type, as: 'srcNetworkType'
12984
12986
  collection :src_networks, as: 'srcNetworks'
@@ -18538,7 +18540,10 @@ module Google
18538
18540
  class ManagedInstancePropertiesFromFlexibilityPolicy
18539
18541
  # @private
18540
18542
  class Representation < Google::Apis::Core::JsonRepresentation
18543
+ collection :disks, as: 'disks', class: Google::Apis::ComputeAlpha::AttachedDisk, decorator: Google::Apis::ComputeAlpha::AttachedDisk::Representation
18544
+
18541
18545
  property :machine_type, as: 'machineType'
18546
+ property :min_cpu_platform, as: 'minCpuPlatform'
18542
18547
  property :provisioning_model, as: 'provisioningModel'
18543
18548
  end
18544
18549
  end
@@ -19656,8 +19661,6 @@ module Google
19656
19661
  class Representation < Google::Apis::Core::JsonRepresentation
19657
19662
  property :dscp_mode, as: 'dscpMode'
19658
19663
  property :dscp_value, as: 'dscpValue'
19659
- property :field_type, as: 'fieldType'
19660
- property :field_value, as: 'fieldValue'
19661
19664
  property :traffic_class, as: 'trafficClass'
19662
19665
  property :type, as: 'type'
19663
19666
  end
@@ -28050,6 +28053,7 @@ module Google
28050
28053
  class VpnTunnel
28051
28054
  # @private
28052
28055
  class Representation < Google::Apis::Core::JsonRepresentation
28056
+ property :capacity_tier, as: 'capacityTier'
28053
28057
  property :cipher_suite, as: 'cipherSuite', class: Google::Apis::ComputeAlpha::VpnTunnelCipherSuite, decorator: Google::Apis::ComputeAlpha::VpnTunnelCipherSuite::Representation
28054
28058
 
28055
28059
  property :creation_timestamp, as: 'creationTimestamp'
@@ -31234,8 +31234,10 @@ module Google
31234
31234
  # This has billing implications. Projects in the hierarchy with effective
31235
31235
  # hierarchical security policies will be automatically enrolled into Cloud
31236
31236
  # Armor Enterprise if not already enrolled.
31237
- # Use of this API to modify firewall policies is deprecated. Use
31238
- # firewallPolicies.addAssociation instead if possible.
31237
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31238
+ # versions of this API were used to modify firewall policies. This usage is
31239
+ # now disabled for most organizations. Use firewallPolicies.addAssociation
31240
+ # instead.
31239
31241
  # @param [String] security_policy
31240
31242
  # Name of the security policy to update.
31241
31243
  # @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
@@ -31290,6 +31292,9 @@ module Google
31290
31292
  end
31291
31293
 
31292
31294
  # Inserts a rule into a security policy.
31295
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31296
+ # versions of this API were used to modify firewall policies. This usage is
31297
+ # now disabled for most organizations. Use firewallPolicies.addRule instead.
31293
31298
  # @param [String] security_policy
31294
31299
  # Name of the security policy to update.
31295
31300
  # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
@@ -31339,8 +31344,10 @@ module Google
31339
31344
  end
31340
31345
 
31341
31346
  # Copies rules to the specified security policy.
31342
- # Use of this API to modify firewall policies is deprecated. Use
31343
- # firewallPolicies.copyRules instead.
31347
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31348
+ # versions of this API were used to modify firewall policies. This usage is
31349
+ # now disabled for most organizations. Use firewallPolicies.cloneRules
31350
+ # instead.
31344
31351
  # @param [String] security_policy
31345
31352
  # Name of the security policy to update.
31346
31353
  # @param [String] request_id
@@ -31390,8 +31397,9 @@ module Google
31390
31397
  end
31391
31398
 
31392
31399
  # Deletes the specified policy.
31393
- # Use of this API to remove firewall policies is deprecated. Use
31394
- # firewallPolicies.delete instead.
31400
+ # Use this API to remove Cloud Armor policies. Previously, alpha and beta
31401
+ # versions of this API were used to remove firewall policies. This usage is
31402
+ # now disabled for most organizations. Use firewallPolicies.delete instead.
31395
31403
  # @param [String] security_policy
31396
31404
  # Name of the security policy to delete.
31397
31405
  # @param [String] request_id
@@ -31438,8 +31446,9 @@ module Google
31438
31446
  end
31439
31447
 
31440
31448
  # List all of the ordered rules present in a single specified policy.
31441
- # Use of this API to read firewall policies is deprecated. Use
31442
- # firewallPolicies.get instead.
31449
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31450
+ # versions of this API were used to read firewall policies. This usage is now
31451
+ # disabled for most organizations. Use firewallPolicies.get instead.
31443
31452
  # @param [String] security_policy
31444
31453
  # Name of the security policy to get.
31445
31454
  # @param [String] fields
@@ -31473,8 +31482,10 @@ module Google
31473
31482
  end
31474
31483
 
31475
31484
  # Gets an association with the specified name.
31476
- # Use of this API to read firewall policies is deprecated. Use
31477
- # firewallPolicies.getAssociation instead if possible.
31485
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31486
+ # versions of this API were used to read firewall policies. This usage is
31487
+ # now disabled for most organizations. Use firewallPolicies.getAssociation
31488
+ # instead.
31478
31489
  # @param [String] security_policy
31479
31490
  # Name of the security policy to which the queried rule belongs.
31480
31491
  # @param [String] name
@@ -31511,8 +31522,9 @@ module Google
31511
31522
  end
31512
31523
 
31513
31524
  # Gets a rule at the specified priority.
31514
- # Use of this API to read firewall policies is deprecated. Use
31515
- # firewallPolicies.getRule instead.
31525
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31526
+ # versions of this API were used to read firewall policies. This usage is now
31527
+ # disabled for most organizations. Use firewallPolicies.getRule instead.
31516
31528
  # @param [String] security_policy
31517
31529
  # Name of the security policy to which the queried rule belongs.
31518
31530
  # @param [Fixnum] priority
@@ -31550,8 +31562,9 @@ module Google
31550
31562
 
31551
31563
  # Creates a new policy in the specified organization using the data included
31552
31564
  # in the request.
31553
- # Use of this API to insert firewall policies is deprecated. Use
31554
- # firewallPolicies.insert instead.
31565
+ # Use this API to add Cloud Armor policies. Previously, alpha and beta
31566
+ # versions of this API were used to add firewall policies. This usage is now
31567
+ # disabled for most organizations. Use firewallPolicies.insert instead.
31555
31568
  # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
31556
31569
  # @param [String] parent_id
31557
31570
  # Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]"
@@ -31604,8 +31617,9 @@ module Google
31604
31617
 
31605
31618
  # List all the policies that have been configured for the specified
31606
31619
  # organization.
31607
- # Use of this API to read firewall policies is deprecated. Use
31608
- # firewallPolicies.list instead.
31620
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31621
+ # versions of this API were used to read firewall policies. This usage is now
31622
+ # disabled for most organizations. Use firewallPolicies.list instead.
31609
31623
  # @param [String] filter
31610
31624
  # A filter expression that filters resources listed in the response. Most
31611
31625
  # Compute resources support two types of filter expressions:
@@ -31720,8 +31734,10 @@ module Google
31720
31734
  end
31721
31735
 
31722
31736
  # Lists associations of a specified target, i.e., organization or folder.
31723
- # Use of this API to read firewall policies is deprecated. Use
31724
- # firewallPolicies.listAssociations instead if possible.
31737
+ # Use this API to read Cloud Armor policies. Previously, alpha and beta
31738
+ # versions of this API were used to read firewall policies. This usage is
31739
+ # now disabled for most organizations. Use firewallPolicies.listAssociations
31740
+ # instead.
31725
31741
  # @param [String] target_resource
31726
31742
  # The target resource to list associations. It is an organization, or a
31727
31743
  # folder.
@@ -31871,8 +31887,9 @@ module Google
31871
31887
  end
31872
31888
 
31873
31889
  # Moves the specified security policy.
31874
- # Use of this API to modify firewall policies is deprecated. Use
31875
- # firewallPolicies.move instead.
31890
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31891
+ # versions of this API were used to modify firewall policies. This usage is
31892
+ # now disabled for most organizations. Use firewallPolicies.move instead.
31876
31893
  # @param [String] security_policy
31877
31894
  # Name of the security policy to update.
31878
31895
  # @param [String] parent_id
@@ -31922,8 +31939,9 @@ module Google
31922
31939
  end
31923
31940
 
31924
31941
  # Patches the specified policy with the data included in the request.
31925
- # Use of this API to modify firewall policies is deprecated. Use
31926
- # firewallPolicies.patch instead.
31942
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31943
+ # versions of this API were used to modify firewall policies. This usage is
31944
+ # now disabled for most organizations. Use firewallPolicies.patch instead.
31927
31945
  # @param [String] security_policy
31928
31946
  # Name of the security policy to update.
31929
31947
  # @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
@@ -31976,8 +31994,10 @@ module Google
31976
31994
  end
31977
31995
 
31978
31996
  # Patches a rule at the specified priority.
31979
- # Use of this API to modify firewall policies is deprecated. Use
31980
- # firewallPolicies.patchRule instead.
31997
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
31998
+ # versions of this API were used to modify firewall policies. This usage is
31999
+ # now disabled for most organizations. Use firewallPolicies.patchRule
32000
+ # instead.
31981
32001
  # @param [String] security_policy
31982
32002
  # Name of the security policy to update.
31983
32003
  # @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
@@ -32033,8 +32053,10 @@ module Google
32033
32053
  end
32034
32054
 
32035
32055
  # Removes an association for the specified security policy.
32036
- # Use of this API to modify firewall policies is deprecated. Use
32037
- # firewallPolicies.removeAssociation instead if possible.
32056
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
32057
+ # versions of this API were used to modify firewall policies. This usage is
32058
+ # now disabled for most organizations. Use firewallPolicies.removeAssociation
32059
+ # instead.
32038
32060
  # @param [String] security_policy
32039
32061
  # Name of the security policy to update.
32040
32062
  # @param [String] name
@@ -32084,6 +32106,10 @@ module Google
32084
32106
  end
32085
32107
 
32086
32108
  # Deletes a rule at the specified priority.
32109
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
32110
+ # versions of this API were used to modify firewall policies. This usage is
32111
+ # now disabled for most organizations. Use firewallPolicies.removeRule
32112
+ # instead.
32087
32113
  # @param [String] security_policy
32088
32114
  # Name of the security policy to update.
32089
32115
  # @param [Fixnum] priority
@@ -48463,6 +48489,405 @@ module Google
48463
48489
  execute_or_queue_command(command, &block)
48464
48490
  end
48465
48491
 
48492
+ # Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot
48493
+ # will delete the underlying PD snapshot and is irreversible.
48494
+ # @param [String] project
48495
+ # Project ID for this request.
48496
+ # @param [String] region
48497
+ # Name of the region for this request.
48498
+ # @param [String] recoverable_snapshot
48499
+ # Name of the recoverable Snapshot resource to delete.
48500
+ # @param [String] request_id
48501
+ # An optional request ID to identify requests. Specify a unique request ID so
48502
+ # that if you must retry your request, the server will know to ignore the
48503
+ # request if it has already been completed.
48504
+ # For example, consider a situation where you make an initial request and
48505
+ # the request times out. If you make the request again with the same
48506
+ # request ID, the server can check if original operation with the same
48507
+ # request ID was received, and if so, will ignore the second request. This
48508
+ # prevents clients from accidentally creating duplicate commitments.
48509
+ # The request ID must be
48510
+ # a valid UUID with the exception that zero UUID is not supported
48511
+ # (00000000-0000-0000-0000-000000000000).
48512
+ # @param [String] fields
48513
+ # Selector specifying which fields to include in a partial response.
48514
+ # @param [String] quota_user
48515
+ # Available to use for quota purposes for server-side applications. Can be any
48516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48517
+ # @param [String] user_ip
48518
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48519
+ # @param [Google::Apis::RequestOptions] options
48520
+ # Request-specific options
48521
+ #
48522
+ # @yield [result, err] Result & error if block supplied
48523
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
48524
+ # @yieldparam err [StandardError] error object if request failed
48525
+ #
48526
+ # @return [Google::Apis::ComputeAlpha::Operation]
48527
+ #
48528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48531
+ def delete_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48532
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options)
48533
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48534
+ command.response_class = Google::Apis::ComputeAlpha::Operation
48535
+ command.params['project'] = project unless project.nil?
48536
+ command.params['region'] = region unless region.nil?
48537
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
48538
+ command.query['requestId'] = request_id unless request_id.nil?
48539
+ command.query['fields'] = fields unless fields.nil?
48540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48541
+ command.query['userIp'] = user_ip unless user_ip.nil?
48542
+ execute_or_queue_command(command, &block)
48543
+ end
48544
+
48545
+ # Returns the specified RecoverableSnapshot resource.
48546
+ # @param [String] project
48547
+ # Project ID for this request.
48548
+ # @param [String] region
48549
+ # Name of the region for this request.
48550
+ # @param [String] recoverable_snapshot
48551
+ # Name of the Snapshot resource to return.
48552
+ # @param [String] fields
48553
+ # Selector specifying which fields to include in a partial response.
48554
+ # @param [String] quota_user
48555
+ # Available to use for quota purposes for server-side applications. Can be any
48556
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48557
+ # @param [String] user_ip
48558
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48559
+ # @param [Google::Apis::RequestOptions] options
48560
+ # Request-specific options
48561
+ #
48562
+ # @yield [result, err] Result & error if block supplied
48563
+ # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshot] parsed result object
48564
+ # @yieldparam err [StandardError] error object if request failed
48565
+ #
48566
+ # @return [Google::Apis::ComputeAlpha::RecoverableSnapshot]
48567
+ #
48568
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48569
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48570
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48571
+ def get_region_recoverable_snapshot(project, region, recoverable_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48572
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options)
48573
+ command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshot::Representation
48574
+ command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshot
48575
+ command.params['project'] = project unless project.nil?
48576
+ command.params['region'] = region unless region.nil?
48577
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
48578
+ command.query['fields'] = fields unless fields.nil?
48579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48580
+ command.query['userIp'] = user_ip unless user_ip.nil?
48581
+ execute_or_queue_command(command, &block)
48582
+ end
48583
+
48584
+ # Gets the access control policy for a resource. May be empty if no such
48585
+ # policy or resource exists.
48586
+ # @param [String] project
48587
+ # Project ID for this request.
48588
+ # @param [String] region
48589
+ # The name of the region for this request.
48590
+ # @param [String] resource
48591
+ # Name or id of the resource for this request.
48592
+ # @param [Fixnum] options_requested_policy_version
48593
+ # Requested IAM Policy version.
48594
+ # @param [String] fields
48595
+ # Selector specifying which fields to include in a partial response.
48596
+ # @param [String] quota_user
48597
+ # Available to use for quota purposes for server-side applications. Can be any
48598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48599
+ # @param [String] user_ip
48600
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48601
+ # @param [Google::Apis::RequestOptions] options
48602
+ # Request-specific options
48603
+ #
48604
+ # @yield [result, err] Result & error if block supplied
48605
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
48606
+ # @yieldparam err [StandardError] error object if request failed
48607
+ #
48608
+ # @return [Google::Apis::ComputeAlpha::Policy]
48609
+ #
48610
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48611
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48612
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48613
+ def get_region_recoverable_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48614
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/getIamPolicy', options)
48615
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
48616
+ command.response_class = Google::Apis::ComputeAlpha::Policy
48617
+ command.params['project'] = project unless project.nil?
48618
+ command.params['region'] = region unless region.nil?
48619
+ command.params['resource'] = resource unless resource.nil?
48620
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
48621
+ command.query['fields'] = fields unless fields.nil?
48622
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48623
+ command.query['userIp'] = user_ip unless user_ip.nil?
48624
+ execute_or_queue_command(command, &block)
48625
+ end
48626
+
48627
+ # Retrieves the list of RecoverableSnapshot resources contained within
48628
+ # the specified region.
48629
+ # @param [String] project
48630
+ # Project ID for this request.
48631
+ # @param [String] region
48632
+ # Name of the region for this request.
48633
+ # @param [String] filter
48634
+ # A filter expression that filters resources listed in the response. Most
48635
+ # Compute resources support two types of filter expressions:
48636
+ # expressions that support regular expressions and expressions that follow
48637
+ # API improvement proposal AIP-160.
48638
+ # These two types of filter expressions cannot be mixed in one request.
48639
+ # If you want to use AIP-160, your expression must specify the field name, an
48640
+ # operator, and the value that you want to use for filtering. The value
48641
+ # must be a string, a number, or a boolean. The operator
48642
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
48643
+ # For example, if you are filtering Compute Engine instances, you can
48644
+ # exclude instances named `example-instance` by specifying
48645
+ # `name != example-instance`.
48646
+ # The `:*` comparison can be used to test whether a key has been defined.
48647
+ # For example, to find all objects with `owner` label use:
48648
+ # ```
48649
+ # labels.owner:*
48650
+ # ```
48651
+ # You can also filter nested fields. For example, you could specify
48652
+ # `scheduling.automaticRestart = false` to include instances only
48653
+ # if they are not scheduled for automatic restarts. You can use filtering
48654
+ # on nested fields to filter based onresource labels.
48655
+ # To filter on multiple expressions, provide each separate expression within
48656
+ # parentheses. For example:
48657
+ # ```
48658
+ # (scheduling.automaticRestart = true)
48659
+ # (cpuPlatform = "Intel Skylake")
48660
+ # ```
48661
+ # By default, each expression is an `AND` expression. However, you
48662
+ # can include `AND` and `OR` expressions explicitly.
48663
+ # For example:
48664
+ # ```
48665
+ # (cpuPlatform = "Intel Skylake") OR
48666
+ # (cpuPlatform = "Intel Broadwell") AND
48667
+ # (scheduling.automaticRestart = true)
48668
+ # ```
48669
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
48670
+ # (not equal) operator against a single un-parenthesized expression with or
48671
+ # without quotes or against multiple parenthesized expressions. Examples:
48672
+ # `fieldname eq unquoted literal`
48673
+ # `fieldname eq 'single quoted literal'`
48674
+ # `fieldname eq "double quoted literal"`
48675
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
48676
+ # The literal value is interpreted as a regular expression using GoogleRE2
48677
+ # library syntax.
48678
+ # The literal value must match the entire field.
48679
+ # For example, to filter for instances that do not end with name "instance",
48680
+ # you would use `name ne .*instance`.
48681
+ # You cannot combine constraints on multiple fields using regular
48682
+ # expressions.
48683
+ # @param [Fixnum] max_results
48684
+ # The maximum number of results per page that should be returned.
48685
+ # If the number of available results is larger than `maxResults`,
48686
+ # Compute Engine returns a `nextPageToken` that can be used to get
48687
+ # the next page of results in subsequent list requests. Acceptable values are
48688
+ # `0` to `500`, inclusive. (Default: `500`)
48689
+ # @param [String] order_by
48690
+ # Sorts list results by a certain order. By default, results
48691
+ # are returned in alphanumerical order based on the resource name.
48692
+ # You can also sort results in descending order based on the creation
48693
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
48694
+ # results based on the `creationTimestamp` field in
48695
+ # reverse chronological order (newest result first). Use this to sort
48696
+ # resources like operations so that the newest operation is returned first.
48697
+ # Currently, only sorting by `name` or
48698
+ # `creationTimestamp desc` is supported.
48699
+ # @param [String] page_token
48700
+ # Specifies a page token to use. Set `pageToken` to the
48701
+ # `nextPageToken` returned by a previous list request to get
48702
+ # the next page of results.
48703
+ # @param [Boolean] return_partial_success
48704
+ # Opt-in for partial success behavior which provides partial results in case
48705
+ # of failure. The default value is false.
48706
+ # For example, when partial success behavior is enabled, aggregatedList for a
48707
+ # single zone scope either returns all resources in the zone or no resources,
48708
+ # with an error code.
48709
+ # @param [String] fields
48710
+ # Selector specifying which fields to include in a partial response.
48711
+ # @param [String] quota_user
48712
+ # Available to use for quota purposes for server-side applications. Can be any
48713
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48714
+ # @param [String] user_ip
48715
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48716
+ # @param [Google::Apis::RequestOptions] options
48717
+ # Request-specific options
48718
+ #
48719
+ # @yield [result, err] Result & error if block supplied
48720
+ # @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshotList] parsed result object
48721
+ # @yieldparam err [StandardError] error object if request failed
48722
+ #
48723
+ # @return [Google::Apis::ComputeAlpha::RecoverableSnapshotList]
48724
+ #
48725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48728
+ def list_region_recoverable_snapshots(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)
48729
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots', options)
48730
+ command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshotList::Representation
48731
+ command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshotList
48732
+ command.params['project'] = project unless project.nil?
48733
+ command.params['region'] = region unless region.nil?
48734
+ command.query['filter'] = filter unless filter.nil?
48735
+ command.query['maxResults'] = max_results unless max_results.nil?
48736
+ command.query['orderBy'] = order_by unless order_by.nil?
48737
+ command.query['pageToken'] = page_token unless page_token.nil?
48738
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
48739
+ command.query['fields'] = fields unless fields.nil?
48740
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48741
+ command.query['userIp'] = user_ip unless user_ip.nil?
48742
+ execute_or_queue_command(command, &block)
48743
+ end
48744
+
48745
+ # Recovers the specified RecoverableSnapshot.
48746
+ # @param [String] project
48747
+ # Project Id of the request
48748
+ # @param [String] region
48749
+ # Name of the region for this request.
48750
+ # @param [String] recoverable_snapshot
48751
+ # Name of the recoverable resource to recover
48752
+ # @param [String] request_id
48753
+ # An optional request ID to identify requests. Specify a unique request ID so
48754
+ # that if you must retry your request, the server will know to ignore the
48755
+ # request if it has already been completed.
48756
+ # For example, consider a situation where you make an initial request and
48757
+ # the request times out. If you make the request again with the same
48758
+ # request ID, the server can check if original operation with the same
48759
+ # request ID was received, and if so, will ignore the second request. This
48760
+ # prevents clients from accidentally creating duplicate commitments.
48761
+ # The request ID must be
48762
+ # a valid UUID with the exception that zero UUID is not supported
48763
+ # (00000000-0000-0000-0000-000000000000).
48764
+ # @param [String] snapshot_name
48765
+ # Optional. Name of the snapshot after the recovery
48766
+ # The name will be 1-63 characters long, and comply withRFC1035.
48767
+ # Specifically, the name will be 1-63 characters long and match the regular
48768
+ # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
48769
+ # character will be a lowercase letter, and all following characters can be
48770
+ # a dash, lowercase letter, or digit, except the last character, which cannot
48771
+ # be a dash.
48772
+ # @param [String] fields
48773
+ # Selector specifying which fields to include in a partial response.
48774
+ # @param [String] quota_user
48775
+ # Available to use for quota purposes for server-side applications. Can be any
48776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48777
+ # @param [String] user_ip
48778
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48779
+ # @param [Google::Apis::RequestOptions] options
48780
+ # Request-specific options
48781
+ #
48782
+ # @yield [result, err] Result & error if block supplied
48783
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
48784
+ # @yieldparam err [StandardError] error object if request failed
48785
+ #
48786
+ # @return [Google::Apis::ComputeAlpha::Operation]
48787
+ #
48788
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48789
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48790
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48791
+ def recover_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, snapshot_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48792
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}/recover', options)
48793
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
48794
+ command.response_class = Google::Apis::ComputeAlpha::Operation
48795
+ command.params['project'] = project unless project.nil?
48796
+ command.params['region'] = region unless region.nil?
48797
+ command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
48798
+ command.query['requestId'] = request_id unless request_id.nil?
48799
+ command.query['snapshotName'] = snapshot_name unless snapshot_name.nil?
48800
+ command.query['fields'] = fields unless fields.nil?
48801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48802
+ command.query['userIp'] = user_ip unless user_ip.nil?
48803
+ execute_or_queue_command(command, &block)
48804
+ end
48805
+
48806
+ # Sets the access control policy on the specified resource.
48807
+ # Replaces any existing policy.
48808
+ # @param [String] project
48809
+ # Project ID for this request.
48810
+ # @param [String] region
48811
+ # The name of the region for this request.
48812
+ # @param [String] resource
48813
+ # Name or id of the resource for this request.
48814
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
48815
+ # @param [String] fields
48816
+ # Selector specifying which fields to include in a partial response.
48817
+ # @param [String] quota_user
48818
+ # Available to use for quota purposes for server-side applications. Can be any
48819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48820
+ # @param [String] user_ip
48821
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48822
+ # @param [Google::Apis::RequestOptions] options
48823
+ # Request-specific options
48824
+ #
48825
+ # @yield [result, err] Result & error if block supplied
48826
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
48827
+ # @yieldparam err [StandardError] error object if request failed
48828
+ #
48829
+ # @return [Google::Apis::ComputeAlpha::Policy]
48830
+ #
48831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48834
+ def set_region_recoverable_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48835
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/setIamPolicy', options)
48836
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
48837
+ command.request_object = region_set_policy_request_object
48838
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
48839
+ command.response_class = Google::Apis::ComputeAlpha::Policy
48840
+ command.params['project'] = project unless project.nil?
48841
+ command.params['region'] = region unless region.nil?
48842
+ command.params['resource'] = resource unless resource.nil?
48843
+ command.query['fields'] = fields unless fields.nil?
48844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48845
+ command.query['userIp'] = user_ip unless user_ip.nil?
48846
+ execute_or_queue_command(command, &block)
48847
+ end
48848
+
48849
+ # Returns permissions that a caller has on the specified resource.
48850
+ # @param [String] project
48851
+ # Project ID for this request.
48852
+ # @param [String] region
48853
+ # The name of the region for this request.
48854
+ # @param [String] resource
48855
+ # Name or id of the resource for this request.
48856
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
48857
+ # @param [String] fields
48858
+ # Selector specifying which fields to include in a partial response.
48859
+ # @param [String] quota_user
48860
+ # Available to use for quota purposes for server-side applications. Can be any
48861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
48862
+ # @param [String] user_ip
48863
+ # Legacy name for parameter that has been superseded by `quotaUser`.
48864
+ # @param [Google::Apis::RequestOptions] options
48865
+ # Request-specific options
48866
+ #
48867
+ # @yield [result, err] Result & error if block supplied
48868
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
48869
+ # @yieldparam err [StandardError] error object if request failed
48870
+ #
48871
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
48872
+ #
48873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
48876
+ def test_region_recoverable_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
48877
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/testIamPermissions', options)
48878
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
48879
+ command.request_object = test_permissions_request_object
48880
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
48881
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
48882
+ command.params['project'] = project unless project.nil?
48883
+ command.params['region'] = region unless region.nil?
48884
+ command.params['resource'] = resource unless resource.nil?
48885
+ command.query['fields'] = fields unless fields.nil?
48886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
48887
+ command.query['userIp'] = user_ip unless user_ip.nil?
48888
+ execute_or_queue_command(command, &block)
48889
+ end
48890
+
48466
48891
  # Inserts a rule into a security policy.
48467
48892
  # @param [String] project
48468
48893
  # Project ID for this request.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.125.0
4
+ version: 0.126.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.125.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.126.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
62
62
  rdoc_options: []
63
63
  require_paths: