google-apis-file_v1beta1 0.69.0 → 0.70.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: 6348942754708348badc6852ee7cbbb54c0cfd57ffa978e499f018029d6aff8b
|
|
4
|
+
data.tar.gz: 954cf3f418f9134c197dd7352c7b17d5aa7db850675b8c784b90f6922b296ccb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aaed603cc991a7cb5e62c4758adb31430819f22b2013db6fab0660d8c727d55cfc0a5cec5d5d96c3f9ad49575668e0d243f1aff6f5257e75f5069c47aef9093c
|
|
7
|
+
data.tar.gz: d659b594478c6d2b558590da21c5114d1e14941f49de76c1f9c7687540baf6766ee6bbdcbd8ae126d5e23f8de7513e612002e8d32f2226fba7ee7e96bce464a1
|
data/CHANGELOG.md
CHANGED
|
@@ -22,6 +22,57 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module FileV1beta1
|
|
24
24
|
|
|
25
|
+
# Request message for AcquireShare.
|
|
26
|
+
class AcquireShareRequest
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Required. Requested size of the share in GiB.
|
|
30
|
+
# Corresponds to the JSON property `capacityGb`
|
|
31
|
+
# @return [Fixnum]
|
|
32
|
+
attr_accessor :capacity_gb
|
|
33
|
+
|
|
34
|
+
# Required. Unique string generated by the CSI driver for exact retry
|
|
35
|
+
# idempotency.
|
|
36
|
+
# Corresponds to the JSON property `requestId`
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :request_id
|
|
39
|
+
|
|
40
|
+
def initialize(**args)
|
|
41
|
+
update!(**args)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Update properties of this object
|
|
45
|
+
def update!(**args)
|
|
46
|
+
@capacity_gb = args[:capacity_gb] if args.key?(:capacity_gb)
|
|
47
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Output message for AcquireShare.
|
|
52
|
+
class AcquireShareResponse
|
|
53
|
+
include Google::Apis::Core::Hashable
|
|
54
|
+
|
|
55
|
+
# The IP address of the physical Filestore instance hosting the share.
|
|
56
|
+
# Corresponds to the JSON property `ipAddress`
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :ip_address
|
|
59
|
+
|
|
60
|
+
# The specific share identifier on the instance.
|
|
61
|
+
# Corresponds to the JSON property `shareId`
|
|
62
|
+
# @return [String]
|
|
63
|
+
attr_accessor :share_id
|
|
64
|
+
|
|
65
|
+
def initialize(**args)
|
|
66
|
+
update!(**args)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Update properties of this object
|
|
70
|
+
def update!(**args)
|
|
71
|
+
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
|
72
|
+
@share_id = args[:share_id] if args.key?(:share_id)
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
25
76
|
# A Filestore backup.
|
|
26
77
|
class Backup
|
|
27
78
|
include Google::Apis::Core::Hashable
|
|
@@ -1866,6 +1917,44 @@ module Google
|
|
|
1866
1917
|
end
|
|
1867
1918
|
end
|
|
1868
1919
|
|
|
1920
|
+
# Request message for ReleaseShare.
|
|
1921
|
+
class ReleaseShareRequest
|
|
1922
|
+
include Google::Apis::Core::Hashable
|
|
1923
|
+
|
|
1924
|
+
# Required. The IP address of the physical Filestore instance hosting the share.
|
|
1925
|
+
# Corresponds to the JSON property `ipAddress`
|
|
1926
|
+
# @return [String]
|
|
1927
|
+
attr_accessor :ip_address
|
|
1928
|
+
|
|
1929
|
+
# Required. The specific share ID on the instance.
|
|
1930
|
+
# Corresponds to the JSON property `shareId`
|
|
1931
|
+
# @return [String]
|
|
1932
|
+
attr_accessor :share_id
|
|
1933
|
+
|
|
1934
|
+
def initialize(**args)
|
|
1935
|
+
update!(**args)
|
|
1936
|
+
end
|
|
1937
|
+
|
|
1938
|
+
# Update properties of this object
|
|
1939
|
+
def update!(**args)
|
|
1940
|
+
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
|
1941
|
+
@share_id = args[:share_id] if args.key?(:share_id)
|
|
1942
|
+
end
|
|
1943
|
+
end
|
|
1944
|
+
|
|
1945
|
+
# Response message for ReleaseShare.
|
|
1946
|
+
class ReleaseShareResponse
|
|
1947
|
+
include Google::Apis::Core::Hashable
|
|
1948
|
+
|
|
1949
|
+
def initialize(**args)
|
|
1950
|
+
update!(**args)
|
|
1951
|
+
end
|
|
1952
|
+
|
|
1953
|
+
# Update properties of this object
|
|
1954
|
+
def update!(**args)
|
|
1955
|
+
end
|
|
1956
|
+
end
|
|
1957
|
+
|
|
1869
1958
|
# Replica configuration for the instance.
|
|
1870
1959
|
class ReplicaConfig
|
|
1871
1960
|
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.70.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 = "20260612"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -22,6 +22,18 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module FileV1beta1
|
|
24
24
|
|
|
25
|
+
class AcquireShareRequest
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
|
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
class AcquireShareResponse
|
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
+
|
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
+
end
|
|
36
|
+
|
|
25
37
|
class Backup
|
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
39
|
|
|
@@ -262,6 +274,18 @@ module Google
|
|
|
262
274
|
include Google::Apis::Core::JsonObjectSupport
|
|
263
275
|
end
|
|
264
276
|
|
|
277
|
+
class ReleaseShareRequest
|
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
279
|
+
|
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
class ReleaseShareResponse
|
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
285
|
+
|
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
287
|
+
end
|
|
288
|
+
|
|
265
289
|
class ReplicaConfig
|
|
266
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
267
291
|
|
|
@@ -334,6 +358,22 @@ module Google
|
|
|
334
358
|
include Google::Apis::Core::JsonObjectSupport
|
|
335
359
|
end
|
|
336
360
|
|
|
361
|
+
class AcquireShareRequest
|
|
362
|
+
# @private
|
|
363
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
364
|
+
property :capacity_gb, as: 'capacityGb'
|
|
365
|
+
property :request_id, as: 'requestId'
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
class AcquireShareResponse
|
|
370
|
+
# @private
|
|
371
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
372
|
+
property :ip_address, as: 'ipAddress'
|
|
373
|
+
property :share_id, as: 'shareId'
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
|
|
337
377
|
class Backup
|
|
338
378
|
# @private
|
|
339
379
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -782,6 +822,20 @@ module Google
|
|
|
782
822
|
end
|
|
783
823
|
end
|
|
784
824
|
|
|
825
|
+
class ReleaseShareRequest
|
|
826
|
+
# @private
|
|
827
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
828
|
+
property :ip_address, as: 'ipAddress'
|
|
829
|
+
property :share_id, as: 'shareId'
|
|
830
|
+
end
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
class ReleaseShareResponse
|
|
834
|
+
# @private
|
|
835
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
836
|
+
end
|
|
837
|
+
end
|
|
838
|
+
|
|
785
839
|
class ReplicaConfig
|
|
786
840
|
# @private
|
|
787
841
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1223,6 +1223,74 @@ module Google
|
|
|
1223
1223
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1224
1224
|
execute_or_queue_command(command, &block)
|
|
1225
1225
|
end
|
|
1226
|
+
|
|
1227
|
+
# Acquires a share synchronously from the pre-provisioned share pool.
|
|
1228
|
+
# @param [String] parent
|
|
1229
|
+
# Required. The parent share pool path, in the format `projects/`project`/
|
|
1230
|
+
# locations/`location`/sharePools/`share_pool``.
|
|
1231
|
+
# @param [Google::Apis::FileV1beta1::AcquireShareRequest] acquire_share_request_object
|
|
1232
|
+
# @param [String] fields
|
|
1233
|
+
# Selector specifying which fields to include in a partial response.
|
|
1234
|
+
# @param [String] quota_user
|
|
1235
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1236
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1237
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1238
|
+
# Request-specific options
|
|
1239
|
+
#
|
|
1240
|
+
# @yield [result, err] Result & error if block supplied
|
|
1241
|
+
# @yieldparam result [Google::Apis::FileV1beta1::AcquireShareResponse] parsed result object
|
|
1242
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1243
|
+
#
|
|
1244
|
+
# @return [Google::Apis::FileV1beta1::AcquireShareResponse]
|
|
1245
|
+
#
|
|
1246
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1247
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1248
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1249
|
+
def acquire_share_pool_share(parent, acquire_share_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1250
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:acquireShare', options)
|
|
1251
|
+
command.request_representation = Google::Apis::FileV1beta1::AcquireShareRequest::Representation
|
|
1252
|
+
command.request_object = acquire_share_request_object
|
|
1253
|
+
command.response_representation = Google::Apis::FileV1beta1::AcquireShareResponse::Representation
|
|
1254
|
+
command.response_class = Google::Apis::FileV1beta1::AcquireShareResponse
|
|
1255
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1256
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1257
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1258
|
+
execute_or_queue_command(command, &block)
|
|
1259
|
+
end
|
|
1260
|
+
|
|
1261
|
+
# Releases a share synchronously, marking it for background scrubbing.
|
|
1262
|
+
# @param [String] parent
|
|
1263
|
+
# Required. The parent share pool path, in the format `projects/`project`/
|
|
1264
|
+
# locations/`location`/sharePools/`share_pool``.
|
|
1265
|
+
# @param [Google::Apis::FileV1beta1::ReleaseShareRequest] release_share_request_object
|
|
1266
|
+
# @param [String] fields
|
|
1267
|
+
# Selector specifying which fields to include in a partial response.
|
|
1268
|
+
# @param [String] quota_user
|
|
1269
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1270
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1271
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1272
|
+
# Request-specific options
|
|
1273
|
+
#
|
|
1274
|
+
# @yield [result, err] Result & error if block supplied
|
|
1275
|
+
# @yieldparam result [Google::Apis::FileV1beta1::ReleaseShareResponse] parsed result object
|
|
1276
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1277
|
+
#
|
|
1278
|
+
# @return [Google::Apis::FileV1beta1::ReleaseShareResponse]
|
|
1279
|
+
#
|
|
1280
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1281
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1282
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1283
|
+
def release_share_pool_share(parent, release_share_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1284
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}:releaseShare', options)
|
|
1285
|
+
command.request_representation = Google::Apis::FileV1beta1::ReleaseShareRequest::Representation
|
|
1286
|
+
command.request_object = release_share_request_object
|
|
1287
|
+
command.response_representation = Google::Apis::FileV1beta1::ReleaseShareResponse::Representation
|
|
1288
|
+
command.response_class = Google::Apis::FileV1beta1::ReleaseShareResponse
|
|
1289
|
+
command.params['parent'] = parent unless parent.nil?
|
|
1290
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1291
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1292
|
+
execute_or_queue_command(command, &block)
|
|
1293
|
+
end
|
|
1226
1294
|
|
|
1227
1295
|
protected
|
|
1228
1296
|
|
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.70.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.70.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:
|