google-apis-storage_v1 0.65.0 → 0.66.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: d5e3193bf11b62aaa7ea4d7d1d8085b9c6cde083bd56579a261bfe561a469071
4
- data.tar.gz: a8d45e31404d67a1a3669e2984e038f3a8ae7b3ef04ea979f259f59a2c3874c2
3
+ metadata.gz: 2d0232f4dbc08b1beac3c40674573210438387d3c08729d3fe922cae13434c09
4
+ data.tar.gz: 99ae97b07dc723638545ef620c6427e1f2a456dbc9fcd9ae9228d95c51421abb
5
5
  SHA512:
6
- metadata.gz: bd5f9a19e0da7dd551e131d986e94485da0709b26f8882c790eb87664548ec3460b25f88f3ad9f9beb58900c95e23271436023200d18e066d14fa5c3693160fc
7
- data.tar.gz: 60fe6f21b0e960f397412e5687f9612a1a00c9bed2c3f56b9bb83f6883602fcf9430f6905e3d75859825f94d55648d43ed4add385f341089365577de19d33b7c
6
+ metadata.gz: 13c2d1b474f335a9ce484ae88842a5b2610657e9d4f3e5e7192312983ae38f5dce418f705b960d19d32b2ff35dc17351eece361190727e46f970da9c6e716de0
7
+ data.tar.gz: 1f685cb88febc43cf2f77231109d838c08dbbf4aa3462e8279ba57b6c7f784951d5a02ec7619541dbbe7158ea1d98d0b764984925d76694a7e0c40a8e96d4cc2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.66.0 (2026-08-16)
4
+
5
+ * Regenerated from discovery document revision 20260805
6
+
3
7
  ### v0.65.0 (2026-07-05)
4
8
 
5
9
  * Regenerated from discovery document revision 20260625
@@ -2307,6 +2307,11 @@ module Google
2307
2307
  # @return [String]
2308
2308
  attr_accessor :name
2309
2309
 
2310
+ # Configuration options for the rapid cache of a managed folder.
2311
+ # Corresponds to the JSON property `rapidCacheConfig`
2312
+ # @return [Google::Apis::StorageV1::RapidCacheConfig]
2313
+ attr_accessor :rapid_cache_config
2314
+
2310
2315
  # The link to this managed folder.
2311
2316
  # Corresponds to the JSON property `selfLink`
2312
2317
  # @return [String]
@@ -2329,6 +2334,7 @@ module Google
2329
2334
  @kind = args[:kind] if args.key?(:kind)
2330
2335
  @metageneration = args[:metageneration] if args.key?(:metageneration)
2331
2336
  @name = args[:name] if args.key?(:name)
2337
+ @rapid_cache_config = args[:rapid_cache_config] if args.key?(:rapid_cache_config)
2332
2338
  @self_link = args[:self_link] if args.key?(:self_link)
2333
2339
  @update_time = args[:update_time] if args.key?(:update_time)
2334
2340
  end
@@ -3201,6 +3207,187 @@ module Google
3201
3207
  end
3202
3208
  end
3203
3209
 
3210
+ # A Rapid Cache instance.
3211
+ class RapidCache
3212
+ include Google::Apis::Core::Hashable
3213
+
3214
+ # The cache-level entry admission policy.
3215
+ # Corresponds to the JSON property `admissionPolicy`
3216
+ # @return [String]
3217
+ attr_accessor :admission_policy
3218
+
3219
+ # The name of the bucket containing this cache instance.
3220
+ # Corresponds to the JSON property `bucket`
3221
+ # @return [String]
3222
+ attr_accessor :bucket
3223
+
3224
+ # The type of Rapid Cache this represents. Valid values include: "rapid-cache"
3225
+ # and "rapid-cache-ultra".
3226
+ # Corresponds to the JSON property `cacheType`
3227
+ # @return [String]
3228
+ attr_accessor :cache_type
3229
+
3230
+ # The creation time of the cache instance in RFC 3339 format.
3231
+ # Corresponds to the JSON property `createTime`
3232
+ # @return [DateTime]
3233
+ attr_accessor :create_time
3234
+
3235
+ # The ID of the resource, including the project number, bucket name and rapid
3236
+ # cache ID.
3237
+ # Corresponds to the JSON property `id`
3238
+ # @return [String]
3239
+ attr_accessor :id
3240
+
3241
+ # Specifies whether objects are ingested into the cache upon write.
3242
+ # Corresponds to the JSON property `ingestOnWrite`
3243
+ # @return [Boolean]
3244
+ attr_accessor :ingest_on_write
3245
+ alias_method :ingest_on_write?, :ingest_on_write
3246
+
3247
+ # The kind of item this is. For Rapid Cache, this is always storage#rapidCache.
3248
+ # Corresponds to the JSON property `kind`
3249
+ # @return [String]
3250
+ attr_accessor :kind
3251
+
3252
+ # True if the cache instance has an active Update long-running operation.
3253
+ # Corresponds to the JSON property `pendingUpdate`
3254
+ # @return [Boolean]
3255
+ attr_accessor :pending_update
3256
+ alias_method :pending_update?, :pending_update
3257
+
3258
+ # The ID of the Rapid cache instance.
3259
+ # Corresponds to the JSON property `rapidCacheId`
3260
+ # @return [String]
3261
+ attr_accessor :rapid_cache_id
3262
+
3263
+ # The link to this cache instance.
3264
+ # Corresponds to the JSON property `selfLink`
3265
+ # @return [String]
3266
+ attr_accessor :self_link
3267
+
3268
+ # The current state of the cache instance.
3269
+ # Corresponds to the JSON property `state`
3270
+ # @return [String]
3271
+ attr_accessor :state
3272
+
3273
+ # The TTL of all cache entries in whole seconds. e.g., "7200s".
3274
+ # Corresponds to the JSON property `ttl`
3275
+ # @return [String]
3276
+ attr_accessor :ttl
3277
+
3278
+ # The modification time of the cache instance metadata in RFC 3339 format.
3279
+ # Corresponds to the JSON property `updateTime`
3280
+ # @return [DateTime]
3281
+ attr_accessor :update_time
3282
+
3283
+ # The zone in which the cache instance is running. For example, us-central1-a.
3284
+ # Corresponds to the JSON property `zone`
3285
+ # @return [String]
3286
+ attr_accessor :zone
3287
+
3288
+ def initialize(**args)
3289
+ update!(**args)
3290
+ end
3291
+
3292
+ # Update properties of this object
3293
+ def update!(**args)
3294
+ @admission_policy = args[:admission_policy] if args.key?(:admission_policy)
3295
+ @bucket = args[:bucket] if args.key?(:bucket)
3296
+ @cache_type = args[:cache_type] if args.key?(:cache_type)
3297
+ @create_time = args[:create_time] if args.key?(:create_time)
3298
+ @id = args[:id] if args.key?(:id)
3299
+ @ingest_on_write = args[:ingest_on_write] if args.key?(:ingest_on_write)
3300
+ @kind = args[:kind] if args.key?(:kind)
3301
+ @pending_update = args[:pending_update] if args.key?(:pending_update)
3302
+ @rapid_cache_id = args[:rapid_cache_id] if args.key?(:rapid_cache_id)
3303
+ @self_link = args[:self_link] if args.key?(:self_link)
3304
+ @state = args[:state] if args.key?(:state)
3305
+ @ttl = args[:ttl] if args.key?(:ttl)
3306
+ @update_time = args[:update_time] if args.key?(:update_time)
3307
+ @zone = args[:zone] if args.key?(:zone)
3308
+ end
3309
+ end
3310
+
3311
+ # Configuration options for the rapid cache of a managed folder.
3312
+ class RapidCacheConfig
3313
+ include Google::Apis::Core::Hashable
3314
+
3315
+ # A map of rapid cache IDs to the corresponding `RapidCachePolicy`
3316
+ # configurations for a managed folder.
3317
+ # Corresponds to the JSON property `policies`
3318
+ # @return [Hash<String,Google::Apis::StorageV1::RapidCachePolicy>]
3319
+ attr_accessor :policies
3320
+
3321
+ def initialize(**args)
3322
+ update!(**args)
3323
+ end
3324
+
3325
+ # Update properties of this object
3326
+ def update!(**args)
3327
+ @policies = args[:policies] if args.key?(:policies)
3328
+ end
3329
+ end
3330
+
3331
+ # The rapid cache policy configuration for a managed folder.
3332
+ class RapidCachePolicy
3333
+ include Google::Apis::Core::Hashable
3334
+
3335
+ # The ingest-on-write policy for objects in the managed folder. When set to `
3336
+ # enabled`, objects are automatically ingested into the cache when they are
3337
+ # written to the managed folder.
3338
+ # Corresponds to the JSON property `ingestOnWrite`
3339
+ # @return [String]
3340
+ attr_accessor :ingest_on_write
3341
+
3342
+ # The unique identifier of the rapid cache.
3343
+ # Corresponds to the JSON property `rapidCacheId`
3344
+ # @return [String]
3345
+ attr_accessor :rapid_cache_id
3346
+
3347
+ def initialize(**args)
3348
+ update!(**args)
3349
+ end
3350
+
3351
+ # Update properties of this object
3352
+ def update!(**args)
3353
+ @ingest_on_write = args[:ingest_on_write] if args.key?(:ingest_on_write)
3354
+ @rapid_cache_id = args[:rapid_cache_id] if args.key?(:rapid_cache_id)
3355
+ end
3356
+ end
3357
+
3358
+ # A list of Rapid Caches.
3359
+ class RapidCaches
3360
+ include Google::Apis::Core::Hashable
3361
+
3362
+ # The list of items.
3363
+ # Corresponds to the JSON property `items`
3364
+ # @return [Array<Google::Apis::StorageV1::RapidCache>]
3365
+ attr_accessor :items
3366
+
3367
+ # The kind of item this is. For lists of Rapid Caches, this is always storage#
3368
+ # rapidCaches.
3369
+ # Corresponds to the JSON property `kind`
3370
+ # @return [String]
3371
+ attr_accessor :kind
3372
+
3373
+ # The continuation token, used to page through large result sets. Provide this
3374
+ # value in a subsequent request to return the next page of results.
3375
+ # Corresponds to the JSON property `nextPageToken`
3376
+ # @return [String]
3377
+ attr_accessor :next_page_token
3378
+
3379
+ def initialize(**args)
3380
+ update!(**args)
3381
+ end
3382
+
3383
+ # Update properties of this object
3384
+ def update!(**args)
3385
+ @items = args[:items] if args.key?(:items)
3386
+ @kind = args[:kind] if args.key?(:kind)
3387
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3388
+ end
3389
+ end
3390
+
3204
3391
  # A Relocate Bucket request.
3205
3392
  class RelocateBucketRequest
3206
3393
  include Google::Apis::Core::Hashable
@@ -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.65.0"
19
+ GEM_VERSION = "0.66.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 = "20260625"
25
+ REVISION = "20260805"
26
26
  end
27
27
  end
28
28
  end
@@ -430,6 +430,30 @@ module Google
430
430
  include Google::Apis::Core::JsonObjectSupport
431
431
  end
432
432
 
433
+ class RapidCache
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
439
+ class RapidCacheConfig
440
+ class Representation < Google::Apis::Core::JsonRepresentation; end
441
+
442
+ include Google::Apis::Core::JsonObjectSupport
443
+ end
444
+
445
+ class RapidCachePolicy
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
451
+ class RapidCaches
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
433
457
  class RelocateBucketRequest
434
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
459
 
@@ -1074,6 +1098,8 @@ module Google
1074
1098
  property :kind, as: 'kind'
1075
1099
  property :metageneration, :numeric_string => true, as: 'metageneration'
1076
1100
  property :name, as: 'name'
1101
+ property :rapid_cache_config, as: 'rapidCacheConfig', class: Google::Apis::StorageV1::RapidCacheConfig, decorator: Google::Apis::StorageV1::RapidCacheConfig::Representation
1102
+
1077
1103
  property :self_link, as: 'selfLink'
1078
1104
  property :update_time, as: 'updateTime', type: DateTime
1079
1105
 
@@ -1286,6 +1312,54 @@ module Google
1286
1312
  end
1287
1313
  end
1288
1314
 
1315
+ class RapidCache
1316
+ # @private
1317
+ class Representation < Google::Apis::Core::JsonRepresentation
1318
+ property :admission_policy, as: 'admissionPolicy'
1319
+ property :bucket, as: 'bucket'
1320
+ property :cache_type, as: 'cacheType'
1321
+ property :create_time, as: 'createTime', type: DateTime
1322
+
1323
+ property :id, as: 'id'
1324
+ property :ingest_on_write, as: 'ingestOnWrite'
1325
+ property :kind, as: 'kind'
1326
+ property :pending_update, as: 'pendingUpdate'
1327
+ property :rapid_cache_id, as: 'rapidCacheId'
1328
+ property :self_link, as: 'selfLink'
1329
+ property :state, as: 'state'
1330
+ property :ttl, as: 'ttl'
1331
+ property :update_time, as: 'updateTime', type: DateTime
1332
+
1333
+ property :zone, as: 'zone'
1334
+ end
1335
+ end
1336
+
1337
+ class RapidCacheConfig
1338
+ # @private
1339
+ class Representation < Google::Apis::Core::JsonRepresentation
1340
+ hash :policies, as: 'policies', class: Google::Apis::StorageV1::RapidCachePolicy, decorator: Google::Apis::StorageV1::RapidCachePolicy::Representation
1341
+
1342
+ end
1343
+ end
1344
+
1345
+ class RapidCachePolicy
1346
+ # @private
1347
+ class Representation < Google::Apis::Core::JsonRepresentation
1348
+ property :ingest_on_write, as: 'ingestOnWrite'
1349
+ property :rapid_cache_id, as: 'rapidCacheId'
1350
+ end
1351
+ end
1352
+
1353
+ class RapidCaches
1354
+ # @private
1355
+ class Representation < Google::Apis::Core::JsonRepresentation
1356
+ collection :items, as: 'items', class: Google::Apis::StorageV1::RapidCache, decorator: Google::Apis::StorageV1::RapidCache::Representation
1357
+
1358
+ property :kind, as: 'kind'
1359
+ property :next_page_token, as: 'nextPageToken'
1360
+ end
1361
+ end
1362
+
1289
1363
  class RelocateBucketRequest
1290
1364
  # @private
1291
1365
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2011,6 +2011,53 @@ module Google
2011
2011
  execute_or_queue_command(command, &block)
2012
2012
  end
2013
2013
 
2014
+ # Updates a managed folder using patch semantics.
2015
+ # @param [String] bucket
2016
+ # The name of the bucket containing the managed folder.
2017
+ # @param [String] managed_folder
2018
+ # The name of the managed folder.
2019
+ # @param [Google::Apis::StorageV1::ManagedFolder] managed_folder_object
2020
+ # @param [Fixnum] if_metageneration_match
2021
+ # Makes the operation conditional on whether the metageneration of the managed
2022
+ # folder matches the specified value.
2023
+ # @param [Fixnum] if_metageneration_not_match
2024
+ # Makes the operation conditional on whether the metageneration of the managed
2025
+ # folder doesn't match the specified value.
2026
+ # @param [String] fields
2027
+ # Selector specifying which fields to include in a partial response.
2028
+ # @param [String] quota_user
2029
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2030
+ # characters.
2031
+ # @param [String] user_ip
2032
+ # Deprecated. Please use quotaUser instead.
2033
+ # @param [Google::Apis::RequestOptions] options
2034
+ # Request-specific options
2035
+ #
2036
+ # @yield [result, err] Result & error if block supplied
2037
+ # @yieldparam result [Google::Apis::StorageV1::ManagedFolder] parsed result object
2038
+ # @yieldparam err [StandardError] error object if request failed
2039
+ #
2040
+ # @return [Google::Apis::StorageV1::ManagedFolder]
2041
+ #
2042
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2043
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2044
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2045
+ def update_managed_folder(bucket, managed_folder, managed_folder_object = nil, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2046
+ command = make_simple_command(:patch, 'b/{bucket}/managedFolders/{managedFolder}', options)
2047
+ command.request_representation = Google::Apis::StorageV1::ManagedFolder::Representation
2048
+ command.request_object = managed_folder_object
2049
+ command.response_representation = Google::Apis::StorageV1::ManagedFolder::Representation
2050
+ command.response_class = Google::Apis::StorageV1::ManagedFolder
2051
+ command.params['bucket'] = bucket unless bucket.nil?
2052
+ command.params['managedFolder'] = managed_folder unless managed_folder.nil?
2053
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
2054
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
2055
+ command.query['fields'] = fields unless fields.nil?
2056
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2057
+ command.query['userIp'] = user_ip unless user_ip.nil?
2058
+ execute_or_queue_command(command, &block)
2059
+ end
2060
+
2014
2061
  # Permanently deletes a notification subscription.
2015
2062
  # @param [String] bucket
2016
2063
  # The parent bucket of the notification.
@@ -4002,6 +4049,193 @@ module Google
4002
4049
  command.query['userIp'] = user_ip unless user_ip.nil?
4003
4050
  execute_or_queue_command(command, &block)
4004
4051
  end
4052
+
4053
+ # Disables a Rapid Cache instance.
4054
+ # @param [String] bucket
4055
+ # Name of the parent bucket.
4056
+ # @param [String] rapid_cache_id
4057
+ # The ID of the requested Rapid Cache instance.
4058
+ # @param [String] fields
4059
+ # Selector specifying which fields to include in a partial response.
4060
+ # @param [String] quota_user
4061
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
4062
+ # characters.
4063
+ # @param [String] user_ip
4064
+ # Deprecated. Please use quotaUser instead.
4065
+ # @param [Google::Apis::RequestOptions] options
4066
+ # Request-specific options
4067
+ #
4068
+ # @yield [result, err] Result & error if block supplied
4069
+ # @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
4070
+ # @yieldparam err [StandardError] error object if request failed
4071
+ #
4072
+ # @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
4073
+ #
4074
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4075
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4076
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4077
+ def disable_rapid_cach(bucket, rapid_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4078
+ command = make_simple_command(:post, 'b/{bucket}/rapidCaches/{rapidCacheId}/disable', options)
4079
+ command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
4080
+ command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
4081
+ command.params['bucket'] = bucket unless bucket.nil?
4082
+ command.params['rapidCacheId'] = rapid_cache_id unless rapid_cache_id.nil?
4083
+ command.query['fields'] = fields unless fields.nil?
4084
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4085
+ command.query['userIp'] = user_ip unless user_ip.nil?
4086
+ execute_or_queue_command(command, &block)
4087
+ end
4088
+
4089
+ # Returns the metadata of a Rapid Cache instance.
4090
+ # @param [String] bucket
4091
+ # Name of the parent bucket.
4092
+ # @param [String] rapid_cache_id
4093
+ # The ID of the requested Rapid Cache instance.
4094
+ # @param [String] fields
4095
+ # Selector specifying which fields to include in a partial response.
4096
+ # @param [String] quota_user
4097
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
4098
+ # characters.
4099
+ # @param [String] user_ip
4100
+ # Deprecated. Please use quotaUser instead.
4101
+ # @param [Google::Apis::RequestOptions] options
4102
+ # Request-specific options
4103
+ #
4104
+ # @yield [result, err] Result & error if block supplied
4105
+ # @yieldparam result [Google::Apis::StorageV1::RapidCache] parsed result object
4106
+ # @yieldparam err [StandardError] error object if request failed
4107
+ #
4108
+ # @return [Google::Apis::StorageV1::RapidCache]
4109
+ #
4110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4113
+ def get_rapid_cach(bucket, rapid_cache_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4114
+ command = make_simple_command(:get, 'b/{bucket}/rapidCaches/{rapidCacheId}', options)
4115
+ command.response_representation = Google::Apis::StorageV1::RapidCache::Representation
4116
+ command.response_class = Google::Apis::StorageV1::RapidCache
4117
+ command.params['bucket'] = bucket unless bucket.nil?
4118
+ command.params['rapidCacheId'] = rapid_cache_id unless rapid_cache_id.nil?
4119
+ command.query['fields'] = fields unless fields.nil?
4120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4121
+ command.query['userIp'] = user_ip unless user_ip.nil?
4122
+ execute_or_queue_command(command, &block)
4123
+ end
4124
+
4125
+ # Creates a Rapid Cache instance.
4126
+ # @param [String] bucket
4127
+ # Name of the parent bucket.
4128
+ # @param [Google::Apis::StorageV1::RapidCache] rapid_cache_object
4129
+ # @param [String] fields
4130
+ # Selector specifying which fields to include in a partial response.
4131
+ # @param [String] quota_user
4132
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
4133
+ # characters.
4134
+ # @param [String] user_ip
4135
+ # Deprecated. Please use quotaUser instead.
4136
+ # @param [Google::Apis::RequestOptions] options
4137
+ # Request-specific options
4138
+ #
4139
+ # @yield [result, err] Result & error if block supplied
4140
+ # @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
4141
+ # @yieldparam err [StandardError] error object if request failed
4142
+ #
4143
+ # @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
4144
+ #
4145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4148
+ def insert_rapid_cach(bucket, rapid_cache_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4149
+ command = make_simple_command(:post, 'b/{bucket}/rapidCaches', options)
4150
+ command.request_representation = Google::Apis::StorageV1::RapidCache::Representation
4151
+ command.request_object = rapid_cache_object
4152
+ command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
4153
+ command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
4154
+ command.params['bucket'] = bucket unless bucket.nil?
4155
+ command.query['fields'] = fields unless fields.nil?
4156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4157
+ command.query['userIp'] = user_ip unless user_ip.nil?
4158
+ execute_or_queue_command(command, &block)
4159
+ end
4160
+
4161
+ # Returns a list of Rapid Cache instances of the bucket.
4162
+ # @param [String] bucket
4163
+ # Name of the parent bucket.
4164
+ # @param [Fixnum] page_size
4165
+ # Maximum number of items to return in a single page of responses.
4166
+ # @param [String] page_token
4167
+ # A previously-returned page token representing part of the larger set of
4168
+ # results to view.
4169
+ # @param [String] fields
4170
+ # Selector specifying which fields to include in a partial response.
4171
+ # @param [String] quota_user
4172
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
4173
+ # characters.
4174
+ # @param [String] user_ip
4175
+ # Deprecated. Please use quotaUser instead.
4176
+ # @param [Google::Apis::RequestOptions] options
4177
+ # Request-specific options
4178
+ #
4179
+ # @yield [result, err] Result & error if block supplied
4180
+ # @yieldparam result [Google::Apis::StorageV1::RapidCaches] parsed result object
4181
+ # @yieldparam err [StandardError] error object if request failed
4182
+ #
4183
+ # @return [Google::Apis::StorageV1::RapidCaches]
4184
+ #
4185
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4186
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4187
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4188
+ def list_rapid_caches(bucket, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4189
+ command = make_simple_command(:get, 'b/{bucket}/rapidCaches', options)
4190
+ command.response_representation = Google::Apis::StorageV1::RapidCaches::Representation
4191
+ command.response_class = Google::Apis::StorageV1::RapidCaches
4192
+ command.params['bucket'] = bucket unless bucket.nil?
4193
+ command.query['pageSize'] = page_size unless page_size.nil?
4194
+ command.query['pageToken'] = page_token unless page_token.nil?
4195
+ command.query['fields'] = fields unless fields.nil?
4196
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4197
+ command.query['userIp'] = user_ip unless user_ip.nil?
4198
+ execute_or_queue_command(command, &block)
4199
+ end
4200
+
4201
+ # Updates the configuration of a Rapid Cache instance.
4202
+ # @param [String] bucket
4203
+ # Name of the parent bucket.
4204
+ # @param [String] rapid_cache_id
4205
+ # The ID of the requested Rapid Cache instance.
4206
+ # @param [Google::Apis::StorageV1::RapidCache] rapid_cache_object
4207
+ # @param [String] fields
4208
+ # Selector specifying which fields to include in a partial response.
4209
+ # @param [String] quota_user
4210
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
4211
+ # characters.
4212
+ # @param [String] user_ip
4213
+ # Deprecated. Please use quotaUser instead.
4214
+ # @param [Google::Apis::RequestOptions] options
4215
+ # Request-specific options
4216
+ #
4217
+ # @yield [result, err] Result & error if block supplied
4218
+ # @yieldparam result [Google::Apis::StorageV1::GoogleLongrunningOperation] parsed result object
4219
+ # @yieldparam err [StandardError] error object if request failed
4220
+ #
4221
+ # @return [Google::Apis::StorageV1::GoogleLongrunningOperation]
4222
+ #
4223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4226
+ def update_rapid_cach(bucket, rapid_cache_id, rapid_cache_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
4227
+ command = make_simple_command(:patch, 'b/{bucket}/rapidCaches/{rapidCacheId}', options)
4228
+ command.request_representation = Google::Apis::StorageV1::RapidCache::Representation
4229
+ command.request_object = rapid_cache_object
4230
+ command.response_representation = Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
4231
+ command.response_class = Google::Apis::StorageV1::GoogleLongrunningOperation
4232
+ command.params['bucket'] = bucket unless bucket.nil?
4233
+ command.params['rapidCacheId'] = rapid_cache_id unless rapid_cache_id.nil?
4234
+ command.query['fields'] = fields unless fields.nil?
4235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4236
+ command.query['userIp'] = user_ip unless user_ip.nil?
4237
+ execute_or_queue_command(command, &block)
4238
+ end
4005
4239
 
4006
4240
  protected
4007
4241
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-storage_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.66.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-storage_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.65.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.66.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-storage_v1
62
62
  rdoc_options: []
63
63
  require_paths: