google-apis-file_v1beta1 0.73.0 → 0.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ffece15fdbd581c5e8ed46188bff381d301407f5f8953946ef48ecb2fc39afb8
|
|
4
|
+
data.tar.gz: ed0eb5db2b5d831d35522c234445241dfc6a9d8059edf0b3eb3b079bee1b7cae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c413065a36dedd57540035eb6419a40f1d80a07b4e3a58416dab57cd7c91798d54fc479f18064a5c7233af1215728882fa38aa630cbccaaf79e417f6c1b416e0
|
|
7
|
+
data.tar.gz: a4e0fd20aa4d0a4b80c8e4fb6f99b646869e184dd4e87b6a2ea191d6f23e2be2a62eceb0627d22e0641026009f3c4f1a5d7f11e9db7e4bb62bb7fa5ace1805fb
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Release history for google-apis-file_v1beta1
|
|
2
2
|
|
|
3
|
+
### v0.74.0 (2026-10-21)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20261006
|
|
6
|
+
* Regenerated using generator version 0.19.1
|
|
7
|
+
|
|
3
8
|
### v0.73.0 (2026-09-06)
|
|
4
9
|
|
|
5
10
|
* Regenerated from discovery document revision 20260827
|
|
@@ -219,6 +219,54 @@ module Google
|
|
|
219
219
|
end
|
|
220
220
|
end
|
|
221
221
|
|
|
222
|
+
# Request for creating a volume from an existing data source (such as a backup).
|
|
223
|
+
class CreateFromSourceRequest
|
|
224
|
+
include Google::Apis::Core::Hashable
|
|
225
|
+
|
|
226
|
+
# The resource name of the backup to create from. Format: projects/`project`/
|
|
227
|
+
# locations/`location`/backups/`backup`
|
|
228
|
+
# Corresponds to the JSON property `backup`
|
|
229
|
+
# @return [String]
|
|
230
|
+
attr_accessor :backup
|
|
231
|
+
|
|
232
|
+
# Optional. IP ACLs defining permissions/ACLs to apply to the newly created
|
|
233
|
+
# volume.
|
|
234
|
+
# Corresponds to the JSON property `ipAcls`
|
|
235
|
+
# @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
|
|
236
|
+
attr_accessor :ip_acls
|
|
237
|
+
|
|
238
|
+
# Optional. The limit for how much data can be written to this volume, in MiB.
|
|
239
|
+
# Corresponds to the JSON property `quota`
|
|
240
|
+
# @return [Fixnum]
|
|
241
|
+
attr_accessor :quota
|
|
242
|
+
|
|
243
|
+
# Optional. A unique ID used to identify the request, so retries are idempotent.
|
|
244
|
+
# Must be a valid UUID4; the zero UUID (`00000000-0000-0000-0000-000000000000`)
|
|
245
|
+
# is not supported.
|
|
246
|
+
# Corresponds to the JSON property `requestId`
|
|
247
|
+
# @return [String]
|
|
248
|
+
attr_accessor :request_id
|
|
249
|
+
|
|
250
|
+
# Required. Unique identifier for the volume which also appears in the volumes
|
|
251
|
+
# resource name.
|
|
252
|
+
# Corresponds to the JSON property `volumeId`
|
|
253
|
+
# @return [String]
|
|
254
|
+
attr_accessor :volume_id
|
|
255
|
+
|
|
256
|
+
def initialize(**args)
|
|
257
|
+
update!(**args)
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Update properties of this object
|
|
261
|
+
def update!(**args)
|
|
262
|
+
@backup = args[:backup] if args.key?(:backup)
|
|
263
|
+
@ip_acls = args[:ip_acls] if args.key?(:ip_acls)
|
|
264
|
+
@quota = args[:quota] if args.key?(:quota)
|
|
265
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
266
|
+
@volume_id = args[:volume_id] if args.key?(:volume_id)
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
222
270
|
# Time window specified for daily operations.
|
|
223
271
|
class DailyCycle
|
|
224
272
|
include Google::Apis::Core::Hashable
|
|
@@ -287,6 +335,19 @@ module Google
|
|
|
287
335
|
end
|
|
288
336
|
end
|
|
289
337
|
|
|
338
|
+
# DeleteVolumeRequest deletes a volume.
|
|
339
|
+
class DeleteVolumeRequest
|
|
340
|
+
include Google::Apis::Core::Hashable
|
|
341
|
+
|
|
342
|
+
def initialize(**args)
|
|
343
|
+
update!(**args)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Update properties of this object
|
|
347
|
+
def update!(**args)
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
|
|
290
351
|
# DenyMaintenancePeriod definition. Maintenance is forbidden within the deny
|
|
291
352
|
# period. The start_date must be less than the end_date.
|
|
292
353
|
class DenyMaintenancePeriod
|
|
@@ -2148,9 +2209,12 @@ module Google
|
|
|
2148
2209
|
class RestoreConfig
|
|
2149
2210
|
include Google::Apis::Core::Hashable
|
|
2150
2211
|
|
|
2151
|
-
# Optional.
|
|
2152
|
-
#
|
|
2153
|
-
#
|
|
2212
|
+
# Optional. A collection of paths/patterns to restore from the backup. If empty,
|
|
2213
|
+
# a full restore is performed. A valid path is relative to the file share's
|
|
2214
|
+
# mount point and must not include a trailing slash. The path must start with a
|
|
2215
|
+
# leading `/`. Example: If you want to restore `/mnt/share/dir1/file.txt`, the
|
|
2216
|
+
# path pattern must be `/dir1/file.txt`. If you want to restore `/mnt/share/dir1/
|
|
2217
|
+
# `, the path pattern must be `/dir1`. Currently only single path is supported,
|
|
2154
2218
|
# Glob patterns are not supported.
|
|
2155
2219
|
# Corresponds to the JSON property `pathPatterns`
|
|
2156
2220
|
# @return [Array<String>]
|
|
@@ -2501,6 +2565,39 @@ module Google
|
|
|
2501
2565
|
end
|
|
2502
2566
|
end
|
|
2503
2567
|
|
|
2568
|
+
# Request for unfreezing a volume.
|
|
2569
|
+
class UnfreezeVolumeRequest
|
|
2570
|
+
include Google::Apis::Core::Hashable
|
|
2571
|
+
|
|
2572
|
+
# Optional. IP ACLs defining permissions/ACLs to apply to the unfrozen volume
|
|
2573
|
+
# Corresponds to the JSON property `ipAcls`
|
|
2574
|
+
# @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
|
|
2575
|
+
attr_accessor :ip_acls
|
|
2576
|
+
|
|
2577
|
+
# Optional. The limit for how much data can be written to this volume, in MiB.
|
|
2578
|
+
# Corresponds to the JSON property `quota`
|
|
2579
|
+
# @return [Fixnum]
|
|
2580
|
+
attr_accessor :quota
|
|
2581
|
+
|
|
2582
|
+
# Optional. A unique ID used to identify the request, so retries are idempotent.
|
|
2583
|
+
# Must be a valid UUID4; the zero UUID (`00000000-0000-0000-0000-000000000000`)
|
|
2584
|
+
# is not supported.
|
|
2585
|
+
# Corresponds to the JSON property `requestId`
|
|
2586
|
+
# @return [String]
|
|
2587
|
+
attr_accessor :request_id
|
|
2588
|
+
|
|
2589
|
+
def initialize(**args)
|
|
2590
|
+
update!(**args)
|
|
2591
|
+
end
|
|
2592
|
+
|
|
2593
|
+
# Update properties of this object
|
|
2594
|
+
def update!(**args)
|
|
2595
|
+
@ip_acls = args[:ip_acls] if args.key?(:ip_acls)
|
|
2596
|
+
@quota = args[:quota] if args.key?(:quota)
|
|
2597
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
2598
|
+
end
|
|
2599
|
+
end
|
|
2600
|
+
|
|
2504
2601
|
# Maintenance policy applicable to instance updates.
|
|
2505
2602
|
class UpdatePolicy
|
|
2506
2603
|
include Google::Apis::Core::Hashable
|
|
@@ -2549,6 +2646,11 @@ module Google
|
|
|
2549
2646
|
# @return [String]
|
|
2550
2647
|
attr_accessor :description
|
|
2551
2648
|
|
|
2649
|
+
# Optional. User-defined permissions protecting mount points.
|
|
2650
|
+
# Corresponds to the JSON property `ipAcls`
|
|
2651
|
+
# @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
|
|
2652
|
+
attr_accessor :ip_acls
|
|
2653
|
+
|
|
2552
2654
|
# Optional. Resource labels to represent user provided metadata.
|
|
2553
2655
|
# Corresponds to the JSON property `labels`
|
|
2554
2656
|
# @return [Hash<String,String>]
|
|
@@ -2565,6 +2667,18 @@ module Google
|
|
|
2565
2667
|
# @return [String]
|
|
2566
2668
|
attr_accessor :name
|
|
2567
2669
|
|
|
2670
|
+
# Optional. The maximum size of the volume in mebibytes (MiB).
|
|
2671
|
+
# Corresponds to the JSON property `quotaMib`
|
|
2672
|
+
# @return [Fixnum]
|
|
2673
|
+
attr_accessor :quota_mib
|
|
2674
|
+
|
|
2675
|
+
# Optional. The state of the volume. This field is caller-settable via `
|
|
2676
|
+
# UpdateVolume` to transition a volume from `HOT` to `COLD` (freezing the volume)
|
|
2677
|
+
# . In `CreateVolume`, this field is output-only and initialized to `HOT`.
|
|
2678
|
+
# Corresponds to the JSON property `state`
|
|
2679
|
+
# @return [String]
|
|
2680
|
+
attr_accessor :state
|
|
2681
|
+
|
|
2568
2682
|
def initialize(**args)
|
|
2569
2683
|
update!(**args)
|
|
2570
2684
|
end
|
|
@@ -2573,9 +2687,12 @@ module Google
|
|
|
2573
2687
|
def update!(**args)
|
|
2574
2688
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2575
2689
|
@description = args[:description] if args.key?(:description)
|
|
2690
|
+
@ip_acls = args[:ip_acls] if args.key?(:ip_acls)
|
|
2576
2691
|
@labels = args[:labels] if args.key?(:labels)
|
|
2577
2692
|
@mount_point = args[:mount_point] if args.key?(:mount_point)
|
|
2578
2693
|
@name = args[:name] if args.key?(:name)
|
|
2694
|
+
@quota_mib = args[:quota_mib] if args.key?(:quota_mib)
|
|
2695
|
+
@state = args[:state] if args.key?(:state)
|
|
2579
2696
|
end
|
|
2580
2697
|
end
|
|
2581
2698
|
|
|
@@ -2583,6 +2700,11 @@ module Google
|
|
|
2583
2700
|
class VolumePool
|
|
2584
2701
|
include Google::Apis::Core::Hashable
|
|
2585
2702
|
|
|
2703
|
+
# Optional. The number of active volumes. Default: 100.
|
|
2704
|
+
# Corresponds to the JSON property `activeVolumeCount`
|
|
2705
|
+
# @return [Fixnum]
|
|
2706
|
+
attr_accessor :active_volume_count
|
|
2707
|
+
|
|
2586
2708
|
# Optional. The number of IOPs provisioned per active volume.
|
|
2587
2709
|
# Corresponds to the JSON property `activeVolumeIops`
|
|
2588
2710
|
# @return [Fixnum]
|
|
@@ -2593,7 +2715,8 @@ module Google
|
|
|
2593
2715
|
# @return [String]
|
|
2594
2716
|
attr_accessor :create_time
|
|
2595
2717
|
|
|
2596
|
-
# Optional. The default quota per volume in MiB.
|
|
2718
|
+
# Optional. The default quota per volume in MiB. Must be between 100 MiB and
|
|
2719
|
+
# 102400 MiB (100 GiB). Default: 1024 MiB.
|
|
2597
2720
|
# Corresponds to the JSON property `defaultVolumeQuotaMib`
|
|
2598
2721
|
# @return [Fixnum]
|
|
2599
2722
|
attr_accessor :default_volume_quota_mib
|
|
@@ -2620,6 +2743,11 @@ module Google
|
|
|
2620
2743
|
# @return [String]
|
|
2621
2744
|
attr_accessor :network
|
|
2622
2745
|
|
|
2746
|
+
# Output only. The state of the volume pool.
|
|
2747
|
+
# Corresponds to the JSON property `state`
|
|
2748
|
+
# @return [String]
|
|
2749
|
+
attr_accessor :state
|
|
2750
|
+
|
|
2623
2751
|
# Output only. System-assigned unique identifier for the volume pool.
|
|
2624
2752
|
# Corresponds to the JSON property `uid`
|
|
2625
2753
|
# @return [String]
|
|
@@ -2631,6 +2759,7 @@ module Google
|
|
|
2631
2759
|
|
|
2632
2760
|
# Update properties of this object
|
|
2633
2761
|
def update!(**args)
|
|
2762
|
+
@active_volume_count = args[:active_volume_count] if args.key?(:active_volume_count)
|
|
2634
2763
|
@active_volume_iops = args[:active_volume_iops] if args.key?(:active_volume_iops)
|
|
2635
2764
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2636
2765
|
@default_volume_quota_mib = args[:default_volume_quota_mib] if args.key?(:default_volume_quota_mib)
|
|
@@ -2638,6 +2767,7 @@ module Google
|
|
|
2638
2767
|
@labels = args[:labels] if args.key?(:labels)
|
|
2639
2768
|
@name = args[:name] if args.key?(:name)
|
|
2640
2769
|
@network = args[:network] if args.key?(:network)
|
|
2770
|
+
@state = args[:state] if args.key?(:state)
|
|
2641
2771
|
@uid = args[:uid] if args.key?(:uid)
|
|
2642
2772
|
end
|
|
2643
2773
|
end
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module FileV1beta1
|
|
18
18
|
# Version of the google-apis-file_v1beta1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.74.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.19.
|
|
22
|
+
GENERATOR_VERSION = "0.19.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20261006"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -46,6 +46,12 @@ module Google
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
class CreateFromSourceRequest
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
49
55
|
class DailyCycle
|
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
57
|
|
|
@@ -58,6 +64,12 @@ module Google
|
|
|
58
64
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
65
|
end
|
|
60
66
|
|
|
67
|
+
class DeleteVolumeRequest
|
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
+
|
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
+
end
|
|
72
|
+
|
|
61
73
|
class DenyMaintenancePeriod
|
|
62
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
75
|
|
|
@@ -370,6 +382,12 @@ module Google
|
|
|
370
382
|
include Google::Apis::Core::JsonObjectSupport
|
|
371
383
|
end
|
|
372
384
|
|
|
385
|
+
class UnfreezeVolumeRequest
|
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
387
|
+
|
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
389
|
+
end
|
|
390
|
+
|
|
373
391
|
class UpdatePolicy
|
|
374
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
375
393
|
|
|
@@ -439,6 +457,18 @@ module Google
|
|
|
439
457
|
end
|
|
440
458
|
end
|
|
441
459
|
|
|
460
|
+
class CreateFromSourceRequest
|
|
461
|
+
# @private
|
|
462
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
463
|
+
property :backup, as: 'backup'
|
|
464
|
+
collection :ip_acls, as: 'ipAcls', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation
|
|
465
|
+
|
|
466
|
+
property :quota, :numeric_string => true, as: 'quota'
|
|
467
|
+
property :request_id, as: 'requestId'
|
|
468
|
+
property :volume_id, as: 'volumeId'
|
|
469
|
+
end
|
|
470
|
+
end
|
|
471
|
+
|
|
442
472
|
class DailyCycle
|
|
443
473
|
# @private
|
|
444
474
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -457,6 +487,12 @@ module Google
|
|
|
457
487
|
end
|
|
458
488
|
end
|
|
459
489
|
|
|
490
|
+
class DeleteVolumeRequest
|
|
491
|
+
# @private
|
|
492
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
460
496
|
class DenyMaintenancePeriod
|
|
461
497
|
# @private
|
|
462
498
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1012,6 +1048,16 @@ module Google
|
|
|
1012
1048
|
end
|
|
1013
1049
|
end
|
|
1014
1050
|
|
|
1051
|
+
class UnfreezeVolumeRequest
|
|
1052
|
+
# @private
|
|
1053
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1054
|
+
collection :ip_acls, as: 'ipAcls', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation
|
|
1055
|
+
|
|
1056
|
+
property :quota, :numeric_string => true, as: 'quota'
|
|
1057
|
+
property :request_id, as: 'requestId'
|
|
1058
|
+
end
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1015
1061
|
class UpdatePolicy
|
|
1016
1062
|
# @private
|
|
1017
1063
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1028,16 +1074,21 @@ module Google
|
|
|
1028
1074
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1029
1075
|
property :create_time, as: 'createTime'
|
|
1030
1076
|
property :description, as: 'description'
|
|
1077
|
+
collection :ip_acls, as: 'ipAcls', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation
|
|
1078
|
+
|
|
1031
1079
|
hash :labels, as: 'labels'
|
|
1032
1080
|
property :mount_point, as: 'mountPoint', class: Google::Apis::FileV1beta1::MountPoint, decorator: Google::Apis::FileV1beta1::MountPoint::Representation
|
|
1033
1081
|
|
|
1034
1082
|
property :name, as: 'name'
|
|
1083
|
+
property :quota_mib, :numeric_string => true, as: 'quotaMib'
|
|
1084
|
+
property :state, as: 'state'
|
|
1035
1085
|
end
|
|
1036
1086
|
end
|
|
1037
1087
|
|
|
1038
1088
|
class VolumePool
|
|
1039
1089
|
# @private
|
|
1040
1090
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1091
|
+
property :active_volume_count, as: 'activeVolumeCount'
|
|
1041
1092
|
property :active_volume_iops, as: 'activeVolumeIops'
|
|
1042
1093
|
property :create_time, as: 'createTime'
|
|
1043
1094
|
property :default_volume_quota_mib, as: 'defaultVolumeQuotaMib'
|
|
@@ -1045,6 +1096,7 @@ module Google
|
|
|
1045
1096
|
hash :labels, as: 'labels'
|
|
1046
1097
|
property :name, as: 'name'
|
|
1047
1098
|
property :network, as: 'network'
|
|
1099
|
+
property :state, as: 'state'
|
|
1048
1100
|
property :uid, as: 'uid'
|
|
1049
1101
|
end
|
|
1050
1102
|
end
|
|
@@ -1516,6 +1516,41 @@ module Google
|
|
|
1516
1516
|
execute_or_queue_command(command, &block)
|
|
1517
1517
|
end
|
|
1518
1518
|
|
|
1519
|
+
# Creates a volume in a volume pool from an existing data source (such as a
|
|
1520
|
+
# Filestore backup).
|
|
1521
|
+
# @param [String] parent
|
|
1522
|
+
# Required. The parent resource where this volume will be created. Format:
|
|
1523
|
+
# projects/`project`/locations/`location`/volumePools/`volume_pool`
|
|
1524
|
+
# @param [Google::Apis::FileV1beta1::CreateFromSourceRequest] create_from_source_request_object
|
|
1525
|
+
# @param [String] fields
|
|
1526
|
+
# Selector specifying which fields to include in a partial response.
|
|
1527
|
+
# @param [String] quota_user
|
|
1528
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1529
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1530
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1531
|
+
# Request-specific options
|
|
1532
|
+
#
|
|
1533
|
+
# @yield [result, err] Result & error if block supplied
|
|
1534
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
|
1535
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1536
|
+
#
|
|
1537
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
|
1538
|
+
#
|
|
1539
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1540
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1541
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1542
|
+
def create_volume_from_source(parent, create_from_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1543
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/volumes:createFromSource', options)
|
|
1544
|
+
command.request_representation = Google::Apis::FileV1beta1::CreateFromSourceRequest::Representation
|
|
1545
|
+
command.request_object = create_from_source_request_object
|
|
1546
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
|
1547
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
|
1548
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1549
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1550
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1551
|
+
execute_or_queue_command(command, &block)
|
|
1552
|
+
end
|
|
1553
|
+
|
|
1519
1554
|
# Deletes a volume.
|
|
1520
1555
|
# @param [String] name
|
|
1521
1556
|
# Required. The volume resource name, in the format `projects/`project`/
|
|
@@ -1547,6 +1582,80 @@ module Google
|
|
|
1547
1582
|
execute_or_queue_command(command, &block)
|
|
1548
1583
|
end
|
|
1549
1584
|
|
|
1585
|
+
# Creates a volume directly on the CLH, bypassing CCFE. This is a temporary PoC
|
|
1586
|
+
# that will be used for testing and removed.
|
|
1587
|
+
# @param [String] parent
|
|
1588
|
+
# Required. The parent volume pool path, in the format `projects/`project`/
|
|
1589
|
+
# locations/`location`/volumePools/`volume_pool``.
|
|
1590
|
+
# @param [Google::Apis::FileV1beta1::Volume] volume_object
|
|
1591
|
+
# @param [String] volume_id
|
|
1592
|
+
# Required. The ID to use for the volume. The ID must be unique within the
|
|
1593
|
+
# specified volume pool.
|
|
1594
|
+
# @param [String] fields
|
|
1595
|
+
# Selector specifying which fields to include in a partial response.
|
|
1596
|
+
# @param [String] quota_user
|
|
1597
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1598
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1599
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1600
|
+
# Request-specific options
|
|
1601
|
+
#
|
|
1602
|
+
# @yield [result, err] Result & error if block supplied
|
|
1603
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Volume] parsed result object
|
|
1604
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1605
|
+
#
|
|
1606
|
+
# @return [Google::Apis::FileV1beta1::Volume]
|
|
1607
|
+
#
|
|
1608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1611
|
+
def direct_project_location_volume_pool_volume_create(parent, volume_object = nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1612
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/volumes:directCreate', options)
|
|
1613
|
+
command.request_representation = Google::Apis::FileV1beta1::Volume::Representation
|
|
1614
|
+
command.request_object = volume_object
|
|
1615
|
+
command.response_representation = Google::Apis::FileV1beta1::Volume::Representation
|
|
1616
|
+
command.response_class = Google::Apis::FileV1beta1::Volume
|
|
1617
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1618
|
+
command.query['volumeId'] = volume_id unless volume_id.nil?
|
|
1619
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1620
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1621
|
+
execute_or_queue_command(command, &block)
|
|
1622
|
+
end
|
|
1623
|
+
|
|
1624
|
+
# Deletes a volume directly on the CLH, bypassing CCFE. This is a temporary PoC
|
|
1625
|
+
# that will be used for testing and removed.
|
|
1626
|
+
# @param [String] name
|
|
1627
|
+
# Required. The volume resource name, in the format `projects/`project`/
|
|
1628
|
+
# locations/`location`/volumePools/`volume_pool`/volumes/`volume``.
|
|
1629
|
+
# @param [Google::Apis::FileV1beta1::DeleteVolumeRequest] delete_volume_request_object
|
|
1630
|
+
# @param [String] fields
|
|
1631
|
+
# Selector specifying which fields to include in a partial response.
|
|
1632
|
+
# @param [String] quota_user
|
|
1633
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1634
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1635
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1636
|
+
# Request-specific options
|
|
1637
|
+
#
|
|
1638
|
+
# @yield [result, err] Result & error if block supplied
|
|
1639
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Empty] parsed result object
|
|
1640
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1641
|
+
#
|
|
1642
|
+
# @return [Google::Apis::FileV1beta1::Empty]
|
|
1643
|
+
#
|
|
1644
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1645
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1646
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1647
|
+
def direct_project_location_volume_pool_volume_delete(name, delete_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1648
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:directDelete', options)
|
|
1649
|
+
command.request_representation = Google::Apis::FileV1beta1::DeleteVolumeRequest::Representation
|
|
1650
|
+
command.request_object = delete_volume_request_object
|
|
1651
|
+
command.response_representation = Google::Apis::FileV1beta1::Empty::Representation
|
|
1652
|
+
command.response_class = Google::Apis::FileV1beta1::Empty
|
|
1653
|
+
command.params['name'] = name unless name.nil?
|
|
1654
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1656
|
+
execute_or_queue_command(command, &block)
|
|
1657
|
+
end
|
|
1658
|
+
|
|
1550
1659
|
# Gets the details of a specific volume.
|
|
1551
1660
|
# @param [String] name
|
|
1552
1661
|
# Required. The volume resource name, in the format `projects/`project`/
|
|
@@ -1622,6 +1731,78 @@ module Google
|
|
|
1622
1731
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1623
1732
|
execute_or_queue_command(command, &block)
|
|
1624
1733
|
end
|
|
1734
|
+
|
|
1735
|
+
# Updates the settings of a specific volume.
|
|
1736
|
+
# @param [String] name
|
|
1737
|
+
# Identifier. The resource name of the volume, in the format `projects/`project`/
|
|
1738
|
+
# locations/`location`/volumePools/`volume_pool`/volumes/`volume``.
|
|
1739
|
+
# @param [Google::Apis::FileV1beta1::Volume] volume_object
|
|
1740
|
+
# @param [String] update_mask
|
|
1741
|
+
# Required. Mask of fields to update. At least one path must be supplied in this
|
|
1742
|
+
# field.
|
|
1743
|
+
# @param [String] fields
|
|
1744
|
+
# Selector specifying which fields to include in a partial response.
|
|
1745
|
+
# @param [String] quota_user
|
|
1746
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1747
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1748
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1749
|
+
# Request-specific options
|
|
1750
|
+
#
|
|
1751
|
+
# @yield [result, err] Result & error if block supplied
|
|
1752
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Volume] parsed result object
|
|
1753
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1754
|
+
#
|
|
1755
|
+
# @return [Google::Apis::FileV1beta1::Volume]
|
|
1756
|
+
#
|
|
1757
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1758
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1759
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1760
|
+
def patch_project_location_volume_pool_volume(name, volume_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1761
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
|
1762
|
+
command.request_representation = Google::Apis::FileV1beta1::Volume::Representation
|
|
1763
|
+
command.request_object = volume_object
|
|
1764
|
+
command.response_representation = Google::Apis::FileV1beta1::Volume::Representation
|
|
1765
|
+
command.response_class = Google::Apis::FileV1beta1::Volume
|
|
1766
|
+
command.params['name'] = name unless name.nil?
|
|
1767
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
1768
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1769
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1770
|
+
execute_or_queue_command(command, &block)
|
|
1771
|
+
end
|
|
1772
|
+
|
|
1773
|
+
# Unfreezes a volume.
|
|
1774
|
+
# @param [String] name
|
|
1775
|
+
# Required. The name of the volume to unfreeze. Format: `projects/`project`/
|
|
1776
|
+
# locations/`location`/volumePools/`volume_pool`/volumes/`volume``.
|
|
1777
|
+
# @param [Google::Apis::FileV1beta1::UnfreezeVolumeRequest] unfreeze_volume_request_object
|
|
1778
|
+
# @param [String] fields
|
|
1779
|
+
# Selector specifying which fields to include in a partial response.
|
|
1780
|
+
# @param [String] quota_user
|
|
1781
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1782
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1783
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1784
|
+
# Request-specific options
|
|
1785
|
+
#
|
|
1786
|
+
# @yield [result, err] Result & error if block supplied
|
|
1787
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
|
1788
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1789
|
+
#
|
|
1790
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
|
1791
|
+
#
|
|
1792
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1793
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1794
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1795
|
+
def unfreeze_volume(name, unfreeze_volume_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1796
|
+
command = make_simple_command(:post, 'v1beta1/{+name}:unfreeze', options)
|
|
1797
|
+
command.request_representation = Google::Apis::FileV1beta1::UnfreezeVolumeRequest::Representation
|
|
1798
|
+
command.request_object = unfreeze_volume_request_object
|
|
1799
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
|
1800
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
|
1801
|
+
command.params['name'] = name unless name.nil?
|
|
1802
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1803
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1804
|
+
execute_or_queue_command(command, &block)
|
|
1805
|
+
end
|
|
1625
1806
|
|
|
1626
1807
|
protected
|
|
1627
1808
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-file_v1beta1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.74.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1beta1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-file_v1beta1/v0.74.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-file_v1beta1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|