google-apis-storage_v1 0.37.0 → 0.39.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: 184885b7a35a02a62637c4d7b821b8275c48cd7b59b3205f3a86765f41af1482
|
4
|
+
data.tar.gz: 7cad7bb88eea0dc0c0b3aeb2f7ba195aac977f73f8ef5d62544762ddc6f3cf86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc70eb04adcbad31d77066d5f384968632fd6a7635fb3ae4b9ee447cbb87451edebf5e9d76d095e59dec0830695174f587143494955ed1970320dfdeda7fa271
|
7
|
+
data.tar.gz: fd98f964cb0bae5e00fc71d0289dc875aa01d5824705ca6ce00898f3a0be281f72dfabec28c1e53a95aee65a310e35885da3d490bdf5e6cbca8d6f1cc79af78e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.39.0 (2024-06-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240524
|
6
|
+
|
7
|
+
### v0.38.0 (2024-05-19)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.15.0
|
10
|
+
|
3
11
|
### v0.37.0 (2024-03-24)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240319
|
@@ -1169,6 +1169,95 @@ module Google
|
|
1169
1169
|
end
|
1170
1170
|
end
|
1171
1171
|
|
1172
|
+
# The storage layout configuration of a bucket.
|
1173
|
+
class BucketStorageLayout
|
1174
|
+
include Google::Apis::Core::Hashable
|
1175
|
+
|
1176
|
+
# The name of the bucket.
|
1177
|
+
# Corresponds to the JSON property `bucket`
|
1178
|
+
# @return [String]
|
1179
|
+
attr_accessor :bucket
|
1180
|
+
|
1181
|
+
# The bucket's custom placement configuration for Custom Dual Regions.
|
1182
|
+
# Corresponds to the JSON property `customPlacementConfig`
|
1183
|
+
# @return [Google::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig]
|
1184
|
+
attr_accessor :custom_placement_config
|
1185
|
+
|
1186
|
+
# The bucket's hierarchical namespace configuration.
|
1187
|
+
# Corresponds to the JSON property `hierarchicalNamespace`
|
1188
|
+
# @return [Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace]
|
1189
|
+
attr_accessor :hierarchical_namespace
|
1190
|
+
|
1191
|
+
# The kind of item this is. For storage layout, this is always storage#
|
1192
|
+
# storageLayout.
|
1193
|
+
# Corresponds to the JSON property `kind`
|
1194
|
+
# @return [String]
|
1195
|
+
attr_accessor :kind
|
1196
|
+
|
1197
|
+
# The location of the bucket.
|
1198
|
+
# Corresponds to the JSON property `location`
|
1199
|
+
# @return [String]
|
1200
|
+
attr_accessor :location
|
1201
|
+
|
1202
|
+
# The type of the bucket location.
|
1203
|
+
# Corresponds to the JSON property `locationType`
|
1204
|
+
# @return [String]
|
1205
|
+
attr_accessor :location_type
|
1206
|
+
|
1207
|
+
def initialize(**args)
|
1208
|
+
update!(**args)
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
# Update properties of this object
|
1212
|
+
def update!(**args)
|
1213
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
1214
|
+
@custom_placement_config = args[:custom_placement_config] if args.key?(:custom_placement_config)
|
1215
|
+
@hierarchical_namespace = args[:hierarchical_namespace] if args.key?(:hierarchical_namespace)
|
1216
|
+
@kind = args[:kind] if args.key?(:kind)
|
1217
|
+
@location = args[:location] if args.key?(:location)
|
1218
|
+
@location_type = args[:location_type] if args.key?(:location_type)
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# The bucket's custom placement configuration for Custom Dual Regions.
|
1222
|
+
class CustomPlacementConfig
|
1223
|
+
include Google::Apis::Core::Hashable
|
1224
|
+
|
1225
|
+
# The list of regional locations in which data is placed.
|
1226
|
+
# Corresponds to the JSON property `dataLocations`
|
1227
|
+
# @return [Array<String>]
|
1228
|
+
attr_accessor :data_locations
|
1229
|
+
|
1230
|
+
def initialize(**args)
|
1231
|
+
update!(**args)
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
# Update properties of this object
|
1235
|
+
def update!(**args)
|
1236
|
+
@data_locations = args[:data_locations] if args.key?(:data_locations)
|
1237
|
+
end
|
1238
|
+
end
|
1239
|
+
|
1240
|
+
# The bucket's hierarchical namespace configuration.
|
1241
|
+
class HierarchicalNamespace
|
1242
|
+
include Google::Apis::Core::Hashable
|
1243
|
+
|
1244
|
+
# When set to true, hierarchical namespace is enabled for this bucket.
|
1245
|
+
# Corresponds to the JSON property `enabled`
|
1246
|
+
# @return [Boolean]
|
1247
|
+
attr_accessor :enabled
|
1248
|
+
alias_method :enabled?, :enabled
|
1249
|
+
|
1250
|
+
def initialize(**args)
|
1251
|
+
update!(**args)
|
1252
|
+
end
|
1253
|
+
|
1254
|
+
# Update properties of this object
|
1255
|
+
def update!(**args)
|
1256
|
+
@enabled = args[:enabled] if args.key?(:enabled)
|
1257
|
+
end
|
1258
|
+
end
|
1259
|
+
end
|
1260
|
+
|
1172
1261
|
# A list of buckets.
|
1173
1262
|
class Buckets
|
1174
1263
|
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.
|
19
|
+
GEM_VERSION = "0.39.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240524"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -178,6 +178,24 @@ module Google
|
|
178
178
|
include Google::Apis::Core::JsonObjectSupport
|
179
179
|
end
|
180
180
|
|
181
|
+
class BucketStorageLayout
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
class CustomPlacementConfig
|
185
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
186
|
+
|
187
|
+
include Google::Apis::Core::JsonObjectSupport
|
188
|
+
end
|
189
|
+
|
190
|
+
class HierarchicalNamespace
|
191
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
192
|
+
|
193
|
+
include Google::Apis::Core::JsonObjectSupport
|
194
|
+
end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
181
199
|
class Buckets
|
182
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
201
|
|
@@ -682,6 +700,34 @@ module Google
|
|
682
700
|
end
|
683
701
|
end
|
684
702
|
|
703
|
+
class BucketStorageLayout
|
704
|
+
# @private
|
705
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
706
|
+
property :bucket, as: 'bucket'
|
707
|
+
property :custom_placement_config, as: 'customPlacementConfig', class: Google::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig, decorator: Google::Apis::StorageV1::BucketStorageLayout::CustomPlacementConfig::Representation
|
708
|
+
|
709
|
+
property :hierarchical_namespace, as: 'hierarchicalNamespace', class: Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace, decorator: Google::Apis::StorageV1::BucketStorageLayout::HierarchicalNamespace::Representation
|
710
|
+
|
711
|
+
property :kind, as: 'kind'
|
712
|
+
property :location, as: 'location'
|
713
|
+
property :location_type, as: 'locationType'
|
714
|
+
end
|
715
|
+
|
716
|
+
class CustomPlacementConfig
|
717
|
+
# @private
|
718
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
719
|
+
collection :data_locations, as: 'dataLocations'
|
720
|
+
end
|
721
|
+
end
|
722
|
+
|
723
|
+
class HierarchicalNamespace
|
724
|
+
# @private
|
725
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
726
|
+
property :enabled, as: 'enabled'
|
727
|
+
end
|
728
|
+
end
|
729
|
+
end
|
730
|
+
|
685
731
|
class Buckets
|
686
732
|
# @private
|
687
733
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -683,6 +683,44 @@ module Google
|
|
683
683
|
execute_or_queue_command(command, &block)
|
684
684
|
end
|
685
685
|
|
686
|
+
# Returns the storage layout configuration for the specified bucket. Note that
|
687
|
+
# this operation requires storage.objects.list permission.
|
688
|
+
# @param [String] bucket
|
689
|
+
# Name of a bucket.
|
690
|
+
# @param [String] prefix
|
691
|
+
# An optional prefix used for permission check. It is useful when the caller
|
692
|
+
# only has storage.objects.list permission under a specific prefix.
|
693
|
+
# @param [String] fields
|
694
|
+
# Selector specifying which fields to include in a partial response.
|
695
|
+
# @param [String] quota_user
|
696
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
697
|
+
# characters.
|
698
|
+
# @param [String] user_ip
|
699
|
+
# Deprecated. Please use quotaUser instead.
|
700
|
+
# @param [Google::Apis::RequestOptions] options
|
701
|
+
# Request-specific options
|
702
|
+
#
|
703
|
+
# @yield [result, err] Result & error if block supplied
|
704
|
+
# @yieldparam result [Google::Apis::StorageV1::BucketStorageLayout] parsed result object
|
705
|
+
# @yieldparam err [StandardError] error object if request failed
|
706
|
+
#
|
707
|
+
# @return [Google::Apis::StorageV1::BucketStorageLayout]
|
708
|
+
#
|
709
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
710
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
711
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
712
|
+
def get_bucket_storage_layout(bucket, prefix: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
713
|
+
command = make_simple_command(:get, 'b/{bucket}/storageLayout', options)
|
714
|
+
command.response_representation = Google::Apis::StorageV1::BucketStorageLayout::Representation
|
715
|
+
command.response_class = Google::Apis::StorageV1::BucketStorageLayout
|
716
|
+
command.params['bucket'] = bucket unless bucket.nil?
|
717
|
+
command.query['prefix'] = prefix unless prefix.nil?
|
718
|
+
command.query['fields'] = fields unless fields.nil?
|
719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
720
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
721
|
+
execute_or_queue_command(command, &block)
|
722
|
+
end
|
723
|
+
|
686
724
|
# Creates a new bucket.
|
687
725
|
# @param [String] project
|
688
726
|
# A valid API project identifier.
|
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.39.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: 2024-
|
11
|
+
date: 2024-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.39.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: []
|