google-apis-firebasestorage_v1beta 0.22.0 → 0.23.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: '069912a9c211fb670872e3f18dc619e84339bb938c50a2f0b96dfe357cf3dd4a'
4
- data.tar.gz: c158521d427aad0807cc8871aa7b3314f68eb49648a4808adc25370621b313e4
3
+ metadata.gz: ae0491c3e81e911d7eaf070853d78cd333c5a7223c3c13f038fcc185c89e442b
4
+ data.tar.gz: 401622d4e94b5dc91a963c8c886a50047f6ed6cbd584f28ae5c7d11f384a6516
5
5
  SHA512:
6
- metadata.gz: f7d3cca26626ef207bc14a346069033239b1a255f8e7849c325ee01daaedfed6cf783f2f74d4c64bd4f4e6e7e581385263aba0a75f092544430a01c1ac36106b
7
- data.tar.gz: e4972b8d21f811b6a256e8a5443d92065ab20345cf3333142a676eb8085c00e19261fa0f7afd1c790e3b1dca673eb06ba517c5e41e1f744002c35293c20d3dfd
6
+ metadata.gz: f2601a13cca160cc6d354a52848b29a1bd75c76880be699f520b3c7ddf6bf3fb970eb9a3eefcd374d2c8999c32e50421fe13807bcd5b6e9a69e53cff55a83c0c
7
+ data.tar.gz: c9b8a2f2e96428fa5669b8763be8d171532cc5c3eb2e4aee3d4e2db8595537980e6cf5013d29715897015e1a0f166a1752f2896520a1e90c57a7b222dbea5135
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-firebasestorage_v1beta
2
2
 
3
+ ### v0.23.0 (2024-11-17)
4
+
5
+ * Regenerated from discovery document revision 20241111
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.22.0 (2024-05-19)
4
9
 
5
10
  * Regenerated using generator version 0.15.0
@@ -54,6 +54,46 @@ module Google
54
54
  end
55
55
  end
56
56
 
57
+ # Spark tier-eligible Cloud Storage bucket. One per project. This resource
58
+ # exists if the underlying Cloud Storage bucket exists and it is linked to your
59
+ # Firebase project. See https://firebase.google.com/pricing for pricing details.
60
+ class DefaultBucket
61
+ include Google::Apis::Core::Hashable
62
+
63
+ # A storage bucket and its relation to a parent Firebase project.
64
+ # Corresponds to the JSON property `bucket`
65
+ # @return [Google::Apis::FirebasestorageV1beta::Bucket]
66
+ attr_accessor :bucket
67
+
68
+ # Immutable. Location of the default bucket.
69
+ # Corresponds to the JSON property `location`
70
+ # @return [String]
71
+ attr_accessor :location
72
+
73
+ # Resource name of the default bucket.
74
+ # Corresponds to the JSON property `name`
75
+ # @return [String]
76
+ attr_accessor :name
77
+
78
+ # Immutable. Storage class of the default bucket. Supported values are available
79
+ # at https://cloud.google.com/storage/docs/storage-classes#classes.
80
+ # Corresponds to the JSON property `storageClass`
81
+ # @return [String]
82
+ attr_accessor :storage_class
83
+
84
+ def initialize(**args)
85
+ update!(**args)
86
+ end
87
+
88
+ # Update properties of this object
89
+ def update!(**args)
90
+ @bucket = args[:bucket] if args.key?(:bucket)
91
+ @location = args[:location] if args.key?(:location)
92
+ @name = args[:name] if args.key?(:name)
93
+ @storage_class = args[:storage_class] if args.key?(:storage_class)
94
+ end
95
+ end
96
+
57
97
  # A generic empty message that you can re-use to avoid defining duplicated empty
58
98
  # messages in your APIs. A typical example is to use it as the request or the
59
99
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module FirebasestorageV1beta
18
18
  # Version of the google-apis-firebasestorage_v1beta gem
19
- GEM_VERSION = "0.22.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230822"
25
+ REVISION = "20241111"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,12 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class DefaultBucket
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
37
43
  class Empty
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
@@ -77,6 +83,17 @@ module Google
77
83
  end
78
84
  end
79
85
 
86
+ class DefaultBucket
87
+ # @private
88
+ class Representation < Google::Apis::Core::JsonRepresentation
89
+ property :bucket, as: 'bucket', class: Google::Apis::FirebasestorageV1beta::Bucket, decorator: Google::Apis::FirebasestorageV1beta::Bucket::Representation
90
+
91
+ property :location, as: 'location'
92
+ property :name, as: 'name'
93
+ property :storage_class, as: 'storageClass'
94
+ end
95
+ end
96
+
80
97
  class Empty
81
98
  # @private
82
99
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -52,6 +52,68 @@ module Google
52
52
  @batch_path = 'batch'
53
53
  end
54
54
 
55
+ # Unlinks and deletes the default bucket.
56
+ # @param [String] name
57
+ # Required. The name of the default bucket to delete, `projects/`
58
+ # project_id_or_number`/defaultBucket`.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::FirebasestorageV1beta::Empty] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::FirebasestorageV1beta::Empty]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def delete_project_default_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:delete, 'v1beta/{+name}', options)
78
+ command.response_representation = Google::Apis::FirebasestorageV1beta::Empty::Representation
79
+ command.response_class = Google::Apis::FirebasestorageV1beta::Empty
80
+ command.params['name'] = name unless name.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
86
+ # Gets the default bucket.
87
+ # @param [String] name
88
+ # Required. The name of the default bucket to retrieve, `projects/`
89
+ # project_id_or_number`/defaultBucket`.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::FirebasestorageV1beta::DefaultBucket] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::FirebasestorageV1beta::DefaultBucket]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def get_project_default_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1beta/{+name}', options)
109
+ command.response_representation = Google::Apis::FirebasestorageV1beta::DefaultBucket::Representation
110
+ command.response_class = Google::Apis::FirebasestorageV1beta::DefaultBucket
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['fields'] = fields unless fields.nil?
113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
114
+ execute_or_queue_command(command, &block)
115
+ end
116
+
55
117
  # Links a Google Cloud Storage bucket to a Firebase project.
56
118
  # @param [String] bucket
57
119
  # Required. Resource name of the bucket, mirrors the ID of the underlying Google
@@ -190,6 +252,43 @@ module Google
190
252
  command.query['quotaUser'] = quota_user unless quota_user.nil?
191
253
  execute_or_queue_command(command, &block)
192
254
  end
255
+
256
+ # Creates a Spark tier-eligible Cloud Storage bucket and links it to your
257
+ # Firebase project. If the default bucket already exists, this method will re-
258
+ # link it to your Firebase project. See https://firebase.google.com/pricing for
259
+ # pricing details.
260
+ # @param [String] parent
261
+ # Required. The parent resource where the default bucket will be created, `
262
+ # projects/`project_id_or_number``.
263
+ # @param [Google::Apis::FirebasestorageV1beta::DefaultBucket] default_bucket_object
264
+ # @param [String] fields
265
+ # Selector specifying which fields to include in a partial response.
266
+ # @param [String] quota_user
267
+ # Available to use for quota purposes for server-side applications. Can be any
268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
269
+ # @param [Google::Apis::RequestOptions] options
270
+ # Request-specific options
271
+ #
272
+ # @yield [result, err] Result & error if block supplied
273
+ # @yieldparam result [Google::Apis::FirebasestorageV1beta::DefaultBucket] parsed result object
274
+ # @yieldparam err [StandardError] error object if request failed
275
+ #
276
+ # @return [Google::Apis::FirebasestorageV1beta::DefaultBucket]
277
+ #
278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
281
+ def create_project_default_bucket(parent, default_bucket_object = nil, fields: nil, quota_user: nil, options: nil, &block)
282
+ command = make_simple_command(:post, 'v1beta/{+parent}/defaultBucket', options)
283
+ command.request_representation = Google::Apis::FirebasestorageV1beta::DefaultBucket::Representation
284
+ command.request_object = default_bucket_object
285
+ command.response_representation = Google::Apis::FirebasestorageV1beta::DefaultBucket::Representation
286
+ command.response_class = Google::Apis::FirebasestorageV1beta::DefaultBucket
287
+ command.params['parent'] = parent unless parent.nil?
288
+ command.query['fields'] = fields unless fields.nil?
289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
290
+ execute_or_queue_command(command, &block)
291
+ end
193
292
 
194
293
  protected
195
294
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-firebasestorage_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.0
4
+ version: 0.23.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-05-19 00:00:00.000000000 Z
11
+ date: 2024-12-04 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-firebasestorage_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-firebasestorage_v1beta/v0.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-firebasestorage_v1beta/v0.23.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebasestorage_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Storage for Firebase API V1beta