google-apis-file_v1beta1 0.72.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,14 @@
|
|
|
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
|
+
|
|
8
|
+
### v0.73.0 (2026-09-06)
|
|
9
|
+
|
|
10
|
+
* Regenerated from discovery document revision 20260827
|
|
11
|
+
|
|
3
12
|
### v0.72.0 (2026-08-30)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20260819
|
|
@@ -151,6 +151,13 @@ module Google
|
|
|
151
151
|
# @return [String]
|
|
152
152
|
attr_accessor :source_instance_tier
|
|
153
153
|
|
|
154
|
+
# Optional. The resource name of the Filestore volume that the backup is created
|
|
155
|
+
# from. Should be in the format: projects/`project_id`/locations/`location_id`/
|
|
156
|
+
# volumePools/`volume_pool_id`/volumes/`volume_id`
|
|
157
|
+
# Corresponds to the JSON property `sourceVolume`
|
|
158
|
+
# @return [String]
|
|
159
|
+
attr_accessor :source_volume
|
|
160
|
+
|
|
154
161
|
# Output only. The backup state.
|
|
155
162
|
# Corresponds to the JSON property `state`
|
|
156
163
|
# @return [String]
|
|
@@ -192,6 +199,7 @@ module Google
|
|
|
192
199
|
@source_file_share = args[:source_file_share] if args.key?(:source_file_share)
|
|
193
200
|
@source_instance = args[:source_instance] if args.key?(:source_instance)
|
|
194
201
|
@source_instance_tier = args[:source_instance_tier] if args.key?(:source_instance_tier)
|
|
202
|
+
@source_volume = args[:source_volume] if args.key?(:source_volume)
|
|
195
203
|
@state = args[:state] if args.key?(:state)
|
|
196
204
|
@storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes)
|
|
197
205
|
@tags = args[:tags] if args.key?(:tags)
|
|
@@ -211,6 +219,54 @@ module Google
|
|
|
211
219
|
end
|
|
212
220
|
end
|
|
213
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
|
+
|
|
214
270
|
# Time window specified for daily operations.
|
|
215
271
|
class DailyCycle
|
|
216
272
|
include Google::Apis::Core::Hashable
|
|
@@ -279,6 +335,19 @@ module Google
|
|
|
279
335
|
end
|
|
280
336
|
end
|
|
281
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
|
+
|
|
282
351
|
# DenyMaintenancePeriod definition. Maintenance is forbidden within the deny
|
|
283
352
|
# period. The start_date must be less than the end_date.
|
|
284
353
|
class DenyMaintenancePeriod
|
|
@@ -1134,73 +1203,6 @@ module Google
|
|
|
1134
1203
|
end
|
|
1135
1204
|
end
|
|
1136
1205
|
|
|
1137
|
-
# InstanceTemplate representation of a Cloud Filestore volume pool instance
|
|
1138
|
-
# template.
|
|
1139
|
-
class InstanceTemplate
|
|
1140
|
-
include Google::Apis::Core::Hashable
|
|
1141
|
-
|
|
1142
|
-
# Optional. Backend type.
|
|
1143
|
-
# Corresponds to the JSON property `backendType`
|
|
1144
|
-
# @return [String]
|
|
1145
|
-
attr_accessor :backend_type
|
|
1146
|
-
|
|
1147
|
-
# Optional. Capacity in GB.
|
|
1148
|
-
# Corresponds to the JSON property `capacityGb`
|
|
1149
|
-
# @return [Fixnum]
|
|
1150
|
-
attr_accessor :capacity_gb
|
|
1151
|
-
|
|
1152
|
-
# Optional. Instance labels.
|
|
1153
|
-
# Corresponds to the JSON property `labels`
|
|
1154
|
-
# @return [Hash<String,String>]
|
|
1155
|
-
attr_accessor :labels
|
|
1156
|
-
|
|
1157
|
-
# Optional. Network configurations.
|
|
1158
|
-
# Corresponds to the JSON property `networks`
|
|
1159
|
-
# @return [Array<Google::Apis::FileV1beta1::NetworkConfig>]
|
|
1160
|
-
attr_accessor :networks
|
|
1161
|
-
|
|
1162
|
-
# Used for setting the performance configuration. If the user doesn't specify
|
|
1163
|
-
# PerformanceConfig, automatically provision the default performance settings as
|
|
1164
|
-
# described in https://cloud.google.com/filestore/docs/performance. Larger
|
|
1165
|
-
# instances will be linearly set to more IOPS. If the instance's capacity is
|
|
1166
|
-
# increased or decreased, its performance will be automatically adjusted upwards
|
|
1167
|
-
# or downwards accordingly (respectively).
|
|
1168
|
-
# Corresponds to the JSON property `performanceConfig`
|
|
1169
|
-
# @return [Google::Apis::FileV1beta1::PerformanceConfig]
|
|
1170
|
-
attr_accessor :performance_config
|
|
1171
|
-
|
|
1172
|
-
# Optional. File protocol.
|
|
1173
|
-
# Corresponds to the JSON property `protocol`
|
|
1174
|
-
# @return [String]
|
|
1175
|
-
attr_accessor :protocol
|
|
1176
|
-
|
|
1177
|
-
# Optional. Request overrides in JSON format.
|
|
1178
|
-
# Corresponds to the JSON property `requestOverrides`
|
|
1179
|
-
# @return [String]
|
|
1180
|
-
attr_accessor :request_overrides
|
|
1181
|
-
|
|
1182
|
-
# Optional. Tier of the instance.
|
|
1183
|
-
# Corresponds to the JSON property `tier`
|
|
1184
|
-
# @return [String]
|
|
1185
|
-
attr_accessor :tier
|
|
1186
|
-
|
|
1187
|
-
def initialize(**args)
|
|
1188
|
-
update!(**args)
|
|
1189
|
-
end
|
|
1190
|
-
|
|
1191
|
-
# Update properties of this object
|
|
1192
|
-
def update!(**args)
|
|
1193
|
-
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
|
1194
|
-
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
|
1195
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
1196
|
-
@networks = args[:networks] if args.key?(:networks)
|
|
1197
|
-
@performance_config = args[:performance_config] if args.key?(:performance_config)
|
|
1198
|
-
@protocol = args[:protocol] if args.key?(:protocol)
|
|
1199
|
-
@request_overrides = args[:request_overrides] if args.key?(:request_overrides)
|
|
1200
|
-
@tier = args[:tier] if args.key?(:tier)
|
|
1201
|
-
end
|
|
1202
|
-
end
|
|
1203
|
-
|
|
1204
1206
|
# LdapConfig contains all the parameters for connecting to LDAP servers.
|
|
1205
1207
|
class LdapConfig
|
|
1206
1208
|
include Google::Apis::Core::Hashable
|
|
@@ -2207,9 +2209,12 @@ module Google
|
|
|
2207
2209
|
class RestoreConfig
|
|
2208
2210
|
include Google::Apis::Core::Hashable
|
|
2209
2211
|
|
|
2210
|
-
# Optional.
|
|
2211
|
-
#
|
|
2212
|
-
#
|
|
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,
|
|
2213
2218
|
# Glob patterns are not supported.
|
|
2214
2219
|
# Corresponds to the JSON property `pathPatterns`
|
|
2215
2220
|
# @return [Array<String>]
|
|
@@ -2341,12 +2346,19 @@ module Google
|
|
|
2341
2346
|
# @return [String]
|
|
2342
2347
|
attr_accessor :backup
|
|
2343
2348
|
|
|
2344
|
-
# File share capacity in gigabytes (GB). Filestore defines 1 GB as
|
|
2345
|
-
# Must be greater than 0.
|
|
2349
|
+
# Optional. File share capacity in gigabytes (GB). Filestore defines 1 GB as
|
|
2350
|
+
# 1024^3 bytes. Must be greater than 0. Exactly one of capacity_gb or
|
|
2351
|
+
# capacity_mb must be specified.
|
|
2346
2352
|
# Corresponds to the JSON property `capacityGb`
|
|
2347
2353
|
# @return [Fixnum]
|
|
2348
2354
|
attr_accessor :capacity_gb
|
|
2349
2355
|
|
|
2356
|
+
# Optional. File share capacity in Megabytes (MB). Must be greater than 0.
|
|
2357
|
+
# Exactly one of capacity_gb or capacity_mb must be specified.
|
|
2358
|
+
# Corresponds to the JSON property `capacityMb`
|
|
2359
|
+
# @return [Fixnum]
|
|
2360
|
+
attr_accessor :capacity_mb
|
|
2361
|
+
|
|
2350
2362
|
# Output only. The time when the share was created.
|
|
2351
2363
|
# Corresponds to the JSON property `createTime`
|
|
2352
2364
|
# @return [String]
|
|
@@ -2393,6 +2405,7 @@ module Google
|
|
|
2393
2405
|
def update!(**args)
|
|
2394
2406
|
@backup = args[:backup] if args.key?(:backup)
|
|
2395
2407
|
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
|
2408
|
+
@capacity_mb = args[:capacity_mb] if args.key?(:capacity_mb)
|
|
2396
2409
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2397
2410
|
@description = args[:description] if args.key?(:description)
|
|
2398
2411
|
@labels = args[:labels] if args.key?(:labels)
|
|
@@ -2552,6 +2565,39 @@ module Google
|
|
|
2552
2565
|
end
|
|
2553
2566
|
end
|
|
2554
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
|
+
|
|
2555
2601
|
# Maintenance policy applicable to instance updates.
|
|
2556
2602
|
class UpdatePolicy
|
|
2557
2603
|
include Google::Apis::Core::Hashable
|
|
@@ -2600,6 +2646,11 @@ module Google
|
|
|
2600
2646
|
# @return [String]
|
|
2601
2647
|
attr_accessor :description
|
|
2602
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
|
+
|
|
2603
2654
|
# Optional. Resource labels to represent user provided metadata.
|
|
2604
2655
|
# Corresponds to the JSON property `labels`
|
|
2605
2656
|
# @return [Hash<String,String>]
|
|
@@ -2616,6 +2667,18 @@ module Google
|
|
|
2616
2667
|
# @return [String]
|
|
2617
2668
|
attr_accessor :name
|
|
2618
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
|
+
|
|
2619
2682
|
def initialize(**args)
|
|
2620
2683
|
update!(**args)
|
|
2621
2684
|
end
|
|
@@ -2624,9 +2687,12 @@ module Google
|
|
|
2624
2687
|
def update!(**args)
|
|
2625
2688
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2626
2689
|
@description = args[:description] if args.key?(:description)
|
|
2690
|
+
@ip_acls = args[:ip_acls] if args.key?(:ip_acls)
|
|
2627
2691
|
@labels = args[:labels] if args.key?(:labels)
|
|
2628
2692
|
@mount_point = args[:mount_point] if args.key?(:mount_point)
|
|
2629
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)
|
|
2630
2696
|
end
|
|
2631
2697
|
end
|
|
2632
2698
|
|
|
@@ -2634,114 +2700,58 @@ module Google
|
|
|
2634
2700
|
class VolumePool
|
|
2635
2701
|
include Google::Apis::Core::Hashable
|
|
2636
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
|
+
|
|
2708
|
+
# Optional. The number of IOPs provisioned per active volume.
|
|
2709
|
+
# Corresponds to the JSON property `activeVolumeIops`
|
|
2710
|
+
# @return [Fixnum]
|
|
2711
|
+
attr_accessor :active_volume_iops
|
|
2712
|
+
|
|
2637
2713
|
# Output only. The time when the volume pool was created.
|
|
2638
2714
|
# Corresponds to the JSON property `createTime`
|
|
2639
2715
|
# @return [String]
|
|
2640
2716
|
attr_accessor :create_time
|
|
2641
2717
|
|
|
2718
|
+
# Optional. The default quota per volume in MiB. Must be between 100 MiB and
|
|
2719
|
+
# 102400 MiB (100 GiB). Default: 1024 MiB.
|
|
2720
|
+
# Corresponds to the JSON property `defaultVolumeQuotaMib`
|
|
2721
|
+
# @return [Fixnum]
|
|
2722
|
+
attr_accessor :default_volume_quota_mib
|
|
2723
|
+
|
|
2642
2724
|
# Optional. A description of the volume pool with 2048 characters or less.
|
|
2643
2725
|
# Corresponds to the JSON property `description`
|
|
2644
2726
|
# @return [String]
|
|
2645
2727
|
attr_accessor :description
|
|
2646
2728
|
|
|
2647
|
-
# Optional. The page size to use when listing instances.
|
|
2648
|
-
# Corresponds to the JSON property `instanceListPageSize`
|
|
2649
|
-
# @return [Fixnum]
|
|
2650
|
-
attr_accessor :instance_list_page_size
|
|
2651
|
-
|
|
2652
|
-
# Optional. Instance name prefix.
|
|
2653
|
-
# Corresponds to the JSON property `instanceNamePrefix`
|
|
2654
|
-
# @return [String]
|
|
2655
|
-
attr_accessor :instance_name_prefix
|
|
2656
|
-
|
|
2657
|
-
# InstanceTemplate representation of a Cloud Filestore volume pool instance
|
|
2658
|
-
# template.
|
|
2659
|
-
# Corresponds to the JSON property `instanceTemplate`
|
|
2660
|
-
# @return [Google::Apis::FileV1beta1::InstanceTemplate]
|
|
2661
|
-
attr_accessor :instance_template
|
|
2662
|
-
|
|
2663
2729
|
# Optional. Resource labels to represent user provided metadata.
|
|
2664
2730
|
# Corresponds to the JSON property `labels`
|
|
2665
2731
|
# @return [Hash<String,String>]
|
|
2666
2732
|
attr_accessor :labels
|
|
2667
2733
|
|
|
2668
|
-
# Optional. The maximum number of candidates to fetch when acquiring a volume.
|
|
2669
|
-
# Corresponds to the JSON property `maxAcquireCandidates`
|
|
2670
|
-
# @return [Fixnum]
|
|
2671
|
-
attr_accessor :max_acquire_candidates
|
|
2672
|
-
|
|
2673
|
-
# Optional. Maximum number of instances to create.
|
|
2674
|
-
# Corresponds to the JSON property `maxInstances`
|
|
2675
|
-
# @return [Fixnum]
|
|
2676
|
-
attr_accessor :max_instances
|
|
2677
|
-
|
|
2678
|
-
# Optional. The maximum number of pending instance creation requests.
|
|
2679
|
-
# Corresponds to the JSON property `maxPendingInstanceCreations`
|
|
2680
|
-
# @return [Fixnum]
|
|
2681
|
-
attr_accessor :max_pending_instance_creations
|
|
2682
|
-
|
|
2683
|
-
# Optional. The maximum number of pending volume creation requests per instance.
|
|
2684
|
-
# Corresponds to the JSON property `maxPendingVolumeCreationsPerInstance`
|
|
2685
|
-
# @return [Fixnum]
|
|
2686
|
-
attr_accessor :max_pending_volume_creations_per_instance
|
|
2687
|
-
|
|
2688
|
-
# Optional. The maximum number of pending volume deletion requests per instance.
|
|
2689
|
-
# Corresponds to the JSON property `maxPendingVolumeDeletionsPerInstance`
|
|
2690
|
-
# @return [Fixnum]
|
|
2691
|
-
attr_accessor :max_pending_volume_deletions_per_instance
|
|
2692
|
-
|
|
2693
|
-
# Optional. Maximum number of volumes per instance.
|
|
2694
|
-
# Corresponds to the JSON property `maxVolumesPerInstance`
|
|
2695
|
-
# @return [Fixnum]
|
|
2696
|
-
attr_accessor :max_volumes_per_instance
|
|
2697
|
-
|
|
2698
|
-
# Optional. Minimum number of available volumes to maintain.
|
|
2699
|
-
# Corresponds to the JSON property `minAvailableVolumes`
|
|
2700
|
-
# @return [Fixnum]
|
|
2701
|
-
attr_accessor :min_available_volumes
|
|
2702
|
-
|
|
2703
|
-
# Optional. Minimum number of instances to create.
|
|
2704
|
-
# Corresponds to the JSON property `minInstances`
|
|
2705
|
-
# @return [Fixnum]
|
|
2706
|
-
attr_accessor :min_instances
|
|
2707
|
-
|
|
2708
2734
|
# Identifier. The resource name of the volume pool, in the format `projects/`
|
|
2709
2735
|
# project`/locations/`location`/volumePools/`volume_pool``.
|
|
2710
2736
|
# Corresponds to the JSON property `name`
|
|
2711
2737
|
# @return [String]
|
|
2712
2738
|
attr_accessor :name
|
|
2713
2739
|
|
|
2714
|
-
#
|
|
2715
|
-
#
|
|
2716
|
-
# Corresponds to the JSON property `
|
|
2717
|
-
# @return [
|
|
2718
|
-
attr_accessor :
|
|
2719
|
-
|
|
2720
|
-
# Optional. The maximum number of operations to poll in a single reconciliation
|
|
2721
|
-
# run.
|
|
2722
|
-
# Corresponds to the JSON property `operationPollLimit`
|
|
2723
|
-
# @return [Fixnum]
|
|
2724
|
-
attr_accessor :operation_poll_limit
|
|
2740
|
+
# Required. The VPC network to which the VolumePool should be attached. Only
|
|
2741
|
+
# Private Service Connect (PSC) is supported.
|
|
2742
|
+
# Corresponds to the JSON property `network`
|
|
2743
|
+
# @return [String]
|
|
2744
|
+
attr_accessor :network
|
|
2725
2745
|
|
|
2726
|
-
# Output only. The volume pool
|
|
2746
|
+
# Output only. The state of the volume pool.
|
|
2727
2747
|
# Corresponds to the JSON property `state`
|
|
2728
2748
|
# @return [String]
|
|
2729
2749
|
attr_accessor :state
|
|
2730
2750
|
|
|
2731
|
-
# Output only.
|
|
2732
|
-
# Corresponds to the JSON property `
|
|
2751
|
+
# Output only. System-assigned unique identifier for the volume pool.
|
|
2752
|
+
# Corresponds to the JSON property `uid`
|
|
2733
2753
|
# @return [String]
|
|
2734
|
-
attr_accessor :
|
|
2735
|
-
|
|
2736
|
-
# Optional. The number of volumes to create in a single batch.
|
|
2737
|
-
# Corresponds to the JSON property `volumeBatchSize`
|
|
2738
|
-
# @return [Fixnum]
|
|
2739
|
-
attr_accessor :volume_batch_size
|
|
2740
|
-
|
|
2741
|
-
# Optional. Volume size in MiB.
|
|
2742
|
-
# Corresponds to the JSON property `volumeSizeMb`
|
|
2743
|
-
# @return [Fixnum]
|
|
2744
|
-
attr_accessor :volume_size_mb
|
|
2754
|
+
attr_accessor :uid
|
|
2745
2755
|
|
|
2746
2756
|
def initialize(**args)
|
|
2747
2757
|
update!(**args)
|
|
@@ -2749,27 +2759,16 @@ module Google
|
|
|
2749
2759
|
|
|
2750
2760
|
# Update properties of this object
|
|
2751
2761
|
def update!(**args)
|
|
2762
|
+
@active_volume_count = args[:active_volume_count] if args.key?(:active_volume_count)
|
|
2763
|
+
@active_volume_iops = args[:active_volume_iops] if args.key?(:active_volume_iops)
|
|
2752
2764
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2765
|
+
@default_volume_quota_mib = args[:default_volume_quota_mib] if args.key?(:default_volume_quota_mib)
|
|
2753
2766
|
@description = args[:description] if args.key?(:description)
|
|
2754
|
-
@instance_list_page_size = args[:instance_list_page_size] if args.key?(:instance_list_page_size)
|
|
2755
|
-
@instance_name_prefix = args[:instance_name_prefix] if args.key?(:instance_name_prefix)
|
|
2756
|
-
@instance_template = args[:instance_template] if args.key?(:instance_template)
|
|
2757
2767
|
@labels = args[:labels] if args.key?(:labels)
|
|
2758
|
-
@max_acquire_candidates = args[:max_acquire_candidates] if args.key?(:max_acquire_candidates)
|
|
2759
|
-
@max_instances = args[:max_instances] if args.key?(:max_instances)
|
|
2760
|
-
@max_pending_instance_creations = args[:max_pending_instance_creations] if args.key?(:max_pending_instance_creations)
|
|
2761
|
-
@max_pending_volume_creations_per_instance = args[:max_pending_volume_creations_per_instance] if args.key?(:max_pending_volume_creations_per_instance)
|
|
2762
|
-
@max_pending_volume_deletions_per_instance = args[:max_pending_volume_deletions_per_instance] if args.key?(:max_pending_volume_deletions_per_instance)
|
|
2763
|
-
@max_volumes_per_instance = args[:max_volumes_per_instance] if args.key?(:max_volumes_per_instance)
|
|
2764
|
-
@min_available_volumes = args[:min_available_volumes] if args.key?(:min_available_volumes)
|
|
2765
|
-
@min_instances = args[:min_instances] if args.key?(:min_instances)
|
|
2766
2768
|
@name = args[:name] if args.key?(:name)
|
|
2767
|
-
@
|
|
2768
|
-
@operation_poll_limit = args[:operation_poll_limit] if args.key?(:operation_poll_limit)
|
|
2769
|
+
@network = args[:network] if args.key?(:network)
|
|
2769
2770
|
@state = args[:state] if args.key?(:state)
|
|
2770
|
-
@
|
|
2771
|
-
@volume_batch_size = args[:volume_batch_size] if args.key?(:volume_batch_size)
|
|
2772
|
-
@volume_size_mb = args[:volume_size_mb] if args.key?(:volume_size_mb)
|
|
2771
|
+
@uid = args[:uid] if args.key?(:uid)
|
|
2773
2772
|
end
|
|
2774
2773
|
end
|
|
2775
2774
|
|
|
@@ -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
|
|
|
@@ -154,12 +166,6 @@ module Google
|
|
|
154
166
|
include Google::Apis::Core::JsonObjectSupport
|
|
155
167
|
end
|
|
156
168
|
|
|
157
|
-
class InstanceTemplate
|
|
158
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
-
|
|
160
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
-
end
|
|
162
|
-
|
|
163
169
|
class LdapConfig
|
|
164
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
165
171
|
|
|
@@ -376,6 +382,12 @@ module Google
|
|
|
376
382
|
include Google::Apis::Core::JsonObjectSupport
|
|
377
383
|
end
|
|
378
384
|
|
|
385
|
+
class UnfreezeVolumeRequest
|
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
387
|
+
|
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
389
|
+
end
|
|
390
|
+
|
|
379
391
|
class UpdatePolicy
|
|
380
392
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
381
393
|
|
|
@@ -432,6 +444,7 @@ module Google
|
|
|
432
444
|
property :source_file_share, as: 'sourceFileShare'
|
|
433
445
|
property :source_instance, as: 'sourceInstance'
|
|
434
446
|
property :source_instance_tier, as: 'sourceInstanceTier'
|
|
447
|
+
property :source_volume, as: 'sourceVolume'
|
|
435
448
|
property :state, as: 'state'
|
|
436
449
|
property :storage_bytes, :numeric_string => true, as: 'storageBytes'
|
|
437
450
|
hash :tags, as: 'tags'
|
|
@@ -444,6 +457,18 @@ module Google
|
|
|
444
457
|
end
|
|
445
458
|
end
|
|
446
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
|
+
|
|
447
472
|
class DailyCycle
|
|
448
473
|
# @private
|
|
449
474
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -462,6 +487,12 @@ module Google
|
|
|
462
487
|
end
|
|
463
488
|
end
|
|
464
489
|
|
|
490
|
+
class DeleteVolumeRequest
|
|
491
|
+
# @private
|
|
492
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
465
496
|
class DenyMaintenancePeriod
|
|
466
497
|
# @private
|
|
467
498
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -662,22 +693,6 @@ module Google
|
|
|
662
693
|
end
|
|
663
694
|
end
|
|
664
695
|
|
|
665
|
-
class InstanceTemplate
|
|
666
|
-
# @private
|
|
667
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
668
|
-
property :backend_type, as: 'backendType'
|
|
669
|
-
property :capacity_gb, as: 'capacityGb'
|
|
670
|
-
hash :labels, as: 'labels'
|
|
671
|
-
collection :networks, as: 'networks', class: Google::Apis::FileV1beta1::NetworkConfig, decorator: Google::Apis::FileV1beta1::NetworkConfig::Representation
|
|
672
|
-
|
|
673
|
-
property :performance_config, as: 'performanceConfig', class: Google::Apis::FileV1beta1::PerformanceConfig, decorator: Google::Apis::FileV1beta1::PerformanceConfig::Representation
|
|
674
|
-
|
|
675
|
-
property :protocol, as: 'protocol'
|
|
676
|
-
property :request_overrides, as: 'requestOverrides'
|
|
677
|
-
property :tier, as: 'tier'
|
|
678
|
-
end
|
|
679
|
-
end
|
|
680
|
-
|
|
681
696
|
class LdapConfig
|
|
682
697
|
# @private
|
|
683
698
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -989,6 +1004,7 @@ module Google
|
|
|
989
1004
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
990
1005
|
property :backup, as: 'backup'
|
|
991
1006
|
property :capacity_gb, :numeric_string => true, as: 'capacityGb'
|
|
1007
|
+
property :capacity_mb, :numeric_string => true, as: 'capacityMb'
|
|
992
1008
|
property :create_time, as: 'createTime'
|
|
993
1009
|
property :description, as: 'description'
|
|
994
1010
|
hash :labels, as: 'labels'
|
|
@@ -1032,6 +1048,16 @@ module Google
|
|
|
1032
1048
|
end
|
|
1033
1049
|
end
|
|
1034
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
|
+
|
|
1035
1061
|
class UpdatePolicy
|
|
1036
1062
|
# @private
|
|
1037
1063
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1048,38 +1074,30 @@ module Google
|
|
|
1048
1074
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1049
1075
|
property :create_time, as: 'createTime'
|
|
1050
1076
|
property :description, as: 'description'
|
|
1077
|
+
collection :ip_acls, as: 'ipAcls', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation
|
|
1078
|
+
|
|
1051
1079
|
hash :labels, as: 'labels'
|
|
1052
1080
|
property :mount_point, as: 'mountPoint', class: Google::Apis::FileV1beta1::MountPoint, decorator: Google::Apis::FileV1beta1::MountPoint::Representation
|
|
1053
1081
|
|
|
1054
1082
|
property :name, as: 'name'
|
|
1083
|
+
property :quota_mib, :numeric_string => true, as: 'quotaMib'
|
|
1084
|
+
property :state, as: 'state'
|
|
1055
1085
|
end
|
|
1056
1086
|
end
|
|
1057
1087
|
|
|
1058
1088
|
class VolumePool
|
|
1059
1089
|
# @private
|
|
1060
1090
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1091
|
+
property :active_volume_count, as: 'activeVolumeCount'
|
|
1092
|
+
property :active_volume_iops, as: 'activeVolumeIops'
|
|
1061
1093
|
property :create_time, as: 'createTime'
|
|
1094
|
+
property :default_volume_quota_mib, as: 'defaultVolumeQuotaMib'
|
|
1062
1095
|
property :description, as: 'description'
|
|
1063
|
-
property :instance_list_page_size, as: 'instanceListPageSize'
|
|
1064
|
-
property :instance_name_prefix, as: 'instanceNamePrefix'
|
|
1065
|
-
property :instance_template, as: 'instanceTemplate', class: Google::Apis::FileV1beta1::InstanceTemplate, decorator: Google::Apis::FileV1beta1::InstanceTemplate::Representation
|
|
1066
|
-
|
|
1067
1096
|
hash :labels, as: 'labels'
|
|
1068
|
-
property :max_acquire_candidates, as: 'maxAcquireCandidates'
|
|
1069
|
-
property :max_instances, as: 'maxInstances'
|
|
1070
|
-
property :max_pending_instance_creations, as: 'maxPendingInstanceCreations'
|
|
1071
|
-
property :max_pending_volume_creations_per_instance, as: 'maxPendingVolumeCreationsPerInstance'
|
|
1072
|
-
property :max_pending_volume_deletions_per_instance, as: 'maxPendingVolumeDeletionsPerInstance'
|
|
1073
|
-
property :max_volumes_per_instance, as: 'maxVolumesPerInstance'
|
|
1074
|
-
property :min_available_volumes, as: 'minAvailableVolumes'
|
|
1075
|
-
property :min_instances, as: 'minInstances'
|
|
1076
1097
|
property :name, as: 'name'
|
|
1077
|
-
property :
|
|
1078
|
-
property :operation_poll_limit, as: 'operationPollLimit'
|
|
1098
|
+
property :network, as: 'network'
|
|
1079
1099
|
property :state, as: 'state'
|
|
1080
|
-
property :
|
|
1081
|
-
property :volume_batch_size, as: 'volumeBatchSize'
|
|
1082
|
-
property :volume_size_mb, as: 'volumeSizeMb'
|
|
1100
|
+
property :uid, as: 'uid'
|
|
1083
1101
|
end
|
|
1084
1102
|
end
|
|
1085
1103
|
|
|
@@ -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:
|