google-apis-compute_alpha 0.38.0 → 0.39.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: 79a52742cba120a6f20f5a2db84a7946a371eaf5eea145e826663a39b75f3205
4
- data.tar.gz: 103d04f8215cf3d739c3a991ef5de69bceb11f84a89ebeb48bf75b4261e63a01
3
+ metadata.gz: 65b1abb59c7746db02e40f31a517bc2315910f5f94477c1e306f9de58ecd7198
4
+ data.tar.gz: ddaba63df7679c0762c7bec8b5c75a1adb56b8fe52db74bc20b2881552ae1497
5
5
  SHA512:
6
- metadata.gz: feaeeae5876c33ddb321d9d39a5e97caa9a877332df26929830cc3e868b0ec7637daefbc73a23712653b309807e13ba31ca6fd1f7d2dbf13e953d218e4afded4
7
- data.tar.gz: ae248820a0728e323f89d42f821ca7bd9a52d192cb6526261ff8bfb28f4a946145a8de68fb315f4f5ed983fee6fa4c933edfefed19ad3c53b7166c4c6a980e63
6
+ metadata.gz: 431d4ca4778436a96aaab570c6831ca0c8e274ecb56f61cd6ea6bc8ec1d55eb00393f56f90b1162814aa460464f99bb4d59f1aa18a0cc63fd1a6320cb130d008
7
+ data.tar.gz: 4b8ad18a4b7df312cba58773454c89a391fbdd1e8ae9723b9c63f6365f6a344a2dfb2f7f4cb05be85e9a7331c6f2726d334d716fad256f412d8a90c732f53bda
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.39.0 (2022-06-23)
4
+
5
+ * Regenerated from discovery document revision 20220614
6
+
3
7
  ### v0.38.0 (2022-06-19)
4
8
 
5
9
  * Regenerated using generator version 0.7.0
@@ -7837,6 +7837,56 @@ module Google
7837
7837
  end
7838
7838
  end
7839
7839
 
7840
+ # Describes the cause of the error with structured details. Example of an error
7841
+ # when contacting the "pubsub.googleapis.com" API when it is not enabled: ` "
7842
+ # reason": "API_DISABLED" "domain": "googleapis.com" "metadata": ` "resource": "
7843
+ # projects/123", "service": "pubsub.googleapis.com" ` ` This response indicates
7844
+ # that the pubsub.googleapis.com API is not enabled. Example of an error that is
7845
+ # returned when attempting to create a Spanner instance in a region that is out
7846
+ # of stock: ` "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata"
7847
+ # : ` "availableRegions": "us-central1,us-east2" ` `
7848
+ class ErrorInfo
7849
+ include Google::Apis::Core::Hashable
7850
+
7851
+ # The logical grouping to which the "reason" belongs. The error domain is
7852
+ # typically the registered service name of the tool or product that generates
7853
+ # the error. Example: "pubsub.googleapis.com". If the error is generated by some
7854
+ # common infrastructure, the error domain must be a globally unique value that
7855
+ # identifies the infrastructure. For Google API infrastructure, the error domain
7856
+ # is "googleapis.com".
7857
+ # Corresponds to the JSON property `domain`
7858
+ # @return [String]
7859
+ attr_accessor :domain
7860
+
7861
+ # Additional structured details about this error. Keys should match /[a-zA-Z0-9-
7862
+ # _]/ and be limited to 64 characters in length. When identifying the current
7863
+ # value of an exceeded limit, the units should be contained in the key, not the
7864
+ # value. For example, rather than `"instanceLimit": "100/request"`, should be
7865
+ # returned as, `"instanceLimitPerRequest": "100"`, if the client exceeds the
7866
+ # number of instances that can be created in a single (batch) request.
7867
+ # Corresponds to the JSON property `metadatas`
7868
+ # @return [Hash<String,String>]
7869
+ attr_accessor :metadatas
7870
+
7871
+ # The reason of the error. This is a constant value that identifies the
7872
+ # proximate cause of the error. Error reasons are unique within a particular
7873
+ # domain of errors. This should be at most 63 characters and match /[A-Z0-9_]+/.
7874
+ # Corresponds to the JSON property `reason`
7875
+ # @return [String]
7876
+ attr_accessor :reason
7877
+
7878
+ def initialize(**args)
7879
+ update!(**args)
7880
+ end
7881
+
7882
+ # Update properties of this object
7883
+ def update!(**args)
7884
+ @domain = args[:domain] if args.key?(:domain)
7885
+ @metadatas = args[:metadatas] if args.key?(:metadatas)
7886
+ @reason = args[:reason] if args.key?(:reason)
7887
+ end
7888
+ end
7889
+
7840
7890
  #
7841
7891
  class ExchangedPeeringRoute
7842
7892
  include Google::Apis::Core::Hashable
@@ -9150,6 +9200,14 @@ module Google
9150
9200
  # @return [Fixnum]
9151
9201
  attr_accessor :rule_tuple_count
9152
9202
 
9203
+ # A fully-qualified URL of a SecurityProfile resource instance. Example: https://
9204
+ # networksecurity.googleapis.com/v1/projects/`project`/locations/`location`/
9205
+ # securityProfileGroups/my-security-profile-group Must be specified if action = '
9206
+ # apply_profile_group' and cannot be specified for other actions.
9207
+ # Corresponds to the JSON property `securityProfileGroup`
9208
+ # @return [String]
9209
+ attr_accessor :security_profile_group
9210
+
9153
9211
  # A list of network resource URLs to which this rule applies. This field allows
9154
9212
  # you to control which network's VMs get this rule. If this field is left blank,
9155
9213
  # all VMs within the organization will receive the rule.
@@ -9191,6 +9249,7 @@ module Google
9191
9249
  @priority = args[:priority] if args.key?(:priority)
9192
9250
  @rule_name = args[:rule_name] if args.key?(:rule_name)
9193
9251
  @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count)
9252
+ @security_profile_group = args[:security_profile_group] if args.key?(:security_profile_group)
9194
9253
  @target_resources = args[:target_resources] if args.key?(:target_resources)
9195
9254
  @target_secure_tags = args[:target_secure_tags] if args.key?(:target_secure_tags)
9196
9255
  @target_service_accounts = args[:target_service_accounts] if args.key?(:target_service_accounts)
@@ -9500,8 +9559,7 @@ module Google
9500
9559
  attr_accessor :id
9501
9560
 
9502
9561
  # The IP Version that will be used by this forwarding rule. Valid options are
9503
- # IPV4 or IPV6. This can only be specified for an external global forwarding
9504
- # rule.
9562
+ # IPV4 or IPV6.
9505
9563
  # Corresponds to the JSON property `ipVersion`
9506
9564
  # @return [String]
9507
9565
  attr_accessor :ip_version
@@ -10766,6 +10824,37 @@ module Google
10766
10824
  end
10767
10825
  end
10768
10826
 
10827
+ #
10828
+ class GlobalAddressesMoveRequest
10829
+ include Google::Apis::Core::Hashable
10830
+
10831
+ # An optional destination address description if intended to be different from
10832
+ # the source.
10833
+ # Corresponds to the JSON property `description`
10834
+ # @return [String]
10835
+ attr_accessor :description
10836
+
10837
+ # The URL of the destination address to move to. This can be a full or partial
10838
+ # URL. For example, the following are all valid URLs to a address: - https://www.
10839
+ # googleapis.com/compute/v1/projects/project /global/addresses/address -
10840
+ # projects/project/global/addresses/address Note that destination project must
10841
+ # be different from the source project. So /global/addresses/address is not
10842
+ # valid partial url.
10843
+ # Corresponds to the JSON property `destinationAddress`
10844
+ # @return [String]
10845
+ attr_accessor :destination_address
10846
+
10847
+ def initialize(**args)
10848
+ update!(**args)
10849
+ end
10850
+
10851
+ # Update properties of this object
10852
+ def update!(**args)
10853
+ @description = args[:description] if args.key?(:description)
10854
+ @destination_address = args[:destination_address] if args.key?(:destination_address)
10855
+ end
10856
+ end
10857
+
10769
10858
  #
10770
10859
  class GlobalNetworkEndpointGroupsAttachEndpointsRequest
10771
10860
  include Google::Apis::Core::Hashable
@@ -12495,6 +12584,53 @@ module Google
12495
12584
  end
12496
12585
  end
12497
12586
 
12587
+ # Provides links to documentation or for performing an out of band action. For
12588
+ # example, if a quota check failed with an error indicating the calling project
12589
+ # hasn't enabled the accessed service, this can contain a URL pointing directly
12590
+ # to the right place in the developer console to flip the bit.
12591
+ class Help
12592
+ include Google::Apis::Core::Hashable
12593
+
12594
+ # URL(s) pointing to additional information on handling the current error.
12595
+ # Corresponds to the JSON property `links`
12596
+ # @return [Array<Google::Apis::ComputeAlpha::HelpLink>]
12597
+ attr_accessor :links
12598
+
12599
+ def initialize(**args)
12600
+ update!(**args)
12601
+ end
12602
+
12603
+ # Update properties of this object
12604
+ def update!(**args)
12605
+ @links = args[:links] if args.key?(:links)
12606
+ end
12607
+ end
12608
+
12609
+ # Describes a URL link.
12610
+ class HelpLink
12611
+ include Google::Apis::Core::Hashable
12612
+
12613
+ # Describes what the link offers.
12614
+ # Corresponds to the JSON property `description`
12615
+ # @return [String]
12616
+ attr_accessor :description
12617
+
12618
+ # The URL of the link.
12619
+ # Corresponds to the JSON property `url`
12620
+ # @return [String]
12621
+ attr_accessor :url
12622
+
12623
+ def initialize(**args)
12624
+ update!(**args)
12625
+ end
12626
+
12627
+ # Update properties of this object
12628
+ def update!(**args)
12629
+ @description = args[:description] if args.key?(:description)
12630
+ @url = args[:url] if args.key?(:url)
12631
+ end
12632
+ end
12633
+
12498
12634
  # UrlMaps A host-matching rule for a URL. If matched, will use the named
12499
12635
  # PathMatcher to select the BackendService.
12500
12636
  class HostRule
@@ -18175,6 +18311,12 @@ module Google
18175
18311
  # @return [Google::Apis::ComputeAlpha::InstanceProperties]
18176
18312
  attr_accessor :properties
18177
18313
 
18314
+ # [Output Only] URL of the region where the instance template resides. Only
18315
+ # applicable for regional resources.
18316
+ # Corresponds to the JSON property `region`
18317
+ # @return [String]
18318
+ attr_accessor :region
18319
+
18178
18320
  # [Output Only] The URL for this instance template. The server defines this URL.
18179
18321
  # Corresponds to the JSON property `selfLink`
18180
18322
  # @return [String]
@@ -18211,6 +18353,7 @@ module Google
18211
18353
  @kind = args[:kind] if args.key?(:kind)
18212
18354
  @name = args[:name] if args.key?(:name)
18213
18355
  @properties = args[:properties] if args.key?(:properties)
18356
+ @region = args[:region] if args.key?(:region)
18214
18357
  @self_link = args[:self_link] if args.key?(:self_link)
18215
18358
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
18216
18359
  @source_instance = args[:source_instance] if args.key?(:source_instance)
@@ -22109,6 +22252,33 @@ module Google
22109
22252
  end
22110
22253
  end
22111
22254
 
22255
+ # Provides a localized error message that is safe to return to the user which
22256
+ # can be attached to an RPC error.
22257
+ class LocalizedMessage
22258
+ include Google::Apis::Core::Hashable
22259
+
22260
+ # The locale used following the specification defined at http://www.rfc-editor.
22261
+ # org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"
22262
+ # Corresponds to the JSON property `locale`
22263
+ # @return [String]
22264
+ attr_accessor :locale
22265
+
22266
+ # The localized error message in the above locale.
22267
+ # Corresponds to the JSON property `message`
22268
+ # @return [String]
22269
+ attr_accessor :message
22270
+
22271
+ def initialize(**args)
22272
+ update!(**args)
22273
+ end
22274
+
22275
+ # Update properties of this object
22276
+ def update!(**args)
22277
+ @locale = args[:locale] if args.key?(:locale)
22278
+ @message = args[:message] if args.key?(:message)
22279
+ end
22280
+ end
22281
+
22112
22282
  # Configuration for location policy among multiple possible locations (e.g.
22113
22283
  # preferences for zone selection among zones in a single region).
22114
22284
  class LocationPolicy
@@ -23277,6 +23447,14 @@ module Google
23277
23447
  # @return [String]
23278
23448
  attr_accessor :code
23279
23449
 
23450
+ # [Output Only] An optional list of messages that contain the error details.
23451
+ # There is a set of defined message types to use for providing details.The
23452
+ # syntax depends on the error code. For example, QuotaExceededInfo will have
23453
+ # details when the error code is QUOTA_EXCEEDED.
23454
+ # Corresponds to the JSON property `errorDetails`
23455
+ # @return [Array<Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt::Errors::Error::ErrorDetail>]
23456
+ attr_accessor :error_details
23457
+
23280
23458
  # [Output Only] Indicates the field in the request that caused the error. This
23281
23459
  # property is optional.
23282
23460
  # Corresponds to the JSON property `location`
@@ -23295,9 +23473,58 @@ module Google
23295
23473
  # Update properties of this object
23296
23474
  def update!(**args)
23297
23475
  @code = args[:code] if args.key?(:code)
23476
+ @error_details = args[:error_details] if args.key?(:error_details)
23298
23477
  @location = args[:location] if args.key?(:location)
23299
23478
  @message = args[:message] if args.key?(:message)
23300
23479
  end
23480
+
23481
+ #
23482
+ class ErrorDetail
23483
+ include Google::Apis::Core::Hashable
23484
+
23485
+ # Describes the cause of the error with structured details. Example of an error
23486
+ # when contacting the "pubsub.googleapis.com" API when it is not enabled: ` "
23487
+ # reason": "API_DISABLED" "domain": "googleapis.com" "metadata": ` "resource": "
23488
+ # projects/123", "service": "pubsub.googleapis.com" ` ` This response indicates
23489
+ # that the pubsub.googleapis.com API is not enabled. Example of an error that is
23490
+ # returned when attempting to create a Spanner instance in a region that is out
23491
+ # of stock: ` "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata"
23492
+ # : ` "availableRegions": "us-central1,us-east2" ` `
23493
+ # Corresponds to the JSON property `errorInfo`
23494
+ # @return [Google::Apis::ComputeAlpha::ErrorInfo]
23495
+ attr_accessor :error_info
23496
+
23497
+ # Provides links to documentation or for performing an out of band action. For
23498
+ # example, if a quota check failed with an error indicating the calling project
23499
+ # hasn't enabled the accessed service, this can contain a URL pointing directly
23500
+ # to the right place in the developer console to flip the bit.
23501
+ # Corresponds to the JSON property `help`
23502
+ # @return [Google::Apis::ComputeAlpha::Help]
23503
+ attr_accessor :help
23504
+
23505
+ # Provides a localized error message that is safe to return to the user which
23506
+ # can be attached to an RPC error.
23507
+ # Corresponds to the JSON property `localizedMessage`
23508
+ # @return [Google::Apis::ComputeAlpha::LocalizedMessage]
23509
+ attr_accessor :localized_message
23510
+
23511
+ # Additional details for quota exceeded error for resource quota.
23512
+ # Corresponds to the JSON property `quotaInfo`
23513
+ # @return [Google::Apis::ComputeAlpha::QuotaExceededInfo]
23514
+ attr_accessor :quota_info
23515
+
23516
+ def initialize(**args)
23517
+ update!(**args)
23518
+ end
23519
+
23520
+ # Update properties of this object
23521
+ def update!(**args)
23522
+ @error_info = args[:error_info] if args.key?(:error_info)
23523
+ @help = args[:help] if args.key?(:help)
23524
+ @localized_message = args[:localized_message] if args.key?(:localized_message)
23525
+ @quota_info = args[:quota_info] if args.key?(:quota_info)
23526
+ end
23527
+ end
23301
23528
  end
23302
23529
  end
23303
23530
  end
@@ -28130,6 +28357,14 @@ module Google
28130
28357
  # @return [String]
28131
28358
  attr_accessor :code
28132
28359
 
28360
+ # [Output Only] An optional list of messages that contain the error details.
28361
+ # There is a set of defined message types to use for providing details.The
28362
+ # syntax depends on the error code. For example, QuotaExceededInfo will have
28363
+ # details when the error code is QUOTA_EXCEEDED.
28364
+ # Corresponds to the JSON property `errorDetails`
28365
+ # @return [Array<Google::Apis::ComputeAlpha::Operation::Error::Error::ErrorDetail>]
28366
+ attr_accessor :error_details
28367
+
28133
28368
  # [Output Only] Indicates the field in the request that caused the error. This
28134
28369
  # property is optional.
28135
28370
  # Corresponds to the JSON property `location`
@@ -28148,9 +28383,58 @@ module Google
28148
28383
  # Update properties of this object
28149
28384
  def update!(**args)
28150
28385
  @code = args[:code] if args.key?(:code)
28386
+ @error_details = args[:error_details] if args.key?(:error_details)
28151
28387
  @location = args[:location] if args.key?(:location)
28152
28388
  @message = args[:message] if args.key?(:message)
28153
28389
  end
28390
+
28391
+ #
28392
+ class ErrorDetail
28393
+ include Google::Apis::Core::Hashable
28394
+
28395
+ # Describes the cause of the error with structured details. Example of an error
28396
+ # when contacting the "pubsub.googleapis.com" API when it is not enabled: ` "
28397
+ # reason": "API_DISABLED" "domain": "googleapis.com" "metadata": ` "resource": "
28398
+ # projects/123", "service": "pubsub.googleapis.com" ` ` This response indicates
28399
+ # that the pubsub.googleapis.com API is not enabled. Example of an error that is
28400
+ # returned when attempting to create a Spanner instance in a region that is out
28401
+ # of stock: ` "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata"
28402
+ # : ` "availableRegions": "us-central1,us-east2" ` `
28403
+ # Corresponds to the JSON property `errorInfo`
28404
+ # @return [Google::Apis::ComputeAlpha::ErrorInfo]
28405
+ attr_accessor :error_info
28406
+
28407
+ # Provides links to documentation or for performing an out of band action. For
28408
+ # example, if a quota check failed with an error indicating the calling project
28409
+ # hasn't enabled the accessed service, this can contain a URL pointing directly
28410
+ # to the right place in the developer console to flip the bit.
28411
+ # Corresponds to the JSON property `help`
28412
+ # @return [Google::Apis::ComputeAlpha::Help]
28413
+ attr_accessor :help
28414
+
28415
+ # Provides a localized error message that is safe to return to the user which
28416
+ # can be attached to an RPC error.
28417
+ # Corresponds to the JSON property `localizedMessage`
28418
+ # @return [Google::Apis::ComputeAlpha::LocalizedMessage]
28419
+ attr_accessor :localized_message
28420
+
28421
+ # Additional details for quota exceeded error for resource quota.
28422
+ # Corresponds to the JSON property `quotaInfo`
28423
+ # @return [Google::Apis::ComputeAlpha::QuotaExceededInfo]
28424
+ attr_accessor :quota_info
28425
+
28426
+ def initialize(**args)
28427
+ update!(**args)
28428
+ end
28429
+
28430
+ # Update properties of this object
28431
+ def update!(**args)
28432
+ @error_info = args[:error_info] if args.key?(:error_info)
28433
+ @help = args[:help] if args.key?(:help)
28434
+ @localized_message = args[:localized_message] if args.key?(:localized_message)
28435
+ @quota_info = args[:quota_info] if args.key?(:quota_info)
28436
+ end
28437
+ end
28154
28438
  end
28155
28439
  end
28156
28440
 
@@ -31150,6 +31434,44 @@ module Google
31150
31434
  end
31151
31435
  end
31152
31436
 
31437
+ # Additional details for quota exceeded error for resource quota.
31438
+ class QuotaExceededInfo
31439
+ include Google::Apis::Core::Hashable
31440
+
31441
+ # The map holding related quota dimensions.
31442
+ # Corresponds to the JSON property `dimensions`
31443
+ # @return [Hash<String,String>]
31444
+ attr_accessor :dimensions
31445
+
31446
+ # Current effective quota limit. The limit's unit depends on the quota type or
31447
+ # metric.
31448
+ # Corresponds to the JSON property `limit`
31449
+ # @return [Float]
31450
+ attr_accessor :limit
31451
+
31452
+ # The name of the quota limit.
31453
+ # Corresponds to the JSON property `limitName`
31454
+ # @return [String]
31455
+ attr_accessor :limit_name
31456
+
31457
+ # The Compute Engine quota metric name.
31458
+ # Corresponds to the JSON property `metricName`
31459
+ # @return [String]
31460
+ attr_accessor :metric_name
31461
+
31462
+ def initialize(**args)
31463
+ update!(**args)
31464
+ end
31465
+
31466
+ # Update properties of this object
31467
+ def update!(**args)
31468
+ @dimensions = args[:dimensions] if args.key?(:dimensions)
31469
+ @limit = args[:limit] if args.key?(:limit)
31470
+ @limit_name = args[:limit_name] if args.key?(:limit_name)
31471
+ @metric_name = args[:metric_name] if args.key?(:metric_name)
31472
+ end
31473
+ end
31474
+
31153
31475
  #
31154
31476
  class RbacPolicy
31155
31477
  include Google::Apis::Core::Hashable
@@ -31308,6 +31630,37 @@ module Google
31308
31630
  end
31309
31631
  end
31310
31632
 
31633
+ #
31634
+ class RegionAddressesMoveRequest
31635
+ include Google::Apis::Core::Hashable
31636
+
31637
+ # An optional destination address description if intended to be different from
31638
+ # the source.
31639
+ # Corresponds to the JSON property `description`
31640
+ # @return [String]
31641
+ attr_accessor :description
31642
+
31643
+ # The URL of the destination address to move to. This can be a full or partial
31644
+ # URL. For example, the following are all valid URLs to a address: - https://www.
31645
+ # googleapis.com/compute/v1/projects/project/regions/region /addresses/address -
31646
+ # projects/project/regions/region/addresses/address Note that destination
31647
+ # project must be different from the source project. So /regions/region/
31648
+ # addresses/address is not valid partial url.
31649
+ # Corresponds to the JSON property `destinationAddress`
31650
+ # @return [String]
31651
+ attr_accessor :destination_address
31652
+
31653
+ def initialize(**args)
31654
+ update!(**args)
31655
+ end
31656
+
31657
+ # Update properties of this object
31658
+ def update!(**args)
31659
+ @description = args[:description] if args.key?(:description)
31660
+ @destination_address = args[:destination_address] if args.key?(:destination_address)
31661
+ end
31662
+ end
31663
+
31311
31664
  # Contains a list of autoscalers.
31312
31665
  class RegionAutoscalerList
31313
31666
  include Google::Apis::Core::Hashable
@@ -38420,6 +38773,11 @@ module Google
38420
38773
  # @return [String]
38421
38774
  attr_accessor :exceed_action
38422
38775
 
38776
+ # Simplified google.rpc.Status type (omitting details).
38777
+ # Corresponds to the JSON property `exceedActionRpcStatus`
38778
+ # @return [Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsRpcStatus]
38779
+ attr_accessor :exceed_action_rpc_status
38780
+
38423
38781
  # Parameters defining the redirect action that is used as the exceed action.
38424
38782
  # Cannot be specified if the exceed action is not redirect.
38425
38783
  # Corresponds to the JSON property `exceedRedirectOptions`
@@ -38443,11 +38801,37 @@ module Google
38443
38801
  @enforce_on_key = args[:enforce_on_key] if args.key?(:enforce_on_key)
38444
38802
  @enforce_on_key_name = args[:enforce_on_key_name] if args.key?(:enforce_on_key_name)
38445
38803
  @exceed_action = args[:exceed_action] if args.key?(:exceed_action)
38804
+ @exceed_action_rpc_status = args[:exceed_action_rpc_status] if args.key?(:exceed_action_rpc_status)
38446
38805
  @exceed_redirect_options = args[:exceed_redirect_options] if args.key?(:exceed_redirect_options)
38447
38806
  @rate_limit_threshold = args[:rate_limit_threshold] if args.key?(:rate_limit_threshold)
38448
38807
  end
38449
38808
  end
38450
38809
 
38810
+ # Simplified google.rpc.Status type (omitting details).
38811
+ class SecurityPolicyRuleRateLimitOptionsRpcStatus
38812
+ include Google::Apis::Core::Hashable
38813
+
38814
+ # The status code, which should be an enum value of google.rpc.Code.
38815
+ # Corresponds to the JSON property `code`
38816
+ # @return [Fixnum]
38817
+ attr_accessor :code
38818
+
38819
+ # A developer-facing error message, which should be in English.
38820
+ # Corresponds to the JSON property `message`
38821
+ # @return [String]
38822
+ attr_accessor :message
38823
+
38824
+ def initialize(**args)
38825
+ update!(**args)
38826
+ end
38827
+
38828
+ # Update properties of this object
38829
+ def update!(**args)
38830
+ @code = args[:code] if args.key?(:code)
38831
+ @message = args[:message] if args.key?(:message)
38832
+ end
38833
+ end
38834
+
38451
38835
  #
38452
38836
  class SecurityPolicyRuleRateLimitOptionsThreshold
38453
38837
  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.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220607"
25
+ REVISION = "20220614"
26
26
  end
27
27
  end
28
28
  end
@@ -928,6 +928,12 @@ module Google
928
928
  include Google::Apis::Core::JsonObjectSupport
929
929
  end
930
930
 
931
+ class ErrorInfo
932
+ class Representation < Google::Apis::Core::JsonRepresentation; end
933
+
934
+ include Google::Apis::Core::JsonObjectSupport
935
+ end
936
+
931
937
  class ExchangedPeeringRoute
932
938
  class Representation < Google::Apis::Core::JsonRepresentation; end
933
939
 
@@ -1264,6 +1270,12 @@ module Google
1264
1270
  include Google::Apis::Core::JsonObjectSupport
1265
1271
  end
1266
1272
 
1273
+ class GlobalAddressesMoveRequest
1274
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1275
+
1276
+ include Google::Apis::Core::JsonObjectSupport
1277
+ end
1278
+
1267
1279
  class GlobalNetworkEndpointGroupsAttachEndpointsRequest
1268
1280
  class Representation < Google::Apis::Core::JsonRepresentation; end
1269
1281
 
@@ -1492,6 +1504,18 @@ module Google
1492
1504
  include Google::Apis::Core::JsonObjectSupport
1493
1505
  end
1494
1506
 
1507
+ class Help
1508
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1509
+
1510
+ include Google::Apis::Core::JsonObjectSupport
1511
+ end
1512
+
1513
+ class HelpLink
1514
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1515
+
1516
+ include Google::Apis::Core::JsonObjectSupport
1517
+ end
1518
+
1495
1519
  class HostRule
1496
1520
  class Representation < Google::Apis::Core::JsonRepresentation; end
1497
1521
 
@@ -2722,6 +2746,12 @@ module Google
2722
2746
  include Google::Apis::Core::JsonObjectSupport
2723
2747
  end
2724
2748
 
2749
+ class LocalizedMessage
2750
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2751
+
2752
+ include Google::Apis::Core::JsonObjectSupport
2753
+ end
2754
+
2725
2755
  class LocationPolicy
2726
2756
  class Representation < Google::Apis::Core::JsonRepresentation; end
2727
2757
 
@@ -2886,6 +2916,12 @@ module Google
2886
2916
 
2887
2917
  class Error
2888
2918
  class Representation < Google::Apis::Core::JsonRepresentation; end
2919
+
2920
+ class ErrorDetail
2921
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2922
+
2923
+ include Google::Apis::Core::JsonObjectSupport
2924
+ end
2889
2925
 
2890
2926
  include Google::Apis::Core::JsonObjectSupport
2891
2927
  end
@@ -3534,6 +3570,12 @@ module Google
3534
3570
 
3535
3571
  class Error
3536
3572
  class Representation < Google::Apis::Core::JsonRepresentation; end
3573
+
3574
+ class ErrorDetail
3575
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3576
+
3577
+ include Google::Apis::Core::JsonObjectSupport
3578
+ end
3537
3579
 
3538
3580
  include Google::Apis::Core::JsonObjectSupport
3539
3581
  end
@@ -3958,6 +4000,12 @@ module Google
3958
4000
  include Google::Apis::Core::JsonObjectSupport
3959
4001
  end
3960
4002
 
4003
+ class QuotaExceededInfo
4004
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4005
+
4006
+ include Google::Apis::Core::JsonObjectSupport
4007
+ end
4008
+
3961
4009
  class RbacPolicy
3962
4010
  class Representation < Google::Apis::Core::JsonRepresentation; end
3963
4011
 
@@ -3976,6 +4024,12 @@ module Google
3976
4024
  include Google::Apis::Core::JsonObjectSupport
3977
4025
  end
3978
4026
 
4027
+ class RegionAddressesMoveRequest
4028
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4029
+
4030
+ include Google::Apis::Core::JsonObjectSupport
4031
+ end
4032
+
3979
4033
  class RegionAutoscalerList
3980
4034
  class Representation < Google::Apis::Core::JsonRepresentation; end
3981
4035
 
@@ -5014,6 +5068,12 @@ module Google
5014
5068
  include Google::Apis::Core::JsonObjectSupport
5015
5069
  end
5016
5070
 
5071
+ class SecurityPolicyRuleRateLimitOptionsRpcStatus
5072
+ class Representation < Google::Apis::Core::JsonRepresentation; end
5073
+
5074
+ include Google::Apis::Core::JsonObjectSupport
5075
+ end
5076
+
5017
5077
  class SecurityPolicyRuleRateLimitOptionsThreshold
5018
5078
  class Representation < Google::Apis::Core::JsonRepresentation; end
5019
5079
 
@@ -8238,6 +8298,15 @@ module Google
8238
8298
  end
8239
8299
  end
8240
8300
 
8301
+ class ErrorInfo
8302
+ # @private
8303
+ class Representation < Google::Apis::Core::JsonRepresentation
8304
+ property :domain, as: 'domain'
8305
+ hash :metadatas, as: 'metadatas'
8306
+ property :reason, as: 'reason'
8307
+ end
8308
+ end
8309
+
8241
8310
  class ExchangedPeeringRoute
8242
8311
  # @private
8243
8312
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -8532,6 +8601,7 @@ module Google
8532
8601
  property :priority, as: 'priority'
8533
8602
  property :rule_name, as: 'ruleName'
8534
8603
  property :rule_tuple_count, as: 'ruleTupleCount'
8604
+ property :security_profile_group, as: 'securityProfileGroup'
8535
8605
  collection :target_resources, as: 'targetResources'
8536
8606
  collection :target_secure_tags, as: 'targetSecureTags', class: Google::Apis::ComputeAlpha::FirewallPolicyRuleSecureTag, decorator: Google::Apis::ComputeAlpha::FirewallPolicyRuleSecureTag::Representation
8537
8607
 
@@ -8900,6 +8970,14 @@ module Google
8900
8970
  end
8901
8971
  end
8902
8972
 
8973
+ class GlobalAddressesMoveRequest
8974
+ # @private
8975
+ class Representation < Google::Apis::Core::JsonRepresentation
8976
+ property :description, as: 'description'
8977
+ property :destination_address, as: 'destinationAddress'
8978
+ end
8979
+ end
8980
+
8903
8981
  class GlobalNetworkEndpointGroupsAttachEndpointsRequest
8904
8982
  # @private
8905
8983
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9328,6 +9406,22 @@ module Google
9328
9406
  end
9329
9407
  end
9330
9408
 
9409
+ class Help
9410
+ # @private
9411
+ class Representation < Google::Apis::Core::JsonRepresentation
9412
+ collection :links, as: 'links', class: Google::Apis::ComputeAlpha::HelpLink, decorator: Google::Apis::ComputeAlpha::HelpLink::Representation
9413
+
9414
+ end
9415
+ end
9416
+
9417
+ class HelpLink
9418
+ # @private
9419
+ class Representation < Google::Apis::Core::JsonRepresentation
9420
+ property :description, as: 'description'
9421
+ property :url, as: 'url'
9422
+ end
9423
+ end
9424
+
9331
9425
  class HostRule
9332
9426
  # @private
9333
9427
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10722,6 +10816,7 @@ module Google
10722
10816
  property :name, as: 'name'
10723
10817
  property :properties, as: 'properties', class: Google::Apis::ComputeAlpha::InstanceProperties, decorator: Google::Apis::ComputeAlpha::InstanceProperties::Representation
10724
10818
 
10819
+ property :region, as: 'region'
10725
10820
  property :self_link, as: 'selfLink'
10726
10821
  property :self_link_with_id, as: 'selfLinkWithId'
10727
10822
  property :source_instance, as: 'sourceInstance'
@@ -11700,6 +11795,14 @@ module Google
11700
11795
  end
11701
11796
  end
11702
11797
 
11798
+ class LocalizedMessage
11799
+ # @private
11800
+ class Representation < Google::Apis::Core::JsonRepresentation
11801
+ property :locale, as: 'locale'
11802
+ property :message, as: 'message'
11803
+ end
11804
+ end
11805
+
11703
11806
  class LocationPolicy
11704
11807
  # @private
11705
11808
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -12016,9 +12119,25 @@ module Google
12016
12119
  # @private
12017
12120
  class Representation < Google::Apis::Core::JsonRepresentation
12018
12121
  property :code, as: 'code'
12122
+ collection :error_details, as: 'errorDetails', class: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt::Errors::Error::ErrorDetail, decorator: Google::Apis::ComputeAlpha::ManagedInstanceLastAttempt::Errors::Error::ErrorDetail::Representation
12123
+
12019
12124
  property :location, as: 'location'
12020
12125
  property :message, as: 'message'
12021
12126
  end
12127
+
12128
+ class ErrorDetail
12129
+ # @private
12130
+ class Representation < Google::Apis::Core::JsonRepresentation
12131
+ property :error_info, as: 'errorInfo', class: Google::Apis::ComputeAlpha::ErrorInfo, decorator: Google::Apis::ComputeAlpha::ErrorInfo::Representation
12132
+
12133
+ property :help, as: 'help', class: Google::Apis::ComputeAlpha::Help, decorator: Google::Apis::ComputeAlpha::Help::Representation
12134
+
12135
+ property :localized_message, as: 'localizedMessage', class: Google::Apis::ComputeAlpha::LocalizedMessage, decorator: Google::Apis::ComputeAlpha::LocalizedMessage::Representation
12136
+
12137
+ property :quota_info, as: 'quotaInfo', class: Google::Apis::ComputeAlpha::QuotaExceededInfo, decorator: Google::Apis::ComputeAlpha::QuotaExceededInfo::Representation
12138
+
12139
+ end
12140
+ end
12022
12141
  end
12023
12142
  end
12024
12143
  end
@@ -13236,9 +13355,25 @@ module Google
13236
13355
  # @private
13237
13356
  class Representation < Google::Apis::Core::JsonRepresentation
13238
13357
  property :code, as: 'code'
13358
+ collection :error_details, as: 'errorDetails', class: Google::Apis::ComputeAlpha::Operation::Error::Error::ErrorDetail, decorator: Google::Apis::ComputeAlpha::Operation::Error::Error::ErrorDetail::Representation
13359
+
13239
13360
  property :location, as: 'location'
13240
13361
  property :message, as: 'message'
13241
13362
  end
13363
+
13364
+ class ErrorDetail
13365
+ # @private
13366
+ class Representation < Google::Apis::Core::JsonRepresentation
13367
+ property :error_info, as: 'errorInfo', class: Google::Apis::ComputeAlpha::ErrorInfo, decorator: Google::Apis::ComputeAlpha::ErrorInfo::Representation
13368
+
13369
+ property :help, as: 'help', class: Google::Apis::ComputeAlpha::Help, decorator: Google::Apis::ComputeAlpha::Help::Representation
13370
+
13371
+ property :localized_message, as: 'localizedMessage', class: Google::Apis::ComputeAlpha::LocalizedMessage, decorator: Google::Apis::ComputeAlpha::LocalizedMessage::Representation
13372
+
13373
+ property :quota_info, as: 'quotaInfo', class: Google::Apis::ComputeAlpha::QuotaExceededInfo, decorator: Google::Apis::ComputeAlpha::QuotaExceededInfo::Representation
13374
+
13375
+ end
13376
+ end
13242
13377
  end
13243
13378
  end
13244
13379
 
@@ -14002,6 +14137,16 @@ module Google
14002
14137
  end
14003
14138
  end
14004
14139
 
14140
+ class QuotaExceededInfo
14141
+ # @private
14142
+ class Representation < Google::Apis::Core::JsonRepresentation
14143
+ hash :dimensions, as: 'dimensions'
14144
+ property :limit, as: 'limit'
14145
+ property :limit_name, as: 'limitName'
14146
+ property :metric_name, as: 'metricName'
14147
+ end
14148
+ end
14149
+
14005
14150
  class RbacPolicy
14006
14151
  # @private
14007
14152
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14043,6 +14188,14 @@ module Google
14043
14188
  end
14044
14189
  end
14045
14190
 
14191
+ class RegionAddressesMoveRequest
14192
+ # @private
14193
+ class Representation < Google::Apis::Core::JsonRepresentation
14194
+ property :description, as: 'description'
14195
+ property :destination_address, as: 'destinationAddress'
14196
+ end
14197
+ end
14198
+
14046
14199
  class RegionAutoscalerList
14047
14200
  # @private
14048
14201
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -15877,6 +16030,8 @@ module Google
15877
16030
  property :enforce_on_key, as: 'enforceOnKey'
15878
16031
  property :enforce_on_key_name, as: 'enforceOnKeyName'
15879
16032
  property :exceed_action, as: 'exceedAction'
16033
+ property :exceed_action_rpc_status, as: 'exceedActionRpcStatus', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsRpcStatus, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsRpcStatus::Representation
16034
+
15880
16035
  property :exceed_redirect_options, as: 'exceedRedirectOptions', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRedirectOptions, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRedirectOptions::Representation
15881
16036
 
15882
16037
  property :rate_limit_threshold, as: 'rateLimitThreshold', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold::Representation
@@ -15884,6 +16039,14 @@ module Google
15884
16039
  end
15885
16040
  end
15886
16041
 
16042
+ class SecurityPolicyRuleRateLimitOptionsRpcStatus
16043
+ # @private
16044
+ class Representation < Google::Apis::Core::JsonRepresentation
16045
+ property :code, as: 'code'
16046
+ property :message, as: 'message'
16047
+ end
16048
+ end
16049
+
15887
16050
  class SecurityPolicyRuleRateLimitOptionsThreshold
15888
16051
  # @private
15889
16052
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -607,6 +607,59 @@ module Google
607
607
  execute_or_queue_command(command, &block)
608
608
  end
609
609
 
610
+ # Moves the specified address resource.
611
+ # @param [String] project
612
+ # Source project ID which the Address is moved from.
613
+ # @param [String] region
614
+ # Name of the region for this request.
615
+ # @param [String] address
616
+ # Name of the address resource to move.
617
+ # @param [Google::Apis::ComputeAlpha::RegionAddressesMoveRequest] region_addresses_move_request_object
618
+ # @param [String] request_id
619
+ # An optional request ID to identify requests. Specify a unique request ID so
620
+ # that if you must retry your request, the server will know to ignore the
621
+ # request if it has already been completed. For example, consider a situation
622
+ # where you make an initial request and the request times out. If you make the
623
+ # request again with the same request ID, the server can check if original
624
+ # operation with the same request ID was received, and if so, will ignore the
625
+ # second request. This prevents clients from accidentally creating duplicate
626
+ # commitments. The request ID must be a valid UUID with the exception that zero
627
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
628
+ # @param [String] fields
629
+ # Selector specifying which fields to include in a partial response.
630
+ # @param [String] quota_user
631
+ # Available to use for quota purposes for server-side applications. Can be any
632
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
633
+ # @param [String] user_ip
634
+ # Legacy name for parameter that has been superseded by `quotaUser`.
635
+ # @param [Google::Apis::RequestOptions] options
636
+ # Request-specific options
637
+ #
638
+ # @yield [result, err] Result & error if block supplied
639
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
640
+ # @yieldparam err [StandardError] error object if request failed
641
+ #
642
+ # @return [Google::Apis::ComputeAlpha::Operation]
643
+ #
644
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
647
+ def move_address(project, region, address, region_addresses_move_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
648
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/addresses/{address}/move', options)
649
+ command.request_representation = Google::Apis::ComputeAlpha::RegionAddressesMoveRequest::Representation
650
+ command.request_object = region_addresses_move_request_object
651
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
652
+ command.response_class = Google::Apis::ComputeAlpha::Operation
653
+ command.params['project'] = project unless project.nil?
654
+ command.params['region'] = region unless region.nil?
655
+ command.params['address'] = address unless address.nil?
656
+ command.query['requestId'] = request_id unless request_id.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
+ command.query['userIp'] = user_ip unless user_ip.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
610
663
  # Sets the labels on an Address. To learn more about labels, read the Labeling
611
664
  # Resources documentation.
612
665
  # @param [String] project
@@ -6451,6 +6504,56 @@ module Google
6451
6504
  execute_or_queue_command(command, &block)
6452
6505
  end
6453
6506
 
6507
+ # Moves the specified address resource from one project to another project.
6508
+ # @param [String] project
6509
+ # Source project ID which the Address is moved from.
6510
+ # @param [String] address
6511
+ # Name of the address resource to move.
6512
+ # @param [Google::Apis::ComputeAlpha::GlobalAddressesMoveRequest] global_addresses_move_request_object
6513
+ # @param [String] request_id
6514
+ # An optional request ID to identify requests. Specify a unique request ID so
6515
+ # that if you must retry your request, the server will know to ignore the
6516
+ # request if it has already been completed. For example, consider a situation
6517
+ # where you make an initial request and the request times out. If you make the
6518
+ # request again with the same request ID, the server can check if original
6519
+ # operation with the same request ID was received, and if so, will ignore the
6520
+ # second request. This prevents clients from accidentally creating duplicate
6521
+ # commitments. The request ID must be a valid UUID with the exception that zero
6522
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
6523
+ # @param [String] fields
6524
+ # Selector specifying which fields to include in a partial response.
6525
+ # @param [String] quota_user
6526
+ # Available to use for quota purposes for server-side applications. Can be any
6527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6528
+ # @param [String] user_ip
6529
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6530
+ # @param [Google::Apis::RequestOptions] options
6531
+ # Request-specific options
6532
+ #
6533
+ # @yield [result, err] Result & error if block supplied
6534
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
6535
+ # @yieldparam err [StandardError] error object if request failed
6536
+ #
6537
+ # @return [Google::Apis::ComputeAlpha::Operation]
6538
+ #
6539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6542
+ def move_global_address(project, address, global_addresses_move_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6543
+ command = make_simple_command(:post, 'projects/{project}/global/addresses/{address}/move', options)
6544
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalAddressesMoveRequest::Representation
6545
+ command.request_object = global_addresses_move_request_object
6546
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
6547
+ command.response_class = Google::Apis::ComputeAlpha::Operation
6548
+ command.params['project'] = project unless project.nil?
6549
+ command.params['address'] = address unless address.nil?
6550
+ command.query['requestId'] = request_id unless request_id.nil?
6551
+ command.query['fields'] = fields unless fields.nil?
6552
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6553
+ command.query['userIp'] = user_ip unless user_ip.nil?
6554
+ execute_or_queue_command(command, &block)
6555
+ end
6556
+
6454
6557
  # Sets the labels on a GlobalAddress. To learn more about labels, read the
6455
6558
  # Labeling Resources documentation.
6456
6559
  # @param [String] project
@@ -10798,7 +10901,9 @@ module Google
10798
10901
  # group is performing on the instance. For example, if the group is still
10799
10902
  # creating an instance, the currentAction is CREATING. If a previous action
10800
10903
  # failed, the list displays the errors for that failed action. The orderBy query
10801
- # parameter is not supported.
10904
+ # parameter is not supported. The `pageToken` query parameter is supported only
10905
+ # in the alpha and beta API and only if the group's `listManagedInstancesResults`
10906
+ # field is set to `PAGINATED`.
10802
10907
  # @param [String] project
10803
10908
  # Project ID for this request.
10804
10909
  # @param [String] zone
@@ -28976,6 +29081,9 @@ module Google
28976
29081
  # Lists the instances in the managed instance group and instances that are
28977
29082
  # scheduled to be created. The list includes any current actions that the group
28978
29083
  # has scheduled for its instances. The orderBy query parameter is not supported.
29084
+ # The `pageToken` query parameter is supported only in the alpha and beta API
29085
+ # and only if the group's `listManagedInstancesResults` field is set to `
29086
+ # PAGINATED`.
28979
29087
  # @param [String] project
28980
29088
  # Project ID for this request.
28981
29089
  # @param [String] region
@@ -30384,6 +30492,240 @@ module Google
30384
30492
  execute_or_queue_command(command, &block)
30385
30493
  end
30386
30494
 
30495
+ # Deletes the specified instance template. Deleting an instance template is
30496
+ # permanent and cannot be undone.
30497
+ # @param [String] project
30498
+ # Project ID for this request.
30499
+ # @param [String] region
30500
+ # The name of the region for this request.
30501
+ # @param [String] instance_template
30502
+ # The name of the instance template to delete.
30503
+ # @param [String] request_id
30504
+ # An optional request ID to identify requests. Specify a unique request ID so
30505
+ # that if you must retry your request, the server will know to ignore the
30506
+ # request if it has already been completed. For example, consider a situation
30507
+ # where you make an initial request and the request times out. If you make the
30508
+ # request again with the same request ID, the server can check if original
30509
+ # operation with the same request ID was received, and if so, will ignore the
30510
+ # second request. This prevents clients from accidentally creating duplicate
30511
+ # commitments. The request ID must be a valid UUID with the exception that zero
30512
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30513
+ # @param [String] fields
30514
+ # Selector specifying which fields to include in a partial response.
30515
+ # @param [String] quota_user
30516
+ # Available to use for quota purposes for server-side applications. Can be any
30517
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30518
+ # @param [String] user_ip
30519
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30520
+ # @param [Google::Apis::RequestOptions] options
30521
+ # Request-specific options
30522
+ #
30523
+ # @yield [result, err] Result & error if block supplied
30524
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30525
+ # @yieldparam err [StandardError] error object if request failed
30526
+ #
30527
+ # @return [Google::Apis::ComputeAlpha::Operation]
30528
+ #
30529
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30530
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30531
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30532
+ def delete_region_instance_template(project, region, instance_template, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30533
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
30534
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30535
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30536
+ command.params['project'] = project unless project.nil?
30537
+ command.params['region'] = region unless region.nil?
30538
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
30539
+ command.query['requestId'] = request_id unless request_id.nil?
30540
+ command.query['fields'] = fields unless fields.nil?
30541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30542
+ command.query['userIp'] = user_ip unless user_ip.nil?
30543
+ execute_or_queue_command(command, &block)
30544
+ end
30545
+
30546
+ # Returns the specified instance template. Gets a list of available instance
30547
+ # templates by making a list() request.
30548
+ # @param [String] project
30549
+ # Project ID for this request.
30550
+ # @param [String] region
30551
+ # The name of the region for this request.
30552
+ # @param [String] instance_template
30553
+ # The name of the instance template.
30554
+ # @param [String] fields
30555
+ # Selector specifying which fields to include in a partial response.
30556
+ # @param [String] quota_user
30557
+ # Available to use for quota purposes for server-side applications. Can be any
30558
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30559
+ # @param [String] user_ip
30560
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30561
+ # @param [Google::Apis::RequestOptions] options
30562
+ # Request-specific options
30563
+ #
30564
+ # @yield [result, err] Result & error if block supplied
30565
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceTemplate] parsed result object
30566
+ # @yieldparam err [StandardError] error object if request failed
30567
+ #
30568
+ # @return [Google::Apis::ComputeAlpha::InstanceTemplate]
30569
+ #
30570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30573
+ def get_region_instance_template(project, region, instance_template, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30574
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates/{instanceTemplate}', options)
30575
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation
30576
+ command.response_class = Google::Apis::ComputeAlpha::InstanceTemplate
30577
+ command.params['project'] = project unless project.nil?
30578
+ command.params['region'] = region unless region.nil?
30579
+ command.params['instanceTemplate'] = instance_template unless instance_template.nil?
30580
+ command.query['fields'] = fields unless fields.nil?
30581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30582
+ command.query['userIp'] = user_ip unless user_ip.nil?
30583
+ execute_or_queue_command(command, &block)
30584
+ end
30585
+
30586
+ # Creates an instance template in the specified project and region using the
30587
+ # global instance template whose URL is included in the request.
30588
+ # @param [String] project
30589
+ # Project ID for this request.
30590
+ # @param [String] region
30591
+ # The name of the region for this request.
30592
+ # @param [Google::Apis::ComputeAlpha::InstanceTemplate] instance_template_object
30593
+ # @param [String] request_id
30594
+ # An optional request ID to identify requests. Specify a unique request ID so
30595
+ # that if you must retry your request, the server will know to ignore the
30596
+ # request if it has already been completed. For example, consider a situation
30597
+ # where you make an initial request and the request times out. If you make the
30598
+ # request again with the same request ID, the server can check if original
30599
+ # operation with the same request ID was received, and if so, will ignore the
30600
+ # second request. This prevents clients from accidentally creating duplicate
30601
+ # commitments. The request ID must be a valid UUID with the exception that zero
30602
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30603
+ # @param [String] fields
30604
+ # Selector specifying which fields to include in a partial response.
30605
+ # @param [String] quota_user
30606
+ # Available to use for quota purposes for server-side applications. Can be any
30607
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30608
+ # @param [String] user_ip
30609
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30610
+ # @param [Google::Apis::RequestOptions] options
30611
+ # Request-specific options
30612
+ #
30613
+ # @yield [result, err] Result & error if block supplied
30614
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
30615
+ # @yieldparam err [StandardError] error object if request failed
30616
+ #
30617
+ # @return [Google::Apis::ComputeAlpha::Operation]
30618
+ #
30619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30622
+ def insert_region_instance_template(project, region, instance_template_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30623
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceTemplates', options)
30624
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceTemplate::Representation
30625
+ command.request_object = instance_template_object
30626
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30627
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30628
+ command.params['project'] = project unless project.nil?
30629
+ command.params['region'] = region unless region.nil?
30630
+ command.query['requestId'] = request_id unless request_id.nil?
30631
+ command.query['fields'] = fields unless fields.nil?
30632
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30633
+ command.query['userIp'] = user_ip unless user_ip.nil?
30634
+ execute_or_queue_command(command, &block)
30635
+ end
30636
+
30637
+ # Retrieves a list of instance templates that are contained within the specified
30638
+ # project and region.
30639
+ # @param [String] project
30640
+ # Project ID for this request.
30641
+ # @param [String] region
30642
+ # The name of the regions for this request.
30643
+ # @param [String] filter
30644
+ # A filter expression that filters resources listed in the response. Most
30645
+ # Compute resources support two types of filter expressions: expressions that
30646
+ # support regular expressions and expressions that follow API improvement
30647
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
30648
+ # field name, an operator, and the value that you want to use for filtering. The
30649
+ # value must be a string, a number, or a boolean. The operator must be either `=`
30650
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
30651
+ # Engine instances, you can exclude instances named `example-instance` by
30652
+ # specifying `name != example-instance`. The `:` operator can be used with
30653
+ # string fields to match substrings. For non-string fields it is equivalent to
30654
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
30655
+ # been defined. For example, to find all objects with `owner` label use: ```
30656
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
30657
+ # specify `scheduling.automaticRestart = false` to include instances only if
30658
+ # they are not scheduled for automatic restarts. You can use filtering on nested
30659
+ # fields to filter based on resource labels. To filter on multiple expressions,
30660
+ # provide each separate expression within parentheses. For example: ``` (
30661
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
30662
+ # default, each expression is an `AND` expression. However, you can include `AND`
30663
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
30664
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
30665
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
30666
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
30667
+ # expression with or without quotes or against multiple parenthesized
30668
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
30669
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
30670
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
30671
+ # regular expression using Google RE2 library syntax. The literal value must
30672
+ # match the entire field. For example, to filter for instances that do not end
30673
+ # with name "instance", you would use `name ne .*instance`.
30674
+ # @param [Fixnum] max_results
30675
+ # The maximum number of results per page that should be returned. If the number
30676
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30677
+ # nextPageToken` that can be used to get the next page of results in subsequent
30678
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30679
+ # @param [String] order_by
30680
+ # Sorts list results by a certain order. By default, results are returned in
30681
+ # alphanumerical order based on the resource name. You can also sort results in
30682
+ # descending order based on the creation timestamp using `orderBy="
30683
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
30684
+ # field in reverse chronological order (newest result first). Use this to sort
30685
+ # resources like operations so that the newest operation is returned first.
30686
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30687
+ # @param [String] page_token
30688
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30689
+ # by a previous list request to get the next page of results.
30690
+ # @param [Boolean] return_partial_success
30691
+ # Opt-in for partial success behavior which provides partial results in case of
30692
+ # failure. The default value is false.
30693
+ # @param [String] fields
30694
+ # Selector specifying which fields to include in a partial response.
30695
+ # @param [String] quota_user
30696
+ # Available to use for quota purposes for server-side applications. Can be any
30697
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30698
+ # @param [String] user_ip
30699
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30700
+ # @param [Google::Apis::RequestOptions] options
30701
+ # Request-specific options
30702
+ #
30703
+ # @yield [result, err] Result & error if block supplied
30704
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceTemplateList] parsed result object
30705
+ # @yieldparam err [StandardError] error object if request failed
30706
+ #
30707
+ # @return [Google::Apis::ComputeAlpha::InstanceTemplateList]
30708
+ #
30709
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30710
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30711
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30712
+ def list_region_instance_templates(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)
30713
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceTemplates', options)
30714
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceTemplateList::Representation
30715
+ command.response_class = Google::Apis::ComputeAlpha::InstanceTemplateList
30716
+ command.params['project'] = project unless project.nil?
30717
+ command.params['region'] = region unless region.nil?
30718
+ command.query['filter'] = filter unless filter.nil?
30719
+ command.query['maxResults'] = max_results unless max_results.nil?
30720
+ command.query['orderBy'] = order_by unless order_by.nil?
30721
+ command.query['pageToken'] = page_token unless page_token.nil?
30722
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30723
+ command.query['fields'] = fields unless fields.nil?
30724
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30725
+ command.query['userIp'] = user_ip unless user_ip.nil?
30726
+ execute_or_queue_command(command, &block)
30727
+ end
30728
+
30387
30729
  # Creates multiple instances in a given region. Count specifies the number of
30388
30730
  # instances to create.
30389
30731
  # @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.38.0
4
+ version: 0.39.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-06-20 00:00:00.000000000 Z
11
+ date: 2022-06-27 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.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.39.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: []