google-apis-compute_alpha 0.37.0 → 0.38.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: 39611c94e21b8d055f7fbb53f8d77be42afb8a57f3711d78463c7d10909bbe39
4
- data.tar.gz: 5ab6cf86e01423a6a7bc10fdb1cb917af9bd9d43c52c9d80de7c61cef00cbcfb
3
+ metadata.gz: 79a52742cba120a6f20f5a2db84a7946a371eaf5eea145e826663a39b75f3205
4
+ data.tar.gz: 103d04f8215cf3d739c3a991ef5de69bceb11f84a89ebeb48bf75b4261e63a01
5
5
  SHA512:
6
- metadata.gz: eccb2a6da84d48b41fac4587c0f381e64d542f53febf1cc3b8753c17552657ffabbc5c3bd9838284f125be9384df34a2b36898345ffb4446f4e00891e24e74e7
7
- data.tar.gz: 1604f2c8477b8a7dd4afb2ffa37271864f1ea6e78d91ce9e065ebcd81fd0380db5b321ddb677869033b5e80c2309c7e02628b20d3582d0f3538ef38fc1520af4
6
+ metadata.gz: feaeeae5876c33ddb321d9d39a5e97caa9a877332df26929830cc3e868b0ec7637daefbc73a23712653b309807e13ba31ca6fd1f7d2dbf13e953d218e4afded4
7
+ data.tar.gz: ae248820a0728e323f89d42f821ca7bd9a52d192cb6526261ff8bfb28f4a946145a8de68fb315f4f5ed983fee6fa4c933edfefed19ad3c53b7166c4c6a980e63
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-compute_alpha
2
2
 
3
+ ### v0.38.0 (2022-06-19)
4
+
5
+ * Regenerated using generator version 0.7.0
6
+ * Regenerated from discovery document revision 20220607
7
+
3
8
  ### v0.37.0 (2022-06-10)
4
9
 
5
10
  * Regenerated from discovery document revision 20220531
@@ -15498,6 +15498,14 @@ module Google
15498
15498
  # @return [Fixnum]
15499
15499
  attr_accessor :creating
15500
15500
 
15501
+ # [Output Only] The number of instances that the managed instance group will
15502
+ # attempt to create atomically, in a batch mode. If the desired count of
15503
+ # instances can not be created, entire batch will be deleted and the group will
15504
+ # decrease its targetSize value accordingly.
15505
+ # Corresponds to the JSON property `creatingAtomically`
15506
+ # @return [Fixnum]
15507
+ attr_accessor :creating_atomically
15508
+
15501
15509
  # [Output Only] The number of instances that the managed instance group will
15502
15510
  # attempt to create. The group attempts to create each instance only once. If
15503
15511
  # the group fails to create any of these instances, it decreases the group's
@@ -15578,6 +15586,7 @@ module Google
15578
15586
  def update!(**args)
15579
15587
  @abandoning = args[:abandoning] if args.key?(:abandoning)
15580
15588
  @creating = args[:creating] if args.key?(:creating)
15589
+ @creating_atomically = args[:creating_atomically] if args.key?(:creating_atomically)
15581
15590
  @creating_without_retries = args[:creating_without_retries] if args.key?(:creating_without_retries)
15582
15591
  @deleting = args[:deleting] if args.key?(:deleting)
15583
15592
  @none = args[:none] if args.key?(:none)
@@ -15980,6 +15989,239 @@ module Google
15980
15989
  end
15981
15990
  end
15982
15991
 
15992
+ # InstanceGroupManagerResizeRequest represents a request to create a number of
15993
+ # VMs: either immediately or by queuing the request for the specified time. This
15994
+ # resize request is nested under InstanceGroupManager and the VMs created by
15995
+ # this request are added to the owning InstanceGroupManager.
15996
+ class InstanceGroupManagerResizeRequest
15997
+ include Google::Apis::Core::Hashable
15998
+
15999
+ # The count of instances to create as part of this resize request.
16000
+ # Corresponds to the JSON property `count`
16001
+ # @return [Fixnum]
16002
+ attr_accessor :count
16003
+
16004
+ # [Output Only] The creation timestamp for this resize request in RFC3339 text
16005
+ # format.
16006
+ # Corresponds to the JSON property `creationTimestamp`
16007
+ # @return [String]
16008
+ attr_accessor :creation_timestamp
16009
+
16010
+ # An optional description of this resource.
16011
+ # Corresponds to the JSON property `description`
16012
+ # @return [String]
16013
+ attr_accessor :description
16014
+
16015
+ # [Output Only] A unique identifier for this resource type. The server generates
16016
+ # this identifier.
16017
+ # Corresponds to the JSON property `id`
16018
+ # @return [Fixnum]
16019
+ attr_accessor :id
16020
+
16021
+ # [Output Only] The resource type, which is always compute#
16022
+ # instanceGroupManagerResizeRequest for resize requests.
16023
+ # Corresponds to the JSON property `kind`
16024
+ # @return [String]
16025
+ attr_accessor :kind
16026
+
16027
+ # The name of this resize request. The name must be 1-63 characters long, and
16028
+ # comply with RFC1035.
16029
+ # Corresponds to the JSON property `name`
16030
+ # @return [String]
16031
+ attr_accessor :name
16032
+
16033
+ # Queuing parameters for the requested deferred capacity.
16034
+ # Corresponds to the JSON property `queuingPolicy`
16035
+ # @return [Google::Apis::ComputeAlpha::QueuingPolicy]
16036
+ attr_accessor :queuing_policy
16037
+
16038
+ # [Output Only] The URL for this resize request. The server defines this URL.
16039
+ # Corresponds to the JSON property `selfLink`
16040
+ # @return [String]
16041
+ attr_accessor :self_link
16042
+
16043
+ # [Output Only] Server-defined URL for this resource with the resource id.
16044
+ # Corresponds to the JSON property `selfLinkWithId`
16045
+ # @return [String]
16046
+ attr_accessor :self_link_with_id
16047
+
16048
+ # [Output only] Current state of the request.
16049
+ # Corresponds to the JSON property `state`
16050
+ # @return [String]
16051
+ attr_accessor :state
16052
+
16053
+ # [Output only] Status of the request. The Status message is aligned with
16054
+ # QueuedResource.status. ResizeRequest.queuing_policy contains the queuing
16055
+ # policy as provided by the user; it could have either valid_until_time or
16056
+ # valid_until_duration. ResizeRequest.status.queuing_policy always contains
16057
+ # absolute time as calculated by the server when the request is queued.
16058
+ # Corresponds to the JSON property `status`
16059
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestStatus]
16060
+ attr_accessor :status
16061
+
16062
+ # [Output Only] The URL of a zone where the resize request is located.
16063
+ # Corresponds to the JSON property `zone`
16064
+ # @return [String]
16065
+ attr_accessor :zone
16066
+
16067
+ def initialize(**args)
16068
+ update!(**args)
16069
+ end
16070
+
16071
+ # Update properties of this object
16072
+ def update!(**args)
16073
+ @count = args[:count] if args.key?(:count)
16074
+ @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
16075
+ @description = args[:description] if args.key?(:description)
16076
+ @id = args[:id] if args.key?(:id)
16077
+ @kind = args[:kind] if args.key?(:kind)
16078
+ @name = args[:name] if args.key?(:name)
16079
+ @queuing_policy = args[:queuing_policy] if args.key?(:queuing_policy)
16080
+ @self_link = args[:self_link] if args.key?(:self_link)
16081
+ @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
16082
+ @state = args[:state] if args.key?(:state)
16083
+ @status = args[:status] if args.key?(:status)
16084
+ @zone = args[:zone] if args.key?(:zone)
16085
+ end
16086
+ end
16087
+
16088
+ #
16089
+ class InstanceGroupManagerResizeRequestStatus
16090
+ include Google::Apis::Core::Hashable
16091
+
16092
+ # Queuing parameters for the requested deferred capacity.
16093
+ # Corresponds to the JSON property `queuingPolicy`
16094
+ # @return [Google::Apis::ComputeAlpha::QueuingPolicy]
16095
+ attr_accessor :queuing_policy
16096
+
16097
+ def initialize(**args)
16098
+ update!(**args)
16099
+ end
16100
+
16101
+ # Update properties of this object
16102
+ def update!(**args)
16103
+ @queuing_policy = args[:queuing_policy] if args.key?(:queuing_policy)
16104
+ end
16105
+ end
16106
+
16107
+ # [Output Only] A list of resize requests.
16108
+ class InstanceGroupManagerResizeRequestsListResponse
16109
+ include Google::Apis::Core::Hashable
16110
+
16111
+ # [Output Only] Unique identifier for the resource; defined by the server.
16112
+ # Corresponds to the JSON property `id`
16113
+ # @return [String]
16114
+ attr_accessor :id
16115
+
16116
+ # A list of resize request resources.
16117
+ # Corresponds to the JSON property `items`
16118
+ # @return [Array<Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest>]
16119
+ attr_accessor :items
16120
+
16121
+ # [Output Only] Type of the resource. Always compute#
16122
+ # instanceGroupManagerResizeRequestList for a list of resize requests.
16123
+ # Corresponds to the JSON property `kind`
16124
+ # @return [String]
16125
+ attr_accessor :kind
16126
+
16127
+ # [Output Only] This token allows you to get the next page of results for list
16128
+ # requests. If the number of results is larger than maxResults, use the
16129
+ # nextPageToken as a value for the query parameter pageToken in the next list
16130
+ # request. Subsequent list requests will have their own nextPageToken to
16131
+ # continue paging through the results.
16132
+ # Corresponds to the JSON property `nextPageToken`
16133
+ # @return [String]
16134
+ attr_accessor :next_page_token
16135
+
16136
+ # [Output Only] Server-defined URL for this resource.
16137
+ # Corresponds to the JSON property `selfLink`
16138
+ # @return [String]
16139
+ attr_accessor :self_link
16140
+
16141
+ # [Output Only] Informational warning message.
16142
+ # Corresponds to the JSON property `warning`
16143
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Warning]
16144
+ attr_accessor :warning
16145
+
16146
+ def initialize(**args)
16147
+ update!(**args)
16148
+ end
16149
+
16150
+ # Update properties of this object
16151
+ def update!(**args)
16152
+ @id = args[:id] if args.key?(:id)
16153
+ @items = args[:items] if args.key?(:items)
16154
+ @kind = args[:kind] if args.key?(:kind)
16155
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
16156
+ @self_link = args[:self_link] if args.key?(:self_link)
16157
+ @warning = args[:warning] if args.key?(:warning)
16158
+ end
16159
+
16160
+ # [Output Only] Informational warning message.
16161
+ class Warning
16162
+ include Google::Apis::Core::Hashable
16163
+
16164
+ # [Output Only] A warning code, if applicable. For example, Compute Engine
16165
+ # returns NO_RESULTS_ON_PAGE if there are no results in the response.
16166
+ # Corresponds to the JSON property `code`
16167
+ # @return [String]
16168
+ attr_accessor :code
16169
+
16170
+ # [Output Only] Metadata about this warning in key: value format. For example: "
16171
+ # data": [ ` "key": "scope", "value": "zones/us-east1-d" `
16172
+ # Corresponds to the JSON property `data`
16173
+ # @return [Array<Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Warning::Datum>]
16174
+ attr_accessor :data
16175
+
16176
+ # [Output Only] A human-readable description of the warning code.
16177
+ # Corresponds to the JSON property `message`
16178
+ # @return [String]
16179
+ attr_accessor :message
16180
+
16181
+ def initialize(**args)
16182
+ update!(**args)
16183
+ end
16184
+
16185
+ # Update properties of this object
16186
+ def update!(**args)
16187
+ @code = args[:code] if args.key?(:code)
16188
+ @data = args[:data] if args.key?(:data)
16189
+ @message = args[:message] if args.key?(:message)
16190
+ end
16191
+
16192
+ #
16193
+ class Datum
16194
+ include Google::Apis::Core::Hashable
16195
+
16196
+ # [Output Only] A key that provides more detail on the warning being returned.
16197
+ # For example, for warnings where there are no results in a list request for a
16198
+ # particular zone, this key might be scope and the key value might be the zone
16199
+ # name. Other examples might be a key indicating a deprecated resource and a
16200
+ # suggested replacement, or a warning about invalid network settings (for
16201
+ # example, if an instance attempts to perform IP forwarding but is not enabled
16202
+ # for IP forwarding).
16203
+ # Corresponds to the JSON property `key`
16204
+ # @return [String]
16205
+ attr_accessor :key
16206
+
16207
+ # [Output Only] A warning data value corresponding to the key.
16208
+ # Corresponds to the JSON property `value`
16209
+ # @return [String]
16210
+ attr_accessor :value
16211
+
16212
+ def initialize(**args)
16213
+ update!(**args)
16214
+ end
16215
+
16216
+ # Update properties of this object
16217
+ def update!(**args)
16218
+ @key = args[:key] if args.key?(:key)
16219
+ @value = args[:value] if args.key?(:value)
16220
+ end
16221
+ end
16222
+ end
16223
+ end
16224
+
15983
16225
  #
15984
16226
  class InstanceGroupManagerStandbyPolicy
15985
16227
  include Google::Apis::Core::Hashable
@@ -30842,6 +31084,34 @@ module Google
30842
31084
  end
30843
31085
  end
30844
31086
 
31087
+ # Queuing parameters for the requested deferred capacity.
31088
+ class QueuingPolicy
31089
+ include Google::Apis::Core::Hashable
31090
+
31091
+ # A Duration represents a fixed-length span of time represented as a count of
31092
+ # seconds and fractions of seconds at nanosecond resolution. It is independent
31093
+ # of any calendar and concepts like "day" or "month". Range is approximately 10,
31094
+ # 000 years.
31095
+ # Corresponds to the JSON property `validUntilDuration`
31096
+ # @return [Google::Apis::ComputeAlpha::Duration]
31097
+ attr_accessor :valid_until_duration
31098
+
31099
+ # Absolute deadline for waiting for capacity in RFC3339 text format.
31100
+ # Corresponds to the JSON property `validUntilTime`
31101
+ # @return [String]
31102
+ attr_accessor :valid_until_time
31103
+
31104
+ def initialize(**args)
31105
+ update!(**args)
31106
+ end
31107
+
31108
+ # Update properties of this object
31109
+ def update!(**args)
31110
+ @valid_until_duration = args[:valid_until_duration] if args.key?(:valid_until_duration)
31111
+ @valid_until_time = args[:valid_until_time] if args.key?(:valid_until_time)
31112
+ end
31113
+ end
31114
+
30845
31115
  # A quotas entry.
30846
31116
  class Quota
30847
31117
  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.37.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.5.0"
22
+ GENERATOR_VERSION = "0.7.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220531"
25
+ REVISION = "20220607"
26
26
  end
27
27
  end
28
28
  end
@@ -1822,6 +1822,36 @@ module Google
1822
1822
  include Google::Apis::Core::JsonObjectSupport
1823
1823
  end
1824
1824
 
1825
+ class InstanceGroupManagerResizeRequest
1826
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1827
+
1828
+ include Google::Apis::Core::JsonObjectSupport
1829
+ end
1830
+
1831
+ class InstanceGroupManagerResizeRequestStatus
1832
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1833
+
1834
+ include Google::Apis::Core::JsonObjectSupport
1835
+ end
1836
+
1837
+ class InstanceGroupManagerResizeRequestsListResponse
1838
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1839
+
1840
+ class Warning
1841
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1842
+
1843
+ class Datum
1844
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1845
+
1846
+ include Google::Apis::Core::JsonObjectSupport
1847
+ end
1848
+
1849
+ include Google::Apis::Core::JsonObjectSupport
1850
+ end
1851
+
1852
+ include Google::Apis::Core::JsonObjectSupport
1853
+ end
1854
+
1825
1855
  class InstanceGroupManagerStandbyPolicy
1826
1856
  class Representation < Google::Apis::Core::JsonRepresentation; end
1827
1857
 
@@ -3916,6 +3946,12 @@ module Google
3916
3946
  include Google::Apis::Core::JsonObjectSupport
3917
3947
  end
3918
3948
 
3949
+ class QueuingPolicy
3950
+ class Representation < Google::Apis::Core::JsonRepresentation; end
3951
+
3952
+ include Google::Apis::Core::JsonObjectSupport
3953
+ end
3954
+
3919
3955
  class Quota
3920
3956
  class Representation < Google::Apis::Core::JsonRepresentation; end
3921
3957
 
@@ -9953,6 +9989,7 @@ module Google
9953
9989
  class Representation < Google::Apis::Core::JsonRepresentation
9954
9990
  property :abandoning, as: 'abandoning'
9955
9991
  property :creating, as: 'creating'
9992
+ property :creating_atomically, as: 'creatingAtomically'
9956
9993
  property :creating_without_retries, as: 'creatingWithoutRetries'
9957
9994
  property :deleting, as: 'deleting'
9958
9995
  property :none, as: 'none'
@@ -10075,6 +10112,66 @@ module Google
10075
10112
  end
10076
10113
  end
10077
10114
 
10115
+ class InstanceGroupManagerResizeRequest
10116
+ # @private
10117
+ class Representation < Google::Apis::Core::JsonRepresentation
10118
+ property :count, as: 'count'
10119
+ property :creation_timestamp, as: 'creationTimestamp'
10120
+ property :description, as: 'description'
10121
+ property :id, :numeric_string => true, as: 'id'
10122
+ property :kind, as: 'kind'
10123
+ property :name, as: 'name'
10124
+ property :queuing_policy, as: 'queuingPolicy', class: Google::Apis::ComputeAlpha::QueuingPolicy, decorator: Google::Apis::ComputeAlpha::QueuingPolicy::Representation
10125
+
10126
+ property :self_link, as: 'selfLink'
10127
+ property :self_link_with_id, as: 'selfLinkWithId'
10128
+ property :state, as: 'state'
10129
+ property :status, as: 'status', class: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestStatus, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestStatus::Representation
10130
+
10131
+ property :zone, as: 'zone'
10132
+ end
10133
+ end
10134
+
10135
+ class InstanceGroupManagerResizeRequestStatus
10136
+ # @private
10137
+ class Representation < Google::Apis::Core::JsonRepresentation
10138
+ property :queuing_policy, as: 'queuingPolicy', class: Google::Apis::ComputeAlpha::QueuingPolicy, decorator: Google::Apis::ComputeAlpha::QueuingPolicy::Representation
10139
+
10140
+ end
10141
+ end
10142
+
10143
+ class InstanceGroupManagerResizeRequestsListResponse
10144
+ # @private
10145
+ class Representation < Google::Apis::Core::JsonRepresentation
10146
+ property :id, as: 'id'
10147
+ collection :items, as: 'items', class: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
10148
+
10149
+ property :kind, as: 'kind'
10150
+ property :next_page_token, as: 'nextPageToken'
10151
+ property :self_link, as: 'selfLink'
10152
+ property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Warning, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Warning::Representation
10153
+
10154
+ end
10155
+
10156
+ class Warning
10157
+ # @private
10158
+ class Representation < Google::Apis::Core::JsonRepresentation
10159
+ property :code, as: 'code'
10160
+ collection :data, as: 'data', class: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Warning::Datum, decorator: Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Warning::Datum::Representation
10161
+
10162
+ property :message, as: 'message'
10163
+ end
10164
+
10165
+ class Datum
10166
+ # @private
10167
+ class Representation < Google::Apis::Core::JsonRepresentation
10168
+ property :key, as: 'key'
10169
+ property :value, as: 'value'
10170
+ end
10171
+ end
10172
+ end
10173
+ end
10174
+
10078
10175
  class InstanceGroupManagerStandbyPolicy
10079
10176
  # @private
10080
10177
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13886,6 +13983,15 @@ module Google
13886
13983
  end
13887
13984
  end
13888
13985
 
13986
+ class QueuingPolicy
13987
+ # @private
13988
+ class Representation < Google::Apis::Core::JsonRepresentation
13989
+ property :valid_until_duration, as: 'validUntilDuration', class: Google::Apis::ComputeAlpha::Duration, decorator: Google::Apis::ComputeAlpha::Duration::Representation
13990
+
13991
+ property :valid_until_time, as: 'validUntilTime'
13992
+ end
13993
+ end
13994
+
13889
13995
  class Quota
13890
13996
  # @private
13891
13997
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -9833,6 +9833,259 @@ module Google
9833
9833
  execute_or_queue_command(command, &block)
9834
9834
  end
9835
9835
 
9836
+ # Deletes the specified resize request.
9837
+ # @param [String] project
9838
+ # Project ID for this request.
9839
+ # @param [String] zone
9840
+ # The name of the zone where the managed instance group is located. The name
9841
+ # should conform to RFC1035.
9842
+ # @param [String] instance_group_manager
9843
+ # The name of the managed instance group. The name should conform to RFC1035 or
9844
+ # be a resource ID.
9845
+ # @param [String] resize_request
9846
+ # The name of the resize request to delete. The name should conform to RFC1035
9847
+ # or be a resource ID.
9848
+ # @param [String] request_id
9849
+ # An optional request ID to identify requests. Specify a unique request ID so
9850
+ # that if you must retry your request, the server will know to ignore the
9851
+ # request if it has already been completed. For example, consider a situation
9852
+ # where you make an initial request and the request times out. If you make the
9853
+ # request again with the same request ID, the server can check if original
9854
+ # operation with the same request ID was received, and if so, will ignore the
9855
+ # second request. This prevents clients from accidentally creating duplicate
9856
+ # commitments. The request ID must be a valid UUID with the exception that zero
9857
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9858
+ # @param [String] fields
9859
+ # Selector specifying which fields to include in a partial response.
9860
+ # @param [String] quota_user
9861
+ # Available to use for quota purposes for server-side applications. Can be any
9862
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9863
+ # @param [String] user_ip
9864
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9865
+ # @param [Google::Apis::RequestOptions] options
9866
+ # Request-specific options
9867
+ #
9868
+ # @yield [result, err] Result & error if block supplied
9869
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
9870
+ # @yieldparam err [StandardError] error object if request failed
9871
+ #
9872
+ # @return [Google::Apis::ComputeAlpha::Operation]
9873
+ #
9874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9877
+ def delete_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9878
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
9879
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
9880
+ command.response_class = Google::Apis::ComputeAlpha::Operation
9881
+ command.params['project'] = project unless project.nil?
9882
+ command.params['zone'] = zone unless zone.nil?
9883
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9884
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9885
+ command.query['requestId'] = request_id unless request_id.nil?
9886
+ command.query['fields'] = fields unless fields.nil?
9887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9888
+ command.query['userIp'] = user_ip unless user_ip.nil?
9889
+ execute_or_queue_command(command, &block)
9890
+ end
9891
+
9892
+ # Returns all of the details about the specified resize request.
9893
+ # @param [String] project
9894
+ # Project ID for this request.
9895
+ # @param [String] zone
9896
+ # The name of the zone where the managed instance group and the resize request
9897
+ # are located. Name should conform to RFC1035.
9898
+ # @param [String] instance_group_manager
9899
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
9900
+ # resource ID.
9901
+ # @param [String] resize_request
9902
+ # The name of the resize request. Name should conform to RFC1035 or be a
9903
+ # resource ID.
9904
+ # @param [String] fields
9905
+ # Selector specifying which fields to include in a partial response.
9906
+ # @param [String] quota_user
9907
+ # Available to use for quota purposes for server-side applications. Can be any
9908
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9909
+ # @param [String] user_ip
9910
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9911
+ # @param [Google::Apis::RequestOptions] options
9912
+ # Request-specific options
9913
+ #
9914
+ # @yield [result, err] Result & error if block supplied
9915
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] parsed result object
9916
+ # @yieldparam err [StandardError] error object if request failed
9917
+ #
9918
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest]
9919
+ #
9920
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9921
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9922
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9923
+ def get_instance_group_manager_resize_request(project, zone, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9924
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
9925
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
9926
+ command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest
9927
+ command.params['project'] = project unless project.nil?
9928
+ command.params['zone'] = zone unless zone.nil?
9929
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9930
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
9931
+ command.query['fields'] = fields unless fields.nil?
9932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9933
+ command.query['userIp'] = user_ip unless user_ip.nil?
9934
+ execute_or_queue_command(command, &block)
9935
+ end
9936
+
9937
+ # Creates a new resize request that starts provisioning VMs immediately or
9938
+ # queues VM creation.
9939
+ # @param [String] project
9940
+ # Project ID for this request.
9941
+ # @param [String] zone
9942
+ # The name of the zone where the managed instance group is located and where the
9943
+ # resize request will be created. Name should conform to RFC1035.
9944
+ # @param [String] instance_group_manager
9945
+ # The name of the managed instance group to which the resize request will be
9946
+ # added. Name should conform to RFC1035 or be a resource ID.
9947
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
9948
+ # @param [String] request_id
9949
+ # An optional request ID to identify requests. Specify a unique request ID so
9950
+ # that if you must retry your request, the server will know to ignore the
9951
+ # request if it has already been completed. For example, consider a situation
9952
+ # where you make an initial request and the request times out. If you make the
9953
+ # request again with the same request ID, the server can check if original
9954
+ # operation with the same request ID was received, and if so, will ignore the
9955
+ # second request. This prevents clients from accidentally creating duplicate
9956
+ # commitments. The request ID must be a valid UUID with the exception that zero
9957
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
9958
+ # @param [String] fields
9959
+ # Selector specifying which fields to include in a partial response.
9960
+ # @param [String] quota_user
9961
+ # Available to use for quota purposes for server-side applications. Can be any
9962
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9963
+ # @param [String] user_ip
9964
+ # Legacy name for parameter that has been superseded by `quotaUser`.
9965
+ # @param [Google::Apis::RequestOptions] options
9966
+ # Request-specific options
9967
+ #
9968
+ # @yield [result, err] Result & error if block supplied
9969
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
9970
+ # @yieldparam err [StandardError] error object if request failed
9971
+ #
9972
+ # @return [Google::Apis::ComputeAlpha::Operation]
9973
+ #
9974
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9975
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9976
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9977
+ def insert_instance_group_manager_resize_request(project, zone, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
9978
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
9979
+ command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequest::Representation
9980
+ command.request_object = instance_group_manager_resize_request_object
9981
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
9982
+ command.response_class = Google::Apis::ComputeAlpha::Operation
9983
+ command.params['project'] = project unless project.nil?
9984
+ command.params['zone'] = zone unless zone.nil?
9985
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
9986
+ command.query['requestId'] = request_id unless request_id.nil?
9987
+ command.query['fields'] = fields unless fields.nil?
9988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9989
+ command.query['userIp'] = user_ip unless user_ip.nil?
9990
+ execute_or_queue_command(command, &block)
9991
+ end
9992
+
9993
+ # Retrieves a list of resize requests that are contained in the managed instance
9994
+ # group.
9995
+ # @param [String] project
9996
+ # Project ID for this request.
9997
+ # @param [String] zone
9998
+ # The name of the zone where the managed instance group is located. The name
9999
+ # should conform to RFC1035.
10000
+ # @param [String] instance_group_manager
10001
+ # The name of the managed instance group. The name should conform to RFC1035.
10002
+ # @param [String] filter
10003
+ # A filter expression that filters resources listed in the response. Most
10004
+ # Compute resources support two types of filter expressions: expressions that
10005
+ # support regular expressions and expressions that follow API improvement
10006
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
10007
+ # field name, an operator, and the value that you want to use for filtering. The
10008
+ # value must be a string, a number, or a boolean. The operator must be either `=`
10009
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
10010
+ # Engine instances, you can exclude instances named `example-instance` by
10011
+ # specifying `name != example-instance`. The `:` operator can be used with
10012
+ # string fields to match substrings. For non-string fields it is equivalent to
10013
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
10014
+ # been defined. For example, to find all objects with `owner` label use: ```
10015
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
10016
+ # specify `scheduling.automaticRestart = false` to include instances only if
10017
+ # they are not scheduled for automatic restarts. You can use filtering on nested
10018
+ # fields to filter based on resource labels. To filter on multiple expressions,
10019
+ # provide each separate expression within parentheses. For example: ``` (
10020
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
10021
+ # default, each expression is an `AND` expression. However, you can include `AND`
10022
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
10023
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
10024
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
10025
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
10026
+ # expression with or without quotes or against multiple parenthesized
10027
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
10028
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
10029
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
10030
+ # regular expression using Google RE2 library syntax. The literal value must
10031
+ # match the entire field. For example, to filter for instances that do not end
10032
+ # with name "instance", you would use `name ne .*instance`.
10033
+ # @param [Fixnum] max_results
10034
+ # The maximum number of results per page that should be returned. If the number
10035
+ # of available results is larger than `maxResults`, Compute Engine returns a `
10036
+ # nextPageToken` that can be used to get the next page of results in subsequent
10037
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
10038
+ # @param [String] order_by
10039
+ # Sorts list results by a certain order. By default, results are returned in
10040
+ # alphanumerical order based on the resource name. You can also sort results in
10041
+ # descending order based on the creation timestamp using `orderBy="
10042
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
10043
+ # field in reverse chronological order (newest result first). Use this to sort
10044
+ # resources like operations so that the newest operation is returned first.
10045
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
10046
+ # @param [String] page_token
10047
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
10048
+ # by a previous list request to get the next page of results.
10049
+ # @param [Boolean] return_partial_success
10050
+ # Opt-in for partial success behavior which provides partial results in case of
10051
+ # failure. The default value is false.
10052
+ # @param [String] fields
10053
+ # Selector specifying which fields to include in a partial response.
10054
+ # @param [String] quota_user
10055
+ # Available to use for quota purposes for server-side applications. Can be any
10056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10057
+ # @param [String] user_ip
10058
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10059
+ # @param [Google::Apis::RequestOptions] options
10060
+ # Request-specific options
10061
+ #
10062
+ # @yield [result, err] Result & error if block supplied
10063
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse] parsed result object
10064
+ # @yieldparam err [StandardError] error object if request failed
10065
+ #
10066
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse]
10067
+ #
10068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10071
+ def list_instance_group_manager_resize_requests(project, zone, instance_group_manager, 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)
10072
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
10073
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse::Representation
10074
+ command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagerResizeRequestsListResponse
10075
+ command.params['project'] = project unless project.nil?
10076
+ command.params['zone'] = zone unless zone.nil?
10077
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
10078
+ command.query['filter'] = filter unless filter.nil?
10079
+ command.query['maxResults'] = max_results unless max_results.nil?
10080
+ command.query['orderBy'] = order_by unless order_by.nil?
10081
+ command.query['pageToken'] = page_token unless page_token.nil?
10082
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
10083
+ command.query['fields'] = fields unless fields.nil?
10084
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10085
+ command.query['userIp'] = user_ip unless user_ip.nil?
10086
+ execute_or_queue_command(command, &block)
10087
+ end
10088
+
9836
10089
  # Flags the specified instances to be removed from the managed instance group.
9837
10090
  # Abandoning an instance does not delete the instance, but it does remove the
9838
10091
  # instance from any target pools that are applied by the managed instance group.
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.37.0
4
+ version: 0.38.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-13 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.6'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.6'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.37.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.38.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: []