google-apis-storage_v1 0.28.0 → 0.30.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: c0463e1a2829b3116b7369f32cc7f839e377c1618303e8a63d3600a411a555f4
4
- data.tar.gz: c0ee248c3b7e6bcb7622a0c9ac1d28211d4155c12db245b0ab06ab06190056eb
3
+ metadata.gz: 7c940593e41d3e63c6f0c2b6291b087f3c58814b0d59ff098c88fd885302e717
4
+ data.tar.gz: 2d4b36dfed1746020ed7fa2388a29378e01621137ae83c74e9042f6101ea87fb
5
5
  SHA512:
6
- metadata.gz: 87417738d5d357e9b3105936b049470b1eb2db02d805d4f6f121652c482866b93da38622d11d244e9f4ff006c99ee58f1375ae0877a2f5ea899f74e56a9c0e3e
7
- data.tar.gz: e41b93f79c70c63654ef5a763004f906fce4b2dc653b5274946b663e4cb364262291ac8a233cc82f069c64e18e089b46f16af6fdbcd28290637a67248651a5db
6
+ metadata.gz: ef90f2df4600ebf763f4f712094da8475f23248fc58c401945e9628d48e8592e66dadeb3581839fa31e9884d51f99303cee564c0e4617ff03a9ee70da6c18d97
7
+ data.tar.gz: 8e73a6465f29faa4ebffb25d19282e365b60d683f8157cf48ec8c6c24ff2bd057d7190f185b4b687a1cd6fafc451aefd848e0ee4e71ff8de62eb69964e1047b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-storage_v1
2
2
 
3
+ ### v0.30.0 (2023-11-05)
4
+
5
+ * Regenerated from discovery document revision 20231028
6
+
7
+ ### v0.29.0 (2023-10-15)
8
+
9
+ * Regenerated from discovery document revision 20231012
10
+
3
11
  ### v0.28.0 (2023-10-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20230926
@@ -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 period of time in seconds, that soft-deleted objects in the bucket will be
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]
@@ -1575,6 +1690,103 @@ module Google
1575
1690
  end
1576
1691
  end
1577
1692
 
1693
+ # A managed folder.
1694
+ class ManagedFolder
1695
+ include Google::Apis::Core::Hashable
1696
+
1697
+ # The name of the bucket containing this managed folder.
1698
+ # Corresponds to the JSON property `bucket`
1699
+ # @return [String]
1700
+ attr_accessor :bucket
1701
+
1702
+ # The creation time of the managed folder in RFC 3339 format.
1703
+ # Corresponds to the JSON property `createTime`
1704
+ # @return [DateTime]
1705
+ attr_accessor :create_time
1706
+
1707
+ # The ID of the managed folder, including the bucket name and managed folder
1708
+ # name.
1709
+ # Corresponds to the JSON property `id`
1710
+ # @return [String]
1711
+ attr_accessor :id
1712
+
1713
+ # The kind of item this is. For managed folders, this is always storage#
1714
+ # managedFolder.
1715
+ # Corresponds to the JSON property `kind`
1716
+ # @return [String]
1717
+ attr_accessor :kind
1718
+
1719
+ # The version of the metadata for this managed folder. Used for preconditions
1720
+ # and for detecting changes in metadata.
1721
+ # Corresponds to the JSON property `metageneration`
1722
+ # @return [Fixnum]
1723
+ attr_accessor :metageneration
1724
+
1725
+ # The name of the managed folder. Required if not specified by URL parameter.
1726
+ # Corresponds to the JSON property `name`
1727
+ # @return [String]
1728
+ attr_accessor :name
1729
+
1730
+ # The link to this managed folder.
1731
+ # Corresponds to the JSON property `selfLink`
1732
+ # @return [String]
1733
+ attr_accessor :self_link
1734
+
1735
+ # The last update time of the managed folder metadata in RFC 3339 format.
1736
+ # Corresponds to the JSON property `updateTime`
1737
+ # @return [DateTime]
1738
+ attr_accessor :update_time
1739
+
1740
+ def initialize(**args)
1741
+ update!(**args)
1742
+ end
1743
+
1744
+ # Update properties of this object
1745
+ def update!(**args)
1746
+ @bucket = args[:bucket] if args.key?(:bucket)
1747
+ @create_time = args[:create_time] if args.key?(:create_time)
1748
+ @id = args[:id] if args.key?(:id)
1749
+ @kind = args[:kind] if args.key?(:kind)
1750
+ @metageneration = args[:metageneration] if args.key?(:metageneration)
1751
+ @name = args[:name] if args.key?(:name)
1752
+ @self_link = args[:self_link] if args.key?(:self_link)
1753
+ @update_time = args[:update_time] if args.key?(:update_time)
1754
+ end
1755
+ end
1756
+
1757
+ # A list of managed folders.
1758
+ class ManagedFolders
1759
+ include Google::Apis::Core::Hashable
1760
+
1761
+ # The list of items.
1762
+ # Corresponds to the JSON property `items`
1763
+ # @return [Array<Google::Apis::StorageV1::ManagedFolder>]
1764
+ attr_accessor :items
1765
+
1766
+ # The kind of item this is. For lists of managed folders, this is always storage#
1767
+ # managedFolders.
1768
+ # Corresponds to the JSON property `kind`
1769
+ # @return [String]
1770
+ attr_accessor :kind
1771
+
1772
+ # The continuation token, used to page through large result sets. Provide this
1773
+ # value in a subsequent request to return the next page of results.
1774
+ # Corresponds to the JSON property `nextPageToken`
1775
+ # @return [String]
1776
+ attr_accessor :next_page_token
1777
+
1778
+ def initialize(**args)
1779
+ update!(**args)
1780
+ end
1781
+
1782
+ # Update properties of this object
1783
+ def update!(**args)
1784
+ @items = args[:items] if args.key?(:items)
1785
+ @kind = args[:kind] if args.key?(:kind)
1786
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1787
+ end
1788
+ end
1789
+
1578
1790
  # A subscription to receive Google PubSub notifications.
1579
1791
  class Notification
1580
1792
  include Google::Apis::Core::Hashable
@@ -2207,7 +2419,7 @@ module Google
2207
2419
  end
2208
2420
  end
2209
2421
 
2210
- # A bucket/object IAM policy.
2422
+ # A bucket/object/managedFolder IAM policy.
2211
2423
  class Policy
2212
2424
  include Google::Apis::Core::Hashable
2213
2425
 
@@ -2230,11 +2442,11 @@ module Google
2230
2442
  attr_accessor :kind
2231
2443
 
2232
2444
  # The ID of the resource to which this policy belongs. Will be of the form
2233
- # projects/_/buckets/bucket for buckets, and projects/_/buckets/bucket/objects/
2234
- # object for objects. A specific generation may be specified by appending #
2235
- # generationNumber to the end of the object name, e.g. projects/_/buckets/my-
2236
- # bucket/objects/data.txt#17. The current generation can be denoted with #0.
2237
- # This field is ignored on input.
2445
+ # projects/_/buckets/bucket for buckets, projects/_/buckets/bucket/objects/
2446
+ # object for objects, and projects/_/buckets/bucket/managedFolders/managedFolder.
2447
+ # A specific generation may be specified by appending #generationNumber to the
2448
+ # end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17.
2449
+ # The current generation can be denoted with #0. This field is ignored on input.
2238
2450
  # Corresponds to the JSON property `resourceId`
2239
2451
  # @return [String]
2240
2452
  attr_accessor :resource_id
@@ -2413,7 +2625,7 @@ module Google
2413
2625
  end
2414
2626
  end
2415
2627
 
2416
- # A storage.(buckets|objects).testIamPermissions response.
2628
+ # A storage.(buckets|objects|managedFolders).testIamPermissions response.
2417
2629
  class TestIamPermissionsResponse
2418
2630
  include Google::Apis::Core::Hashable
2419
2631
 
@@ -2423,8 +2635,8 @@ module Google
2423
2635
  attr_accessor :kind
2424
2636
 
2425
2637
  # The permissions held by the caller. Permissions are always of the format
2426
- # storage.resource.capability, where resource is one of buckets or objects. The
2427
- # supported permissions are as follows:
2638
+ # storage.resource.capability, where resource is one of buckets, objects, or
2639
+ # managedFolders. The supported permissions are as follows:
2428
2640
  # - storage.buckets.delete — Delete bucket.
2429
2641
  # - storage.buckets.get — Read bucket metadata.
2430
2642
  # - storage.buckets.getIamPolicy — Read bucket IAM policy.
@@ -2439,6 +2651,12 @@ module Google
2439
2651
  # - storage.objects.list — List objects.
2440
2652
  # - storage.objects.setIamPolicy — Update object IAM policy.
2441
2653
  # - storage.objects.update — Update object metadata.
2654
+ # - storage.managedFolders.delete — Delete managed folder.
2655
+ # - storage.managedFolders.get — Read managed folder metadata.
2656
+ # - storage.managedFolders.getIamPolicy — Read managed folder IAM policy.
2657
+ # - storage.managedFolders.create — Create managed folder.
2658
+ # - storage.managedFolders.list — List managed folders.
2659
+ # - storage.managedFolders.setIamPolicy — Update managed folder IAM policy.
2442
2660
  # Corresponds to the JSON property `permissions`
2443
2661
  # @return [Array<String>]
2444
2662
  attr_accessor :permissions
@@ -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.28.0"
19
+ GEM_VERSION = "0.30.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 = "20230926"
25
+ REVISION = "20231028"
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
 
@@ -238,6 +250,18 @@ module Google
238
250
  include Google::Apis::Core::JsonObjectSupport
239
251
  end
240
252
 
253
+ class ManagedFolder
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class ManagedFolders
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
241
265
  class Notification
242
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
267
 
@@ -328,6 +352,35 @@ module Google
328
352
  include Google::Apis::Core::JsonObjectSupport
329
353
  end
330
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
+
331
384
  class Bucket
332
385
  # @private
333
386
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -740,6 +793,32 @@ module Google
740
793
  end
741
794
  end
742
795
 
796
+ class ManagedFolder
797
+ # @private
798
+ class Representation < Google::Apis::Core::JsonRepresentation
799
+ property :bucket, as: 'bucket'
800
+ property :create_time, as: 'createTime', type: DateTime
801
+
802
+ property :id, as: 'id'
803
+ property :kind, as: 'kind'
804
+ property :metageneration, :numeric_string => true, as: 'metageneration'
805
+ property :name, as: 'name'
806
+ property :self_link, as: 'selfLink'
807
+ property :update_time, as: 'updateTime', type: DateTime
808
+
809
+ end
810
+ end
811
+
812
+ class ManagedFolders
813
+ # @private
814
+ class Representation < Google::Apis::Core::JsonRepresentation
815
+ collection :items, as: 'items', class: Google::Apis::StorageV1::ManagedFolder, decorator: Google::Apis::StorageV1::ManagedFolder::Representation
816
+
817
+ property :kind, as: 'kind'
818
+ property :next_page_token, as: 'nextPageToken'
819
+ end
820
+ end
821
+
743
822
  class Notification
744
823
  # @private
745
824
  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}/anywhereCache', 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
@@ -1037,6 +1296,300 @@ module Google
1037
1296
  execute_or_queue_command(command, &block)
1038
1297
  end
1039
1298
 
1299
+ # Permanently deletes a managed folder.
1300
+ # @param [String] bucket
1301
+ # Name of the bucket containing the managed folder.
1302
+ # @param [String] managed_folder
1303
+ # The managed folder name/path.
1304
+ # @param [Fixnum] if_metageneration_match
1305
+ # If set, only deletes the managed folder if its metageneration matches this
1306
+ # value.
1307
+ # @param [Fixnum] if_metageneration_not_match
1308
+ # If set, only deletes the managed folder if its metageneration does not match
1309
+ # this value.
1310
+ # @param [String] fields
1311
+ # Selector specifying which fields to include in a partial response.
1312
+ # @param [String] quota_user
1313
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1314
+ # characters.
1315
+ # @param [String] user_ip
1316
+ # Deprecated. Please use quotaUser instead.
1317
+ # @param [Google::Apis::RequestOptions] options
1318
+ # Request-specific options
1319
+ #
1320
+ # @yield [result, err] Result & error if block supplied
1321
+ # @yieldparam result [NilClass] No result returned for this method
1322
+ # @yieldparam err [StandardError] error object if request failed
1323
+ #
1324
+ # @return [void]
1325
+ #
1326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1329
+ def delete_managed_folder(bucket, managed_folder, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1330
+ command = make_simple_command(:delete, 'b/{bucket}/managedFolders/{managedFolder}', options)
1331
+ command.params['bucket'] = bucket unless bucket.nil?
1332
+ command.params['managedFolder'] = managed_folder unless managed_folder.nil?
1333
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1334
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1335
+ command.query['fields'] = fields unless fields.nil?
1336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1337
+ command.query['userIp'] = user_ip unless user_ip.nil?
1338
+ execute_or_queue_command(command, &block)
1339
+ end
1340
+
1341
+ # Returns metadata of the specified managed folder.
1342
+ # @param [String] bucket
1343
+ # Name of the bucket containing the managed folder.
1344
+ # @param [String] managed_folder
1345
+ # The managed folder name/path.
1346
+ # @param [Fixnum] if_metageneration_match
1347
+ # Makes the return of the managed folder metadata conditional on whether the
1348
+ # managed folder's current metageneration matches the given value.
1349
+ # @param [Fixnum] if_metageneration_not_match
1350
+ # Makes the return of the managed folder metadata conditional on whether the
1351
+ # managed folder's current metageneration does not match the given value.
1352
+ # @param [String] fields
1353
+ # Selector specifying which fields to include in a partial response.
1354
+ # @param [String] quota_user
1355
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1356
+ # characters.
1357
+ # @param [String] user_ip
1358
+ # Deprecated. Please use quotaUser instead.
1359
+ # @param [Google::Apis::RequestOptions] options
1360
+ # Request-specific options
1361
+ #
1362
+ # @yield [result, err] Result & error if block supplied
1363
+ # @yieldparam result [Google::Apis::StorageV1::ManagedFolder] parsed result object
1364
+ # @yieldparam err [StandardError] error object if request failed
1365
+ #
1366
+ # @return [Google::Apis::StorageV1::ManagedFolder]
1367
+ #
1368
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1369
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1370
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1371
+ def get_managed_folder(bucket, managed_folder, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1372
+ command = make_simple_command(:get, 'b/{bucket}/managedFolders/{managedFolder}', options)
1373
+ command.response_representation = Google::Apis::StorageV1::ManagedFolder::Representation
1374
+ command.response_class = Google::Apis::StorageV1::ManagedFolder
1375
+ command.params['bucket'] = bucket unless bucket.nil?
1376
+ command.params['managedFolder'] = managed_folder unless managed_folder.nil?
1377
+ command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil?
1378
+ command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil?
1379
+ command.query['fields'] = fields unless fields.nil?
1380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1381
+ command.query['userIp'] = user_ip unless user_ip.nil?
1382
+ execute_or_queue_command(command, &block)
1383
+ end
1384
+
1385
+ # Returns an IAM policy for the specified managed folder.
1386
+ # @param [String] bucket
1387
+ # Name of the bucket containing the managed folder.
1388
+ # @param [String] managed_folder
1389
+ # The managed folder name/path.
1390
+ # @param [Fixnum] options_requested_policy_version
1391
+ # The IAM policy format version to be returned. If the
1392
+ # optionsRequestedPolicyVersion is for an older version that doesn't support
1393
+ # part of the requested IAM policy, the request fails.
1394
+ # @param [String] user_project
1395
+ # The project to be billed for this request. Required for Requester Pays buckets.
1396
+ # @param [String] fields
1397
+ # Selector specifying which fields to include in a partial response.
1398
+ # @param [String] quota_user
1399
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1400
+ # characters.
1401
+ # @param [String] user_ip
1402
+ # Deprecated. Please use quotaUser instead.
1403
+ # @param [Google::Apis::RequestOptions] options
1404
+ # Request-specific options
1405
+ #
1406
+ # @yield [result, err] Result & error if block supplied
1407
+ # @yieldparam result [Google::Apis::StorageV1::Policy] parsed result object
1408
+ # @yieldparam err [StandardError] error object if request failed
1409
+ #
1410
+ # @return [Google::Apis::StorageV1::Policy]
1411
+ #
1412
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1413
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1414
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1415
+ def get_managed_folder_iam_policy(bucket, managed_folder, options_requested_policy_version: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1416
+ command = make_simple_command(:get, 'b/{bucket}/managedFolders/{managedFolder}/iam', options)
1417
+ command.response_representation = Google::Apis::StorageV1::Policy::Representation
1418
+ command.response_class = Google::Apis::StorageV1::Policy
1419
+ command.params['bucket'] = bucket unless bucket.nil?
1420
+ command.params['managedFolder'] = managed_folder unless managed_folder.nil?
1421
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1422
+ command.query['userProject'] = user_project unless user_project.nil?
1423
+ command.query['fields'] = fields unless fields.nil?
1424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1425
+ command.query['userIp'] = user_ip unless user_ip.nil?
1426
+ execute_or_queue_command(command, &block)
1427
+ end
1428
+
1429
+ # Creates a new managed folder.
1430
+ # @param [String] bucket
1431
+ # Name of the bucket containing the managed folder.
1432
+ # @param [Google::Apis::StorageV1::ManagedFolder] managed_folder_object
1433
+ # @param [String] fields
1434
+ # Selector specifying which fields to include in a partial response.
1435
+ # @param [String] quota_user
1436
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1437
+ # characters.
1438
+ # @param [String] user_ip
1439
+ # Deprecated. Please use quotaUser instead.
1440
+ # @param [Google::Apis::RequestOptions] options
1441
+ # Request-specific options
1442
+ #
1443
+ # @yield [result, err] Result & error if block supplied
1444
+ # @yieldparam result [Google::Apis::StorageV1::ManagedFolder] parsed result object
1445
+ # @yieldparam err [StandardError] error object if request failed
1446
+ #
1447
+ # @return [Google::Apis::StorageV1::ManagedFolder]
1448
+ #
1449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1452
+ def insert_managed_folder(bucket, managed_folder_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1453
+ command = make_simple_command(:post, 'b/{bucket}/managedFolders', options)
1454
+ command.request_representation = Google::Apis::StorageV1::ManagedFolder::Representation
1455
+ command.request_object = managed_folder_object
1456
+ command.response_representation = Google::Apis::StorageV1::ManagedFolder::Representation
1457
+ command.response_class = Google::Apis::StorageV1::ManagedFolder
1458
+ command.params['bucket'] = bucket unless bucket.nil?
1459
+ command.query['fields'] = fields unless fields.nil?
1460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1461
+ command.query['userIp'] = user_ip unless user_ip.nil?
1462
+ execute_or_queue_command(command, &block)
1463
+ end
1464
+
1465
+ # Lists managed folders in the given bucket.
1466
+ # @param [String] bucket
1467
+ # Name of the bucket containing the managed folder.
1468
+ # @param [Fixnum] page_size
1469
+ # Maximum number of items return in a single page of responses.
1470
+ # @param [String] page_token
1471
+ # A previously-returned page token representing part of the larger set of
1472
+ # results to view.
1473
+ # @param [String] prefix
1474
+ # The managed folder name/path prefix to filter the output list of results.
1475
+ # @param [String] fields
1476
+ # Selector specifying which fields to include in a partial response.
1477
+ # @param [String] quota_user
1478
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1479
+ # characters.
1480
+ # @param [String] user_ip
1481
+ # Deprecated. Please use quotaUser instead.
1482
+ # @param [Google::Apis::RequestOptions] options
1483
+ # Request-specific options
1484
+ #
1485
+ # @yield [result, err] Result & error if block supplied
1486
+ # @yieldparam result [Google::Apis::StorageV1::ManagedFolders] parsed result object
1487
+ # @yieldparam err [StandardError] error object if request failed
1488
+ #
1489
+ # @return [Google::Apis::StorageV1::ManagedFolders]
1490
+ #
1491
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1492
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1493
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1494
+ def list_managed_folders(bucket, page_size: nil, page_token: nil, prefix: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1495
+ command = make_simple_command(:get, 'b/{bucket}/managedFolders', options)
1496
+ command.response_representation = Google::Apis::StorageV1::ManagedFolders::Representation
1497
+ command.response_class = Google::Apis::StorageV1::ManagedFolders
1498
+ command.params['bucket'] = bucket unless bucket.nil?
1499
+ command.query['pageSize'] = page_size unless page_size.nil?
1500
+ command.query['pageToken'] = page_token unless page_token.nil?
1501
+ command.query['prefix'] = prefix unless prefix.nil?
1502
+ command.query['fields'] = fields unless fields.nil?
1503
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1504
+ command.query['userIp'] = user_ip unless user_ip.nil?
1505
+ execute_or_queue_command(command, &block)
1506
+ end
1507
+
1508
+ # Updates an IAM policy for the specified managed folder.
1509
+ # @param [String] bucket
1510
+ # Name of the bucket containing the managed folder.
1511
+ # @param [String] managed_folder
1512
+ # The managed folder name/path.
1513
+ # @param [Google::Apis::StorageV1::Policy] policy_object
1514
+ # @param [String] user_project
1515
+ # The project to be billed for this request. Required for Requester Pays buckets.
1516
+ # @param [String] fields
1517
+ # Selector specifying which fields to include in a partial response.
1518
+ # @param [String] quota_user
1519
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1520
+ # characters.
1521
+ # @param [String] user_ip
1522
+ # Deprecated. Please use quotaUser instead.
1523
+ # @param [Google::Apis::RequestOptions] options
1524
+ # Request-specific options
1525
+ #
1526
+ # @yield [result, err] Result & error if block supplied
1527
+ # @yieldparam result [Google::Apis::StorageV1::Policy] parsed result object
1528
+ # @yieldparam err [StandardError] error object if request failed
1529
+ #
1530
+ # @return [Google::Apis::StorageV1::Policy]
1531
+ #
1532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
+ def set_managed_folder_iam_policy(bucket, managed_folder, policy_object = nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1536
+ command = make_simple_command(:put, 'b/{bucket}/managedFolders/{managedFolder}/iam', options)
1537
+ command.request_representation = Google::Apis::StorageV1::Policy::Representation
1538
+ command.request_object = policy_object
1539
+ command.response_representation = Google::Apis::StorageV1::Policy::Representation
1540
+ command.response_class = Google::Apis::StorageV1::Policy
1541
+ command.params['bucket'] = bucket unless bucket.nil?
1542
+ command.params['managedFolder'] = managed_folder unless managed_folder.nil?
1543
+ command.query['userProject'] = user_project unless user_project.nil?
1544
+ command.query['fields'] = fields unless fields.nil?
1545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1546
+ command.query['userIp'] = user_ip unless user_ip.nil?
1547
+ execute_or_queue_command(command, &block)
1548
+ end
1549
+
1550
+ # Tests a set of permissions on the given managed folder to see which, if any,
1551
+ # are held by the caller.
1552
+ # @param [String] bucket
1553
+ # Name of the bucket containing the managed folder.
1554
+ # @param [String] managed_folder
1555
+ # The managed folder name/path.
1556
+ # @param [Array<String>, String] permissions
1557
+ # Permissions to test.
1558
+ # @param [String] user_project
1559
+ # The project to be billed for this request. Required for Requester Pays buckets.
1560
+ # @param [String] fields
1561
+ # Selector specifying which fields to include in a partial response.
1562
+ # @param [String] quota_user
1563
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1564
+ # characters.
1565
+ # @param [String] user_ip
1566
+ # Deprecated. Please use quotaUser instead.
1567
+ # @param [Google::Apis::RequestOptions] options
1568
+ # Request-specific options
1569
+ #
1570
+ # @yield [result, err] Result & error if block supplied
1571
+ # @yieldparam result [Google::Apis::StorageV1::TestIamPermissionsResponse] parsed result object
1572
+ # @yieldparam err [StandardError] error object if request failed
1573
+ #
1574
+ # @return [Google::Apis::StorageV1::TestIamPermissionsResponse]
1575
+ #
1576
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1577
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1578
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1579
+ def test_managed_folder_iam_permissions(bucket, managed_folder, permissions, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1580
+ command = make_simple_command(:get, 'b/{bucket}/managedFolders/{managedFolder}/iam/testPermissions', options)
1581
+ command.response_representation = Google::Apis::StorageV1::TestIamPermissionsResponse::Representation
1582
+ command.response_class = Google::Apis::StorageV1::TestIamPermissionsResponse
1583
+ command.params['bucket'] = bucket unless bucket.nil?
1584
+ command.params['managedFolder'] = managed_folder unless managed_folder.nil?
1585
+ command.query['permissions'] = permissions unless permissions.nil?
1586
+ command.query['userProject'] = user_project unless user_project.nil?
1587
+ command.query['fields'] = fields unless fields.nil?
1588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1589
+ command.query['userIp'] = user_ip unless user_ip.nil?
1590
+ execute_or_queue_command(command, &block)
1591
+ end
1592
+
1040
1593
  # Permanently deletes a notification subscription.
1041
1594
  # @param [String] bucket
1042
1595
  # The parent bucket of the notification.
@@ -1979,6 +2532,9 @@ module Google
1979
2532
  # Filter results to objects whose names are lexicographically before endOffset.
1980
2533
  # If startOffset is also set, the objects listed will have names between
1981
2534
  # startOffset (inclusive) and endOffset (exclusive).
2535
+ # @param [Boolean] include_folders_as_prefixes
2536
+ # Only applicable if delimiter is set to '/'. If true, will also include folders
2537
+ # and managed folders (besides objects) in the returned prefixes.
1982
2538
  # @param [Boolean] include_trailing_delimiter
1983
2539
  # If true, objects that end in exactly one instance of delimiter will have their
1984
2540
  # metadata included in items in addition to prefixes.
@@ -2027,13 +2583,14 @@ module Google
2027
2583
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2028
2584
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2029
2585
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2030
- def list_objects(bucket, delimiter: nil, end_offset: nil, include_trailing_delimiter: nil, match_glob: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, start_offset: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2586
+ def list_objects(bucket, delimiter: nil, end_offset: nil, include_folders_as_prefixes: nil, include_trailing_delimiter: nil, match_glob: nil, max_results: nil, page_token: nil, prefix: nil, projection: nil, soft_deleted: nil, start_offset: nil, user_project: nil, versions: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2031
2587
  command = make_simple_command(:get, 'b/{bucket}/o', options)
2032
2588
  command.response_representation = Google::Apis::StorageV1::Objects::Representation
2033
2589
  command.response_class = Google::Apis::StorageV1::Objects
2034
2590
  command.params['bucket'] = bucket unless bucket.nil?
2035
2591
  command.query['delimiter'] = delimiter unless delimiter.nil?
2036
2592
  command.query['endOffset'] = end_offset unless end_offset.nil?
2593
+ command.query['includeFoldersAsPrefixes'] = include_folders_as_prefixes unless include_folders_as_prefixes.nil?
2037
2594
  command.query['includeTrailingDelimiter'] = include_trailing_delimiter unless include_trailing_delimiter.nil?
2038
2595
  command.query['matchGlob'] = match_glob unless match_glob.nil?
2039
2596
  command.query['maxResults'] = max_results unless max_results.nil?
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.28.0
4
+ version: 0.30.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-10-01 00:00:00.000000000 Z
11
+ date: 2023-11-05 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.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-storage_v1/v0.30.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: []