google-cloud-netapp-v1 0.a → 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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/netapp/v1/active_directory_pb.rb +56 -0
  6. data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +57 -0
  7. data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +120 -0
  8. data/lib/google/cloud/netapp/v1/common_pb.rb +43 -0
  9. data/lib/google/cloud/netapp/v1/kms_pb.rb +59 -0
  10. data/lib/google/cloud/netapp/v1/netapp/client.rb +4110 -0
  11. data/lib/google/cloud/netapp/v1/netapp/credentials.rb +47 -0
  12. data/lib/google/cloud/netapp/v1/netapp/operations.rb +770 -0
  13. data/lib/google/cloud/netapp/v1/netapp/paths.rb +185 -0
  14. data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +3071 -0
  15. data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +795 -0
  16. data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +2190 -0
  17. data/lib/google/cloud/netapp/v1/netapp/rest.rb +53 -0
  18. data/lib/google/cloud/netapp/v1/netapp.rb +56 -0
  19. data/lib/google/cloud/netapp/v1/replication_pb.rb +66 -0
  20. data/lib/google/cloud/netapp/v1/rest.rb +37 -0
  21. data/lib/google/cloud/netapp/v1/snapshot_pb.rb +56 -0
  22. data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +57 -0
  23. data/lib/google/cloud/netapp/v1/version.rb +8 -3
  24. data/lib/google/cloud/netapp/v1/volume_pb.rb +71 -0
  25. data/lib/google/cloud/netapp/v1.rb +45 -0
  26. data/lib/google-cloud-netapp-v1.rb +21 -0
  27. data/proto_docs/README.md +4 -0
  28. data/proto_docs/google/api/client.rb +381 -0
  29. data/proto_docs/google/api/field_behavior.rb +71 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/api/resource.rb +222 -0
  32. data/proto_docs/google/cloud/netapp/v1/active_directory.rb +222 -0
  33. data/proto_docs/google/cloud/netapp/v1/cloud_netapp_service.rb +57 -0
  34. data/proto_docs/google/cloud/netapp/v1/common.rb +50 -0
  35. data/proto_docs/google/cloud/netapp/v1/kms.rb +230 -0
  36. data/proto_docs/google/cloud/netapp/v1/replication.rb +349 -0
  37. data/proto_docs/google/cloud/netapp/v1/snapshot.rb +179 -0
  38. data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +205 -0
  39. data/proto_docs/google/cloud/netapp/v1/volume.rb +530 -0
  40. data/proto_docs/google/longrunning/operations.rb +164 -0
  41. data/proto_docs/google/protobuf/any.rb +144 -0
  42. data/proto_docs/google/protobuf/duration.rb +98 -0
  43. data/proto_docs/google/protobuf/empty.rb +34 -0
  44. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  45. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  46. data/proto_docs/google/rpc/status.rb +48 -0
  47. metadata +224 -13
@@ -0,0 +1,530 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module NetApp
23
+ module V1
24
+ # Message for requesting list of Volumes
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. Parent value for ListVolumesRequest
28
+ # @!attribute [rw] page_size
29
+ # @return [::Integer]
30
+ # Requested page size. Server may return fewer items than requested.
31
+ # If unspecified, the server will pick an appropriate default.
32
+ # @!attribute [rw] page_token
33
+ # @return [::String]
34
+ # A token identifying a page of results the server should return.
35
+ # @!attribute [rw] filter
36
+ # @return [::String]
37
+ # Filtering results
38
+ # @!attribute [rw] order_by
39
+ # @return [::String]
40
+ # Hint for how to order the results
41
+ class ListVolumesRequest
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+
46
+ # Message for response to listing Volumes
47
+ # @!attribute [rw] volumes
48
+ # @return [::Array<::Google::Cloud::NetApp::V1::Volume>]
49
+ # The list of Volume
50
+ # @!attribute [rw] next_page_token
51
+ # @return [::String]
52
+ # A token identifying a page of results the server should return.
53
+ # @!attribute [rw] unreachable
54
+ # @return [::Array<::String>]
55
+ # Locations that could not be reached.
56
+ class ListVolumesResponse
57
+ include ::Google::Protobuf::MessageExts
58
+ extend ::Google::Protobuf::MessageExts::ClassMethods
59
+ end
60
+
61
+ # Message for getting a Volume
62
+ # @!attribute [rw] name
63
+ # @return [::String]
64
+ # Required. Name of the volume
65
+ class GetVolumeRequest
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # Message for creating a Volume
71
+ # @!attribute [rw] parent
72
+ # @return [::String]
73
+ # Required. Value for parent.
74
+ # @!attribute [rw] volume_id
75
+ # @return [::String]
76
+ # Required. Id of the requesting volume
77
+ # If auto-generating Id server-side, remove this field and
78
+ # Id from the method_signature of Create RPC
79
+ # @!attribute [rw] volume
80
+ # @return [::Google::Cloud::NetApp::V1::Volume]
81
+ # Required. The volume being created.
82
+ class CreateVolumeRequest
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+ end
86
+
87
+ # Message for updating a Volume
88
+ # @!attribute [rw] update_mask
89
+ # @return [::Google::Protobuf::FieldMask]
90
+ # Required. Field mask is used to specify the fields to be overwritten in the
91
+ # Volume resource by the update.
92
+ # The fields specified in the update_mask are relative to the resource, not
93
+ # the full request. A field will be overwritten if it is in the mask. If the
94
+ # user does not provide a mask then all fields will be overwritten.
95
+ # @!attribute [rw] volume
96
+ # @return [::Google::Cloud::NetApp::V1::Volume]
97
+ # Required. The volume being updated
98
+ class UpdateVolumeRequest
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # Message for deleting a Volume
104
+ # @!attribute [rw] name
105
+ # @return [::String]
106
+ # Required. Name of the volume
107
+ # @!attribute [rw] force
108
+ # @return [::Boolean]
109
+ # If this field is set as true, CCFE will not block the volume resource
110
+ # deletion even if it has any snapshots resource. (Otherwise, the request
111
+ # will only work if the volume has no snapshots.)
112
+ class DeleteVolumeRequest
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+
117
+ # RevertVolumeRequest reverts the given volume to the specified snapshot.
118
+ # @!attribute [rw] name
119
+ # @return [::String]
120
+ # Required. The resource name of the volume, in the format of
121
+ # projects/\\{project_id}/locations/\\{location}/volumes/\\{volume_id}.
122
+ # @!attribute [rw] snapshot_id
123
+ # @return [::String]
124
+ # Required. The snapshot resource ID, in the format 'my-snapshot', where the
125
+ # specified ID is the \\{snapshot_id} of the fully qualified name like
126
+ # projects/\\{project_id}/locations/\\{location_id}/volumes/\\{volume_id}/snapshots/\\{snapshot_id}
127
+ class RevertVolumeRequest
128
+ include ::Google::Protobuf::MessageExts
129
+ extend ::Google::Protobuf::MessageExts::ClassMethods
130
+ end
131
+
132
+ # Volume provides a filesystem that you can mount.
133
+ # @!attribute [r] name
134
+ # @return [::String]
135
+ # Output only. Name of the volume
136
+ # @!attribute [r] state
137
+ # @return [::Google::Cloud::NetApp::V1::Volume::State]
138
+ # Output only. State of the volume
139
+ # @!attribute [r] state_details
140
+ # @return [::String]
141
+ # Output only. State details of the volume
142
+ # @!attribute [r] create_time
143
+ # @return [::Google::Protobuf::Timestamp]
144
+ # Output only. Create time of the volume
145
+ # @!attribute [rw] share_name
146
+ # @return [::String]
147
+ # Required. Share name of the volume
148
+ # @!attribute [r] psa_range
149
+ # @return [::String]
150
+ # Output only. Name of the Private Service Access allocated range. This is
151
+ # optional. If not provided, any available range will be chosen.
152
+ # @!attribute [rw] storage_pool
153
+ # @return [::String]
154
+ # Required. StoragePool name of the volume
155
+ # @!attribute [r] network
156
+ # @return [::String]
157
+ # Output only. VPC Network name.
158
+ # Format: projects/\\{project}/global/networks/\\{network}
159
+ # @!attribute [r] service_level
160
+ # @return [::Google::Cloud::NetApp::V1::ServiceLevel]
161
+ # Output only. Service level of the volume
162
+ # @!attribute [rw] capacity_gib
163
+ # @return [::Integer]
164
+ # Required. Capacity in GIB of the volume
165
+ # @!attribute [rw] export_policy
166
+ # @return [::Google::Cloud::NetApp::V1::ExportPolicy]
167
+ # Optional. Export policy of the volume
168
+ # @!attribute [rw] protocols
169
+ # @return [::Array<::Google::Cloud::NetApp::V1::Protocols>]
170
+ # Required. Protocols required for the volume
171
+ # @!attribute [rw] smb_settings
172
+ # @return [::Array<::Google::Cloud::NetApp::V1::SMBSettings>]
173
+ # Optional. SMB share settings for the volume.
174
+ # @!attribute [r] mount_options
175
+ # @return [::Array<::Google::Cloud::NetApp::V1::MountOption>]
176
+ # Output only. Mount options of this volume
177
+ # @!attribute [rw] unix_permissions
178
+ # @return [::String]
179
+ # Optional. Default unix style permission (e.g. 777) the mount point will be
180
+ # created with. Applicable for NFS protocol types only.
181
+ # @!attribute [rw] labels
182
+ # @return [::Google::Protobuf::Map{::String => ::String}]
183
+ # Optional. Labels as key value pairs
184
+ # @!attribute [rw] description
185
+ # @return [::String]
186
+ # Optional. Description of the volume
187
+ # @!attribute [rw] snapshot_policy
188
+ # @return [::Google::Cloud::NetApp::V1::SnapshotPolicy]
189
+ # Optional. SnapshotPolicy for a volume.
190
+ # @!attribute [rw] snap_reserve
191
+ # @return [::Float]
192
+ # Optional. Snap_reserve specifies percentage of volume storage reserved for
193
+ # snapshot storage. Default is 0 percent.
194
+ # @!attribute [rw] snapshot_directory
195
+ # @return [::Boolean]
196
+ # Optional. Snapshot_directory if enabled (true) the volume will contain a
197
+ # read-only .snapshot directory which provides access to each of the volume's
198
+ # snapshots.
199
+ # @!attribute [r] used_gib
200
+ # @return [::Integer]
201
+ # Output only. Used capacity in GIB of the volume. This is computed
202
+ # periodically and it does not represent the realtime usage.
203
+ # @!attribute [rw] security_style
204
+ # @return [::Google::Cloud::NetApp::V1::SecurityStyle]
205
+ # Optional. Security Style of the Volume
206
+ # @!attribute [rw] kerberos_enabled
207
+ # @return [::Boolean]
208
+ # Optional. Flag indicating if the volume is a kerberos volume or not, export
209
+ # policy rules control kerberos security modes (krb5, krb5i, krb5p).
210
+ # @!attribute [r] ldap_enabled
211
+ # @return [::Boolean]
212
+ # Output only. Flag indicating if the volume is NFS LDAP enabled or not.
213
+ # @!attribute [r] active_directory
214
+ # @return [::String]
215
+ # Output only. Specifies the ActiveDirectory name of a SMB volume.
216
+ # @!attribute [rw] restore_parameters
217
+ # @return [::Google::Cloud::NetApp::V1::RestoreParameters]
218
+ # Optional. Specifies the source of the volume to be created from.
219
+ # @!attribute [r] kms_config
220
+ # @return [::String]
221
+ # Output only. Specifies the KMS config to be used for volume encryption.
222
+ # @!attribute [r] encryption_type
223
+ # @return [::Google::Cloud::NetApp::V1::EncryptionType]
224
+ # Output only. Specified the current volume encryption key source.
225
+ # @!attribute [r] has_replication
226
+ # @return [::Boolean]
227
+ # Output only. Indicates whether the volume is part of a replication
228
+ # relationship.
229
+ class Volume
230
+ include ::Google::Protobuf::MessageExts
231
+ extend ::Google::Protobuf::MessageExts::ClassMethods
232
+
233
+ # @!attribute [rw] key
234
+ # @return [::String]
235
+ # @!attribute [rw] value
236
+ # @return [::String]
237
+ class LabelsEntry
238
+ include ::Google::Protobuf::MessageExts
239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
240
+ end
241
+
242
+ # The volume states
243
+ module State
244
+ # Unspecified Volume State
245
+ STATE_UNSPECIFIED = 0
246
+
247
+ # Volume State is Ready
248
+ READY = 1
249
+
250
+ # Volume State is Creating
251
+ CREATING = 2
252
+
253
+ # Volume State is Deleting
254
+ DELETING = 3
255
+
256
+ # Volume State is Updating
257
+ UPDATING = 4
258
+
259
+ # Volume State is Restoring
260
+ RESTORING = 5
261
+
262
+ # Volume State is Disabled
263
+ DISABLED = 6
264
+
265
+ # Volume State is Error
266
+ ERROR = 7
267
+ end
268
+ end
269
+
270
+ # Defines the export policy for the volume.
271
+ # @!attribute [rw] rules
272
+ # @return [::Array<::Google::Cloud::NetApp::V1::SimpleExportPolicyRule>]
273
+ # Required. List of export policy rules
274
+ class ExportPolicy
275
+ include ::Google::Protobuf::MessageExts
276
+ extend ::Google::Protobuf::MessageExts::ClassMethods
277
+ end
278
+
279
+ # An export policy rule describing various export options.
280
+ # @!attribute [rw] allowed_clients
281
+ # @return [::String]
282
+ # Comma separated list of allowed clients IP addresses
283
+ # @!attribute [rw] has_root_access
284
+ # @return [::String]
285
+ # Whether Unix root access will be granted.
286
+ # @!attribute [rw] access_type
287
+ # @return [::Google::Cloud::NetApp::V1::AccessType]
288
+ # Access type (ReadWrite, ReadOnly, None)
289
+ # @!attribute [rw] nfsv3
290
+ # @return [::Boolean]
291
+ # NFS V3 protocol.
292
+ # @!attribute [rw] nfsv4
293
+ # @return [::Boolean]
294
+ # NFS V4 protocol.
295
+ # @!attribute [rw] kerberos_5_read_only
296
+ # @return [::Boolean]
297
+ # If enabled (true) the rule defines a read only access for clients matching
298
+ # the 'allowedClients' specification. It enables nfs clients to mount using
299
+ # 'authentication' kerberos security mode.
300
+ # @!attribute [rw] kerberos_5_read_write
301
+ # @return [::Boolean]
302
+ # If enabled (true) the rule defines read and write access for clients
303
+ # matching the 'allowedClients' specification. It enables nfs clients to
304
+ # mount using 'authentication' kerberos security mode. The
305
+ # 'kerberos5ReadOnly' value be ignored if this is enabled.
306
+ # @!attribute [rw] kerberos_5i_read_only
307
+ # @return [::Boolean]
308
+ # If enabled (true) the rule defines a read only access for clients matching
309
+ # the 'allowedClients' specification. It enables nfs clients to mount using
310
+ # 'integrity' kerberos security mode.
311
+ # @!attribute [rw] kerberos_5i_read_write
312
+ # @return [::Boolean]
313
+ # If enabled (true) the rule defines read and write access for clients
314
+ # matching the 'allowedClients' specification. It enables nfs clients to
315
+ # mount using 'integrity' kerberos security mode. The 'kerberos5iReadOnly'
316
+ # value be ignored if this is enabled.
317
+ # @!attribute [rw] kerberos_5p_read_only
318
+ # @return [::Boolean]
319
+ # If enabled (true) the rule defines a read only access for clients matching
320
+ # the 'allowedClients' specification. It enables nfs clients to mount using
321
+ # 'privacy' kerberos security mode.
322
+ # @!attribute [rw] kerberos_5p_read_write
323
+ # @return [::Boolean]
324
+ # If enabled (true) the rule defines read and write access for clients
325
+ # matching the 'allowedClients' specification. It enables nfs clients to
326
+ # mount using 'privacy' kerberos security mode. The 'kerberos5pReadOnly'
327
+ # value be ignored if this is enabled.
328
+ class SimpleExportPolicyRule
329
+ include ::Google::Protobuf::MessageExts
330
+ extend ::Google::Protobuf::MessageExts::ClassMethods
331
+ end
332
+
333
+ # Snapshot Policy for a volume.
334
+ # @!attribute [rw] enabled
335
+ # @return [::Boolean]
336
+ # If enabled, make snapshots automatically according to the schedules.
337
+ # Default is false.
338
+ # @!attribute [rw] hourly_schedule
339
+ # @return [::Google::Cloud::NetApp::V1::HourlySchedule]
340
+ # Hourly schedule policy.
341
+ # @!attribute [rw] daily_schedule
342
+ # @return [::Google::Cloud::NetApp::V1::DailySchedule]
343
+ # Daily schedule policy.
344
+ # @!attribute [rw] weekly_schedule
345
+ # @return [::Google::Cloud::NetApp::V1::WeeklySchedule]
346
+ # Weekly schedule policy.
347
+ # @!attribute [rw] monthly_schedule
348
+ # @return [::Google::Cloud::NetApp::V1::MonthlySchedule]
349
+ # Monthly schedule policy.
350
+ class SnapshotPolicy
351
+ include ::Google::Protobuf::MessageExts
352
+ extend ::Google::Protobuf::MessageExts::ClassMethods
353
+ end
354
+
355
+ # Make a snapshot every hour e.g. at 04:00, 05:00, 06:00.
356
+ # @!attribute [rw] snapshots_to_keep
357
+ # @return [::Float]
358
+ # The maximum number of Snapshots to keep for the hourly schedule
359
+ # @!attribute [rw] minute
360
+ # @return [::Float]
361
+ # Set the minute of the hour to start the snapshot (0-59), defaults to the
362
+ # top of the hour (0).
363
+ class HourlySchedule
364
+ include ::Google::Protobuf::MessageExts
365
+ extend ::Google::Protobuf::MessageExts::ClassMethods
366
+ end
367
+
368
+ # Make a snapshot every day e.g. at 04:00, 05:20, 23:50
369
+ # @!attribute [rw] snapshots_to_keep
370
+ # @return [::Float]
371
+ # The maximum number of Snapshots to keep for the hourly schedule
372
+ # @!attribute [rw] minute
373
+ # @return [::Float]
374
+ # Set the minute of the hour to start the snapshot (0-59), defaults to the
375
+ # top of the hour (0).
376
+ # @!attribute [rw] hour
377
+ # @return [::Float]
378
+ # Set the hour to start the snapshot (0-23), defaults to midnight (0).
379
+ class DailySchedule
380
+ include ::Google::Protobuf::MessageExts
381
+ extend ::Google::Protobuf::MessageExts::ClassMethods
382
+ end
383
+
384
+ # Make a snapshot every week e.g. at Monday 04:00, Wednesday 05:20, Sunday
385
+ # 23:50
386
+ # @!attribute [rw] snapshots_to_keep
387
+ # @return [::Float]
388
+ # The maximum number of Snapshots to keep for the hourly schedule
389
+ # @!attribute [rw] minute
390
+ # @return [::Float]
391
+ # Set the minute of the hour to start the snapshot (0-59), defaults to the
392
+ # top of the hour (0).
393
+ # @!attribute [rw] hour
394
+ # @return [::Float]
395
+ # Set the hour to start the snapshot (0-23), defaults to midnight (0).
396
+ # @!attribute [rw] day
397
+ # @return [::String]
398
+ # Set the day or days of the week to make a snapshot. Accepts a comma
399
+ # separated days of the week. Defaults to 'Sunday'.
400
+ class WeeklySchedule
401
+ include ::Google::Protobuf::MessageExts
402
+ extend ::Google::Protobuf::MessageExts::ClassMethods
403
+ end
404
+
405
+ # Make a snapshot once a month e.g. at 2nd 04:00, 7th 05:20, 24th 23:50
406
+ # @!attribute [rw] snapshots_to_keep
407
+ # @return [::Float]
408
+ # The maximum number of Snapshots to keep for the hourly schedule
409
+ # @!attribute [rw] minute
410
+ # @return [::Float]
411
+ # Set the minute of the hour to start the snapshot (0-59), defaults to the
412
+ # top of the hour (0).
413
+ # @!attribute [rw] hour
414
+ # @return [::Float]
415
+ # Set the hour to start the snapshot (0-23), defaults to midnight (0).
416
+ # @!attribute [rw] days_of_month
417
+ # @return [::String]
418
+ # Set the day or days of the month to make a snapshot (1-31). Accepts a
419
+ # comma separated number of days. Defaults to '1'.
420
+ class MonthlySchedule
421
+ include ::Google::Protobuf::MessageExts
422
+ extend ::Google::Protobuf::MessageExts::ClassMethods
423
+ end
424
+
425
+ # View only mount options for a volume.
426
+ # @!attribute [rw] export
427
+ # @return [::String]
428
+ # Export string
429
+ # @!attribute [rw] export_full
430
+ # @return [::String]
431
+ # Full export string
432
+ # @!attribute [rw] protocol
433
+ # @return [::Google::Cloud::NetApp::V1::Protocols]
434
+ # Protocol to mount with.
435
+ # @!attribute [rw] instructions
436
+ # @return [::String]
437
+ # Instructions for mounting
438
+ class MountOption
439
+ include ::Google::Protobuf::MessageExts
440
+ extend ::Google::Protobuf::MessageExts::ClassMethods
441
+ end
442
+
443
+ # The RestoreParameters if volume is created from a snapshot or backup.
444
+ # @!attribute [rw] source_snapshot
445
+ # @return [::String]
446
+ # Full name of the snapshot resource.
447
+ # Format:
448
+ # projects/\\{project}/locations/\\{location}/volumes/\\{volume}/snapshots/\\{snapshot}
449
+ class RestoreParameters
450
+ include ::Google::Protobuf::MessageExts
451
+ extend ::Google::Protobuf::MessageExts::ClassMethods
452
+ end
453
+
454
+ module Protocols
455
+ # Unspecified protocol
456
+ PROTOCOLS_UNSPECIFIED = 0
457
+
458
+ # NFS V3 protocol
459
+ NFSV3 = 1
460
+
461
+ # NFS V4 protocol
462
+ NFSV4 = 2
463
+
464
+ # SMB protocol
465
+ SMB = 3
466
+ end
467
+
468
+ module AccessType
469
+ # Unspecified Access Type
470
+ ACCESS_TYPE_UNSPECIFIED = 0
471
+
472
+ # Read Only
473
+ READ_ONLY = 1
474
+
475
+ # Read Write
476
+ READ_WRITE = 2
477
+
478
+ # None
479
+ READ_NONE = 3
480
+ end
481
+
482
+ # SMBSettings
483
+ # Modifies the behaviour of a SMB volume.
484
+ module SMBSettings
485
+ # Unspecified default option
486
+ SMB_SETTINGS_UNSPECIFIED = 0
487
+
488
+ # SMB setting encrypt data
489
+ ENCRYPT_DATA = 1
490
+
491
+ # SMB setting browsable
492
+ BROWSABLE = 2
493
+
494
+ # SMB setting notify change
495
+ CHANGE_NOTIFY = 3
496
+
497
+ # SMB setting not to notify change
498
+ NON_BROWSABLE = 4
499
+
500
+ # SMB setting oplocks
501
+ OPLOCKS = 5
502
+
503
+ # SMB setting to show snapshots
504
+ SHOW_SNAPSHOT = 6
505
+
506
+ # SMB setting to show previous versions
507
+ SHOW_PREVIOUS_VERSIONS = 7
508
+
509
+ # SMB setting to access volume based on enumerartion
510
+ ACCESS_BASED_ENUMERATION = 8
511
+
512
+ # Continuously available enumeration
513
+ CONTINUOUSLY_AVAILABLE = 9
514
+ end
515
+
516
+ # The security style of the volume, can be either UNIX or NTFS.
517
+ module SecurityStyle
518
+ # SecurityStyle is unspecified
519
+ SECURITY_STYLE_UNSPECIFIED = 0
520
+
521
+ # SecurityStyle uses NTFS
522
+ NTFS = 1
523
+
524
+ # SecurityStyle uses NTFS
525
+ UNIX = 2
526
+ end
527
+ end
528
+ end
529
+ end
530
+ end
@@ -0,0 +1,164 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Longrunning
22
+ # This resource represents a long-running operation that is the result of a
23
+ # network API call.
24
+ # @!attribute [rw] name
25
+ # @return [::String]
26
+ # The server-assigned name, which is only unique within the same service that
27
+ # originally returns it. If you use the default HTTP mapping, the
28
+ # `name` should be a resource name ending with `operations/{unique_id}`.
29
+ # @!attribute [rw] metadata
30
+ # @return [::Google::Protobuf::Any]
31
+ # Service-specific metadata associated with the operation. It typically
32
+ # contains progress information and common metadata such as create time.
33
+ # Some services might not provide such metadata. Any method that returns a
34
+ # long-running operation should document the metadata type, if any.
35
+ # @!attribute [rw] done
36
+ # @return [::Boolean]
37
+ # If the value is `false`, it means the operation is still in progress.
38
+ # If `true`, the operation is completed, and either `error` or `response` is
39
+ # available.
40
+ # @!attribute [rw] error
41
+ # @return [::Google::Rpc::Status]
42
+ # The error result of the operation in case of failure or cancellation.
43
+ # @!attribute [rw] response
44
+ # @return [::Google::Protobuf::Any]
45
+ # The normal response of the operation in case of success. If the original
46
+ # method returns no data on success, such as `Delete`, the response is
47
+ # `google.protobuf.Empty`. If the original method is standard
48
+ # `Get`/`Create`/`Update`, the response should be the resource. For other
49
+ # methods, the response should have the type `XxxResponse`, where `Xxx`
50
+ # is the original method name. For example, if the original method name
51
+ # is `TakeSnapshot()`, the inferred response type is
52
+ # `TakeSnapshotResponse`.
53
+ class Operation
54
+ include ::Google::Protobuf::MessageExts
55
+ extend ::Google::Protobuf::MessageExts::ClassMethods
56
+ end
57
+
58
+ # The request message for Operations.GetOperation.
59
+ # @!attribute [rw] name
60
+ # @return [::String]
61
+ # The name of the operation resource.
62
+ class GetOperationRequest
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # The request message for Operations.ListOperations.
68
+ # @!attribute [rw] name
69
+ # @return [::String]
70
+ # The name of the operation's parent resource.
71
+ # @!attribute [rw] filter
72
+ # @return [::String]
73
+ # The standard list filter.
74
+ # @!attribute [rw] page_size
75
+ # @return [::Integer]
76
+ # The standard list page size.
77
+ # @!attribute [rw] page_token
78
+ # @return [::String]
79
+ # The standard list page token.
80
+ class ListOperationsRequest
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
+ end
84
+
85
+ # The response message for Operations.ListOperations.
86
+ # @!attribute [rw] operations
87
+ # @return [::Array<::Google::Longrunning::Operation>]
88
+ # A list of operations that matches the specified filter in the request.
89
+ # @!attribute [rw] next_page_token
90
+ # @return [::String]
91
+ # The standard List next-page token.
92
+ class ListOperationsResponse
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # The request message for Operations.CancelOperation.
98
+ # @!attribute [rw] name
99
+ # @return [::String]
100
+ # The name of the operation resource to be cancelled.
101
+ class CancelOperationRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # The request message for Operations.DeleteOperation.
107
+ # @!attribute [rw] name
108
+ # @return [::String]
109
+ # The name of the operation resource to be deleted.
110
+ class DeleteOperationRequest
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+ end
114
+
115
+ # The request message for Operations.WaitOperation.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # The name of the operation resource to wait on.
119
+ # @!attribute [rw] timeout
120
+ # @return [::Google::Protobuf::Duration]
121
+ # The maximum duration to wait before timing out. If left blank, the wait
122
+ # will be at most the time permitted by the underlying HTTP/RPC protocol.
123
+ # If RPC context deadline is also specified, the shorter one will be used.
124
+ class WaitOperationRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
129
+ # A message representing the message types used by a long-running operation.
130
+ #
131
+ # Example:
132
+ #
133
+ # rpc LongRunningRecognize(LongRunningRecognizeRequest)
134
+ # returns (google.longrunning.Operation) {
135
+ # option (google.longrunning.operation_info) = {
136
+ # response_type: "LongRunningRecognizeResponse"
137
+ # metadata_type: "LongRunningRecognizeMetadata"
138
+ # };
139
+ # }
140
+ # @!attribute [rw] response_type
141
+ # @return [::String]
142
+ # Required. The message name of the primary return type for this
143
+ # long-running operation.
144
+ # This type will be used to deserialize the LRO's response.
145
+ #
146
+ # If the response is in a different package from the rpc, a fully-qualified
147
+ # message name must be used (e.g. `google.protobuf.Struct`).
148
+ #
149
+ # Note: Altering this value constitutes a breaking change.
150
+ # @!attribute [rw] metadata_type
151
+ # @return [::String]
152
+ # Required. The message name of the metadata type for this long-running
153
+ # operation.
154
+ #
155
+ # If the response is in a different package from the rpc, a fully-qualified
156
+ # message name must be used (e.g. `google.protobuf.Struct`).
157
+ #
158
+ # Note: Altering this value constitutes a breaking change.
159
+ class OperationInfo
160
+ include ::Google::Protobuf::MessageExts
161
+ extend ::Google::Protobuf::MessageExts::ClassMethods
162
+ end
163
+ end
164
+ end