google-apis-storage_v1 0.38.0 → 0.40.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: cc2817e120ad16d60743c2a442925e8a855dab1ad241d7cb9e44fdf4f71e1582
|
4
|
+
data.tar.gz: 8baf01d69125bf894fb49416a916a62e73a55cfe79ff58fecc32c065756fe8ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44a5a33c4d0d48747f2a68ab884764d5ccf7fe8f64eae86b1c301f4e5d088cc4888a58405e0d922200eb83978f8e39b60e268880401da42b4bac69ee824c212b
|
7
|
+
data.tar.gz: 8dc887aef896142eab243f127b9874e634ecbae9537e359bf2a60e029c510797f29f07f188269b3a4859549ffc150f9e1fe7d39fb7b0fd9c6d15e6a7aaba3243
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-storage_v1
|
2
2
|
|
3
|
+
### v0.40.0 (2024-06-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240621
|
6
|
+
|
7
|
+
### v0.39.0 (2024-06-02)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240524
|
10
|
+
|
3
11
|
### v0.38.0 (2024-05-19)
|
4
12
|
|
5
13
|
* Regenerated using generator version 0.15.0
|
@@ -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
|
@@ -1584,6 +1673,12 @@ module Google
|
|
1584
1673
|
class GoogleLongrunningListOperationsResponse
|
1585
1674
|
include Google::Apis::Core::Hashable
|
1586
1675
|
|
1676
|
+
# The kind of item this is. For lists of operations, this is always storage#
|
1677
|
+
# operations.
|
1678
|
+
# Corresponds to the JSON property `kind`
|
1679
|
+
# @return [String]
|
1680
|
+
attr_accessor :kind
|
1681
|
+
|
1587
1682
|
# The continuation token, used to page through large result sets. Provide this
|
1588
1683
|
# value in a subsequent request to return the next page of results.
|
1589
1684
|
# Corresponds to the JSON property `nextPageToken`
|
@@ -1601,6 +1696,7 @@ module Google
|
|
1601
1696
|
|
1602
1697
|
# Update properties of this object
|
1603
1698
|
def update!(**args)
|
1699
|
+
@kind = args[:kind] if args.key?(:kind)
|
1604
1700
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1605
1701
|
@operations = args[:operations] if args.key?(:operations)
|
1606
1702
|
end
|
@@ -1628,6 +1724,11 @@ module Google
|
|
1628
1724
|
# @return [Google::Apis::StorageV1::GoogleRpcStatus]
|
1629
1725
|
attr_accessor :error
|
1630
1726
|
|
1727
|
+
# The kind of item this is. For operations, this is always storage#operation.
|
1728
|
+
# Corresponds to the JSON property `kind`
|
1729
|
+
# @return [String]
|
1730
|
+
attr_accessor :kind
|
1731
|
+
|
1631
1732
|
# Service-specific metadata associated with the operation. It typically contains
|
1632
1733
|
# progress information and common metadata such as create time. Some services
|
1633
1734
|
# might not provide such metadata. Any method that returns a long-running
|
@@ -1654,6 +1755,11 @@ module Google
|
|
1654
1755
|
# @return [Hash<String,Object>]
|
1655
1756
|
attr_accessor :response
|
1656
1757
|
|
1758
|
+
# The link to this long running operation.
|
1759
|
+
# Corresponds to the JSON property `selfLink`
|
1760
|
+
# @return [String]
|
1761
|
+
attr_accessor :self_link
|
1762
|
+
|
1657
1763
|
def initialize(**args)
|
1658
1764
|
update!(**args)
|
1659
1765
|
end
|
@@ -1662,9 +1768,11 @@ module Google
|
|
1662
1768
|
def update!(**args)
|
1663
1769
|
@done = args[:done] if args.key?(:done)
|
1664
1770
|
@error = args[:error] if args.key?(:error)
|
1771
|
+
@kind = args[:kind] if args.key?(:kind)
|
1665
1772
|
@metadata = args[:metadata] if args.key?(:metadata)
|
1666
1773
|
@name = args[:name] if args.key?(:name)
|
1667
1774
|
@response = args[:response] if args.key?(:response)
|
1775
|
+
@self_link = args[:self_link] if args.key?(:self_link)
|
1668
1776
|
end
|
1669
1777
|
end
|
1670
1778
|
|
@@ -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.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240621"
|
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
|
@@ -797,6 +843,7 @@ module Google
|
|
797
843
|
class GoogleLongrunningListOperationsResponse
|
798
844
|
# @private
|
799
845
|
class Representation < Google::Apis::Core::JsonRepresentation
|
846
|
+
property :kind, as: 'kind'
|
800
847
|
property :next_page_token, as: 'nextPageToken'
|
801
848
|
collection :operations, as: 'operations', class: Google::Apis::StorageV1::GoogleLongrunningOperation, decorator: Google::Apis::StorageV1::GoogleLongrunningOperation::Representation
|
802
849
|
|
@@ -809,9 +856,11 @@ module Google
|
|
809
856
|
property :done, as: 'done'
|
810
857
|
property :error, as: 'error', class: Google::Apis::StorageV1::GoogleRpcStatus, decorator: Google::Apis::StorageV1::GoogleRpcStatus::Representation
|
811
858
|
|
859
|
+
property :kind, as: 'kind'
|
812
860
|
hash :metadata, as: 'metadata'
|
813
861
|
property :name, as: 'name'
|
814
862
|
hash :response, as: 'response'
|
863
|
+
property :self_link, as: 'selfLink'
|
815
864
|
end
|
816
865
|
end
|
817
866
|
|
@@ -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.40.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-27 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.40.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: []
|