google-apis-firebasestorage_v1beta 0.22.0 → 0.24.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/google/apis/firebasestorage_v1beta/classes.rb +27 -49
- data/lib/google/apis/firebasestorage_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/firebasestorage_v1beta/representations.rb +8 -21
- data/lib/google/apis/firebasestorage_v1beta/service.rb +99 -0
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f30f8730d6717731e7475b24128d8b76f0e7fe87868e2a540d1a6ecd4ec96e13
|
4
|
+
data.tar.gz: 5b4b5bf60b23bfdee4ff677f1391ea27ee130a45eb6991fd4988949d08a792ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c20803dac14bd1fa7fdd12e9c345369b780b5e4dcb4790f193e898f9bb8c5be9fad053d18fb52090ff234dafdf21754cfa7c295a5cb93b02356995830c767df
|
7
|
+
data.tar.gz: 6951fd6f354431bf567ca90cef07438b2ee51341c36f88b4fc9c67e0d7c204d834bee6708833f3a5fbc57ae8b79637b68490a66eadffb85ffdf78e41b0716d73
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-firebasestorage_v1beta
|
2
2
|
|
3
|
+
### v0.24.0 (2025-01-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241218
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
8
|
+
### v0.23.0 (2024-11-17)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20241111
|
11
|
+
* Regenerated using generator version 0.15.1
|
12
|
+
|
3
13
|
### v0.22.0 (2024-05-19)
|
4
14
|
|
5
15
|
* Regenerated using generator version 0.15.0
|
@@ -54,40 +54,32 @@ module Google
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
|
61
|
-
class Empty
|
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
|
62
61
|
include Google::Apis::Core::Hashable
|
63
62
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
# Update properties of this object
|
69
|
-
def update!(**args)
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
# Metadata for MigrateLocationDestructively LRO.
|
74
|
-
class GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata
|
75
|
-
include Google::Apis::Core::Hashable
|
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
|
76
67
|
|
77
|
-
#
|
78
|
-
# Corresponds to the JSON property `
|
68
|
+
# Immutable. Location of the default bucket.
|
69
|
+
# Corresponds to the JSON property `location`
|
79
70
|
# @return [String]
|
80
|
-
attr_accessor :
|
71
|
+
attr_accessor :location
|
81
72
|
|
82
|
-
#
|
83
|
-
# Corresponds to the JSON property `
|
73
|
+
# Resource name of the default bucket.
|
74
|
+
# Corresponds to the JSON property `name`
|
84
75
|
# @return [String]
|
85
|
-
attr_accessor :
|
76
|
+
attr_accessor :name
|
86
77
|
|
87
|
-
#
|
88
|
-
#
|
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`
|
89
81
|
# @return [String]
|
90
|
-
attr_accessor :
|
82
|
+
attr_accessor :storage_class
|
91
83
|
|
92
84
|
def initialize(**args)
|
93
85
|
update!(**args)
|
@@ -95,40 +87,26 @@ module Google
|
|
95
87
|
|
96
88
|
# Update properties of this object
|
97
89
|
def update!(**args)
|
98
|
-
@
|
99
|
-
@
|
100
|
-
@
|
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)
|
101
94
|
end
|
102
95
|
end
|
103
96
|
|
104
|
-
#
|
105
|
-
|
97
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
98
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
99
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
100
|
+
# protobuf.Empty) returns (google.protobuf.Empty); `
|
101
|
+
class Empty
|
106
102
|
include Google::Apis::Core::Hashable
|
107
103
|
|
108
|
-
# The time the LRO was created.
|
109
|
-
# Corresponds to the JSON property `createTime`
|
110
|
-
# @return [String]
|
111
|
-
attr_accessor :create_time
|
112
|
-
|
113
|
-
# The time the LRO was last updated.
|
114
|
-
# Corresponds to the JSON property `lastUpdateTime`
|
115
|
-
# @return [String]
|
116
|
-
attr_accessor :last_update_time
|
117
|
-
|
118
|
-
# The current state of the migration.
|
119
|
-
# Corresponds to the JSON property `state`
|
120
|
-
# @return [String]
|
121
|
-
attr_accessor :state
|
122
|
-
|
123
104
|
def initialize(**args)
|
124
105
|
update!(**args)
|
125
106
|
end
|
126
107
|
|
127
108
|
# Update properties of this object
|
128
109
|
def update!(**args)
|
129
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
130
|
-
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
131
|
-
@state = args[:state] if args.key?(:state)
|
132
110
|
end
|
133
111
|
end
|
134
112
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.24.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241218"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,19 +34,13 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class DefaultBucket
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
44
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
-
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
47
|
-
end
|
48
|
-
|
49
|
-
class GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata
|
43
|
+
class Empty
|
50
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
45
|
|
52
46
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -77,27 +71,20 @@ module Google
|
|
77
71
|
end
|
78
72
|
end
|
79
73
|
|
80
|
-
class
|
74
|
+
class DefaultBucket
|
81
75
|
# @private
|
82
76
|
class Representation < Google::Apis::Core::JsonRepresentation
|
83
|
-
|
84
|
-
end
|
77
|
+
property :bucket, as: 'bucket', class: Google::Apis::FirebasestorageV1beta::Bucket, decorator: Google::Apis::FirebasestorageV1beta::Bucket::Representation
|
85
78
|
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
property :create_time, as: 'createTime'
|
90
|
-
property :last_update_time, as: 'lastUpdateTime'
|
91
|
-
property :state, as: 'state'
|
79
|
+
property :location, as: 'location'
|
80
|
+
property :name, as: 'name'
|
81
|
+
property :storage_class, as: 'storageClass'
|
92
82
|
end
|
93
83
|
end
|
94
84
|
|
95
|
-
class
|
85
|
+
class Empty
|
96
86
|
# @private
|
97
87
|
class Representation < Google::Apis::Core::JsonRepresentation
|
98
|
-
property :create_time, as: 'createTime'
|
99
|
-
property :last_update_time, as: 'lastUpdateTime'
|
100
|
-
property :state, as: 'state'
|
101
88
|
end
|
102
89
|
end
|
103
90
|
|
@@ -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,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-firebasestorage_v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-12 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-firebasestorage_v1beta/v0.24.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-firebasestorage_v1beta
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.2
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Cloud Storage for Firebase API V1beta
|
82
79
|
test_files: []
|