google-apis-file_v1beta1 0.70.0 → 0.72.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: eab48a92666a1a13f82b8659bba25e8c617ea7ff0730419d480b9895ee5f6837
|
|
4
|
+
data.tar.gz: e893a998be183298d06296f68a6fa758403b942fabd5ca7c8027139cc48286e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76997503cff300630bec73151717df657fbf6615552b8589ffb67c2de9969b8c286d62edf83c749da84636510f552aa97c2908cf59483691ca417e21d097c316
|
|
7
|
+
data.tar.gz: 1bc2bb0690dc8ffa3a081038a2e7a76a86dc665312ad9ac09847cb7d70a5d2344f3abab62f5bd6b5a91d86a9bcfdf71a298374ab98cde15c4c268588a86d8d9c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-file_v1beta1
|
|
2
2
|
|
|
3
|
+
### v0.72.0 (2026-08-30)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260819
|
|
6
|
+
|
|
7
|
+
### v0.71.0 (2026-07-19)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260710
|
|
10
|
+
|
|
3
11
|
### v0.70.0 (2026-06-28)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260612
|
|
@@ -391,6 +391,11 @@ module Google
|
|
|
391
391
|
# @return [Array<Google::Apis::FileV1beta1::NfsExportOptions>]
|
|
392
392
|
attr_accessor :nfs_export_options
|
|
393
393
|
|
|
394
|
+
# Optional configuration for restore backup operations.
|
|
395
|
+
# Corresponds to the JSON property `restoreConfig`
|
|
396
|
+
# @return [Google::Apis::FileV1beta1::RestoreConfig]
|
|
397
|
+
attr_accessor :restore_config
|
|
398
|
+
|
|
394
399
|
# The resource name of the backup, in the format `projects/`project_id`/
|
|
395
400
|
# locations/`location_id`/backups/`backup_id``, that this file share has been
|
|
396
401
|
# restored from.
|
|
@@ -414,6 +419,7 @@ module Google
|
|
|
414
419
|
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
|
415
420
|
@name = args[:name] if args.key?(:name)
|
|
416
421
|
@nfs_export_options = args[:nfs_export_options] if args.key?(:nfs_export_options)
|
|
422
|
+
@restore_config = args[:restore_config] if args.key?(:restore_config)
|
|
417
423
|
@source_backup = args[:source_backup] if args.key?(:source_backup)
|
|
418
424
|
@source_backupdr_backup = args[:source_backupdr_backup] if args.key?(:source_backupdr_backup)
|
|
419
425
|
end
|
|
@@ -1128,6 +1134,73 @@ module Google
|
|
|
1128
1134
|
end
|
|
1129
1135
|
end
|
|
1130
1136
|
|
|
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
|
+
|
|
1131
1204
|
# LdapConfig contains all the parameters for connecting to LDAP servers.
|
|
1132
1205
|
class LdapConfig
|
|
1133
1206
|
include Google::Apis::Core::Hashable
|
|
@@ -1368,6 +1441,71 @@ module Google
|
|
|
1368
1441
|
end
|
|
1369
1442
|
end
|
|
1370
1443
|
|
|
1444
|
+
# ListVolumePoolsResponse is the result of ListVolumePoolsRequest.
|
|
1445
|
+
class ListVolumePoolsResponse
|
|
1446
|
+
include Google::Apis::Core::Hashable
|
|
1447
|
+
|
|
1448
|
+
# Optional. The token you can use to retrieve the next page of results. Not
|
|
1449
|
+
# returned if there are no more results in the list.
|
|
1450
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1451
|
+
# @return [String]
|
|
1452
|
+
attr_accessor :next_page_token
|
|
1453
|
+
|
|
1454
|
+
# Unordered list. Locations that could not be reached.
|
|
1455
|
+
# Corresponds to the JSON property `unreachable`
|
|
1456
|
+
# @return [Array<String>]
|
|
1457
|
+
attr_accessor :unreachable
|
|
1458
|
+
|
|
1459
|
+
# Unordered list. A list of volume pools in the project for the specified
|
|
1460
|
+
# location.
|
|
1461
|
+
# Corresponds to the JSON property `volumePools`
|
|
1462
|
+
# @return [Array<Google::Apis::FileV1beta1::VolumePool>]
|
|
1463
|
+
attr_accessor :volume_pools
|
|
1464
|
+
|
|
1465
|
+
def initialize(**args)
|
|
1466
|
+
update!(**args)
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1469
|
+
# Update properties of this object
|
|
1470
|
+
def update!(**args)
|
|
1471
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1472
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
1473
|
+
@volume_pools = args[:volume_pools] if args.key?(:volume_pools)
|
|
1474
|
+
end
|
|
1475
|
+
end
|
|
1476
|
+
|
|
1477
|
+
# ListVolumesResponse is the result of ListVolumesRequest.
|
|
1478
|
+
class ListVolumesResponse
|
|
1479
|
+
include Google::Apis::Core::Hashable
|
|
1480
|
+
|
|
1481
|
+
# Optional. The token you can use to retrieve the next page of results. Not
|
|
1482
|
+
# returned if there are no more results in the list.
|
|
1483
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1484
|
+
# @return [String]
|
|
1485
|
+
attr_accessor :next_page_token
|
|
1486
|
+
|
|
1487
|
+
# Unordered list. Locations that could not be reached.
|
|
1488
|
+
# Corresponds to the JSON property `unreachable`
|
|
1489
|
+
# @return [Array<String>]
|
|
1490
|
+
attr_accessor :unreachable
|
|
1491
|
+
|
|
1492
|
+
# Unordered list. A list of volumes in the project for the specified volume pool.
|
|
1493
|
+
# Corresponds to the JSON property `volumes`
|
|
1494
|
+
# @return [Array<Google::Apis::FileV1beta1::Volume>]
|
|
1495
|
+
attr_accessor :volumes
|
|
1496
|
+
|
|
1497
|
+
def initialize(**args)
|
|
1498
|
+
update!(**args)
|
|
1499
|
+
end
|
|
1500
|
+
|
|
1501
|
+
# Update properties of this object
|
|
1502
|
+
def update!(**args)
|
|
1503
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1504
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
1505
|
+
@volumes = args[:volumes] if args.key?(:volumes)
|
|
1506
|
+
end
|
|
1507
|
+
end
|
|
1508
|
+
|
|
1371
1509
|
# A resource that represents a Google Cloud location.
|
|
1372
1510
|
class Location
|
|
1373
1511
|
include Google::Apis::Core::Hashable
|
|
@@ -1531,6 +1669,33 @@ module Google
|
|
|
1531
1669
|
end
|
|
1532
1670
|
end
|
|
1533
1671
|
|
|
1672
|
+
# Mount details for a volume.
|
|
1673
|
+
class MountPoint
|
|
1674
|
+
include Google::Apis::Core::Hashable
|
|
1675
|
+
|
|
1676
|
+
# Output only. The IP address of the physical Filestore instance hosting the
|
|
1677
|
+
# volume.
|
|
1678
|
+
# Corresponds to the JSON property `ipAddress`
|
|
1679
|
+
# @return [String]
|
|
1680
|
+
attr_accessor :ip_address
|
|
1681
|
+
|
|
1682
|
+
# Output only. The mount name of the volume. Must be 63 characters or less and
|
|
1683
|
+
# consist of uppercase or lowercase letters, numbers, and underscores.
|
|
1684
|
+
# Corresponds to the JSON property `mountName`
|
|
1685
|
+
# @return [String]
|
|
1686
|
+
attr_accessor :mount_name
|
|
1687
|
+
|
|
1688
|
+
def initialize(**args)
|
|
1689
|
+
update!(**args)
|
|
1690
|
+
end
|
|
1691
|
+
|
|
1692
|
+
# Update properties of this object
|
|
1693
|
+
def update!(**args)
|
|
1694
|
+
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
|
1695
|
+
@mount_name = args[:mount_name] if args.key?(:mount_name)
|
|
1696
|
+
end
|
|
1697
|
+
end
|
|
1698
|
+
|
|
1534
1699
|
# Network configuration for the instance.
|
|
1535
1700
|
class NetworkConfig
|
|
1536
1701
|
include Google::Apis::Core::Hashable
|
|
@@ -1907,6 +2072,15 @@ module Google
|
|
|
1907
2072
|
# @return [String]
|
|
1908
2073
|
attr_accessor :endpoint_project
|
|
1909
2074
|
|
|
2075
|
+
# Optional. Immutable. Optional: The desired IP address for the instance. If not
|
|
2076
|
+
# specified, an IP will be automatically allocated. The IP must be from the
|
|
2077
|
+
# subnetwork range configured in the Service Connection Policy. This effective
|
|
2078
|
+
# ip address is set in the ip_addresses field. use 3 instead of 2 to avoid
|
|
2079
|
+
# conflict with the reserved_ip_range field.
|
|
2080
|
+
# Corresponds to the JSON property `requestedIpAddress`
|
|
2081
|
+
# @return [String]
|
|
2082
|
+
attr_accessor :requested_ip_address
|
|
2083
|
+
|
|
1910
2084
|
def initialize(**args)
|
|
1911
2085
|
update!(**args)
|
|
1912
2086
|
end
|
|
@@ -1914,6 +2088,7 @@ module Google
|
|
|
1914
2088
|
# Update properties of this object
|
|
1915
2089
|
def update!(**args)
|
|
1916
2090
|
@endpoint_project = args[:endpoint_project] if args.key?(:endpoint_project)
|
|
2091
|
+
@requested_ip_address = args[:requested_ip_address] if args.key?(:requested_ip_address)
|
|
1917
2092
|
end
|
|
1918
2093
|
end
|
|
1919
2094
|
|
|
@@ -2028,6 +2203,28 @@ module Google
|
|
|
2028
2203
|
end
|
|
2029
2204
|
end
|
|
2030
2205
|
|
|
2206
|
+
# Optional configuration for restore backup operations.
|
|
2207
|
+
class RestoreConfig
|
|
2208
|
+
include Google::Apis::Core::Hashable
|
|
2209
|
+
|
|
2210
|
+
# Optional. Example: If you want to restore `/mnt/share/dir1/file.txt`, the path
|
|
2211
|
+
# pattern must be `/dir1/file.txt`. If you want to restore `/mnt/share/dir1/`,
|
|
2212
|
+
# the path pattern must be `/dir1`. Currently only single path is supported,
|
|
2213
|
+
# Glob patterns are not supported.
|
|
2214
|
+
# Corresponds to the JSON property `pathPatterns`
|
|
2215
|
+
# @return [Array<String>]
|
|
2216
|
+
attr_accessor :path_patterns
|
|
2217
|
+
|
|
2218
|
+
def initialize(**args)
|
|
2219
|
+
update!(**args)
|
|
2220
|
+
end
|
|
2221
|
+
|
|
2222
|
+
# Update properties of this object
|
|
2223
|
+
def update!(**args)
|
|
2224
|
+
@path_patterns = args[:path_patterns] if args.key?(:path_patterns)
|
|
2225
|
+
end
|
|
2226
|
+
end
|
|
2227
|
+
|
|
2031
2228
|
# RestoreInstanceRequest restores an existing instance's file share from a
|
|
2032
2229
|
# backup.
|
|
2033
2230
|
class RestoreInstanceRequest
|
|
@@ -2388,6 +2585,194 @@ module Google
|
|
|
2388
2585
|
end
|
|
2389
2586
|
end
|
|
2390
2587
|
|
|
2588
|
+
# Volume representation of a Cloud Filestore volume.
|
|
2589
|
+
class Volume
|
|
2590
|
+
include Google::Apis::Core::Hashable
|
|
2591
|
+
|
|
2592
|
+
# Output only. The time when the volume was created.
|
|
2593
|
+
# Corresponds to the JSON property `createTime`
|
|
2594
|
+
# @return [String]
|
|
2595
|
+
attr_accessor :create_time
|
|
2596
|
+
|
|
2597
|
+
# Optional. A description of the volume with 2048 characters or less. Requests
|
|
2598
|
+
# with longer descriptions will be rejected.
|
|
2599
|
+
# Corresponds to the JSON property `description`
|
|
2600
|
+
# @return [String]
|
|
2601
|
+
attr_accessor :description
|
|
2602
|
+
|
|
2603
|
+
# Optional. Resource labels to represent user provided metadata.
|
|
2604
|
+
# Corresponds to the JSON property `labels`
|
|
2605
|
+
# @return [Hash<String,String>]
|
|
2606
|
+
attr_accessor :labels
|
|
2607
|
+
|
|
2608
|
+
# Mount details for a volume.
|
|
2609
|
+
# Corresponds to the JSON property `mountPoint`
|
|
2610
|
+
# @return [Google::Apis::FileV1beta1::MountPoint]
|
|
2611
|
+
attr_accessor :mount_point
|
|
2612
|
+
|
|
2613
|
+
# Identifier. The resource name of the volume, in the format `projects/`project`/
|
|
2614
|
+
# locations/`location`/volumePools/`volume_pool`/volumes/`volume``.
|
|
2615
|
+
# Corresponds to the JSON property `name`
|
|
2616
|
+
# @return [String]
|
|
2617
|
+
attr_accessor :name
|
|
2618
|
+
|
|
2619
|
+
def initialize(**args)
|
|
2620
|
+
update!(**args)
|
|
2621
|
+
end
|
|
2622
|
+
|
|
2623
|
+
# Update properties of this object
|
|
2624
|
+
def update!(**args)
|
|
2625
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2626
|
+
@description = args[:description] if args.key?(:description)
|
|
2627
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
2628
|
+
@mount_point = args[:mount_point] if args.key?(:mount_point)
|
|
2629
|
+
@name = args[:name] if args.key?(:name)
|
|
2630
|
+
end
|
|
2631
|
+
end
|
|
2632
|
+
|
|
2633
|
+
# VolumePool representation of a Cloud Filestore volume pool.
|
|
2634
|
+
class VolumePool
|
|
2635
|
+
include Google::Apis::Core::Hashable
|
|
2636
|
+
|
|
2637
|
+
# Output only. The time when the volume pool was created.
|
|
2638
|
+
# Corresponds to the JSON property `createTime`
|
|
2639
|
+
# @return [String]
|
|
2640
|
+
attr_accessor :create_time
|
|
2641
|
+
|
|
2642
|
+
# Optional. A description of the volume pool with 2048 characters or less.
|
|
2643
|
+
# Corresponds to the JSON property `description`
|
|
2644
|
+
# @return [String]
|
|
2645
|
+
attr_accessor :description
|
|
2646
|
+
|
|
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
|
+
# Optional. Resource labels to represent user provided metadata.
|
|
2664
|
+
# Corresponds to the JSON property `labels`
|
|
2665
|
+
# @return [Hash<String,String>]
|
|
2666
|
+
attr_accessor :labels
|
|
2667
|
+
|
|
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
|
+
# Identifier. The resource name of the volume pool, in the format `projects/`
|
|
2709
|
+
# project`/locations/`location`/volumePools/`volume_pool``.
|
|
2710
|
+
# Corresponds to the JSON property `name`
|
|
2711
|
+
# @return [String]
|
|
2712
|
+
attr_accessor :name
|
|
2713
|
+
|
|
2714
|
+
# Optional. The ratio of Negba instances to maintain in the volume pool, between
|
|
2715
|
+
# 0 and 1.
|
|
2716
|
+
# Corresponds to the JSON property `negbaInstanceRatio`
|
|
2717
|
+
# @return [Float]
|
|
2718
|
+
attr_accessor :negba_instance_ratio
|
|
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
|
|
2725
|
+
|
|
2726
|
+
# Output only. The volume pool state.
|
|
2727
|
+
# Corresponds to the JSON property `state`
|
|
2728
|
+
# @return [String]
|
|
2729
|
+
attr_accessor :state
|
|
2730
|
+
|
|
2731
|
+
# Output only. Unique ID of the resource, as defined by CCFE.
|
|
2732
|
+
# Corresponds to the JSON property `uniqueId`
|
|
2733
|
+
# @return [String]
|
|
2734
|
+
attr_accessor :unique_id
|
|
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
|
|
2745
|
+
|
|
2746
|
+
def initialize(**args)
|
|
2747
|
+
update!(**args)
|
|
2748
|
+
end
|
|
2749
|
+
|
|
2750
|
+
# Update properties of this object
|
|
2751
|
+
def update!(**args)
|
|
2752
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2753
|
+
@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
|
+
@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
|
+
@name = args[:name] if args.key?(:name)
|
|
2767
|
+
@negba_instance_ratio = args[:negba_instance_ratio] if args.key?(:negba_instance_ratio)
|
|
2768
|
+
@operation_poll_limit = args[:operation_poll_limit] if args.key?(:operation_poll_limit)
|
|
2769
|
+
@state = args[:state] if args.key?(:state)
|
|
2770
|
+
@unique_id = args[:unique_id] if args.key?(:unique_id)
|
|
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)
|
|
2773
|
+
end
|
|
2774
|
+
end
|
|
2775
|
+
|
|
2391
2776
|
# Time window specified for weekly operations.
|
|
2392
2777
|
class WeeklyCycle
|
|
2393
2778
|
include Google::Apis::Core::Hashable
|
|
@@ -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.72.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.19.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260819"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -154,6 +154,12 @@ module Google
|
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
+
class InstanceTemplate
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
|
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
161
|
+
end
|
|
162
|
+
|
|
157
163
|
class LdapConfig
|
|
158
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
165
|
|
|
@@ -196,6 +202,18 @@ module Google
|
|
|
196
202
|
include Google::Apis::Core::JsonObjectSupport
|
|
197
203
|
end
|
|
198
204
|
|
|
205
|
+
class ListVolumePoolsResponse
|
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
207
|
+
|
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
class ListVolumesResponse
|
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
213
|
+
|
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
215
|
+
end
|
|
216
|
+
|
|
199
217
|
class Location
|
|
200
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
201
219
|
|
|
@@ -220,6 +238,12 @@ module Google
|
|
|
220
238
|
include Google::Apis::Core::JsonObjectSupport
|
|
221
239
|
end
|
|
222
240
|
|
|
241
|
+
class MountPoint
|
|
242
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
243
|
+
|
|
244
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
245
|
+
end
|
|
246
|
+
|
|
223
247
|
class NetworkConfig
|
|
224
248
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
225
249
|
|
|
@@ -298,6 +322,12 @@ module Google
|
|
|
298
322
|
include Google::Apis::Core::JsonObjectSupport
|
|
299
323
|
end
|
|
300
324
|
|
|
325
|
+
class RestoreConfig
|
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
327
|
+
|
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
329
|
+
end
|
|
330
|
+
|
|
301
331
|
class RestoreInstanceRequest
|
|
302
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
303
333
|
|
|
@@ -352,6 +382,18 @@ module Google
|
|
|
352
382
|
include Google::Apis::Core::JsonObjectSupport
|
|
353
383
|
end
|
|
354
384
|
|
|
385
|
+
class Volume
|
|
386
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
387
|
+
|
|
388
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
class VolumePool
|
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
393
|
+
|
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
395
|
+
end
|
|
396
|
+
|
|
355
397
|
class WeeklyCycle
|
|
356
398
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
357
399
|
|
|
@@ -455,6 +497,8 @@ module Google
|
|
|
455
497
|
property :name, as: 'name'
|
|
456
498
|
collection :nfs_export_options, as: 'nfsExportOptions', class: Google::Apis::FileV1beta1::NfsExportOptions, decorator: Google::Apis::FileV1beta1::NfsExportOptions::Representation
|
|
457
499
|
|
|
500
|
+
property :restore_config, as: 'restoreConfig', class: Google::Apis::FileV1beta1::RestoreConfig, decorator: Google::Apis::FileV1beta1::RestoreConfig::Representation
|
|
501
|
+
|
|
458
502
|
property :source_backup, as: 'sourceBackup'
|
|
459
503
|
property :source_backupdr_backup, as: 'sourceBackupdrBackup'
|
|
460
504
|
end
|
|
@@ -618,6 +662,22 @@ module Google
|
|
|
618
662
|
end
|
|
619
663
|
end
|
|
620
664
|
|
|
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
|
+
|
|
621
681
|
class LdapConfig
|
|
622
682
|
# @private
|
|
623
683
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -687,6 +747,26 @@ module Google
|
|
|
687
747
|
end
|
|
688
748
|
end
|
|
689
749
|
|
|
750
|
+
class ListVolumePoolsResponse
|
|
751
|
+
# @private
|
|
752
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
753
|
+
property :next_page_token, as: 'nextPageToken'
|
|
754
|
+
collection :unreachable, as: 'unreachable'
|
|
755
|
+
collection :volume_pools, as: 'volumePools', class: Google::Apis::FileV1beta1::VolumePool, decorator: Google::Apis::FileV1beta1::VolumePool::Representation
|
|
756
|
+
|
|
757
|
+
end
|
|
758
|
+
end
|
|
759
|
+
|
|
760
|
+
class ListVolumesResponse
|
|
761
|
+
# @private
|
|
762
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
763
|
+
property :next_page_token, as: 'nextPageToken'
|
|
764
|
+
collection :unreachable, as: 'unreachable'
|
|
765
|
+
collection :volumes, as: 'volumes', class: Google::Apis::FileV1beta1::Volume, decorator: Google::Apis::FileV1beta1::Volume::Representation
|
|
766
|
+
|
|
767
|
+
end
|
|
768
|
+
end
|
|
769
|
+
|
|
690
770
|
class Location
|
|
691
771
|
# @private
|
|
692
772
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -730,6 +810,14 @@ module Google
|
|
|
730
810
|
end
|
|
731
811
|
end
|
|
732
812
|
|
|
813
|
+
class MountPoint
|
|
814
|
+
# @private
|
|
815
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
816
|
+
property :ip_address, as: 'ipAddress'
|
|
817
|
+
property :mount_name, as: 'mountName'
|
|
818
|
+
end
|
|
819
|
+
end
|
|
820
|
+
|
|
733
821
|
class NetworkConfig
|
|
734
822
|
# @private
|
|
735
823
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -819,6 +907,7 @@ module Google
|
|
|
819
907
|
# @private
|
|
820
908
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
821
909
|
property :endpoint_project, as: 'endpointProject'
|
|
910
|
+
property :requested_ip_address, as: 'requestedIpAddress'
|
|
822
911
|
end
|
|
823
912
|
end
|
|
824
913
|
|
|
@@ -856,6 +945,13 @@ module Google
|
|
|
856
945
|
end
|
|
857
946
|
end
|
|
858
947
|
|
|
948
|
+
class RestoreConfig
|
|
949
|
+
# @private
|
|
950
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
951
|
+
collection :path_patterns, as: 'pathPatterns'
|
|
952
|
+
end
|
|
953
|
+
end
|
|
954
|
+
|
|
859
955
|
class RestoreInstanceRequest
|
|
860
956
|
# @private
|
|
861
957
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -947,6 +1043,46 @@ module Google
|
|
|
947
1043
|
end
|
|
948
1044
|
end
|
|
949
1045
|
|
|
1046
|
+
class Volume
|
|
1047
|
+
# @private
|
|
1048
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1049
|
+
property :create_time, as: 'createTime'
|
|
1050
|
+
property :description, as: 'description'
|
|
1051
|
+
hash :labels, as: 'labels'
|
|
1052
|
+
property :mount_point, as: 'mountPoint', class: Google::Apis::FileV1beta1::MountPoint, decorator: Google::Apis::FileV1beta1::MountPoint::Representation
|
|
1053
|
+
|
|
1054
|
+
property :name, as: 'name'
|
|
1055
|
+
end
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
class VolumePool
|
|
1059
|
+
# @private
|
|
1060
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1061
|
+
property :create_time, as: 'createTime'
|
|
1062
|
+
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
|
+
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
|
+
property :name, as: 'name'
|
|
1077
|
+
property :negba_instance_ratio, as: 'negbaInstanceRatio'
|
|
1078
|
+
property :operation_poll_limit, as: 'operationPollLimit'
|
|
1079
|
+
property :state, as: 'state'
|
|
1080
|
+
property :unique_id, as: 'uniqueId'
|
|
1081
|
+
property :volume_batch_size, as: 'volumeBatchSize'
|
|
1082
|
+
property :volume_size_mb, as: 'volumeSizeMb'
|
|
1083
|
+
end
|
|
1084
|
+
end
|
|
1085
|
+
|
|
950
1086
|
class WeeklyCycle
|
|
951
1087
|
# @private
|
|
952
1088
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1291,6 +1291,337 @@ module Google
|
|
|
1291
1291
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1292
1292
|
execute_or_queue_command(command, &block)
|
|
1293
1293
|
end
|
|
1294
|
+
|
|
1295
|
+
# Creates a volume pool.
|
|
1296
|
+
# @param [String] parent
|
|
1297
|
+
# Required. The project and location for which to create the volume pool, in the
|
|
1298
|
+
# format `projects/`project`/locations/`location``.
|
|
1299
|
+
# @param [Google::Apis::FileV1beta1::VolumePool] volume_pool_object
|
|
1300
|
+
# @param [String] volume_pool_id
|
|
1301
|
+
# Required. The ID to use for the volume pool, which will become the final
|
|
1302
|
+
# component of the volume pool's resource name.
|
|
1303
|
+
# @param [String] fields
|
|
1304
|
+
# Selector specifying which fields to include in a partial response.
|
|
1305
|
+
# @param [String] quota_user
|
|
1306
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1307
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1308
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1309
|
+
# Request-specific options
|
|
1310
|
+
#
|
|
1311
|
+
# @yield [result, err] Result & error if block supplied
|
|
1312
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
|
1313
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1314
|
+
#
|
|
1315
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
|
1316
|
+
#
|
|
1317
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1318
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1319
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1320
|
+
def create_project_location_volume_pool(parent, volume_pool_object = nil, volume_pool_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1321
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/volumePools', options)
|
|
1322
|
+
command.request_representation = Google::Apis::FileV1beta1::VolumePool::Representation
|
|
1323
|
+
command.request_object = volume_pool_object
|
|
1324
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
|
1325
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
|
1326
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1327
|
+
command.query['volumePoolId'] = volume_pool_id unless volume_pool_id.nil?
|
|
1328
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1330
|
+
execute_or_queue_command(command, &block)
|
|
1331
|
+
end
|
|
1332
|
+
|
|
1333
|
+
# Deletes a volume pool.
|
|
1334
|
+
# @param [String] name
|
|
1335
|
+
# Required. The volume pool resource name, in the format `projects/`project`/
|
|
1336
|
+
# locations/`location`/volumePools/`volume_pool``.
|
|
1337
|
+
# @param [String] fields
|
|
1338
|
+
# Selector specifying which fields to include in a partial response.
|
|
1339
|
+
# @param [String] quota_user
|
|
1340
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1341
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1342
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1343
|
+
# Request-specific options
|
|
1344
|
+
#
|
|
1345
|
+
# @yield [result, err] Result & error if block supplied
|
|
1346
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
|
1347
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1348
|
+
#
|
|
1349
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
|
1350
|
+
#
|
|
1351
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1352
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1353
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1354
|
+
def delete_project_location_volume_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1355
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
|
1356
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
|
1357
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
|
1358
|
+
command.params['name'] = name unless name.nil?
|
|
1359
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1361
|
+
execute_or_queue_command(command, &block)
|
|
1362
|
+
end
|
|
1363
|
+
|
|
1364
|
+
# Gets the details of a specific volume pool.
|
|
1365
|
+
# @param [String] name
|
|
1366
|
+
# Required. The volume pool resource name, in the format `projects/`project`/
|
|
1367
|
+
# locations/`location`/volumePools/`volume_pool``.
|
|
1368
|
+
# @param [String] fields
|
|
1369
|
+
# Selector specifying which fields to include in a partial response.
|
|
1370
|
+
# @param [String] quota_user
|
|
1371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1373
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1374
|
+
# Request-specific options
|
|
1375
|
+
#
|
|
1376
|
+
# @yield [result, err] Result & error if block supplied
|
|
1377
|
+
# @yieldparam result [Google::Apis::FileV1beta1::VolumePool] parsed result object
|
|
1378
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1379
|
+
#
|
|
1380
|
+
# @return [Google::Apis::FileV1beta1::VolumePool]
|
|
1381
|
+
#
|
|
1382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1385
|
+
def get_project_location_volume_pool(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1386
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
1387
|
+
command.response_representation = Google::Apis::FileV1beta1::VolumePool::Representation
|
|
1388
|
+
command.response_class = Google::Apis::FileV1beta1::VolumePool
|
|
1389
|
+
command.params['name'] = name unless name.nil?
|
|
1390
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1391
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1392
|
+
execute_or_queue_command(command, &block)
|
|
1393
|
+
end
|
|
1394
|
+
|
|
1395
|
+
# Lists all volume pools in a project for either a specified location or for all
|
|
1396
|
+
# locations.
|
|
1397
|
+
# @param [String] parent
|
|
1398
|
+
# Required. The project and location for which to retrieve volume pool
|
|
1399
|
+
# information, in the format `projects/`project`/locations/`location``. To
|
|
1400
|
+
# retrieve volume pool information for all locations, use "-" as the value of ``
|
|
1401
|
+
# location``.
|
|
1402
|
+
# @param [String] filter
|
|
1403
|
+
# Optional. List filter.
|
|
1404
|
+
# @param [String] order_by
|
|
1405
|
+
# Optional. Sort results. Supported values are "name", "name desc" or "" (
|
|
1406
|
+
# unsorted).
|
|
1407
|
+
# @param [Fixnum] page_size
|
|
1408
|
+
# Optional. The maximum number of items to return.
|
|
1409
|
+
# @param [String] page_token
|
|
1410
|
+
# Optional. The next_page_token value to use if there are additional results to
|
|
1411
|
+
# retrieve for this list request.
|
|
1412
|
+
# @param [String] fields
|
|
1413
|
+
# Selector specifying which fields to include in a partial response.
|
|
1414
|
+
# @param [String] quota_user
|
|
1415
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1416
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1417
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1418
|
+
# Request-specific options
|
|
1419
|
+
#
|
|
1420
|
+
# @yield [result, err] Result & error if block supplied
|
|
1421
|
+
# @yieldparam result [Google::Apis::FileV1beta1::ListVolumePoolsResponse] parsed result object
|
|
1422
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1423
|
+
#
|
|
1424
|
+
# @return [Google::Apis::FileV1beta1::ListVolumePoolsResponse]
|
|
1425
|
+
#
|
|
1426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1429
|
+
def list_project_location_volume_pools(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1430
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/volumePools', options)
|
|
1431
|
+
command.response_representation = Google::Apis::FileV1beta1::ListVolumePoolsResponse::Representation
|
|
1432
|
+
command.response_class = Google::Apis::FileV1beta1::ListVolumePoolsResponse
|
|
1433
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1434
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1435
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1436
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1437
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1438
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1439
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1440
|
+
execute_or_queue_command(command, &block)
|
|
1441
|
+
end
|
|
1442
|
+
|
|
1443
|
+
# Updates the settings of a specific volume pool.
|
|
1444
|
+
# @param [String] name
|
|
1445
|
+
# Identifier. The resource name of the volume pool, in the format `projects/`
|
|
1446
|
+
# project`/locations/`location`/volumePools/`volume_pool``.
|
|
1447
|
+
# @param [Google::Apis::FileV1beta1::VolumePool] volume_pool_object
|
|
1448
|
+
# @param [String] update_mask
|
|
1449
|
+
# Optional. Mask of fields to update. At least one path must be supplied in this
|
|
1450
|
+
# field.
|
|
1451
|
+
# @param [String] fields
|
|
1452
|
+
# Selector specifying which fields to include in a partial response.
|
|
1453
|
+
# @param [String] quota_user
|
|
1454
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1455
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1456
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1457
|
+
# Request-specific options
|
|
1458
|
+
#
|
|
1459
|
+
# @yield [result, err] Result & error if block supplied
|
|
1460
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Operation] parsed result object
|
|
1461
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1462
|
+
#
|
|
1463
|
+
# @return [Google::Apis::FileV1beta1::Operation]
|
|
1464
|
+
#
|
|
1465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1468
|
+
def patch_project_location_volume_pool(name, volume_pool_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1469
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
|
1470
|
+
command.request_representation = Google::Apis::FileV1beta1::VolumePool::Representation
|
|
1471
|
+
command.request_object = volume_pool_object
|
|
1472
|
+
command.response_representation = Google::Apis::FileV1beta1::Operation::Representation
|
|
1473
|
+
command.response_class = Google::Apis::FileV1beta1::Operation
|
|
1474
|
+
command.params['name'] = name unless name.nil?
|
|
1475
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
1476
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1478
|
+
execute_or_queue_command(command, &block)
|
|
1479
|
+
end
|
|
1480
|
+
|
|
1481
|
+
# Creates a volume.
|
|
1482
|
+
# @param [String] parent
|
|
1483
|
+
# Required. The parent volume pool path, in the format `projects/`project`/
|
|
1484
|
+
# locations/`location`/volumePools/`volume_pool``.
|
|
1485
|
+
# @param [Google::Apis::FileV1beta1::Volume] volume_object
|
|
1486
|
+
# @param [String] volume_id
|
|
1487
|
+
# Required. The ID to use for the volume. The ID must be unique within the
|
|
1488
|
+
# specified volume pool.
|
|
1489
|
+
# @param [String] fields
|
|
1490
|
+
# Selector specifying which fields to include in a partial response.
|
|
1491
|
+
# @param [String] quota_user
|
|
1492
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1493
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1494
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1495
|
+
# Request-specific options
|
|
1496
|
+
#
|
|
1497
|
+
# @yield [result, err] Result & error if block supplied
|
|
1498
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Volume] parsed result object
|
|
1499
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1500
|
+
#
|
|
1501
|
+
# @return [Google::Apis::FileV1beta1::Volume]
|
|
1502
|
+
#
|
|
1503
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1504
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1505
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1506
|
+
def create_project_location_volume_pool_volume(parent, volume_object = nil, volume_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1507
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/volumes', options)
|
|
1508
|
+
command.request_representation = Google::Apis::FileV1beta1::Volume::Representation
|
|
1509
|
+
command.request_object = volume_object
|
|
1510
|
+
command.response_representation = Google::Apis::FileV1beta1::Volume::Representation
|
|
1511
|
+
command.response_class = Google::Apis::FileV1beta1::Volume
|
|
1512
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1513
|
+
command.query['volumeId'] = volume_id unless volume_id.nil?
|
|
1514
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1516
|
+
execute_or_queue_command(command, &block)
|
|
1517
|
+
end
|
|
1518
|
+
|
|
1519
|
+
# Deletes a volume.
|
|
1520
|
+
# @param [String] name
|
|
1521
|
+
# Required. The volume resource name, in the format `projects/`project`/
|
|
1522
|
+
# locations/`location`/volumePools/`volume_pool`/volumes/`volume``.
|
|
1523
|
+
# @param [String] fields
|
|
1524
|
+
# Selector specifying which fields to include in a partial response.
|
|
1525
|
+
# @param [String] quota_user
|
|
1526
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1527
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1528
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1529
|
+
# Request-specific options
|
|
1530
|
+
#
|
|
1531
|
+
# @yield [result, err] Result & error if block supplied
|
|
1532
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Empty] parsed result object
|
|
1533
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1534
|
+
#
|
|
1535
|
+
# @return [Google::Apis::FileV1beta1::Empty]
|
|
1536
|
+
#
|
|
1537
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1538
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1539
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1540
|
+
def delete_project_location_volume_pool_volume(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1541
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
|
1542
|
+
command.response_representation = Google::Apis::FileV1beta1::Empty::Representation
|
|
1543
|
+
command.response_class = Google::Apis::FileV1beta1::Empty
|
|
1544
|
+
command.params['name'] = name unless name.nil?
|
|
1545
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1546
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1547
|
+
execute_or_queue_command(command, &block)
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
# Gets the details of a specific volume.
|
|
1551
|
+
# @param [String] name
|
|
1552
|
+
# Required. The volume resource name, in the format `projects/`project`/
|
|
1553
|
+
# locations/`location`/volumePools/`volume_pool`/volumes/`volume``.
|
|
1554
|
+
# @param [String] fields
|
|
1555
|
+
# Selector specifying which fields to include in a partial response.
|
|
1556
|
+
# @param [String] quota_user
|
|
1557
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1558
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1559
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1560
|
+
# Request-specific options
|
|
1561
|
+
#
|
|
1562
|
+
# @yield [result, err] Result & error if block supplied
|
|
1563
|
+
# @yieldparam result [Google::Apis::FileV1beta1::Volume] parsed result object
|
|
1564
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1565
|
+
#
|
|
1566
|
+
# @return [Google::Apis::FileV1beta1::Volume]
|
|
1567
|
+
#
|
|
1568
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1569
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1570
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1571
|
+
def get_project_location_volume_pool_volume(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1572
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
1573
|
+
command.response_representation = Google::Apis::FileV1beta1::Volume::Representation
|
|
1574
|
+
command.response_class = Google::Apis::FileV1beta1::Volume
|
|
1575
|
+
command.params['name'] = name unless name.nil?
|
|
1576
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1577
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1578
|
+
execute_or_queue_command(command, &block)
|
|
1579
|
+
end
|
|
1580
|
+
|
|
1581
|
+
# Lists all volumes for a specified volume pool.
|
|
1582
|
+
# @param [String] parent
|
|
1583
|
+
# Required. The volume pool for which to retrieve volume information, in the
|
|
1584
|
+
# format `projects/`project`/locations/`location`/volumePools/`volume_pool``.
|
|
1585
|
+
# @param [String] filter
|
|
1586
|
+
# Optional. List filter.
|
|
1587
|
+
# @param [String] order_by
|
|
1588
|
+
# Optional. Sort results. Supported values are "name", "name desc" or "" (
|
|
1589
|
+
# unsorted).
|
|
1590
|
+
# @param [Fixnum] page_size
|
|
1591
|
+
# Optional. The maximum number of items to return.
|
|
1592
|
+
# @param [String] page_token
|
|
1593
|
+
# Optional. The next_page_token value to use if there are additional results to
|
|
1594
|
+
# retrieve for this list request.
|
|
1595
|
+
# @param [String] fields
|
|
1596
|
+
# Selector specifying which fields to include in a partial response.
|
|
1597
|
+
# @param [String] quota_user
|
|
1598
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1599
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1600
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1601
|
+
# Request-specific options
|
|
1602
|
+
#
|
|
1603
|
+
# @yield [result, err] Result & error if block supplied
|
|
1604
|
+
# @yieldparam result [Google::Apis::FileV1beta1::ListVolumesResponse] parsed result object
|
|
1605
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1606
|
+
#
|
|
1607
|
+
# @return [Google::Apis::FileV1beta1::ListVolumesResponse]
|
|
1608
|
+
#
|
|
1609
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1610
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1611
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1612
|
+
def list_project_location_volume_pool_volumes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1613
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/volumes', options)
|
|
1614
|
+
command.response_representation = Google::Apis::FileV1beta1::ListVolumesResponse::Representation
|
|
1615
|
+
command.response_class = Google::Apis::FileV1beta1::ListVolumesResponse
|
|
1616
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1617
|
+
command.query['filter'] = filter unless filter.nil?
|
|
1618
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1619
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1620
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1621
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1622
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1623
|
+
execute_or_queue_command(command, &block)
|
|
1624
|
+
end
|
|
1294
1625
|
|
|
1295
1626
|
protected
|
|
1296
1627
|
|
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.72.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.72.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:
|