google-api-client 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -2
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -2
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +2 -3
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +59 -1
- data/generated/google/apis/appengine_v1/representations.rb +18 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +0 -8
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +97 -12
- data/generated/google/apis/compute_alpha/representations.rb +23 -0
- data/generated/google/apis/compute_alpha/service.rb +41 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1616 -43
- data/generated/google/apis/compute_beta/representations.rb +685 -20
- data/generated/google/apis/compute_beta/service.rb +1286 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +184 -3
- data/generated/google/apis/compute_v1/representations.rb +43 -0
- data/generated/google/apis/compute_v1/service.rb +108 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +805 -102
- data/generated/google/apis/content_v2/representations.rb +393 -26
- data/generated/google/apis/content_v2/service.rb +242 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +703 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +367 -0
- data/generated/google/apis/content_v2sandbox/service.rb +242 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +280 -2
- data/generated/google/apis/dlp_v2/representations.rb +120 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +35 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +7 -0
- data/generated/google/apis/monitoring_v3/representations.rb +2 -0
- data/generated/google/apis/monitoring_v3/service.rb +5 -3
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +0 -8
- data/generated/google/apis/pubsub_v1/service.rb +4 -8
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +7 -8
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -27
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -15
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -27
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -15
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/service.rb +2 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +34 -0
- data/generated/google/apis/tpu_v1/classes.rb +736 -0
- data/generated/google/apis/tpu_v1/representations.rb +316 -0
- data/generated/google/apis/tpu_v1/service.rb +687 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +26 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +0 -473
- data/generated/google/apis/videointelligence_v1/representations.rb +0 -222
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +0 -473
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +0 -222
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -6
- data/generated/google/apis/photoslibrary_v1.rb +0 -49
- data/generated/google/apis/photoslibrary_v1/classes.rb +0 -1330
- data/generated/google/apis/photoslibrary_v1/representations.rb +0 -625
- data/generated/google/apis/photoslibrary_v1/service.rb +0 -399
@@ -0,0 +1,316 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
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 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module TpuV1
|
24
|
+
|
25
|
+
class AcceleratorType
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Empty
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ListAcceleratorTypesResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ListLocationsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class ListNodesResponse
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ListOperationsResponse
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class ListTensorFlowVersionsResponse
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Location
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class NetworkEndpoint
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class Node
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class Operation
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class OperationMetadata
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class ReimageNodeRequest
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class ResetNodeRequest
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class SchedulingConfig
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class StartNodeRequest
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class Status
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
127
|
+
class StopNodeRequest
|
128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
129
|
+
|
130
|
+
include Google::Apis::Core::JsonObjectSupport
|
131
|
+
end
|
132
|
+
|
133
|
+
class TensorFlowVersion
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
139
|
+
class AcceleratorType
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
property :name, as: 'name'
|
143
|
+
property :type, as: 'type'
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class Empty
|
148
|
+
# @private
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
class ListAcceleratorTypesResponse
|
154
|
+
# @private
|
155
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
156
|
+
collection :accelerator_types, as: 'acceleratorTypes', class: Google::Apis::TpuV1::AcceleratorType, decorator: Google::Apis::TpuV1::AcceleratorType::Representation
|
157
|
+
|
158
|
+
property :next_page_token, as: 'nextPageToken'
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
class ListLocationsResponse
|
163
|
+
# @private
|
164
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
165
|
+
collection :locations, as: 'locations', class: Google::Apis::TpuV1::Location, decorator: Google::Apis::TpuV1::Location::Representation
|
166
|
+
|
167
|
+
property :next_page_token, as: 'nextPageToken'
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
class ListNodesResponse
|
172
|
+
# @private
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
+
property :next_page_token, as: 'nextPageToken'
|
175
|
+
collection :nodes, as: 'nodes', class: Google::Apis::TpuV1::Node, decorator: Google::Apis::TpuV1::Node::Representation
|
176
|
+
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
class ListOperationsResponse
|
181
|
+
# @private
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
183
|
+
property :next_page_token, as: 'nextPageToken'
|
184
|
+
collection :operations, as: 'operations', class: Google::Apis::TpuV1::Operation, decorator: Google::Apis::TpuV1::Operation::Representation
|
185
|
+
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
class ListTensorFlowVersionsResponse
|
190
|
+
# @private
|
191
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
192
|
+
property :next_page_token, as: 'nextPageToken'
|
193
|
+
collection :tensorflow_versions, as: 'tensorflowVersions', class: Google::Apis::TpuV1::TensorFlowVersion, decorator: Google::Apis::TpuV1::TensorFlowVersion::Representation
|
194
|
+
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
class Location
|
199
|
+
# @private
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
201
|
+
property :display_name, as: 'displayName'
|
202
|
+
hash :labels, as: 'labels'
|
203
|
+
property :location_id, as: 'locationId'
|
204
|
+
hash :metadata, as: 'metadata'
|
205
|
+
property :name, as: 'name'
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class NetworkEndpoint
|
210
|
+
# @private
|
211
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
212
|
+
property :ip_address, as: 'ipAddress'
|
213
|
+
property :port, as: 'port'
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
class Node
|
218
|
+
# @private
|
219
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
220
|
+
property :accelerator_type, as: 'acceleratorType'
|
221
|
+
property :cidr_block, as: 'cidrBlock'
|
222
|
+
property :create_time, as: 'createTime'
|
223
|
+
property :description, as: 'description'
|
224
|
+
property :health, as: 'health'
|
225
|
+
property :health_description, as: 'healthDescription'
|
226
|
+
property :ip_address, as: 'ipAddress'
|
227
|
+
hash :labels, as: 'labels'
|
228
|
+
property :name, as: 'name'
|
229
|
+
property :network, as: 'network'
|
230
|
+
collection :network_endpoints, as: 'networkEndpoints', class: Google::Apis::TpuV1::NetworkEndpoint, decorator: Google::Apis::TpuV1::NetworkEndpoint::Representation
|
231
|
+
|
232
|
+
property :port, as: 'port'
|
233
|
+
property :scheduling_config, as: 'schedulingConfig', class: Google::Apis::TpuV1::SchedulingConfig, decorator: Google::Apis::TpuV1::SchedulingConfig::Representation
|
234
|
+
|
235
|
+
property :service_account, as: 'serviceAccount'
|
236
|
+
property :state, as: 'state'
|
237
|
+
property :tensorflow_version, as: 'tensorflowVersion'
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
class Operation
|
242
|
+
# @private
|
243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
244
|
+
property :done, as: 'done'
|
245
|
+
property :error, as: 'error', class: Google::Apis::TpuV1::Status, decorator: Google::Apis::TpuV1::Status::Representation
|
246
|
+
|
247
|
+
hash :metadata, as: 'metadata'
|
248
|
+
property :name, as: 'name'
|
249
|
+
hash :response, as: 'response'
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
class OperationMetadata
|
254
|
+
# @private
|
255
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
256
|
+
property :api_version, as: 'apiVersion'
|
257
|
+
property :cancel_requested, as: 'cancelRequested'
|
258
|
+
property :create_time, as: 'createTime'
|
259
|
+
property :end_time, as: 'endTime'
|
260
|
+
property :status_detail, as: 'statusDetail'
|
261
|
+
property :target, as: 'target'
|
262
|
+
property :verb, as: 'verb'
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
class ReimageNodeRequest
|
267
|
+
# @private
|
268
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
+
property :tensorflow_version, as: 'tensorflowVersion'
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
class ResetNodeRequest
|
274
|
+
# @private
|
275
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
class SchedulingConfig
|
280
|
+
# @private
|
281
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
282
|
+
property :preemptible, as: 'preemptible'
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
class StartNodeRequest
|
287
|
+
# @private
|
288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
class Status
|
293
|
+
# @private
|
294
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
295
|
+
property :code, as: 'code'
|
296
|
+
collection :details, as: 'details'
|
297
|
+
property :message, as: 'message'
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
class StopNodeRequest
|
302
|
+
# @private
|
303
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
class TensorFlowVersion
|
308
|
+
# @private
|
309
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
310
|
+
property :name, as: 'name'
|
311
|
+
property :version, as: 'version'
|
312
|
+
end
|
313
|
+
end
|
314
|
+
end
|
315
|
+
end
|
316
|
+
end
|
@@ -0,0 +1,687 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
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 TpuV1
|
23
|
+
# Cloud TPU API
|
24
|
+
#
|
25
|
+
# TPU API provides customers with access to Google TPU technology.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/tpu_v1'
|
29
|
+
#
|
30
|
+
# Tpu = Google::Apis::TpuV1 # Alias the module
|
31
|
+
# service = Tpu::TPUService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/tpu/
|
34
|
+
class TPUService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://tpu.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Gets information about a location.
|
51
|
+
# @param [String] name
|
52
|
+
# Resource name for the location.
|
53
|
+
# @param [String] fields
|
54
|
+
# Selector specifying which fields to include in a partial response.
|
55
|
+
# @param [String] quota_user
|
56
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
+
# @param [Google::Apis::RequestOptions] options
|
59
|
+
# Request-specific options
|
60
|
+
#
|
61
|
+
# @yield [result, err] Result & error if block supplied
|
62
|
+
# @yieldparam result [Google::Apis::TpuV1::Location] parsed result object
|
63
|
+
# @yieldparam err [StandardError] error object if request failed
|
64
|
+
#
|
65
|
+
# @return [Google::Apis::TpuV1::Location]
|
66
|
+
#
|
67
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
68
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
|
+
def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
|
71
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
72
|
+
command.response_representation = Google::Apis::TpuV1::Location::Representation
|
73
|
+
command.response_class = Google::Apis::TpuV1::Location
|
74
|
+
command.params['name'] = name unless name.nil?
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
76
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
77
|
+
execute_or_queue_command(command, &block)
|
78
|
+
end
|
79
|
+
|
80
|
+
# Lists information about the supported locations for this service.
|
81
|
+
# @param [String] name
|
82
|
+
# The resource that owns the locations collection, if applicable.
|
83
|
+
# @param [String] filter
|
84
|
+
# The standard list filter.
|
85
|
+
# @param [Fixnum] page_size
|
86
|
+
# The standard list page size.
|
87
|
+
# @param [String] page_token
|
88
|
+
# The standard list page token.
|
89
|
+
# @param [String] fields
|
90
|
+
# Selector specifying which fields to include in a partial response.
|
91
|
+
# @param [String] quota_user
|
92
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
93
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
94
|
+
# @param [Google::Apis::RequestOptions] options
|
95
|
+
# Request-specific options
|
96
|
+
#
|
97
|
+
# @yield [result, err] Result & error if block supplied
|
98
|
+
# @yieldparam result [Google::Apis::TpuV1::ListLocationsResponse] parsed result object
|
99
|
+
# @yieldparam err [StandardError] error object if request failed
|
100
|
+
#
|
101
|
+
# @return [Google::Apis::TpuV1::ListLocationsResponse]
|
102
|
+
#
|
103
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
104
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
105
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
106
|
+
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
107
|
+
command = make_simple_command(:get, 'v1/{+name}/locations', options)
|
108
|
+
command.response_representation = Google::Apis::TpuV1::ListLocationsResponse::Representation
|
109
|
+
command.response_class = Google::Apis::TpuV1::ListLocationsResponse
|
110
|
+
command.params['name'] = name unless name.nil?
|
111
|
+
command.query['filter'] = filter unless filter.nil?
|
112
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
113
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
114
|
+
command.query['fields'] = fields unless fields.nil?
|
115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
|
+
execute_or_queue_command(command, &block)
|
117
|
+
end
|
118
|
+
|
119
|
+
# Gets AcceleratorType.
|
120
|
+
# @param [String] name
|
121
|
+
# The resource name.
|
122
|
+
# @param [String] fields
|
123
|
+
# Selector specifying which fields to include in a partial response.
|
124
|
+
# @param [String] quota_user
|
125
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
126
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
127
|
+
# @param [Google::Apis::RequestOptions] options
|
128
|
+
# Request-specific options
|
129
|
+
#
|
130
|
+
# @yield [result, err] Result & error if block supplied
|
131
|
+
# @yieldparam result [Google::Apis::TpuV1::AcceleratorType] parsed result object
|
132
|
+
# @yieldparam err [StandardError] error object if request failed
|
133
|
+
#
|
134
|
+
# @return [Google::Apis::TpuV1::AcceleratorType]
|
135
|
+
#
|
136
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
137
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
138
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
139
|
+
def get_project_location_accelerator_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
140
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
141
|
+
command.response_representation = Google::Apis::TpuV1::AcceleratorType::Representation
|
142
|
+
command.response_class = Google::Apis::TpuV1::AcceleratorType
|
143
|
+
command.params['name'] = name unless name.nil?
|
144
|
+
command.query['fields'] = fields unless fields.nil?
|
145
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
146
|
+
execute_or_queue_command(command, &block)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Lists accelerator types supported by this API.
|
150
|
+
# @param [String] parent
|
151
|
+
# The parent resource name.
|
152
|
+
# @param [String] filter
|
153
|
+
# List filter.
|
154
|
+
# @param [String] order_by
|
155
|
+
# Sort results.
|
156
|
+
# @param [Fixnum] page_size
|
157
|
+
# The maximum number of items to return.
|
158
|
+
# @param [String] page_token
|
159
|
+
# The next_page_token value returned from a previous List request, if any.
|
160
|
+
# @param [String] fields
|
161
|
+
# Selector specifying which fields to include in a partial response.
|
162
|
+
# @param [String] quota_user
|
163
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
164
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
165
|
+
# @param [Google::Apis::RequestOptions] options
|
166
|
+
# Request-specific options
|
167
|
+
#
|
168
|
+
# @yield [result, err] Result & error if block supplied
|
169
|
+
# @yieldparam result [Google::Apis::TpuV1::ListAcceleratorTypesResponse] parsed result object
|
170
|
+
# @yieldparam err [StandardError] error object if request failed
|
171
|
+
#
|
172
|
+
# @return [Google::Apis::TpuV1::ListAcceleratorTypesResponse]
|
173
|
+
#
|
174
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
175
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
176
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
177
|
+
def list_project_location_accelerator_types(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
178
|
+
command = make_simple_command(:get, 'v1/{+parent}/acceleratorTypes', options)
|
179
|
+
command.response_representation = Google::Apis::TpuV1::ListAcceleratorTypesResponse::Representation
|
180
|
+
command.response_class = Google::Apis::TpuV1::ListAcceleratorTypesResponse
|
181
|
+
command.params['parent'] = parent unless parent.nil?
|
182
|
+
command.query['filter'] = filter unless filter.nil?
|
183
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
184
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
185
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
186
|
+
command.query['fields'] = fields unless fields.nil?
|
187
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
188
|
+
execute_or_queue_command(command, &block)
|
189
|
+
end
|
190
|
+
|
191
|
+
# Creates a node.
|
192
|
+
# @param [String] parent
|
193
|
+
# The parent resource name.
|
194
|
+
# @param [Google::Apis::TpuV1::Node] node_object
|
195
|
+
# @param [String] node_id
|
196
|
+
# The unqualified resource name.
|
197
|
+
# @param [String] fields
|
198
|
+
# Selector specifying which fields to include in a partial response.
|
199
|
+
# @param [String] quota_user
|
200
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
201
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
202
|
+
# @param [Google::Apis::RequestOptions] options
|
203
|
+
# Request-specific options
|
204
|
+
#
|
205
|
+
# @yield [result, err] Result & error if block supplied
|
206
|
+
# @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object
|
207
|
+
# @yieldparam err [StandardError] error object if request failed
|
208
|
+
#
|
209
|
+
# @return [Google::Apis::TpuV1::Operation]
|
210
|
+
#
|
211
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
212
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
213
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
214
|
+
def create_project_location_node(parent, node_object = nil, node_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
215
|
+
command = make_simple_command(:post, 'v1/{+parent}/nodes', options)
|
216
|
+
command.request_representation = Google::Apis::TpuV1::Node::Representation
|
217
|
+
command.request_object = node_object
|
218
|
+
command.response_representation = Google::Apis::TpuV1::Operation::Representation
|
219
|
+
command.response_class = Google::Apis::TpuV1::Operation
|
220
|
+
command.params['parent'] = parent unless parent.nil?
|
221
|
+
command.query['nodeId'] = node_id unless node_id.nil?
|
222
|
+
command.query['fields'] = fields unless fields.nil?
|
223
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
224
|
+
execute_or_queue_command(command, &block)
|
225
|
+
end
|
226
|
+
|
227
|
+
# Deletes a node.
|
228
|
+
# @param [String] name
|
229
|
+
# The resource name.
|
230
|
+
# @param [String] fields
|
231
|
+
# Selector specifying which fields to include in a partial response.
|
232
|
+
# @param [String] quota_user
|
233
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
234
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
235
|
+
# @param [Google::Apis::RequestOptions] options
|
236
|
+
# Request-specific options
|
237
|
+
#
|
238
|
+
# @yield [result, err] Result & error if block supplied
|
239
|
+
# @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object
|
240
|
+
# @yieldparam err [StandardError] error object if request failed
|
241
|
+
#
|
242
|
+
# @return [Google::Apis::TpuV1::Operation]
|
243
|
+
#
|
244
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
245
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
246
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
247
|
+
def delete_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block)
|
248
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
249
|
+
command.response_representation = Google::Apis::TpuV1::Operation::Representation
|
250
|
+
command.response_class = Google::Apis::TpuV1::Operation
|
251
|
+
command.params['name'] = name unless name.nil?
|
252
|
+
command.query['fields'] = fields unless fields.nil?
|
253
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
254
|
+
execute_or_queue_command(command, &block)
|
255
|
+
end
|
256
|
+
|
257
|
+
# Gets the details of a node.
|
258
|
+
# @param [String] name
|
259
|
+
# The resource name.
|
260
|
+
# @param [String] fields
|
261
|
+
# Selector specifying which fields to include in a partial response.
|
262
|
+
# @param [String] quota_user
|
263
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
264
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
265
|
+
# @param [Google::Apis::RequestOptions] options
|
266
|
+
# Request-specific options
|
267
|
+
#
|
268
|
+
# @yield [result, err] Result & error if block supplied
|
269
|
+
# @yieldparam result [Google::Apis::TpuV1::Node] parsed result object
|
270
|
+
# @yieldparam err [StandardError] error object if request failed
|
271
|
+
#
|
272
|
+
# @return [Google::Apis::TpuV1::Node]
|
273
|
+
#
|
274
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
275
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
276
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
277
|
+
def get_project_location_node(name, fields: nil, quota_user: nil, options: nil, &block)
|
278
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
279
|
+
command.response_representation = Google::Apis::TpuV1::Node::Representation
|
280
|
+
command.response_class = Google::Apis::TpuV1::Node
|
281
|
+
command.params['name'] = name unless name.nil?
|
282
|
+
command.query['fields'] = fields unless fields.nil?
|
283
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
284
|
+
execute_or_queue_command(command, &block)
|
285
|
+
end
|
286
|
+
|
287
|
+
# Lists nodes.
|
288
|
+
# @param [String] parent
|
289
|
+
# The parent resource name.
|
290
|
+
# @param [Fixnum] page_size
|
291
|
+
# The maximum number of items to return.
|
292
|
+
# @param [String] page_token
|
293
|
+
# The next_page_token value returned from a previous List request, if any.
|
294
|
+
# @param [String] fields
|
295
|
+
# Selector specifying which fields to include in a partial response.
|
296
|
+
# @param [String] quota_user
|
297
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
298
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
299
|
+
# @param [Google::Apis::RequestOptions] options
|
300
|
+
# Request-specific options
|
301
|
+
#
|
302
|
+
# @yield [result, err] Result & error if block supplied
|
303
|
+
# @yieldparam result [Google::Apis::TpuV1::ListNodesResponse] parsed result object
|
304
|
+
# @yieldparam err [StandardError] error object if request failed
|
305
|
+
#
|
306
|
+
# @return [Google::Apis::TpuV1::ListNodesResponse]
|
307
|
+
#
|
308
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
309
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
310
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
311
|
+
def list_project_location_nodes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
312
|
+
command = make_simple_command(:get, 'v1/{+parent}/nodes', options)
|
313
|
+
command.response_representation = Google::Apis::TpuV1::ListNodesResponse::Representation
|
314
|
+
command.response_class = Google::Apis::TpuV1::ListNodesResponse
|
315
|
+
command.params['parent'] = parent unless parent.nil?
|
316
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
317
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
318
|
+
command.query['fields'] = fields unless fields.nil?
|
319
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
320
|
+
execute_or_queue_command(command, &block)
|
321
|
+
end
|
322
|
+
|
323
|
+
# Reimages a node's OS.
|
324
|
+
# @param [String] name
|
325
|
+
# The resource name.
|
326
|
+
# @param [Google::Apis::TpuV1::ReimageNodeRequest] reimage_node_request_object
|
327
|
+
# @param [String] fields
|
328
|
+
# Selector specifying which fields to include in a partial response.
|
329
|
+
# @param [String] quota_user
|
330
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
331
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
332
|
+
# @param [Google::Apis::RequestOptions] options
|
333
|
+
# Request-specific options
|
334
|
+
#
|
335
|
+
# @yield [result, err] Result & error if block supplied
|
336
|
+
# @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object
|
337
|
+
# @yieldparam err [StandardError] error object if request failed
|
338
|
+
#
|
339
|
+
# @return [Google::Apis::TpuV1::Operation]
|
340
|
+
#
|
341
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
342
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
343
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
344
|
+
def reimage_node(name, reimage_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
345
|
+
command = make_simple_command(:post, 'v1/{+name}:reimage', options)
|
346
|
+
command.request_representation = Google::Apis::TpuV1::ReimageNodeRequest::Representation
|
347
|
+
command.request_object = reimage_node_request_object
|
348
|
+
command.response_representation = Google::Apis::TpuV1::Operation::Representation
|
349
|
+
command.response_class = Google::Apis::TpuV1::Operation
|
350
|
+
command.params['name'] = name unless name.nil?
|
351
|
+
command.query['fields'] = fields unless fields.nil?
|
352
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
353
|
+
execute_or_queue_command(command, &block)
|
354
|
+
end
|
355
|
+
|
356
|
+
# Resets a node, which stops and starts the VM.
|
357
|
+
# @param [String] name
|
358
|
+
# The resource name.
|
359
|
+
# @param [Google::Apis::TpuV1::ResetNodeRequest] reset_node_request_object
|
360
|
+
# @param [String] fields
|
361
|
+
# Selector specifying which fields to include in a partial response.
|
362
|
+
# @param [String] quota_user
|
363
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
364
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
365
|
+
# @param [Google::Apis::RequestOptions] options
|
366
|
+
# Request-specific options
|
367
|
+
#
|
368
|
+
# @yield [result, err] Result & error if block supplied
|
369
|
+
# @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object
|
370
|
+
# @yieldparam err [StandardError] error object if request failed
|
371
|
+
#
|
372
|
+
# @return [Google::Apis::TpuV1::Operation]
|
373
|
+
#
|
374
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
375
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
376
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
377
|
+
def reset_node(name, reset_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
378
|
+
command = make_simple_command(:post, 'v1/{+name}:reset', options)
|
379
|
+
command.request_representation = Google::Apis::TpuV1::ResetNodeRequest::Representation
|
380
|
+
command.request_object = reset_node_request_object
|
381
|
+
command.response_representation = Google::Apis::TpuV1::Operation::Representation
|
382
|
+
command.response_class = Google::Apis::TpuV1::Operation
|
383
|
+
command.params['name'] = name unless name.nil?
|
384
|
+
command.query['fields'] = fields unless fields.nil?
|
385
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
386
|
+
execute_or_queue_command(command, &block)
|
387
|
+
end
|
388
|
+
|
389
|
+
# Starts a node.
|
390
|
+
# @param [String] name
|
391
|
+
# The resource name.
|
392
|
+
# @param [Google::Apis::TpuV1::StartNodeRequest] start_node_request_object
|
393
|
+
# @param [String] fields
|
394
|
+
# Selector specifying which fields to include in a partial response.
|
395
|
+
# @param [String] quota_user
|
396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
398
|
+
# @param [Google::Apis::RequestOptions] options
|
399
|
+
# Request-specific options
|
400
|
+
#
|
401
|
+
# @yield [result, err] Result & error if block supplied
|
402
|
+
# @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object
|
403
|
+
# @yieldparam err [StandardError] error object if request failed
|
404
|
+
#
|
405
|
+
# @return [Google::Apis::TpuV1::Operation]
|
406
|
+
#
|
407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
410
|
+
def start_node(name, start_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
411
|
+
command = make_simple_command(:post, 'v1/{+name}:start', options)
|
412
|
+
command.request_representation = Google::Apis::TpuV1::StartNodeRequest::Representation
|
413
|
+
command.request_object = start_node_request_object
|
414
|
+
command.response_representation = Google::Apis::TpuV1::Operation::Representation
|
415
|
+
command.response_class = Google::Apis::TpuV1::Operation
|
416
|
+
command.params['name'] = name unless name.nil?
|
417
|
+
command.query['fields'] = fields unless fields.nil?
|
418
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
419
|
+
execute_or_queue_command(command, &block)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Stops a node.
|
423
|
+
# @param [String] name
|
424
|
+
# The resource name.
|
425
|
+
# @param [Google::Apis::TpuV1::StopNodeRequest] stop_node_request_object
|
426
|
+
# @param [String] fields
|
427
|
+
# Selector specifying which fields to include in a partial response.
|
428
|
+
# @param [String] quota_user
|
429
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
430
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
431
|
+
# @param [Google::Apis::RequestOptions] options
|
432
|
+
# Request-specific options
|
433
|
+
#
|
434
|
+
# @yield [result, err] Result & error if block supplied
|
435
|
+
# @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object
|
436
|
+
# @yieldparam err [StandardError] error object if request failed
|
437
|
+
#
|
438
|
+
# @return [Google::Apis::TpuV1::Operation]
|
439
|
+
#
|
440
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
441
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
442
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
443
|
+
def stop_node(name, stop_node_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
444
|
+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
|
445
|
+
command.request_representation = Google::Apis::TpuV1::StopNodeRequest::Representation
|
446
|
+
command.request_object = stop_node_request_object
|
447
|
+
command.response_representation = Google::Apis::TpuV1::Operation::Representation
|
448
|
+
command.response_class = Google::Apis::TpuV1::Operation
|
449
|
+
command.params['name'] = name unless name.nil?
|
450
|
+
command.query['fields'] = fields unless fields.nil?
|
451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
452
|
+
execute_or_queue_command(command, &block)
|
453
|
+
end
|
454
|
+
|
455
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
456
|
+
# makes a best effort to cancel the operation, but success is not
|
457
|
+
# guaranteed. If the server doesn't support this method, it returns
|
458
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
459
|
+
# Operations.GetOperation or
|
460
|
+
# other methods to check whether the cancellation succeeded or whether the
|
461
|
+
# operation completed despite cancellation. On successful cancellation,
|
462
|
+
# the operation is not deleted; instead, it becomes an operation with
|
463
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
464
|
+
# corresponding to `Code.CANCELLED`.
|
465
|
+
# @param [String] name
|
466
|
+
# The name of the operation resource to be cancelled.
|
467
|
+
# @param [String] fields
|
468
|
+
# Selector specifying which fields to include in a partial response.
|
469
|
+
# @param [String] quota_user
|
470
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
471
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
472
|
+
# @param [Google::Apis::RequestOptions] options
|
473
|
+
# Request-specific options
|
474
|
+
#
|
475
|
+
# @yield [result, err] Result & error if block supplied
|
476
|
+
# @yieldparam result [Google::Apis::TpuV1::Empty] parsed result object
|
477
|
+
# @yieldparam err [StandardError] error object if request failed
|
478
|
+
#
|
479
|
+
# @return [Google::Apis::TpuV1::Empty]
|
480
|
+
#
|
481
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
482
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
483
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
484
|
+
def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
485
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
486
|
+
command.response_representation = Google::Apis::TpuV1::Empty::Representation
|
487
|
+
command.response_class = Google::Apis::TpuV1::Empty
|
488
|
+
command.params['name'] = name unless name.nil?
|
489
|
+
command.query['fields'] = fields unless fields.nil?
|
490
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
491
|
+
execute_or_queue_command(command, &block)
|
492
|
+
end
|
493
|
+
|
494
|
+
# Deletes a long-running operation. This method indicates that the client is
|
495
|
+
# no longer interested in the operation result. It does not cancel the
|
496
|
+
# operation. If the server doesn't support this method, it returns
|
497
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
498
|
+
# @param [String] name
|
499
|
+
# The name of the operation resource to be deleted.
|
500
|
+
# @param [String] fields
|
501
|
+
# Selector specifying which fields to include in a partial response.
|
502
|
+
# @param [String] quota_user
|
503
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
504
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
505
|
+
# @param [Google::Apis::RequestOptions] options
|
506
|
+
# Request-specific options
|
507
|
+
#
|
508
|
+
# @yield [result, err] Result & error if block supplied
|
509
|
+
# @yieldparam result [Google::Apis::TpuV1::Empty] parsed result object
|
510
|
+
# @yieldparam err [StandardError] error object if request failed
|
511
|
+
#
|
512
|
+
# @return [Google::Apis::TpuV1::Empty]
|
513
|
+
#
|
514
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
515
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
516
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
517
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
518
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
519
|
+
command.response_representation = Google::Apis::TpuV1::Empty::Representation
|
520
|
+
command.response_class = Google::Apis::TpuV1::Empty
|
521
|
+
command.params['name'] = name unless name.nil?
|
522
|
+
command.query['fields'] = fields unless fields.nil?
|
523
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
524
|
+
execute_or_queue_command(command, &block)
|
525
|
+
end
|
526
|
+
|
527
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
528
|
+
# method to poll the operation result at intervals as recommended by the API
|
529
|
+
# service.
|
530
|
+
# @param [String] name
|
531
|
+
# The name of the operation resource.
|
532
|
+
# @param [String] fields
|
533
|
+
# Selector specifying which fields to include in a partial response.
|
534
|
+
# @param [String] quota_user
|
535
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
536
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
537
|
+
# @param [Google::Apis::RequestOptions] options
|
538
|
+
# Request-specific options
|
539
|
+
#
|
540
|
+
# @yield [result, err] Result & error if block supplied
|
541
|
+
# @yieldparam result [Google::Apis::TpuV1::Operation] parsed result object
|
542
|
+
# @yieldparam err [StandardError] error object if request failed
|
543
|
+
#
|
544
|
+
# @return [Google::Apis::TpuV1::Operation]
|
545
|
+
#
|
546
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
547
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
548
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
549
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
550
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
551
|
+
command.response_representation = Google::Apis::TpuV1::Operation::Representation
|
552
|
+
command.response_class = Google::Apis::TpuV1::Operation
|
553
|
+
command.params['name'] = name unless name.nil?
|
554
|
+
command.query['fields'] = fields unless fields.nil?
|
555
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
556
|
+
execute_or_queue_command(command, &block)
|
557
|
+
end
|
558
|
+
|
559
|
+
# Lists operations that match the specified filter in the request. If the
|
560
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
561
|
+
# NOTE: the `name` binding allows API services to override the binding
|
562
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
563
|
+
# override the binding, API services can add a binding such as
|
564
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
565
|
+
# For backwards compatibility, the default name includes the operations
|
566
|
+
# collection id, however overriding users must ensure the name binding
|
567
|
+
# is the parent resource, without the operations collection id.
|
568
|
+
# @param [String] name
|
569
|
+
# The name of the operation's parent resource.
|
570
|
+
# @param [String] filter
|
571
|
+
# The standard list filter.
|
572
|
+
# @param [Fixnum] page_size
|
573
|
+
# The standard list page size.
|
574
|
+
# @param [String] page_token
|
575
|
+
# The standard list page token.
|
576
|
+
# @param [String] fields
|
577
|
+
# Selector specifying which fields to include in a partial response.
|
578
|
+
# @param [String] quota_user
|
579
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
580
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
581
|
+
# @param [Google::Apis::RequestOptions] options
|
582
|
+
# Request-specific options
|
583
|
+
#
|
584
|
+
# @yield [result, err] Result & error if block supplied
|
585
|
+
# @yieldparam result [Google::Apis::TpuV1::ListOperationsResponse] parsed result object
|
586
|
+
# @yieldparam err [StandardError] error object if request failed
|
587
|
+
#
|
588
|
+
# @return [Google::Apis::TpuV1::ListOperationsResponse]
|
589
|
+
#
|
590
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
591
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
592
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
593
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
594
|
+
command = make_simple_command(:get, 'v1/{+name}/operations', options)
|
595
|
+
command.response_representation = Google::Apis::TpuV1::ListOperationsResponse::Representation
|
596
|
+
command.response_class = Google::Apis::TpuV1::ListOperationsResponse
|
597
|
+
command.params['name'] = name unless name.nil?
|
598
|
+
command.query['filter'] = filter unless filter.nil?
|
599
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
600
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
601
|
+
command.query['fields'] = fields unless fields.nil?
|
602
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
603
|
+
execute_or_queue_command(command, &block)
|
604
|
+
end
|
605
|
+
|
606
|
+
# Gets TensorFlow Version.
|
607
|
+
# @param [String] name
|
608
|
+
# The resource name.
|
609
|
+
# @param [String] fields
|
610
|
+
# Selector specifying which fields to include in a partial response.
|
611
|
+
# @param [String] quota_user
|
612
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
613
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
614
|
+
# @param [Google::Apis::RequestOptions] options
|
615
|
+
# Request-specific options
|
616
|
+
#
|
617
|
+
# @yield [result, err] Result & error if block supplied
|
618
|
+
# @yieldparam result [Google::Apis::TpuV1::TensorFlowVersion] parsed result object
|
619
|
+
# @yieldparam err [StandardError] error object if request failed
|
620
|
+
#
|
621
|
+
# @return [Google::Apis::TpuV1::TensorFlowVersion]
|
622
|
+
#
|
623
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
624
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
625
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
626
|
+
def get_project_location_tensorflow_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
627
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
628
|
+
command.response_representation = Google::Apis::TpuV1::TensorFlowVersion::Representation
|
629
|
+
command.response_class = Google::Apis::TpuV1::TensorFlowVersion
|
630
|
+
command.params['name'] = name unless name.nil?
|
631
|
+
command.query['fields'] = fields unless fields.nil?
|
632
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
633
|
+
execute_or_queue_command(command, &block)
|
634
|
+
end
|
635
|
+
|
636
|
+
# List TensorFlow versions supported by this API.
|
637
|
+
# @param [String] parent
|
638
|
+
# The parent resource name.
|
639
|
+
# @param [String] filter
|
640
|
+
# List filter.
|
641
|
+
# @param [String] order_by
|
642
|
+
# Sort results.
|
643
|
+
# @param [Fixnum] page_size
|
644
|
+
# The maximum number of items to return.
|
645
|
+
# @param [String] page_token
|
646
|
+
# The next_page_token value returned from a previous List request, if any.
|
647
|
+
# @param [String] fields
|
648
|
+
# Selector specifying which fields to include in a partial response.
|
649
|
+
# @param [String] quota_user
|
650
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
651
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
652
|
+
# @param [Google::Apis::RequestOptions] options
|
653
|
+
# Request-specific options
|
654
|
+
#
|
655
|
+
# @yield [result, err] Result & error if block supplied
|
656
|
+
# @yieldparam result [Google::Apis::TpuV1::ListTensorFlowVersionsResponse] parsed result object
|
657
|
+
# @yieldparam err [StandardError] error object if request failed
|
658
|
+
#
|
659
|
+
# @return [Google::Apis::TpuV1::ListTensorFlowVersionsResponse]
|
660
|
+
#
|
661
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
662
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
663
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
664
|
+
def list_project_location_tensorflow_versions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
665
|
+
command = make_simple_command(:get, 'v1/{+parent}/tensorflowVersions', options)
|
666
|
+
command.response_representation = Google::Apis::TpuV1::ListTensorFlowVersionsResponse::Representation
|
667
|
+
command.response_class = Google::Apis::TpuV1::ListTensorFlowVersionsResponse
|
668
|
+
command.params['parent'] = parent unless parent.nil?
|
669
|
+
command.query['filter'] = filter unless filter.nil?
|
670
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
671
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
672
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
673
|
+
command.query['fields'] = fields unless fields.nil?
|
674
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
675
|
+
execute_or_queue_command(command, &block)
|
676
|
+
end
|
677
|
+
|
678
|
+
protected
|
679
|
+
|
680
|
+
def apply_command_defaults(command)
|
681
|
+
command.query['key'] = key unless key.nil?
|
682
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
683
|
+
end
|
684
|
+
end
|
685
|
+
end
|
686
|
+
end
|
687
|
+
end
|