google-apis-parallelstore_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/parallelstore_v1/classes.rb +643 -0
- data/lib/google/apis/parallelstore_v1/gem_version.rb +28 -0
- data/lib/google/apis/parallelstore_v1/representations.rb +279 -0
- data/lib/google/apis/parallelstore_v1/service.rb +569 -0
- data/lib/google/apis/parallelstore_v1.rb +36 -0
- data/lib/google-apis-parallelstore_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,643 @@
|
|
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 '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 ParallelstoreV1
|
24
|
+
|
25
|
+
# The request message for Operations.CancelOperation.
|
26
|
+
class CancelOperationRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
def initialize(**args)
|
30
|
+
update!(**args)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Update properties of this object
|
34
|
+
def update!(**args)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# Cloud Storage as the destination of a data transfer.
|
39
|
+
class DestinationGcsBucket
|
40
|
+
include Google::Apis::Core::Hashable
|
41
|
+
|
42
|
+
# Required. URI to a Cloud Storage bucket in the format: `gs:///`. The path
|
43
|
+
# inside the bucket is optional.
|
44
|
+
# Corresponds to the JSON property `uri`
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :uri
|
47
|
+
|
48
|
+
def initialize(**args)
|
49
|
+
update!(**args)
|
50
|
+
end
|
51
|
+
|
52
|
+
# Update properties of this object
|
53
|
+
def update!(**args)
|
54
|
+
@uri = args[:uri] if args.key?(:uri)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# Parallelstore as the destination of a data transfer.
|
59
|
+
class DestinationParallelstore
|
60
|
+
include Google::Apis::Core::Hashable
|
61
|
+
|
62
|
+
# Optional. Root directory path to the Paralellstore filesystem, starting with `/
|
63
|
+
# `. Defaults to `/` if unset.
|
64
|
+
# Corresponds to the JSON property `path`
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :path
|
67
|
+
|
68
|
+
def initialize(**args)
|
69
|
+
update!(**args)
|
70
|
+
end
|
71
|
+
|
72
|
+
# Update properties of this object
|
73
|
+
def update!(**args)
|
74
|
+
@path = args[:path] if args.key?(:path)
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# Export data from Parallelstore to Cloud Storage.
|
79
|
+
class ExportDataRequest
|
80
|
+
include Google::Apis::Core::Hashable
|
81
|
+
|
82
|
+
# Cloud Storage as the destination of a data transfer.
|
83
|
+
# Corresponds to the JSON property `destinationGcsBucket`
|
84
|
+
# @return [Google::Apis::ParallelstoreV1::DestinationGcsBucket]
|
85
|
+
attr_accessor :destination_gcs_bucket
|
86
|
+
|
87
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
88
|
+
# request ID so that if you must retry your request, the server will know to
|
89
|
+
# ignore the request if it has already been completed. The server will guarantee
|
90
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
91
|
+
# situation where you make an initial request and t he request times out. If you
|
92
|
+
# make the request again with the same request ID, the server can check if
|
93
|
+
# original operation with the same request ID was received, and if so, will
|
94
|
+
# ignore the second request. This prevents clients from accidentally creating
|
95
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
96
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
97
|
+
# Corresponds to the JSON property `requestId`
|
98
|
+
# @return [String]
|
99
|
+
attr_accessor :request_id
|
100
|
+
|
101
|
+
# Optional. User-specified Service Account (SA) credentials to be used when
|
102
|
+
# performing the transfer. Use one of the following formats: * ``
|
103
|
+
# EMAIL_ADDRESS_OR_UNIQUE_ID`` * `projects/`PROJECT_ID_OR_NUMBER`/
|
104
|
+
# serviceAccounts/`EMAIL_ADDRESS_OR_UNIQUE_ID`` * `projects/-/serviceAccounts/`
|
105
|
+
# EMAIL_ADDRESS_OR_UNIQUE_ID`` If unspecified, the Parallelstore service agent
|
106
|
+
# is used: `service-@gcp-sa-parallelstore.iam.gserviceaccount.com`
|
107
|
+
# Corresponds to the JSON property `serviceAccount`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :service_account
|
110
|
+
|
111
|
+
# Parallelstore as the source of a data transfer.
|
112
|
+
# Corresponds to the JSON property `sourceParallelstore`
|
113
|
+
# @return [Google::Apis::ParallelstoreV1::SourceParallelstore]
|
114
|
+
attr_accessor :source_parallelstore
|
115
|
+
|
116
|
+
def initialize(**args)
|
117
|
+
update!(**args)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Update properties of this object
|
121
|
+
def update!(**args)
|
122
|
+
@destination_gcs_bucket = args[:destination_gcs_bucket] if args.key?(:destination_gcs_bucket)
|
123
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
124
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
125
|
+
@source_parallelstore = args[:source_parallelstore] if args.key?(:source_parallelstore)
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
130
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
131
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
132
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
133
|
+
class GoogleProtobufEmpty
|
134
|
+
include Google::Apis::Core::Hashable
|
135
|
+
|
136
|
+
def initialize(**args)
|
137
|
+
update!(**args)
|
138
|
+
end
|
139
|
+
|
140
|
+
# Update properties of this object
|
141
|
+
def update!(**args)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
# Import data from Cloud Storage into a Parallelstore instance.
|
146
|
+
class ImportDataRequest
|
147
|
+
include Google::Apis::Core::Hashable
|
148
|
+
|
149
|
+
# Parallelstore as the destination of a data transfer.
|
150
|
+
# Corresponds to the JSON property `destinationParallelstore`
|
151
|
+
# @return [Google::Apis::ParallelstoreV1::DestinationParallelstore]
|
152
|
+
attr_accessor :destination_parallelstore
|
153
|
+
|
154
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
155
|
+
# request ID so that if you must retry your request, the server will know to
|
156
|
+
# ignore the request if it has already been completed. The server will guarantee
|
157
|
+
# that for at least 60 minutes since the first request. For example, consider a
|
158
|
+
# situation where you make an initial request and t he request times out. If you
|
159
|
+
# make the request again with the same request ID, the server can check if
|
160
|
+
# original operation with the same request ID was received, and if so, will
|
161
|
+
# ignore the second request. This prevents clients from accidentally creating
|
162
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
163
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
164
|
+
# Corresponds to the JSON property `requestId`
|
165
|
+
# @return [String]
|
166
|
+
attr_accessor :request_id
|
167
|
+
|
168
|
+
# Optional. User-specified service account credentials to be used when
|
169
|
+
# performing the transfer. Use one of the following formats: * ``
|
170
|
+
# EMAIL_ADDRESS_OR_UNIQUE_ID`` * `projects/`PROJECT_ID_OR_NUMBER`/
|
171
|
+
# serviceAccounts/`EMAIL_ADDRESS_OR_UNIQUE_ID`` * `projects/-/serviceAccounts/`
|
172
|
+
# EMAIL_ADDRESS_OR_UNIQUE_ID`` If unspecified, the Parallelstore service agent
|
173
|
+
# is used: `service-@gcp-sa-parallelstore.iam.gserviceaccount.com`
|
174
|
+
# Corresponds to the JSON property `serviceAccount`
|
175
|
+
# @return [String]
|
176
|
+
attr_accessor :service_account
|
177
|
+
|
178
|
+
# Cloud Storage as the source of a data transfer.
|
179
|
+
# Corresponds to the JSON property `sourceGcsBucket`
|
180
|
+
# @return [Google::Apis::ParallelstoreV1::SourceGcsBucket]
|
181
|
+
attr_accessor :source_gcs_bucket
|
182
|
+
|
183
|
+
def initialize(**args)
|
184
|
+
update!(**args)
|
185
|
+
end
|
186
|
+
|
187
|
+
# Update properties of this object
|
188
|
+
def update!(**args)
|
189
|
+
@destination_parallelstore = args[:destination_parallelstore] if args.key?(:destination_parallelstore)
|
190
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
191
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
192
|
+
@source_gcs_bucket = args[:source_gcs_bucket] if args.key?(:source_gcs_bucket)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# A Parallelstore instance.
|
197
|
+
class Instance
|
198
|
+
include Google::Apis::Core::Hashable
|
199
|
+
|
200
|
+
# Output only. A list of IPv4 addresses used for client side configuration.
|
201
|
+
# Corresponds to the JSON property `accessPoints`
|
202
|
+
# @return [Array<String>]
|
203
|
+
attr_accessor :access_points
|
204
|
+
|
205
|
+
# Required. Immutable. The instance's storage capacity in Gibibytes (GiB).
|
206
|
+
# Allowed values are between 12000 and 100000, in multiples of 4000; e.g., 12000,
|
207
|
+
# 16000, 20000, ...
|
208
|
+
# Corresponds to the JSON property `capacityGib`
|
209
|
+
# @return [Fixnum]
|
210
|
+
attr_accessor :capacity_gib
|
211
|
+
|
212
|
+
# Output only. The time when the instance was created.
|
213
|
+
# Corresponds to the JSON property `createTime`
|
214
|
+
# @return [String]
|
215
|
+
attr_accessor :create_time
|
216
|
+
|
217
|
+
# Output only. The version of DAOS software running in the instance.
|
218
|
+
# Corresponds to the JSON property `daosVersion`
|
219
|
+
# @return [String]
|
220
|
+
attr_accessor :daos_version
|
221
|
+
|
222
|
+
# Optional. The description of the instance. 2048 characters or less.
|
223
|
+
# Corresponds to the JSON property `description`
|
224
|
+
# @return [String]
|
225
|
+
attr_accessor :description
|
226
|
+
|
227
|
+
# Optional. Stripe level for directories. Allowed values are: * `
|
228
|
+
# DIRECTORY_STRIPE_LEVEL_MIN`: recommended when directories contain a small
|
229
|
+
# number of files. * `DIRECTORY_STRIPE_LEVEL_BALANCED`: balances performance for
|
230
|
+
# workloads involving a mix of small and large directories. * `
|
231
|
+
# DIRECTORY_STRIPE_LEVEL_MAX`: recommended for directories with a large number
|
232
|
+
# of files.
|
233
|
+
# Corresponds to the JSON property `directoryStripeLevel`
|
234
|
+
# @return [String]
|
235
|
+
attr_accessor :directory_stripe_level
|
236
|
+
|
237
|
+
# Output only. Immutable. The ID of the IP address range being used by the
|
238
|
+
# instance's VPC network. This field is populated by the service and contains
|
239
|
+
# the value currently used by the service.
|
240
|
+
# Corresponds to the JSON property `effectiveReservedIpRange`
|
241
|
+
# @return [String]
|
242
|
+
attr_accessor :effective_reserved_ip_range
|
243
|
+
|
244
|
+
# Optional. Stripe level for files. Allowed values are: * `FILE_STRIPE_LEVEL_MIN`
|
245
|
+
# : offers the best performance for small size files. * `
|
246
|
+
# FILE_STRIPE_LEVEL_BALANCED`: balances performance for workloads involving a
|
247
|
+
# mix of small and large files. * `FILE_STRIPE_LEVEL_MAX`: higher throughput
|
248
|
+
# performance for larger files.
|
249
|
+
# Corresponds to the JSON property `fileStripeLevel`
|
250
|
+
# @return [String]
|
251
|
+
attr_accessor :file_stripe_level
|
252
|
+
|
253
|
+
# Optional. Cloud Labels are a flexible and lightweight mechanism for organizing
|
254
|
+
# cloud resources into groups that reflect a customer's organizational needs and
|
255
|
+
# deployment strategies. See https://cloud.google.com/resource-manager/docs/
|
256
|
+
# labels-overview for details.
|
257
|
+
# Corresponds to the JSON property `labels`
|
258
|
+
# @return [Hash<String,String>]
|
259
|
+
attr_accessor :labels
|
260
|
+
|
261
|
+
# Identifier. The resource name of the instance, in the format `projects/`
|
262
|
+
# project`/locations/`location`/instances/`instance_id``.
|
263
|
+
# Corresponds to the JSON property `name`
|
264
|
+
# @return [String]
|
265
|
+
attr_accessor :name
|
266
|
+
|
267
|
+
# Optional. Immutable. The name of the Compute Engine [VPC network](https://
|
268
|
+
# cloud.google.com/vpc/docs/vpc) to which the instance is connected.
|
269
|
+
# Corresponds to the JSON property `network`
|
270
|
+
# @return [String]
|
271
|
+
attr_accessor :network
|
272
|
+
|
273
|
+
# Optional. Immutable. The ID of the IP address range being used by the instance'
|
274
|
+
# s VPC network. See [Configure a VPC network](https://cloud.google.com/
|
275
|
+
# parallelstore/docs/vpc#create_and_configure_the_vpc). If no ID is provided,
|
276
|
+
# all ranges are considered.
|
277
|
+
# Corresponds to the JSON property `reservedIpRange`
|
278
|
+
# @return [String]
|
279
|
+
attr_accessor :reserved_ip_range
|
280
|
+
|
281
|
+
# Output only. The instance state.
|
282
|
+
# Corresponds to the JSON property `state`
|
283
|
+
# @return [String]
|
284
|
+
attr_accessor :state
|
285
|
+
|
286
|
+
# Output only. The time when the instance was updated.
|
287
|
+
# Corresponds to the JSON property `updateTime`
|
288
|
+
# @return [String]
|
289
|
+
attr_accessor :update_time
|
290
|
+
|
291
|
+
def initialize(**args)
|
292
|
+
update!(**args)
|
293
|
+
end
|
294
|
+
|
295
|
+
# Update properties of this object
|
296
|
+
def update!(**args)
|
297
|
+
@access_points = args[:access_points] if args.key?(:access_points)
|
298
|
+
@capacity_gib = args[:capacity_gib] if args.key?(:capacity_gib)
|
299
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
300
|
+
@daos_version = args[:daos_version] if args.key?(:daos_version)
|
301
|
+
@description = args[:description] if args.key?(:description)
|
302
|
+
@directory_stripe_level = args[:directory_stripe_level] if args.key?(:directory_stripe_level)
|
303
|
+
@effective_reserved_ip_range = args[:effective_reserved_ip_range] if args.key?(:effective_reserved_ip_range)
|
304
|
+
@file_stripe_level = args[:file_stripe_level] if args.key?(:file_stripe_level)
|
305
|
+
@labels = args[:labels] if args.key?(:labels)
|
306
|
+
@name = args[:name] if args.key?(:name)
|
307
|
+
@network = args[:network] if args.key?(:network)
|
308
|
+
@reserved_ip_range = args[:reserved_ip_range] if args.key?(:reserved_ip_range)
|
309
|
+
@state = args[:state] if args.key?(:state)
|
310
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# Response from ListInstances.
|
315
|
+
class ListInstancesResponse
|
316
|
+
include Google::Apis::Core::Hashable
|
317
|
+
|
318
|
+
# The list of Parallelstore instances.
|
319
|
+
# Corresponds to the JSON property `instances`
|
320
|
+
# @return [Array<Google::Apis::ParallelstoreV1::Instance>]
|
321
|
+
attr_accessor :instances
|
322
|
+
|
323
|
+
# A token identifying a page of results the server should return.
|
324
|
+
# Corresponds to the JSON property `nextPageToken`
|
325
|
+
# @return [String]
|
326
|
+
attr_accessor :next_page_token
|
327
|
+
|
328
|
+
# Locations that could not be reached.
|
329
|
+
# Corresponds to the JSON property `unreachable`
|
330
|
+
# @return [Array<String>]
|
331
|
+
attr_accessor :unreachable
|
332
|
+
|
333
|
+
def initialize(**args)
|
334
|
+
update!(**args)
|
335
|
+
end
|
336
|
+
|
337
|
+
# Update properties of this object
|
338
|
+
def update!(**args)
|
339
|
+
@instances = args[:instances] if args.key?(:instances)
|
340
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
341
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
342
|
+
end
|
343
|
+
end
|
344
|
+
|
345
|
+
# The response message for Locations.ListLocations.
|
346
|
+
class ListLocationsResponse
|
347
|
+
include Google::Apis::Core::Hashable
|
348
|
+
|
349
|
+
# A list of locations that matches the specified filter in the request.
|
350
|
+
# Corresponds to the JSON property `locations`
|
351
|
+
# @return [Array<Google::Apis::ParallelstoreV1::Location>]
|
352
|
+
attr_accessor :locations
|
353
|
+
|
354
|
+
# The standard List next-page token.
|
355
|
+
# Corresponds to the JSON property `nextPageToken`
|
356
|
+
# @return [String]
|
357
|
+
attr_accessor :next_page_token
|
358
|
+
|
359
|
+
def initialize(**args)
|
360
|
+
update!(**args)
|
361
|
+
end
|
362
|
+
|
363
|
+
# Update properties of this object
|
364
|
+
def update!(**args)
|
365
|
+
@locations = args[:locations] if args.key?(:locations)
|
366
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
# The response message for Operations.ListOperations.
|
371
|
+
class ListOperationsResponse
|
372
|
+
include Google::Apis::Core::Hashable
|
373
|
+
|
374
|
+
# The standard List next-page token.
|
375
|
+
# Corresponds to the JSON property `nextPageToken`
|
376
|
+
# @return [String]
|
377
|
+
attr_accessor :next_page_token
|
378
|
+
|
379
|
+
# A list of operations that matches the specified filter in the request.
|
380
|
+
# Corresponds to the JSON property `operations`
|
381
|
+
# @return [Array<Google::Apis::ParallelstoreV1::Operation>]
|
382
|
+
attr_accessor :operations
|
383
|
+
|
384
|
+
def initialize(**args)
|
385
|
+
update!(**args)
|
386
|
+
end
|
387
|
+
|
388
|
+
# Update properties of this object
|
389
|
+
def update!(**args)
|
390
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
391
|
+
@operations = args[:operations] if args.key?(:operations)
|
392
|
+
end
|
393
|
+
end
|
394
|
+
|
395
|
+
# A resource that represents a Google Cloud location.
|
396
|
+
class Location
|
397
|
+
include Google::Apis::Core::Hashable
|
398
|
+
|
399
|
+
# The friendly name for this location, typically a nearby city name. For example,
|
400
|
+
# "Tokyo".
|
401
|
+
# Corresponds to the JSON property `displayName`
|
402
|
+
# @return [String]
|
403
|
+
attr_accessor :display_name
|
404
|
+
|
405
|
+
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
406
|
+
# region": "us-east1"`
|
407
|
+
# Corresponds to the JSON property `labels`
|
408
|
+
# @return [Hash<String,String>]
|
409
|
+
attr_accessor :labels
|
410
|
+
|
411
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
412
|
+
# Corresponds to the JSON property `locationId`
|
413
|
+
# @return [String]
|
414
|
+
attr_accessor :location_id
|
415
|
+
|
416
|
+
# Service-specific metadata. For example the available capacity at the given
|
417
|
+
# location.
|
418
|
+
# Corresponds to the JSON property `metadata`
|
419
|
+
# @return [Hash<String,Object>]
|
420
|
+
attr_accessor :metadata
|
421
|
+
|
422
|
+
# Resource name for the location, which may vary between implementations. For
|
423
|
+
# example: `"projects/example-project/locations/us-east1"`
|
424
|
+
# Corresponds to the JSON property `name`
|
425
|
+
# @return [String]
|
426
|
+
attr_accessor :name
|
427
|
+
|
428
|
+
def initialize(**args)
|
429
|
+
update!(**args)
|
430
|
+
end
|
431
|
+
|
432
|
+
# Update properties of this object
|
433
|
+
def update!(**args)
|
434
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
435
|
+
@labels = args[:labels] if args.key?(:labels)
|
436
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
437
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
438
|
+
@name = args[:name] if args.key?(:name)
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
# This resource represents a long-running operation that is the result of a
|
443
|
+
# network API call.
|
444
|
+
class Operation
|
445
|
+
include Google::Apis::Core::Hashable
|
446
|
+
|
447
|
+
# If the value is `false`, it means the operation is still in progress. If `true`
|
448
|
+
# , the operation is completed, and either `error` or `response` is available.
|
449
|
+
# Corresponds to the JSON property `done`
|
450
|
+
# @return [Boolean]
|
451
|
+
attr_accessor :done
|
452
|
+
alias_method :done?, :done
|
453
|
+
|
454
|
+
# The `Status` type defines a logical error model that is suitable for different
|
455
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
456
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
457
|
+
# data: error code, error message, and error details. You can find out more
|
458
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
459
|
+
# //cloud.google.com/apis/design/errors).
|
460
|
+
# Corresponds to the JSON property `error`
|
461
|
+
# @return [Google::Apis::ParallelstoreV1::Status]
|
462
|
+
attr_accessor :error
|
463
|
+
|
464
|
+
# Service-specific metadata associated with the operation. It typically contains
|
465
|
+
# progress information and common metadata such as create time. Some services
|
466
|
+
# might not provide such metadata. Any method that returns a long-running
|
467
|
+
# operation should document the metadata type, if any.
|
468
|
+
# Corresponds to the JSON property `metadata`
|
469
|
+
# @return [Hash<String,Object>]
|
470
|
+
attr_accessor :metadata
|
471
|
+
|
472
|
+
# The server-assigned name, which is only unique within the same service that
|
473
|
+
# originally returns it. If you use the default HTTP mapping, the `name` should
|
474
|
+
# be a resource name ending with `operations/`unique_id``.
|
475
|
+
# Corresponds to the JSON property `name`
|
476
|
+
# @return [String]
|
477
|
+
attr_accessor :name
|
478
|
+
|
479
|
+
# The normal, successful response of the operation. If the original method
|
480
|
+
# returns no data on success, such as `Delete`, the response is `google.protobuf.
|
481
|
+
# Empty`. If the original method is standard `Get`/`Create`/`Update`, the
|
482
|
+
# response should be the resource. For other methods, the response should have
|
483
|
+
# the type `XxxResponse`, where `Xxx` is the original method name. For example,
|
484
|
+
# if the original method name is `TakeSnapshot()`, the inferred response type is
|
485
|
+
# `TakeSnapshotResponse`.
|
486
|
+
# Corresponds to the JSON property `response`
|
487
|
+
# @return [Hash<String,Object>]
|
488
|
+
attr_accessor :response
|
489
|
+
|
490
|
+
def initialize(**args)
|
491
|
+
update!(**args)
|
492
|
+
end
|
493
|
+
|
494
|
+
# Update properties of this object
|
495
|
+
def update!(**args)
|
496
|
+
@done = args[:done] if args.key?(:done)
|
497
|
+
@error = args[:error] if args.key?(:error)
|
498
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
499
|
+
@name = args[:name] if args.key?(:name)
|
500
|
+
@response = args[:response] if args.key?(:response)
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
# Long-running operation metadata.
|
505
|
+
class OperationMetadata
|
506
|
+
include Google::Apis::Core::Hashable
|
507
|
+
|
508
|
+
# Output only. API version used to start the operation.
|
509
|
+
# Corresponds to the JSON property `apiVersion`
|
510
|
+
# @return [String]
|
511
|
+
attr_accessor :api_version
|
512
|
+
|
513
|
+
# Output only. The time the operation was created.
|
514
|
+
# Corresponds to the JSON property `createTime`
|
515
|
+
# @return [String]
|
516
|
+
attr_accessor :create_time
|
517
|
+
|
518
|
+
# Output only. The time the operation finished running.
|
519
|
+
# Corresponds to the JSON property `endTime`
|
520
|
+
# @return [String]
|
521
|
+
attr_accessor :end_time
|
522
|
+
|
523
|
+
# Output only. Identifies whether the user has requested cancellation of the
|
524
|
+
# operation. Operations that have been cancelled successfully have Operation.
|
525
|
+
# error value with a google.rpc.Status.code of 1, corresponding to `Code.
|
526
|
+
# CANCELLED`.
|
527
|
+
# Corresponds to the JSON property `requestedCancellation`
|
528
|
+
# @return [Boolean]
|
529
|
+
attr_accessor :requested_cancellation
|
530
|
+
alias_method :requested_cancellation?, :requested_cancellation
|
531
|
+
|
532
|
+
# Output only. Human-readable status of the operation, if any.
|
533
|
+
# Corresponds to the JSON property `statusMessage`
|
534
|
+
# @return [String]
|
535
|
+
attr_accessor :status_message
|
536
|
+
|
537
|
+
# Output only. Server-defined resource path for the target of the operation.
|
538
|
+
# Corresponds to the JSON property `target`
|
539
|
+
# @return [String]
|
540
|
+
attr_accessor :target
|
541
|
+
|
542
|
+
# Output only. Name of the verb executed by the operation.
|
543
|
+
# Corresponds to the JSON property `verb`
|
544
|
+
# @return [String]
|
545
|
+
attr_accessor :verb
|
546
|
+
|
547
|
+
def initialize(**args)
|
548
|
+
update!(**args)
|
549
|
+
end
|
550
|
+
|
551
|
+
# Update properties of this object
|
552
|
+
def update!(**args)
|
553
|
+
@api_version = args[:api_version] if args.key?(:api_version)
|
554
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
555
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
556
|
+
@requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
|
557
|
+
@status_message = args[:status_message] if args.key?(:status_message)
|
558
|
+
@target = args[:target] if args.key?(:target)
|
559
|
+
@verb = args[:verb] if args.key?(:verb)
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
563
|
+
# Cloud Storage as the source of a data transfer.
|
564
|
+
class SourceGcsBucket
|
565
|
+
include Google::Apis::Core::Hashable
|
566
|
+
|
567
|
+
# Required. URI to a Cloud Storage bucket in the format: `gs:///`. The path
|
568
|
+
# inside the bucket is optional.
|
569
|
+
# Corresponds to the JSON property `uri`
|
570
|
+
# @return [String]
|
571
|
+
attr_accessor :uri
|
572
|
+
|
573
|
+
def initialize(**args)
|
574
|
+
update!(**args)
|
575
|
+
end
|
576
|
+
|
577
|
+
# Update properties of this object
|
578
|
+
def update!(**args)
|
579
|
+
@uri = args[:uri] if args.key?(:uri)
|
580
|
+
end
|
581
|
+
end
|
582
|
+
|
583
|
+
# Parallelstore as the source of a data transfer.
|
584
|
+
class SourceParallelstore
|
585
|
+
include Google::Apis::Core::Hashable
|
586
|
+
|
587
|
+
# Optional. Root directory path to the Paralellstore filesystem, starting with `/
|
588
|
+
# `. Defaults to `/` if unset.
|
589
|
+
# Corresponds to the JSON property `path`
|
590
|
+
# @return [String]
|
591
|
+
attr_accessor :path
|
592
|
+
|
593
|
+
def initialize(**args)
|
594
|
+
update!(**args)
|
595
|
+
end
|
596
|
+
|
597
|
+
# Update properties of this object
|
598
|
+
def update!(**args)
|
599
|
+
@path = args[:path] if args.key?(:path)
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
# The `Status` type defines a logical error model that is suitable for different
|
604
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
605
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
606
|
+
# data: error code, error message, and error details. You can find out more
|
607
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
608
|
+
# //cloud.google.com/apis/design/errors).
|
609
|
+
class Status
|
610
|
+
include Google::Apis::Core::Hashable
|
611
|
+
|
612
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
613
|
+
# Corresponds to the JSON property `code`
|
614
|
+
# @return [Fixnum]
|
615
|
+
attr_accessor :code
|
616
|
+
|
617
|
+
# A list of messages that carry the error details. There is a common set of
|
618
|
+
# message types for APIs to use.
|
619
|
+
# Corresponds to the JSON property `details`
|
620
|
+
# @return [Array<Hash<String,Object>>]
|
621
|
+
attr_accessor :details
|
622
|
+
|
623
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
624
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
625
|
+
# field, or localized by the client.
|
626
|
+
# Corresponds to the JSON property `message`
|
627
|
+
# @return [String]
|
628
|
+
attr_accessor :message
|
629
|
+
|
630
|
+
def initialize(**args)
|
631
|
+
update!(**args)
|
632
|
+
end
|
633
|
+
|
634
|
+
# Update properties of this object
|
635
|
+
def update!(**args)
|
636
|
+
@code = args[:code] if args.key?(:code)
|
637
|
+
@details = args[:details] if args.key?(:details)
|
638
|
+
@message = args[:message] if args.key?(:message)
|
639
|
+
end
|
640
|
+
end
|
641
|
+
end
|
642
|
+
end
|
643
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module ParallelstoreV1
|
18
|
+
# Version of the google-apis-parallelstore_v1 gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20241115"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|