google-apis-compute_alpha 0.11.0 → 0.12.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: 7f891f8302dc8f3df966f1a159af66a90a60cf325c43fb7ae9d51235031ceff6
4
- data.tar.gz: 1d4a6305d37ceafe17ca98ac66d3aa423a9b553c1f10582b59aa934147654756
3
+ metadata.gz: 20cb629eb4eb5fb148b929707861260bbe6bfc08cccd334461f1b287a0c1c641
4
+ data.tar.gz: 2f16a7469ee708070679b9e33c2b540dcb89faf77605365eef6fb64b6702d64e
5
5
  SHA512:
6
- metadata.gz: c8376ae750811916607d9321808112cd4431090392a76f8ab75d45741274dbe3efc5a176041de5ed29e57ca59c78cfd13a21771a8e75f807e872f15ca63eaa69
7
- data.tar.gz: 72617948ead97d9df15b44baa787f2cd555b75475f6d09a9e7fecbe7989ff9814c1250e0930a748cf35766cee1b5a83032af49d009757e0a67e41a1856988eec
6
+ metadata.gz: 8a5b3074492134d0c5987f73efb9284cc2d50e5a41c00266784c5bec34f37eba9a1fad051e37c2d813d2f17be854c388563bfad7255fb9dc38b6be4f4f1a03b2
7
+ data.tar.gz: bd4651f26e15dc4e4856379e7e90ab61f6a17fa9db5998125c53349d8de3d3be4e5cf42e864c0e047df8d640b638528fdd5a1fd18f14a059411053ed9b350e0a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.12.0 (2021-06-10)
4
+
5
+ * Regenerated from discovery document revision 20210525
6
+ * Regenerated using generator version 0.3.0
7
+
3
8
  ### v0.11.0 (2021-05-28)
4
9
 
5
10
  * Regenerated from discovery document revision 20210518
@@ -3559,11 +3559,12 @@ module Google
3559
3559
  attr_accessor :self_link_with_id
3560
3560
 
3561
3561
  # Type of session affinity to use. The default is NONE.
3562
- # When the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the
3563
- # possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
3564
- # * For all other load balancers that use loadBalancingScheme=EXTERNAL, the
3565
- # possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use
3566
- # GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.
3562
+ # When the loadBalancingScheme is EXTERNAL:
3563
+ # * For Network Load Balancing, the possible values are NONE, CLIENT_IP,
3564
+ # CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that
3565
+ # use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or
3566
+ # GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP,
3567
+ # HTTP2, or HTTPS.
3567
3568
  # When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP,
3568
3569
  # CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
3569
3570
  # When the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED,
@@ -3576,7 +3577,8 @@ module Google
3576
3577
  attr_accessor :session_affinity
3577
3578
 
3578
3579
  # Subsetting configuration for this BackendService. Currently this is applicable
3579
- # only for Internal TCP/UDP load balancing and Internal HTTP(S) load balancing.
3580
+ # only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and
3581
+ # Traffic Director.
3580
3582
  # Corresponds to the JSON property `subsetting`
3581
3583
  # @return [Google::Apis::ComputeAlpha::Subsetting]
3582
3584
  attr_accessor :subsetting
@@ -20247,8 +20249,10 @@ module Google
20247
20249
  # - ACTIVE: This outage notification is active. The event could be in the past,
20248
20250
  # present, or future. See start_time and end_time for scheduling.
20249
20251
  # - CANCELLED: The outage associated with this notification was cancelled before
20250
- # the outage was due to start. Note that the versions of this enum prefixed with
20251
- # "NS_" have been deprecated in favor of the unprefixed values.
20252
+ # the outage was due to start.
20253
+ # - COMPLETED: The outage associated with this notification is complete. Note
20254
+ # that the versions of this enum prefixed with "NS_" have been deprecated in
20255
+ # favor of the unprefixed values.
20252
20256
  # Corresponds to the JSON property `state`
20253
20257
  # @return [String]
20254
20258
  attr_accessor :state
@@ -21094,6 +21098,11 @@ module Google
21094
21098
  # @return [Hash<String,Google::Apis::ComputeAlpha::LocationPolicyLocation>]
21095
21099
  attr_accessor :locations
21096
21100
 
21101
+ # Strategy for distributing VMs across zones in a region.
21102
+ # Corresponds to the JSON property `targetShape`
21103
+ # @return [String]
21104
+ attr_accessor :target_shape
21105
+
21097
21106
  def initialize(**args)
21098
21107
  update!(**args)
21099
21108
  end
@@ -21101,6 +21110,7 @@ module Google
21101
21110
  # Update properties of this object
21102
21111
  def update!(**args)
21103
21112
  @locations = args[:locations] if args.key?(:locations)
21113
+ @target_shape = args[:target_shape] if args.key?(:target_shape)
21104
21114
  end
21105
21115
  end
21106
21116
 
@@ -31510,6 +31520,105 @@ module Google
31510
31520
  end
31511
31521
  end
31512
31522
 
31523
+ # A transient resource used in compute.regionInstances.recommendLocations. This
31524
+ # resource is not saved anywhere and used only to process the request.
31525
+ class RegionInstancesRecommendLocationsResource
31526
+ include Google::Apis::Core::Hashable
31527
+
31528
+ # Specification of named homogeneous instance sets to find location for.
31529
+ # Keys of this map are arbitrary (but must be different), defined by the caller
31530
+ # used only in the response. They must follow RFC 1035 name standard.
31531
+ # Specifically, they must be 1-63 characters long and match the regular
31532
+ # expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must
31533
+ # be a lowercase letter, and all following characters must be a dash, lowercase
31534
+ # letter, or digit, except the last character, which cannot be a dash.
31535
+ # Values are trimmed BulkInsertInstanceResource messages, without the following
31536
+ # fields:
31537
+ # - min_count
31538
+ # - predefined_name
31539
+ # - name_pattern
31540
+ # - per_instance_properties
31541
+ # - instance
31542
+ # - secure_tag
31543
+ # - location_policy
31544
+ # Corresponds to the JSON property `instanceSpecs`
31545
+ # @return [Hash<String,Google::Apis::ComputeAlpha::BulkInsertInstanceResource>]
31546
+ attr_accessor :instance_specs
31547
+
31548
+ # Configuration for location policy among multiple possible locations (e.g.
31549
+ # preferences for zone selection among zones in a single region).
31550
+ # Corresponds to the JSON property `locationPolicy`
31551
+ # @return [Google::Apis::ComputeAlpha::LocationPolicy]
31552
+ attr_accessor :location_policy
31553
+
31554
+ def initialize(**args)
31555
+ update!(**args)
31556
+ end
31557
+
31558
+ # Update properties of this object
31559
+ def update!(**args)
31560
+ @instance_specs = args[:instance_specs] if args.key?(:instance_specs)
31561
+ @location_policy = args[:location_policy] if args.key?(:location_policy)
31562
+ end
31563
+ end
31564
+
31565
+ # Response for for compute.regionInstances.recommendLocations.
31566
+ class RegionInstancesRecommendLocationsResponse
31567
+ include Google::Apis::Core::Hashable
31568
+
31569
+ # Instance count recommendations, keys are instance spec names.
31570
+ # Corresponds to the JSON property `recommendedLocations`
31571
+ # @return [Hash<String,Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs>]
31572
+ attr_accessor :recommended_locations
31573
+
31574
+ def initialize(**args)
31575
+ update!(**args)
31576
+ end
31577
+
31578
+ # Update properties of this object
31579
+ def update!(**args)
31580
+ @recommended_locations = args[:recommended_locations] if args.key?(:recommended_locations)
31581
+ end
31582
+ end
31583
+
31584
+ # Instance count recommendation for a single zone.
31585
+ class RegionInstancesRecommendLocationsResponseRecommendation
31586
+ include Google::Apis::Core::Hashable
31587
+
31588
+ # Count of instances recommended.
31589
+ # Corresponds to the JSON property `instanceCount`
31590
+ # @return [Fixnum]
31591
+ attr_accessor :instance_count
31592
+
31593
+ def initialize(**args)
31594
+ update!(**args)
31595
+ end
31596
+
31597
+ # Update properties of this object
31598
+ def update!(**args)
31599
+ @instance_count = args[:instance_count] if args.key?(:instance_count)
31600
+ end
31601
+ end
31602
+
31603
+ # Instance count recommendations for a single instance specification.
31604
+ class RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs
31605
+ include Google::Apis::Core::Hashable
31606
+
31607
+ # Instance count recommendations, keys are zone names.
31608
+ # Corresponds to the JSON property `locations`
31609
+ # @return [Hash<String,Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponseRecommendation>]
31610
+ attr_accessor :locations
31611
+
31612
+ def initialize(**args)
31613
+ update!(**args)
31614
+ end
31615
+
31616
+ # Update properties of this object
31617
+ def update!(**args)
31618
+ @locations = args[:locations] if args.key?(:locations)
31619
+ end
31620
+ end
31621
+
31513
31622
  #
31514
31623
  class RegionInstantSnapshotsExportRequest
31515
31624
  include Google::Apis::Core::Hashable
@@ -33350,6 +33459,11 @@ module Google
33350
33459
  # @return [Google::Apis::ComputeAlpha::ResourceStatusScheduling]
33351
33460
  attr_accessor :scheduling
33352
33461
 
33462
+ #
33463
+ # Corresponds to the JSON property `upcomingMaintenance`
33464
+ # @return [Google::Apis::ComputeAlpha::ResourceStatusUpcomingMaintenance]
33465
+ attr_accessor :upcoming_maintenance
33466
+
33353
33467
  def initialize(**args)
33354
33468
  update!(**args)
33355
33469
  end
@@ -33357,6 +33471,7 @@ module Google
33357
33471
  # Update properties of this object
33358
33472
  def update!(**args)
33359
33473
  @scheduling = args[:scheduling] if args.key?(:scheduling)
33474
+ @upcoming_maintenance = args[:upcoming_maintenance] if args.key?(:upcoming_maintenance)
33360
33475
  end
33361
33476
  end
33362
33477
 
@@ -33383,6 +33498,27 @@ module Google
33383
33498
  end
33384
33499
  end
33385
33500
 
33501
+ #
33502
+ class ResourceStatusUpcomingMaintenance
33503
+ include Google::Apis::Core::Hashable
33504
+
33505
+ # Indicates if the maintenance can be customer triggered. See go/sf-ctm-design
33506
+ # for more details
33507
+ # Corresponds to the JSON property `canReschedule`
33508
+ # @return [Boolean]
33509
+ attr_accessor :can_reschedule
33510
+ alias_method :can_reschedule?, :can_reschedule
33511
+
33512
+ def initialize(**args)
33513
+ update!(**args)
33514
+ end
33515
+
33516
+ # Update properties of this object
33517
+ def update!(**args)
33518
+ @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
33519
+ end
33520
+ end
33521
+
33386
33522
  # A rollout policy configuration.
33387
33523
  class RolloutPolicy
33388
33524
  include Google::Apis::Core::Hashable
@@ -34398,7 +34534,7 @@ module Google
34398
34534
  # @return [String]
34399
34535
  attr_accessor :redundant_interface
34400
34536
 
34401
- # The URL of the subnetwork resource that this interface belongs to, which must
34537
+ # The URI of the subnetwork resource that this interface belongs to, which must
34402
34538
  # be in the same region as the Cloud Router. When you establish a BGP session to
34403
34539
  # a VM instance using this interface, the VM instance must belong to the same
34404
34540
  # subnetwork as the subnetwork specified here.
@@ -40188,7 +40324,8 @@ module Google
40188
40324
  end
40189
40325
 
40190
40326
  # Subsetting configuration for this BackendService. Currently this is applicable
40191
- # only for Internal TCP/UDP load balancing and Internal HTTP(S) load balancing.
40327
+ # only for Internal TCP/UDP load balancing, Internal HTTP(S) load balancing and
40328
+ # Traffic Director.
40192
40329
  class Subsetting
40193
40330
  include Google::Apis::Core::Hashable
40194
40331
 
@@ -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.11.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210518"
25
+ REVISION = "20210525"
26
26
  end
27
27
  end
28
28
  end
@@ -4012,6 +4012,30 @@ module Google
4012
4012
  include Google::Apis::Core::JsonObjectSupport
4013
4013
  end
4014
4014
 
4015
+ class RegionInstancesRecommendLocationsResource
4016
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4017
+
4018
+ include Google::Apis::Core::JsonObjectSupport
4019
+ end
4020
+
4021
+ class RegionInstancesRecommendLocationsResponse
4022
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4023
+
4024
+ include Google::Apis::Core::JsonObjectSupport
4025
+ end
4026
+
4027
+ class RegionInstancesRecommendLocationsResponseRecommendation
4028
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4029
+
4030
+ include Google::Apis::Core::JsonObjectSupport
4031
+ end
4032
+
4033
+ class RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs
4034
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4035
+
4036
+ include Google::Apis::Core::JsonObjectSupport
4037
+ end
4038
+
4015
4039
  class RegionInstantSnapshotsExportRequest
4016
4040
  class Representation < Google::Apis::Core::JsonRepresentation; end
4017
4041
 
@@ -4318,6 +4342,12 @@ module Google
4318
4342
  include Google::Apis::Core::JsonObjectSupport
4319
4343
  end
4320
4344
 
4345
+ class ResourceStatusUpcomingMaintenance
4346
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4347
+
4348
+ include Google::Apis::Core::JsonObjectSupport
4349
+ end
4350
+
4321
4351
  class RolloutPolicy
4322
4352
  class Representation < Google::Apis::Core::JsonRepresentation; end
4323
4353
 
@@ -11030,6 +11060,7 @@ module Google
11030
11060
  class Representation < Google::Apis::Core::JsonRepresentation
11031
11061
  hash :locations, as: 'locations', class: Google::Apis::ComputeAlpha::LocationPolicyLocation, decorator: Google::Apis::ComputeAlpha::LocationPolicyLocation::Representation
11032
11062
 
11063
+ property :target_shape, as: 'targetShape'
11033
11064
  end
11034
11065
  end
11035
11066
 
@@ -13701,6 +13732,39 @@ module Google
13701
13732
  end
13702
13733
  end
13703
13734
 
13735
+ class RegionInstancesRecommendLocationsResource
13736
+ # @private
13737
+ class Representation < Google::Apis::Core::JsonRepresentation
13738
+ hash :instance_specs, as: 'instanceSpecs', class: Google::Apis::ComputeAlpha::BulkInsertInstanceResource, decorator: Google::Apis::ComputeAlpha::BulkInsertInstanceResource::Representation
13739
+
13740
+ property :location_policy, as: 'locationPolicy', class: Google::Apis::ComputeAlpha::LocationPolicy, decorator: Google::Apis::ComputeAlpha::LocationPolicy::Representation
13741
+
13742
+ end
13743
+ end
13744
+
13745
+ class RegionInstancesRecommendLocationsResponse
13746
+ # @private
13747
+ class Representation < Google::Apis::Core::JsonRepresentation
13748
+ hash :recommended_locations, as: 'recommendedLocations', class: Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs, decorator: Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs::Representation
13749
+
13750
+ end
13751
+ end
13752
+
13753
+ class RegionInstancesRecommendLocationsResponseRecommendation
13754
+ # @private
13755
+ class Representation < Google::Apis::Core::JsonRepresentation
13756
+ property :instance_count, as: 'instanceCount'
13757
+ end
13758
+ end
13759
+
13760
+ class RegionInstancesRecommendLocationsResponseRecommendationsForInstanceSpecs
13761
+ # @private
13762
+ class Representation < Google::Apis::Core::JsonRepresentation
13763
+ hash :locations, as: 'locations', class: Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponseRecommendation, decorator: Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponseRecommendation::Representation
13764
+
13765
+ end
13766
+ end
13767
+
13704
13768
  class RegionInstantSnapshotsExportRequest
13705
13769
  # @private
13706
13770
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14205,6 +14269,8 @@ module Google
14205
14269
  class Representation < Google::Apis::Core::JsonRepresentation
14206
14270
  property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::ResourceStatusScheduling, decorator: Google::Apis::ComputeAlpha::ResourceStatusScheduling::Representation
14207
14271
 
14272
+ property :upcoming_maintenance, as: 'upcomingMaintenance', class: Google::Apis::ComputeAlpha::ResourceStatusUpcomingMaintenance, decorator: Google::Apis::ComputeAlpha::ResourceStatusUpcomingMaintenance::Representation
14273
+
14208
14274
  end
14209
14275
  end
14210
14276
 
@@ -14215,6 +14281,13 @@ module Google
14215
14281
  end
14216
14282
  end
14217
14283
 
14284
+ class ResourceStatusUpcomingMaintenance
14285
+ # @private
14286
+ class Representation < Google::Apis::Core::JsonRepresentation
14287
+ property :can_reschedule, as: 'canReschedule'
14288
+ end
14289
+ end
14290
+
14218
14291
  class RolloutPolicy
14219
14292
  # @private
14220
14293
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2015,6 +2015,46 @@ module Google
2015
2015
  execute_or_queue_command(command, &block)
2016
2016
  end
2017
2017
 
2018
+ # Gets the access control policy for a resource. May be empty if no such policy
2019
+ # or resource exists.
2020
+ # @param [String] project
2021
+ # Project ID for this request.
2022
+ # @param [String] resource
2023
+ # Name or id of the resource for this request.
2024
+ # @param [Fixnum] options_requested_policy_version
2025
+ # Requested IAM Policy version.
2026
+ # @param [String] fields
2027
+ # Selector specifying which fields to include in a partial response.
2028
+ # @param [String] quota_user
2029
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2030
+ # characters.
2031
+ # @param [String] user_ip
2032
+ # Deprecated. Please use quotaUser instead.
2033
+ # @param [Google::Apis::RequestOptions] options
2034
+ # Request-specific options
2035
+ #
2036
+ # @yield [result, err] Result & error if block supplied
2037
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
2038
+ # @yieldparam err [StandardError] error object if request failed
2039
+ #
2040
+ # @return [Google::Apis::ComputeAlpha::Policy]
2041
+ #
2042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2045
+ def get_backend_service_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2046
+ command = make_simple_command(:get, 'projects/{project}/global/backendServices/{resource}/getIamPolicy', options)
2047
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
2048
+ command.response_class = Google::Apis::ComputeAlpha::Policy
2049
+ command.params['project'] = project unless project.nil?
2050
+ command.params['resource'] = resource unless resource.nil?
2051
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2052
+ command.query['fields'] = fields unless fields.nil?
2053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2054
+ command.query['userIp'] = user_ip unless user_ip.nil?
2055
+ execute_or_queue_command(command, &block)
2056
+ end
2057
+
2018
2058
  # Creates a BackendService resource in the specified project using the data
2019
2059
  # included in the request. For more information, see Backend services overview.
2020
2060
  # @param [String] project
@@ -2246,6 +2286,46 @@ module Google
2246
2286
  execute_or_queue_command(command, &block)
2247
2287
  end
2248
2288
 
2289
+ # Sets the access control policy on the specified resource. Replaces any
2290
+ # existing policy.
2291
+ # @param [String] project
2292
+ # Project ID for this request.
2293
+ # @param [String] resource
2294
+ # Name or id of the resource for this request.
2295
+ # @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
2296
+ # @param [String] fields
2297
+ # Selector specifying which fields to include in a partial response.
2298
+ # @param [String] quota_user
2299
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2300
+ # characters.
2301
+ # @param [String] user_ip
2302
+ # Deprecated. Please use quotaUser instead.
2303
+ # @param [Google::Apis::RequestOptions] options
2304
+ # Request-specific options
2305
+ #
2306
+ # @yield [result, err] Result & error if block supplied
2307
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
2308
+ # @yieldparam err [StandardError] error object if request failed
2309
+ #
2310
+ # @return [Google::Apis::ComputeAlpha::Policy]
2311
+ #
2312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2315
+ def set_backend_service_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2316
+ command = make_simple_command(:post, 'projects/{project}/global/backendServices/{resource}/setIamPolicy', options)
2317
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
2318
+ command.request_object = global_set_policy_request_object
2319
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
2320
+ command.response_class = Google::Apis::ComputeAlpha::Policy
2321
+ command.params['project'] = project unless project.nil?
2322
+ command.params['resource'] = resource unless resource.nil?
2323
+ command.query['fields'] = fields unless fields.nil?
2324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2325
+ command.query['userIp'] = user_ip unless user_ip.nil?
2326
+ execute_or_queue_command(command, &block)
2327
+ end
2328
+
2249
2329
  # Sets the Google Cloud Armor security policy for the specified backend service.
2250
2330
  # For more information, see Google Cloud Armor Overview
2251
2331
  # @param [String] project
@@ -4043,7 +4123,8 @@ module Google
4043
4123
  execute_or_queue_command(command, &block)
4044
4124
  end
4045
4125
 
4046
- # Lists all the policies that have been configured for the specified project.
4126
+ # Lists all the policies that have been configured for the specified folder or
4127
+ # organization.
4047
4128
  # @param [String] filter
4048
4129
  # A filter expression that filters resources listed in the response. The
4049
4130
  # expression must specify the field name, a comparison operator, and the value
@@ -13006,6 +13087,57 @@ module Google
13006
13087
  execute_or_queue_command(command, &block)
13007
13088
  end
13008
13089
 
13090
+ # Perform a manual maintenance on the instance.
13091
+ # @param [String] project
13092
+ # Project ID for this request.
13093
+ # @param [String] zone
13094
+ # The name of the zone for this request.
13095
+ # @param [String] instance
13096
+ # Name of the instance scoping this request.
13097
+ # @param [String] request_id
13098
+ # An optional request ID to identify requests. Specify a unique request ID so
13099
+ # that if you must retry your request, the server will know to ignore the
13100
+ # request if it has already been completed.
13101
+ # For example, consider a situation where you make an initial request and the
13102
+ # request times out. If you make the request again with the same request ID, the
13103
+ # server can check if original operation with the same request ID was received,
13104
+ # and if so, will ignore the second request. This prevents clients from
13105
+ # accidentally creating duplicate commitments.
13106
+ # The request ID must be a valid UUID with the exception that zero UUID is not
13107
+ # supported (00000000-0000-0000-0000-000000000000).
13108
+ # @param [String] fields
13109
+ # Selector specifying which fields to include in a partial response.
13110
+ # @param [String] quota_user
13111
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
13112
+ # characters.
13113
+ # @param [String] user_ip
13114
+ # Deprecated. Please use quotaUser instead.
13115
+ # @param [Google::Apis::RequestOptions] options
13116
+ # Request-specific options
13117
+ #
13118
+ # @yield [result, err] Result & error if block supplied
13119
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
13120
+ # @yieldparam err [StandardError] error object if request failed
13121
+ #
13122
+ # @return [Google::Apis::ComputeAlpha::Operation]
13123
+ #
13124
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13125
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13126
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13127
+ def perform_instance_maintenance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13128
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/performMaintenance', options)
13129
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
13130
+ command.response_class = Google::Apis::ComputeAlpha::Operation
13131
+ command.params['project'] = project unless project.nil?
13132
+ command.params['zone'] = zone unless zone.nil?
13133
+ command.params['instance'] = instance unless instance.nil?
13134
+ command.query['requestId'] = request_id unless request_id.nil?
13135
+ command.query['fields'] = fields unless fields.nil?
13136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13137
+ command.query['userIp'] = user_ip unless user_ip.nil?
13138
+ execute_or_queue_command(command, &block)
13139
+ end
13140
+
13009
13141
  # Removes resource policies from an instance.
13010
13142
  # @param [String] project
13011
13143
  # Project ID for this request.
@@ -17731,6 +17863,12 @@ module Google
17731
17863
  # @param [String] firewall_policy
17732
17864
  # Name of the firewall policy to update.
17733
17865
  # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
17866
+ # @param [Fixnum] max_priority
17867
+ # When rule.priority is not specified, auto choose a unused priority between
17868
+ # minPriority and maxPriority>. This field is exclusive with rule.priority.
17869
+ # @param [Fixnum] min_priority
17870
+ # When rule.priority is not specified, auto choose a unused priority between
17871
+ # minPriority and maxPriority>. This field is exclusive with rule.priority.
17734
17872
  # @param [String] request_id
17735
17873
  # An optional request ID to identify requests. Specify a unique request ID so
17736
17874
  # that if you must retry your request, the server will know to ignore the
@@ -17761,7 +17899,7 @@ module Google
17761
17899
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17762
17900
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17763
17901
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17764
- def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17902
+ def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, max_priority: nil, min_priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17765
17903
  command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule', options)
17766
17904
  command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
17767
17905
  command.request_object = firewall_policy_rule_object
@@ -17769,6 +17907,8 @@ module Google
17769
17907
  command.response_class = Google::Apis::ComputeAlpha::Operation
17770
17908
  command.params['project'] = project unless project.nil?
17771
17909
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
17910
+ command.query['maxPriority'] = max_priority unless max_priority.nil?
17911
+ command.query['minPriority'] = min_priority unless min_priority.nil?
17772
17912
  command.query['requestId'] = request_id unless request_id.nil?
17773
17913
  command.query['fields'] = fields unless fields.nil?
17774
17914
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -23541,6 +23681,49 @@ module Google
23541
23681
  execute_or_queue_command(command, &block)
23542
23682
  end
23543
23683
 
23684
+ # Gets the access control policy for a resource. May be empty if no such policy
23685
+ # or resource exists.
23686
+ # @param [String] project
23687
+ # Project ID for this request.
23688
+ # @param [String] region
23689
+ # The name of the region for this request.
23690
+ # @param [String] resource
23691
+ # Name or id of the resource for this request.
23692
+ # @param [Fixnum] options_requested_policy_version
23693
+ # Requested IAM Policy version.
23694
+ # @param [String] fields
23695
+ # Selector specifying which fields to include in a partial response.
23696
+ # @param [String] quota_user
23697
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
23698
+ # characters.
23699
+ # @param [String] user_ip
23700
+ # Deprecated. Please use quotaUser instead.
23701
+ # @param [Google::Apis::RequestOptions] options
23702
+ # Request-specific options
23703
+ #
23704
+ # @yield [result, err] Result & error if block supplied
23705
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
23706
+ # @yieldparam err [StandardError] error object if request failed
23707
+ #
23708
+ # @return [Google::Apis::ComputeAlpha::Policy]
23709
+ #
23710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23713
+ def get_region_backend_service_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23714
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy', options)
23715
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
23716
+ command.response_class = Google::Apis::ComputeAlpha::Policy
23717
+ command.params['project'] = project unless project.nil?
23718
+ command.params['region'] = region unless region.nil?
23719
+ command.params['resource'] = resource unless resource.nil?
23720
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
23721
+ command.query['fields'] = fields unless fields.nil?
23722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23723
+ command.query['userIp'] = user_ip unless user_ip.nil?
23724
+ execute_or_queue_command(command, &block)
23725
+ end
23726
+
23544
23727
  # Creates a regional BackendService resource in the specified project using the
23545
23728
  # data included in the request. For more information, see Backend services
23546
23729
  # overview.
@@ -23730,6 +23913,49 @@ module Google
23730
23913
  execute_or_queue_command(command, &block)
23731
23914
  end
23732
23915
 
23916
+ # Sets the access control policy on the specified resource. Replaces any
23917
+ # existing policy.
23918
+ # @param [String] project
23919
+ # Project ID for this request.
23920
+ # @param [String] region
23921
+ # The name of the region for this request.
23922
+ # @param [String] resource
23923
+ # Name or id of the resource for this request.
23924
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
23925
+ # @param [String] fields
23926
+ # Selector specifying which fields to include in a partial response.
23927
+ # @param [String] quota_user
23928
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
23929
+ # characters.
23930
+ # @param [String] user_ip
23931
+ # Deprecated. Please use quotaUser instead.
23932
+ # @param [Google::Apis::RequestOptions] options
23933
+ # Request-specific options
23934
+ #
23935
+ # @yield [result, err] Result & error if block supplied
23936
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
23937
+ # @yieldparam err [StandardError] error object if request failed
23938
+ #
23939
+ # @return [Google::Apis::ComputeAlpha::Policy]
23940
+ #
23941
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
23942
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
23943
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
23944
+ def set_region_backend_service_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
23945
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy', options)
23946
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
23947
+ command.request_object = region_set_policy_request_object
23948
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
23949
+ command.response_class = Google::Apis::ComputeAlpha::Policy
23950
+ command.params['project'] = project unless project.nil?
23951
+ command.params['region'] = region unless region.nil?
23952
+ command.params['resource'] = resource unless resource.nil?
23953
+ command.query['fields'] = fields unless fields.nil?
23954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
23955
+ command.query['userIp'] = user_ip unless user_ip.nil?
23956
+ execute_or_queue_command(command, &block)
23957
+ end
23958
+
23733
23959
  # Returns permissions that a caller has on the specified resource.
23734
23960
  # @param [String] project
23735
23961
  # Project ID for this request.
@@ -28183,6 +28409,46 @@ module Google
28183
28409
  execute_or_queue_command(command, &block)
28184
28410
  end
28185
28411
 
28412
+ # Returns recommended locations (zones in a region) for specified sets of
28413
+ # homogenous instances.
28414
+ # @param [String] project
28415
+ # Project ID for this request.
28416
+ # @param [String] region
28417
+ # The name of the region for this request.
28418
+ # @param [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResource] region_instances_recommend_locations_resource_object
28419
+ # @param [String] fields
28420
+ # Selector specifying which fields to include in a partial response.
28421
+ # @param [String] quota_user
28422
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
28423
+ # characters.
28424
+ # @param [String] user_ip
28425
+ # Deprecated. Please use quotaUser instead.
28426
+ # @param [Google::Apis::RequestOptions] options
28427
+ # Request-specific options
28428
+ #
28429
+ # @yield [result, err] Result & error if block supplied
28430
+ # @yieldparam result [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse] parsed result object
28431
+ # @yieldparam err [StandardError] error object if request failed
28432
+ #
28433
+ # @return [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse]
28434
+ #
28435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
28438
+ def recommend_region_instance_locations(project, region, region_instances_recommend_locations_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28439
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/recommendLocations', options)
28440
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResource::Representation
28441
+ command.request_object = region_instances_recommend_locations_resource_object
28442
+ command.response_representation = Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse::Representation
28443
+ command.response_class = Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse
28444
+ command.params['project'] = project unless project.nil?
28445
+ command.params['region'] = region unless region.nil?
28446
+ command.query['fields'] = fields unless fields.nil?
28447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
28448
+ command.query['userIp'] = user_ip unless user_ip.nil?
28449
+ execute_or_queue_command(command, &block)
28450
+ end
28451
+
28186
28452
  # Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
28187
28453
  # single instantSnapshot might not necessarily delete all the data on that
28188
28454
  # instantSnapshot. If any data on the instantSnapshot that is marked for
@@ -28941,6 +29207,12 @@ module Google
28941
29207
  # @param [String] firewall_policy
28942
29208
  # Name of the firewall policy to update.
28943
29209
  # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
29210
+ # @param [Fixnum] max_priority
29211
+ # When rule.priority is not specified, auto choose a unused priority between
29212
+ # minPriority and maxPriority>. This field is exclusive with rule.priority.
29213
+ # @param [Fixnum] min_priority
29214
+ # When rule.priority is not specified, auto choose a unused priority between
29215
+ # minPriority and maxPriority>. This field is exclusive with rule.priority.
28944
29216
  # @param [String] request_id
28945
29217
  # An optional request ID to identify requests. Specify a unique request ID so
28946
29218
  # that if you must retry your request, the server will know to ignore the
@@ -28971,7 +29243,7 @@ module Google
28971
29243
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28972
29244
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28973
29245
  # @raise [Google::Apis::AuthorizationError] Authorization is required
28974
- def add_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29246
+ def add_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, max_priority: nil, min_priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28975
29247
  command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
28976
29248
  command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
28977
29249
  command.request_object = firewall_policy_rule_object
@@ -28980,6 +29252,8 @@ module Google
28980
29252
  command.params['project'] = project unless project.nil?
28981
29253
  command.params['region'] = region unless region.nil?
28982
29254
  command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
29255
+ command.query['maxPriority'] = max_priority unless max_priority.nil?
29256
+ command.query['minPriority'] = min_priority unless min_priority.nil?
28983
29257
  command.query['requestId'] = request_id unless request_id.nil?
28984
29258
  command.query['fields'] = fields unless fields.nil?
28985
29259
  command.query['quotaUser'] = quota_user unless quota_user.nil?
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.11.0
4
+ version: 0.12.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: 2021-05-31 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-compute_alpha/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.11.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.12.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-compute_alpha
57
57
  post_install_message:
58
58
  rdoc_options: []