@@ -52,6 +52,68 @@ def initialize
5252 @batch_path = 'batch'
5353 end
5454
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+
55117 # Links a Google Cloud Storage bucket to a Firebase project.
56118 # @param [String] bucket
57119 # Required. Resource name of the bucket, mirrors the ID of the underlying Google
@@ -190,6 +252,43 @@ def remove_bucket_firebase(bucket, remove_firebase_request_object = nil, fields:
190252 command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
191253 execute_or_queue_command ( command , &block )
192254 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
193292
194293 protected
195294
0 commit comments