google-apis-storage_v1 0.29.0 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df6e6c1e54e8d90d19438c2d2a17f765557372c6e2719041772ff79e4c312873
|
4
|
+
data.tar.gz: 71d430e9fff8278aa3d4ec89eedfcbaad813d77e6e48f80369763409afb0463a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb0fab7fbc1223dc9a69a1a0cdd0b3da06c15cd12e917485f3a8a7a7f5e509f823a70e15ee4df4a411eed61cb9e604b1be037822efcfed765815d15ebb21284e
|
7
|
+
data.tar.gz: a28dff7f1baa08a0be22911b911993be0d9e94e9e5a4c883470f08d1c41cfabfd4f5b97ca988bbaab5db3539fa52ec86ed91157644002118178a66c137ed20db
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.31.0 (2023-12-03)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231117
|
6
|
+
|
7
|
+
### v0.30.0 (2023-11-05)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231028
|
10
|
+
|
3
11
|
### v0.29.0 (2023-10-15)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231012
|
@@ -22,6 +22,121 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module StorageV1
|
24
24
|
|
25
|
+
# An Anywhere Cache instance.
|
26
|
+
class AnywhereCache
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The cache-level entry admission policy.
|
30
|
+
# Corresponds to the JSON property `admissionPolicy`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :admission_policy
|
33
|
+
|
34
|
+
# The ID of the Anywhere cache instance.
|
35
|
+
# Corresponds to the JSON property `anywhereCacheId`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :anywhere_cache_id
|
38
|
+
|
39
|
+
# The name of the bucket containing this cache instance.
|
40
|
+
# Corresponds to the JSON property `bucket`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :bucket
|
43
|
+
|
44
|
+
# The creation time of the cache instance in RFC 3339 format.
|
45
|
+
# Corresponds to the JSON property `createTime`
|
46
|
+
# @return [DateTime]
|
47
|
+
attr_accessor :create_time
|
48
|
+
|
49
|
+
# The ID of the resource, including the project number, bucket name and anywhere
|
50
|
+
# cache ID.
|
51
|
+
# Corresponds to the JSON property `id`
|
52
|
+
# @return [String]
|
53
|
+
attr_accessor :id
|
54
|
+
|
55
|
+
# The kind of item this is. For Anywhere Cache, this is always storage#
|
56
|
+
# anywhereCache.
|
57
|
+
# Corresponds to the JSON property `kind`
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :kind
|
60
|
+
|
61
|
+
# True if the cache instance has an active Update long-running operation.
|
62
|
+
# Corresponds to the JSON property `pendingUpdate`
|
63
|
+
# @return [Boolean]
|
64
|
+
attr_accessor :pending_update
|
65
|
+
alias_method :pending_update?, :pending_update
|
66
|
+
|
67
|
+
# The link to this cache instance.
|
68
|
+
# Corresponds to the JSON property `selfLink`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :self_link
|
71
|
+
|
72
|
+
# The current state of the cache instance.
|
73
|
+
# Corresponds to the JSON property `state`
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :state
|
76
|
+
|
77
|
+
# The TTL of all cache entries in whole seconds. e.g., "7200s".
|
78
|
+
# Corresponds to the JSON property `ttl`
|
79
|
+
# @return [String]
|
80
|
+
attr_accessor :ttl
|
81
|
+
|
82
|
+
# The modification time of the cache instance metadata in RFC 3339 format.
|
83
|
+
# Corresponds to the JSON property `updateTime`
|
84
|
+
# @return [DateTime]
|
85
|
+
attr_accessor :update_time
|
86
|
+
|
87
|
+
def initialize(**args)
|
88
|
+
update!(**args)
|
89
|
+
end
|
90
|
+
|
91
|
+
# Update properties of this object
|
92
|
+
def update!(**args)
|
93
|
+
@admission_policy = args[:admission_policy] if args.key?(:admission_policy)
|
94
|
+
@anywhere_cache_id = args[:anywhere_cache_id] if args.key?(:anywhere_cache_id)
|
95
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
96
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
97
|
+
@id = args[:id] if args.key?(:id)
|
98
|
+
@kind = args[:kind] if args.key?(:kind)
|
99
|
+
@pending_update = args[:pending_update] if args.key?(:pending_update)
|
100
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
101
|
+
@state = args[:state] if args.key?(:state)
|
102
|
+
@ttl = args[:ttl] if args.key?(:ttl)
|
103
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# A list of Anywhere Caches.
|
108
|
+
class AnywhereCaches
|
109
|
+
include Google::Apis::Core::Hashable
|
110
|
+
|
111
|
+
# The list of items.
|
112
|
+
# Corresponds to the JSON property `items`
|
113
|
+
# @return [Array<Google::Apis::StorageV1::AnywhereCache>]
|
114
|
+
attr_accessor :items
|
115
|
+
|
116
|
+
# The kind of item this is. For lists of Anywhere Caches, this is always storage#
|
117
|
+
# anywhereCaches.
|
118
|
+
# Corresponds to the JSON property `kind`
|
119
|
+
# @return [String]
|
120
|
+
attr_accessor :kind
|
121
|
+
|
122
|
+
# The continuation token, used to page through large result sets. Provide this
|
123
|
+
# value in a subsequent request to return the next page of results.
|
124
|
+
# Corresponds to the JSON property `nextPageToken`
|
125
|
+
# @return [String]
|
126
|
+
attr_accessor :next_page_token
|
127
|
+
|
128
|
+
def initialize(**args)
|
129
|
+
update!(**args)
|
130
|
+
end
|
131
|
+
|
132
|
+
# Update properties of this object
|
133
|
+
def update!(**args)
|
134
|
+
@items = args[:items] if args.key?(:items)
|
135
|
+
@kind = args[:kind] if args.key?(:kind)
|
136
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
25
140
|
# A bucket.
|
26
141
|
class Bucket
|
27
142
|
include Google::Apis::Core::Hashable
|
@@ -809,7 +924,7 @@ module Google
|
|
809
924
|
# @return [DateTime]
|
810
925
|
attr_accessor :effective_time
|
811
926
|
|
812
|
-
# The
|
927
|
+
# The duration in seconds that soft-deleted objects in the bucket will be
|
813
928
|
# retained and cannot be permanently deleted.
|
814
929
|
# Corresponds to the JSON property `retentionDurationSeconds`
|
815
930
|
# @return [Fixnum]
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module StorageV1
|
18
18
|
# Version of the google-apis-storage_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.31.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231117"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,18 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module StorageV1
|
24
24
|
|
25
|
+
class AnywhereCache
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AnywhereCaches
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class Bucket
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
@@ -340,6 +352,35 @@ module Google
|
|
340
352
|
include Google::Apis::Core::JsonObjectSupport
|
341
353
|
end
|
342
354
|
|
355
|
+
class AnywhereCache
|
356
|
+
# @private
|
357
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
358
|
+
property :admission_policy, as: 'admissionPolicy'
|
359
|
+
property :anywhere_cache_id, as: 'anywhereCacheId'
|
360
|
+
property :bucket, as: 'bucket'
|
361
|
+
property :create_time, as: 'createTime', type: DateTime
|
362
|
+
|
363
|
+
property :id, as: 'id'
|
364
|
+
property :kind, as: 'kind'
|
365
|
+
property :pending_update, as: 'pendingUpdate'
|
366
|
+
property :self_link, as: 'selfLink'
|
367
|
+
property :state, as: 'state'
|
368
|
+
property :ttl, as: 'ttl'
|
369
|
+
property :update_time, as: 'updateTime', type: DateTime
|
370
|
+
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
class AnywhereCaches
|
375
|
+
# @private
|
376
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
377
|
+
collection :items, as: 'items', class: Google::Apis::StorageV1::AnywhereCache, decorator: Google::Apis::StorageV1::AnywhereCache::Representation
|
378
|
+
|
379
|
+
property :kind, as: 'kind'
|
380
|
+
property :next_page_token, as: 'nextPageToken'
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
343
384
|
class Bucket
|
344
385
|
# @private
|
345
386
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -53,6 +53,265 @@ module Google
|
|
53
53
|
@batch_path = 'batch/storage/v1'
|
54
54
|
end
|
55
55
|
|
56
|
+
# Disables an Anywhere Cache instance.
|
57
|
+
# @param [String] bucket
|
58
|
+
# Name of the partent bucket
|
59
|
+
# @param [String] anywhere_cache_id
|
60
|
+
# The ID of requested Anywhere Cache instance.
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
65
|
+
# characters.
|
66
|
+
# @param [String] user_ip
|
67
|
+
# Deprecated. Please use quotaUser instead.
|
68
|
+
# @param [Google::Apis::RequestOptions] options
|
69
|
+
# Request-specific options
|
70
|
+
#
|
71
|
+
# @yield [result, err] Result & error if block supplied
|
72
|
+
# @yieldparam result [Google::Apis::StorageV1::AnywhereCache] parsed result object
|
73
|
+
# @yieldparam err [StandardError] error object if request failed
|
74
|
+
#
|
75
|
+
# @return [Google::Apis::StorageV1::AnywhereCache]
|
76
|
+
#
|
77
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
78
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
79
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
80
|
+
def disable_anywhere_cach(bucket, anywhere_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
81
|
+
command = make_simple_command(:post, 'b/{bucket}/anywhereCaches/{anywhereCacheId}/disable', options)
|
82
|
+
command.response_representation = Google::Apis::StorageV1::AnywhereCache::Representation
|
83
|
+
command.response_class = Google::Apis::StorageV1::AnywhereCache
|
84
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
85
|
+
command.params['anywhereCacheId'] = anywhere_cache_id unless anywhere_cache_id.nil?
|
86
|
+
command.query['fields'] = fields unless fields.nil?
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
88
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
89
|
+
execute_or_queue_command(command, &block)
|
90
|
+
end
|
91
|
+
|
92
|
+
# Returns the metadata of an Anywhere Cache instance.
|
93
|
+
# @param [String] bucket
|
94
|
+
# Name of the partent bucket
|
95
|
+
# @param [String] anywhere_cache_id
|
96
|
+
# The ID of requested Anywhere Cache instance.
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
101
|
+
# characters.
|
102
|
+
# @param [String] user_ip
|
103
|
+
# Deprecated. Please use quotaUser instead.
|
104
|
+
# @param [Google::Apis::RequestOptions] options
|
105
|
+
# Request-specific options
|
106
|
+
#
|
107
|
+
# @yield [result, err] Result & error if block supplied
|
108
|
+
# @yieldparam result [Google::Apis::StorageV1::AnywhereCache] parsed result object
|
109
|
+
# @yieldparam err [StandardError] error object if request failed
|
110
|
+
#
|
111
|
+
# @return [Google::Apis::StorageV1::AnywhereCache]
|
112
|
+
#
|
113
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
+
def get_anywhere_cach(bucket, anywhere_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
117
|
+
command = make_simple_command(:get, 'b/{bucket}/anywhereCaches/{anywhereCacheId}', options)
|
118
|
+
command.response_representation = Google::Apis::StorageV1::AnywhereCache::Representation
|
119
|
+
command.response_class = Google::Apis::StorageV1::AnywhereCache
|
120
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
121
|
+
command.params['anywhereCacheId'] = anywhere_cache_id unless anywhere_cache_id.nil?
|
122
|
+
command.query['fields'] = fields unless fields.nil?
|
123
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
124
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
125
|
+
execute_or_queue_command(command, &block)
|
126
|
+
end
|
127
|
+
|
128
|
+
# Creates an Anywhere Cache instance.
|
129
|
+
# @param [String] bucket
|
130
|
+
# Name of the partent bucket
|
131
|
+
# @param [Google::Apis::StorageV1::AnywhereCache] anywhere_cache_object
|
132
|
+
# @param [String] fields
|
133
|
+
# Selector specifying which fields to include in a partial response.
|
134
|
+
# @param [String] quota_user
|
135
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
136
|
+
# characters.
|
137
|
+
# @param [String] user_ip
|
138
|
+
# Deprecated. Please use quotaUser instead.
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
140
|
+
# Request-specific options
|
141
|
+
#
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
143
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
145
|
+
#
|
146
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
147
|
+
#
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
151
|
+
def insert_anywhere_cach(bucket, anywhere_cache_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:post, 'b/{bucket}/anywhereCaches', options)
|
153
|
+
command.request_representation = Google::Apis::StorageV1::AnywhereCache::Representation
|
154
|
+
command.request_object = anywhere_cache_object
|
155
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
156
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
157
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
158
|
+
command.query['fields'] = fields unless fields.nil?
|
159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
160
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
161
|
+
execute_or_queue_command(command, &block)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns a list of Anywhere Cache instances of the bucket matching the criteria.
|
165
|
+
# @param [String] bucket
|
166
|
+
# Name of the partent bucket
|
167
|
+
# @param [Fixnum] page_size
|
168
|
+
# Maximum number of items return in a single page of responses. Maximum 1000.
|
169
|
+
# @param [String] page_token
|
170
|
+
# A previously-returned page token representing part of the larger set of
|
171
|
+
# results to view.
|
172
|
+
# @param [String] fields
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
174
|
+
# @param [String] quota_user
|
175
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
176
|
+
# characters.
|
177
|
+
# @param [String] user_ip
|
178
|
+
# Deprecated. Please use quotaUser instead.
|
179
|
+
# @param [Google::Apis::RequestOptions] options
|
180
|
+
# Request-specific options
|
181
|
+
#
|
182
|
+
# @yield [result, err] Result & error if block supplied
|
183
|
+
# @yieldparam result [Google::Apis::StorageV1::AnywhereCaches] parsed result object
|
184
|
+
# @yieldparam err [StandardError] error object if request failed
|
185
|
+
#
|
186
|
+
# @return [Google::Apis::StorageV1::AnywhereCaches]
|
187
|
+
#
|
188
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
189
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
190
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
191
|
+
def list_anywhere_caches(bucket, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
192
|
+
command = make_simple_command(:get, 'b/{bucket}/anywhereCaches', options)
|
193
|
+
command.response_representation = Google::Apis::StorageV1::AnywhereCaches::Representation
|
194
|
+
command.response_class = Google::Apis::StorageV1::AnywhereCaches
|
195
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
196
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
197
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
198
|
+
command.query['fields'] = fields unless fields.nil?
|
199
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
201
|
+
execute_or_queue_command(command, &block)
|
202
|
+
end
|
203
|
+
|
204
|
+
# Pauses an Anywhere Cache instance.
|
205
|
+
# @param [String] bucket
|
206
|
+
# Name of the partent bucket
|
207
|
+
# @param [String] anywhere_cache_id
|
208
|
+
# The ID of requested Anywhere Cache instance.
|
209
|
+
# @param [String] fields
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
211
|
+
# @param [String] quota_user
|
212
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
213
|
+
# characters.
|
214
|
+
# @param [String] user_ip
|
215
|
+
# Deprecated. Please use quotaUser instead.
|
216
|
+
# @param [Google::Apis::RequestOptions] options
|
217
|
+
# Request-specific options
|
218
|
+
#
|
219
|
+
# @yield [result, err] Result & error if block supplied
|
220
|
+
# @yieldparam result [Google::Apis::StorageV1::AnywhereCache] parsed result object
|
221
|
+
# @yieldparam err [StandardError] error object if request failed
|
222
|
+
#
|
223
|
+
# @return [Google::Apis::StorageV1::AnywhereCache]
|
224
|
+
#
|
225
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
226
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
227
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
228
|
+
def pause_anywhere_cach(bucket, anywhere_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
229
|
+
command = make_simple_command(:post, 'b/{bucket}/anywhereCaches/{anywhereCacheId}/pause', options)
|
230
|
+
command.response_representation = Google::Apis::StorageV1::AnywhereCache::Representation
|
231
|
+
command.response_class = Google::Apis::StorageV1::AnywhereCache
|
232
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
233
|
+
command.params['anywhereCacheId'] = anywhere_cache_id unless anywhere_cache_id.nil?
|
234
|
+
command.query['fields'] = fields unless fields.nil?
|
235
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
236
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
237
|
+
execute_or_queue_command(command, &block)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Resumes a paused or disabled Anywhere Cache instance.
|
241
|
+
# @param [String] bucket
|
242
|
+
# Name of the partent bucket
|
243
|
+
# @param [String] anywhere_cache_id
|
244
|
+
# The ID of requested Anywhere Cache instance.
|
245
|
+
# @param [String] fields
|
246
|
+
# Selector specifying which fields to include in a partial response.
|
247
|
+
# @param [String] quota_user
|
248
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
249
|
+
# characters.
|
250
|
+
# @param [String] user_ip
|
251
|
+
# Deprecated. Please use quotaUser instead.
|
252
|
+
# @param [Google::Apis::RequestOptions] options
|
253
|
+
# Request-specific options
|
254
|
+
#
|
255
|
+
# @yield [result, err] Result & error if block supplied
|
256
|
+
# @yieldparam result [Google::Apis::StorageV1::AnywhereCache] parsed result object
|
257
|
+
# @yieldparam err [StandardError] error object if request failed
|
258
|
+
#
|
259
|
+
# @return [Google::Apis::StorageV1::AnywhereCache]
|
260
|
+
#
|
261
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
262
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
263
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
264
|
+
def resume_anywhere_cach(bucket, anywhere_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
265
|
+
command = make_simple_command(:post, 'b/{bucket}/anywhereCaches/{anywhereCacheId}/resume', options)
|
266
|
+
command.response_representation = Google::Apis::StorageV1::AnywhereCache::Representation
|
267
|
+
command.response_class = Google::Apis::StorageV1::AnywhereCache
|
268
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
269
|
+
command.params['anywhereCacheId'] = anywhere_cache_id unless anywhere_cache_id.nil?
|
270
|
+
command.query['fields'] = fields unless fields.nil?
|
271
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
272
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
273
|
+
execute_or_queue_command(command, &block)
|
274
|
+
end
|
275
|
+
|
276
|
+
# Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
|
277
|
+
# @param [String] bucket
|
278
|
+
# Name of the partent bucket
|
279
|
+
# @param [String] anywhere_cache_id
|
280
|
+
# The ID of requested Anywhere Cache instance.
|
281
|
+
# @param [Google::Apis::StorageV1::AnywhereCache] anywhere_cache_object
|
282
|
+
# @param [String] fields
|
283
|
+
# Selector specifying which fields to include in a partial response.
|
284
|
+
# @param [String] quota_user
|
285
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
286
|
+
# characters.
|
287
|
+
# @param [String] user_ip
|
288
|
+
# Deprecated. Please use quotaUser instead.
|
289
|
+
# @param [Google::Apis::RequestOptions] options
|
290
|
+
# Request-specific options
|
291
|
+
#
|
292
|
+
# @yield [result, err] Result & error if block supplied
|
293
|
+
# @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
|
294
|
+
# @yieldparam err [StandardError] error object if request failed
|
295
|
+
#
|
296
|
+
# @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
|
297
|
+
#
|
298
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
299
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
300
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
301
|
+
def update_anywhere_cach(bucket, anywhere_cache_id, anywhere_cache_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
302
|
+
command = make_simple_command(:patch, 'b/{bucket}/anywhereCaches/{anywhereCacheId}', options)
|
303
|
+
command.request_representation = Google::Apis::StorageV1::AnywhereCache::Representation
|
304
|
+
command.request_object = anywhere_cache_object
|
305
|
+
command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
306
|
+
command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
|
307
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
308
|
+
command.params['anywhereCacheId'] = anywhere_cache_id unless anywhere_cache_id.nil?
|
309
|
+
command.query['fields'] = fields unless fields.nil?
|
310
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
311
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
312
|
+
execute_or_queue_command(command, &block)
|
313
|
+
end
|
314
|
+
|
56
315
|
# Permanently deletes the ACL entry for the specified entity on the specified
|
57
316
|
# bucket.
|
58
317
|
# @param [String] bucket
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-storage_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.31.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|