google-apis-hypercomputecluster_v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/hypercomputecluster_v1/classes.rb +1571 -0
- data/lib/google/apis/hypercomputecluster_v1/gem_version.rb +28 -0
- data/lib/google/apis/hypercomputecluster_v1/representations.rb +722 -0
- data/lib/google/apis/hypercomputecluster_v1/service.rb +495 -0
- data/lib/google/apis/hypercomputecluster_v1.rb +36 -0
- data/lib/google-apis-hypercomputecluster_v1.rb +15 -0
- metadata +79 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module HypercomputeclusterV1
|
|
23
|
+
# Cluster Director API
|
|
24
|
+
#
|
|
25
|
+
#
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/hypercomputecluster_v1'
|
|
29
|
+
#
|
|
30
|
+
# Hypercomputecluster = Google::Apis::HypercomputeclusterV1 # Alias the module
|
|
31
|
+
# service = Hypercomputecluster::HypercomputeClusterService.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://docs.cloud.google.com/cluster-director/docs
|
|
34
|
+
class HypercomputeClusterService < Google::Apis::Core::BaseService
|
|
35
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://hypercomputecluster.$UNIVERSE_DOMAIN$/"
|
|
36
|
+
|
|
37
|
+
# @return [String]
|
|
38
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
39
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
40
|
+
attr_accessor :key
|
|
41
|
+
|
|
42
|
+
# @return [String]
|
|
43
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
44
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
45
|
+
attr_accessor :quota_user
|
|
46
|
+
|
|
47
|
+
def initialize
|
|
48
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
|
49
|
+
client_name: 'google-apis-hypercomputecluster_v1',
|
|
50
|
+
client_version: Google::Apis::HypercomputeclusterV1::GEM_VERSION)
|
|
51
|
+
@batch_path = 'batch'
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Gets information about a location.
|
|
55
|
+
# @param [String] name
|
|
56
|
+
# Resource name for the location.
|
|
57
|
+
# @param [String] fields
|
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
|
59
|
+
# @param [String] quota_user
|
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
|
63
|
+
# Request-specific options
|
|
64
|
+
#
|
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
|
66
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Location] parsed result object
|
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
68
|
+
#
|
|
69
|
+
# @return [Google::Apis::HypercomputeclusterV1::Location]
|
|
70
|
+
#
|
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
74
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
75
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
76
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Location::Representation
|
|
77
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Location
|
|
78
|
+
command.params['name'] = name unless name.nil?
|
|
79
|
+
command.query['fields'] = fields unless fields.nil?
|
|
80
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
81
|
+
execute_or_queue_command(command, &block)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Lists information about the supported locations for this service.
|
|
85
|
+
# @param [String] name
|
|
86
|
+
# The resource that owns the locations collection, if applicable.
|
|
87
|
+
# @param [Array<String>, String] extra_location_types
|
|
88
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
|
89
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
|
90
|
+
# @param [String] filter
|
|
91
|
+
# A filter to narrow down results to a preferred subset. The filtering language
|
|
92
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
93
|
+
# in [AIP-160](https://google.aip.dev/160).
|
|
94
|
+
# @param [Fixnum] page_size
|
|
95
|
+
# The maximum number of results to return. If not set, the service selects a
|
|
96
|
+
# default.
|
|
97
|
+
# @param [String] page_token
|
|
98
|
+
# A page token received from the `next_page_token` field in the response. Send
|
|
99
|
+
# that page token to receive the subsequent page.
|
|
100
|
+
# @param [String] fields
|
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
|
102
|
+
# @param [String] quota_user
|
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
105
|
+
# @param [Google::Apis::RequestOptions] options
|
|
106
|
+
# Request-specific options
|
|
107
|
+
#
|
|
108
|
+
# @yield [result, err] Result & error if block supplied
|
|
109
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::ListLocationsResponse] parsed result object
|
|
110
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
111
|
+
#
|
|
112
|
+
# @return [Google::Apis::HypercomputeclusterV1::ListLocationsResponse]
|
|
113
|
+
#
|
|
114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
117
|
+
def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
118
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
|
119
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::ListLocationsResponse::Representation
|
|
120
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::ListLocationsResponse
|
|
121
|
+
command.params['name'] = name unless name.nil?
|
|
122
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
|
123
|
+
command.query['filter'] = filter unless filter.nil?
|
|
124
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
125
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
126
|
+
command.query['fields'] = fields unless fields.nil?
|
|
127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
128
|
+
execute_or_queue_command(command, &block)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Creates a new Cluster in a given project and location.
|
|
132
|
+
# @param [String] parent
|
|
133
|
+
# Required. Parent location in which the cluster should be created, in the
|
|
134
|
+
# format `projects/`project`/locations/`location``.
|
|
135
|
+
# @param [Google::Apis::HypercomputeclusterV1::Cluster] cluster_object
|
|
136
|
+
# @param [String] cluster_id
|
|
137
|
+
# Required. ID of the cluster to create. Must conform to [RFC-1034](https://
|
|
138
|
+
# datatracker.ietf.org/doc/html/rfc1034) (lower-case, alphanumeric, and at most
|
|
139
|
+
# 63 characters).
|
|
140
|
+
# @param [String] request_id
|
|
141
|
+
# Optional. A unique identifier for this request. A random UUID is recommended.
|
|
142
|
+
# This request is idempotent if and only if `request_id` is provided.
|
|
143
|
+
# @param [String] fields
|
|
144
|
+
# Selector specifying which fields to include in a partial response.
|
|
145
|
+
# @param [String] quota_user
|
|
146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
148
|
+
# @param [Google::Apis::RequestOptions] options
|
|
149
|
+
# Request-specific options
|
|
150
|
+
#
|
|
151
|
+
# @yield [result, err] Result & error if block supplied
|
|
152
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Operation] parsed result object
|
|
153
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
154
|
+
#
|
|
155
|
+
# @return [Google::Apis::HypercomputeclusterV1::Operation]
|
|
156
|
+
#
|
|
157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
160
|
+
def create_project_location_cluster(parent, cluster_object = nil, cluster_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
161
|
+
command = make_simple_command(:post, 'v1/{+parent}/clusters', options)
|
|
162
|
+
command.request_representation = Google::Apis::HypercomputeclusterV1::Cluster::Representation
|
|
163
|
+
command.request_object = cluster_object
|
|
164
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Operation::Representation
|
|
165
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Operation
|
|
166
|
+
command.params['parent'] = parent unless parent.nil?
|
|
167
|
+
command.query['clusterId'] = cluster_id unless cluster_id.nil?
|
|
168
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
169
|
+
command.query['fields'] = fields unless fields.nil?
|
|
170
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
171
|
+
execute_or_queue_command(command, &block)
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Deletes a single Cluster.
|
|
175
|
+
# @param [String] name
|
|
176
|
+
# Required. Name of the cluster to delete, in the format `projects/`project`/
|
|
177
|
+
# locations/`location`/clusters/`cluster``.
|
|
178
|
+
# @param [String] request_id
|
|
179
|
+
# Optional. A unique identifier for this request. A random UUID is recommended.
|
|
180
|
+
# This request is idempotent if and only if `request_id` is provided.
|
|
181
|
+
# @param [String] fields
|
|
182
|
+
# Selector specifying which fields to include in a partial response.
|
|
183
|
+
# @param [String] quota_user
|
|
184
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
185
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
186
|
+
# @param [Google::Apis::RequestOptions] options
|
|
187
|
+
# Request-specific options
|
|
188
|
+
#
|
|
189
|
+
# @yield [result, err] Result & error if block supplied
|
|
190
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Operation] parsed result object
|
|
191
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
192
|
+
#
|
|
193
|
+
# @return [Google::Apis::HypercomputeclusterV1::Operation]
|
|
194
|
+
#
|
|
195
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
196
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
197
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
198
|
+
def delete_project_location_cluster(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
199
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
200
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Operation::Representation
|
|
201
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Operation
|
|
202
|
+
command.params['name'] = name unless name.nil?
|
|
203
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
204
|
+
command.query['fields'] = fields unless fields.nil?
|
|
205
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
206
|
+
execute_or_queue_command(command, &block)
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Gets details of a single Cluster.
|
|
210
|
+
# @param [String] name
|
|
211
|
+
# Required. Name of the cluster to retrieve, in the format `projects/`project`/
|
|
212
|
+
# locations/`location`/clusters/`cluster``.
|
|
213
|
+
# @param [String] fields
|
|
214
|
+
# Selector specifying which fields to include in a partial response.
|
|
215
|
+
# @param [String] quota_user
|
|
216
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
217
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
218
|
+
# @param [Google::Apis::RequestOptions] options
|
|
219
|
+
# Request-specific options
|
|
220
|
+
#
|
|
221
|
+
# @yield [result, err] Result & error if block supplied
|
|
222
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Cluster] parsed result object
|
|
223
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
224
|
+
#
|
|
225
|
+
# @return [Google::Apis::HypercomputeclusterV1::Cluster]
|
|
226
|
+
#
|
|
227
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
228
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
229
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
230
|
+
def get_project_location_cluster(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
231
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
232
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Cluster::Representation
|
|
233
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Cluster
|
|
234
|
+
command.params['name'] = name unless name.nil?
|
|
235
|
+
command.query['fields'] = fields unless fields.nil?
|
|
236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
237
|
+
execute_or_queue_command(command, &block)
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Lists Clusters in a given project and location.
|
|
241
|
+
# @param [String] parent
|
|
242
|
+
# Required. Parent location of the clusters to list, in the format `projects/`
|
|
243
|
+
# project`/locations/`location``.
|
|
244
|
+
# @param [String] filter
|
|
245
|
+
# Optional. [Filter](https://google.aip.dev/160) to apply to the returned
|
|
246
|
+
# results.
|
|
247
|
+
# @param [String] order_by
|
|
248
|
+
# Optional. How to order the resulting clusters. Must be one of the following
|
|
249
|
+
# strings: * `name` * `name desc` * `create_time` * `create_time desc` If not
|
|
250
|
+
# specified, clusters will be returned in an arbitrary order.
|
|
251
|
+
# @param [Fixnum] page_size
|
|
252
|
+
# Optional. Maximum number of clusters to return. The service may return fewer
|
|
253
|
+
# than this value.
|
|
254
|
+
# @param [String] page_token
|
|
255
|
+
# Optional. A page token received from a previous `ListClusters` call. Provide
|
|
256
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
|
257
|
+
# provided to `ListClusters` must match the call that provided the page token.
|
|
258
|
+
# @param [String] fields
|
|
259
|
+
# Selector specifying which fields to include in a partial response.
|
|
260
|
+
# @param [String] quota_user
|
|
261
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
262
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
263
|
+
# @param [Google::Apis::RequestOptions] options
|
|
264
|
+
# Request-specific options
|
|
265
|
+
#
|
|
266
|
+
# @yield [result, err] Result & error if block supplied
|
|
267
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::ListClustersResponse] parsed result object
|
|
268
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
269
|
+
#
|
|
270
|
+
# @return [Google::Apis::HypercomputeclusterV1::ListClustersResponse]
|
|
271
|
+
#
|
|
272
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
273
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
274
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
275
|
+
def list_project_location_clusters(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
276
|
+
command = make_simple_command(:get, 'v1/{+parent}/clusters', options)
|
|
277
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::ListClustersResponse::Representation
|
|
278
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::ListClustersResponse
|
|
279
|
+
command.params['parent'] = parent unless parent.nil?
|
|
280
|
+
command.query['filter'] = filter unless filter.nil?
|
|
281
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
282
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
283
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
284
|
+
command.query['fields'] = fields unless fields.nil?
|
|
285
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
286
|
+
execute_or_queue_command(command, &block)
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Updates the parameters of a single Cluster.
|
|
290
|
+
# @param [String] name
|
|
291
|
+
# Identifier. [Relative resource name](https://google.aip.dev/122) of the
|
|
292
|
+
# cluster, in the format `projects/`project`/locations/`location`/clusters/`
|
|
293
|
+
# cluster``.
|
|
294
|
+
# @param [Google::Apis::HypercomputeclusterV1::Cluster] cluster_object
|
|
295
|
+
# @param [String] request_id
|
|
296
|
+
# Optional. A unique identifier for this request. A random UUID is recommended.
|
|
297
|
+
# This request is idempotent if and only if `request_id` is provided.
|
|
298
|
+
# @param [String] update_mask
|
|
299
|
+
# Optional. Mask specifying which fields in the cluster to update. All paths
|
|
300
|
+
# must be specified explicitly - wildcards are not supported. At least one path
|
|
301
|
+
# must be provided.
|
|
302
|
+
# @param [String] fields
|
|
303
|
+
# Selector specifying which fields to include in a partial response.
|
|
304
|
+
# @param [String] quota_user
|
|
305
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
306
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
307
|
+
# @param [Google::Apis::RequestOptions] options
|
|
308
|
+
# Request-specific options
|
|
309
|
+
#
|
|
310
|
+
# @yield [result, err] Result & error if block supplied
|
|
311
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Operation] parsed result object
|
|
312
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
313
|
+
#
|
|
314
|
+
# @return [Google::Apis::HypercomputeclusterV1::Operation]
|
|
315
|
+
#
|
|
316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
319
|
+
def patch_project_location_cluster(name, cluster_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
320
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
321
|
+
command.request_representation = Google::Apis::HypercomputeclusterV1::Cluster::Representation
|
|
322
|
+
command.request_object = cluster_object
|
|
323
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Operation::Representation
|
|
324
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Operation
|
|
325
|
+
command.params['name'] = name unless name.nil?
|
|
326
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
327
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
328
|
+
command.query['fields'] = fields unless fields.nil?
|
|
329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
330
|
+
execute_or_queue_command(command, &block)
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
334
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
335
|
+
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
336
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
337
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
338
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
339
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
|
340
|
+
# , corresponding to `Code.CANCELLED`.
|
|
341
|
+
# @param [String] name
|
|
342
|
+
# The name of the operation resource to be cancelled.
|
|
343
|
+
# @param [Google::Apis::HypercomputeclusterV1::CancelOperationRequest] cancel_operation_request_object
|
|
344
|
+
# @param [String] fields
|
|
345
|
+
# Selector specifying which fields to include in a partial response.
|
|
346
|
+
# @param [String] quota_user
|
|
347
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
348
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
349
|
+
# @param [Google::Apis::RequestOptions] options
|
|
350
|
+
# Request-specific options
|
|
351
|
+
#
|
|
352
|
+
# @yield [result, err] Result & error if block supplied
|
|
353
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Empty] parsed result object
|
|
354
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
355
|
+
#
|
|
356
|
+
# @return [Google::Apis::HypercomputeclusterV1::Empty]
|
|
357
|
+
#
|
|
358
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
359
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
360
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
361
|
+
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
362
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
363
|
+
command.request_representation = Google::Apis::HypercomputeclusterV1::CancelOperationRequest::Representation
|
|
364
|
+
command.request_object = cancel_operation_request_object
|
|
365
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Empty::Representation
|
|
366
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Empty
|
|
367
|
+
command.params['name'] = name unless name.nil?
|
|
368
|
+
command.query['fields'] = fields unless fields.nil?
|
|
369
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
370
|
+
execute_or_queue_command(command, &block)
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
374
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
375
|
+
# If the server doesn't support this method, it returns `google.rpc.Code.
|
|
376
|
+
# UNIMPLEMENTED`.
|
|
377
|
+
# @param [String] name
|
|
378
|
+
# The name of the operation resource to be deleted.
|
|
379
|
+
# @param [String] fields
|
|
380
|
+
# Selector specifying which fields to include in a partial response.
|
|
381
|
+
# @param [String] quota_user
|
|
382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
384
|
+
# @param [Google::Apis::RequestOptions] options
|
|
385
|
+
# Request-specific options
|
|
386
|
+
#
|
|
387
|
+
# @yield [result, err] Result & error if block supplied
|
|
388
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Empty] parsed result object
|
|
389
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
390
|
+
#
|
|
391
|
+
# @return [Google::Apis::HypercomputeclusterV1::Empty]
|
|
392
|
+
#
|
|
393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
396
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
397
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
398
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Empty::Representation
|
|
399
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Empty
|
|
400
|
+
command.params['name'] = name unless name.nil?
|
|
401
|
+
command.query['fields'] = fields unless fields.nil?
|
|
402
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
403
|
+
execute_or_queue_command(command, &block)
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
407
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
408
|
+
# @param [String] name
|
|
409
|
+
# The name of the operation resource.
|
|
410
|
+
# @param [String] fields
|
|
411
|
+
# Selector specifying which fields to include in a partial response.
|
|
412
|
+
# @param [String] quota_user
|
|
413
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
414
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
415
|
+
# @param [Google::Apis::RequestOptions] options
|
|
416
|
+
# Request-specific options
|
|
417
|
+
#
|
|
418
|
+
# @yield [result, err] Result & error if block supplied
|
|
419
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::Operation] parsed result object
|
|
420
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
421
|
+
#
|
|
422
|
+
# @return [Google::Apis::HypercomputeclusterV1::Operation]
|
|
423
|
+
#
|
|
424
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
425
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
426
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
427
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
428
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
429
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::Operation::Representation
|
|
430
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::Operation
|
|
431
|
+
command.params['name'] = name unless name.nil?
|
|
432
|
+
command.query['fields'] = fields unless fields.nil?
|
|
433
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
434
|
+
execute_or_queue_command(command, &block)
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
438
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
439
|
+
# @param [String] name
|
|
440
|
+
# The name of the operation's parent resource.
|
|
441
|
+
# @param [String] filter
|
|
442
|
+
# The standard list filter.
|
|
443
|
+
# @param [Fixnum] page_size
|
|
444
|
+
# The standard list page size.
|
|
445
|
+
# @param [String] page_token
|
|
446
|
+
# The standard list page token.
|
|
447
|
+
# @param [Boolean] return_partial_success
|
|
448
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
449
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
450
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
451
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
452
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
453
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
454
|
+
# documentation.
|
|
455
|
+
# @param [String] fields
|
|
456
|
+
# Selector specifying which fields to include in a partial response.
|
|
457
|
+
# @param [String] quota_user
|
|
458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
460
|
+
# @param [Google::Apis::RequestOptions] options
|
|
461
|
+
# Request-specific options
|
|
462
|
+
#
|
|
463
|
+
# @yield [result, err] Result & error if block supplied
|
|
464
|
+
# @yieldparam result [Google::Apis::HypercomputeclusterV1::ListOperationsResponse] parsed result object
|
|
465
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
466
|
+
#
|
|
467
|
+
# @return [Google::Apis::HypercomputeclusterV1::ListOperationsResponse]
|
|
468
|
+
#
|
|
469
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
470
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
471
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
472
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
473
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
|
474
|
+
command.response_representation = Google::Apis::HypercomputeclusterV1::ListOperationsResponse::Representation
|
|
475
|
+
command.response_class = Google::Apis::HypercomputeclusterV1::ListOperationsResponse
|
|
476
|
+
command.params['name'] = name unless name.nil?
|
|
477
|
+
command.query['filter'] = filter unless filter.nil?
|
|
478
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
479
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
480
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
481
|
+
command.query['fields'] = fields unless fields.nil?
|
|
482
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
483
|
+
execute_or_queue_command(command, &block)
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
protected
|
|
487
|
+
|
|
488
|
+
def apply_command_defaults(command)
|
|
489
|
+
command.query['key'] = key unless key.nil?
|
|
490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
491
|
+
end
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/hypercomputecluster_v1/service.rb'
|
|
16
|
+
require 'google/apis/hypercomputecluster_v1/classes.rb'
|
|
17
|
+
require 'google/apis/hypercomputecluster_v1/representations.rb'
|
|
18
|
+
require 'google/apis/hypercomputecluster_v1/gem_version.rb'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
# Cluster Director API
|
|
23
|
+
#
|
|
24
|
+
#
|
|
25
|
+
#
|
|
26
|
+
# @see https://docs.cloud.google.com/cluster-director/docs
|
|
27
|
+
module HypercomputeclusterV1
|
|
28
|
+
# Version of the Cluster Director API this client connects to.
|
|
29
|
+
# This is NOT the gem version.
|
|
30
|
+
VERSION = 'V1'
|
|
31
|
+
|
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Copyright 2020 Google LLC
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require "google/apis/hypercomputecluster_v1"
|
metadata
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: google-apis-hypercomputecluster_v1
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Google LLC
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: google-apis-core
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: 0.15.0
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: 2.a
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: 0.15.0
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: 2.a
|
|
32
|
+
description: This is the simple REST client for Cluster Director API V1. Simple REST
|
|
33
|
+
clients are Ruby client libraries that provide access to Google services via their
|
|
34
|
+
HTTP REST API endpoints. These libraries are generated and updated automatically
|
|
35
|
+
based on the discovery documents published by the service, and they handle most
|
|
36
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
|
37
|
+
use this client to access the Cluster Director API, but note that some services
|
|
38
|
+
may provide a separate modern client that is easier to use.
|
|
39
|
+
email: googleapis-packages@google.com
|
|
40
|
+
executables: []
|
|
41
|
+
extensions: []
|
|
42
|
+
extra_rdoc_files: []
|
|
43
|
+
files:
|
|
44
|
+
- ".yardopts"
|
|
45
|
+
- CHANGELOG.md
|
|
46
|
+
- LICENSE.md
|
|
47
|
+
- OVERVIEW.md
|
|
48
|
+
- lib/google-apis-hypercomputecluster_v1.rb
|
|
49
|
+
- lib/google/apis/hypercomputecluster_v1.rb
|
|
50
|
+
- lib/google/apis/hypercomputecluster_v1/classes.rb
|
|
51
|
+
- lib/google/apis/hypercomputecluster_v1/gem_version.rb
|
|
52
|
+
- lib/google/apis/hypercomputecluster_v1/representations.rb
|
|
53
|
+
- lib/google/apis/hypercomputecluster_v1/service.rb
|
|
54
|
+
homepage: https://github.com/google/google-api-ruby-client
|
|
55
|
+
licenses:
|
|
56
|
+
- Apache-2.0
|
|
57
|
+
metadata:
|
|
58
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-hypercomputecluster_v1/CHANGELOG.md
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-hypercomputecluster_v1/v0.1.0
|
|
61
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-hypercomputecluster_v1
|
|
62
|
+
rdoc_options: []
|
|
63
|
+
require_paths:
|
|
64
|
+
- lib
|
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '3.1'
|
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
requirements: []
|
|
76
|
+
rubygems_version: 3.6.9
|
|
77
|
+
specification_version: 4
|
|
78
|
+
summary: Simple REST client for Cluster Director API V1
|
|
79
|
+
test_files: []
|