diff --git a/api_names_out.yaml b/api_names_out.yaml index c0a88f380c1..23772b5d2c7 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -102643,6 +102643,37 @@ "/firebase:v1beta1/firebase.projects.webApps.patch/updateMask": update_mask "/firebase:v1beta1/key": key "/firebase:v1beta1/quotaUser": quota_user +"/firebasedatabase:v1beta/DatabaseInstance": database_instance +"/firebasedatabase:v1beta/DatabaseInstance/databaseUrl": database_url +"/firebasedatabase:v1beta/DatabaseInstance/name": name +"/firebasedatabase:v1beta/DatabaseInstance/project": project +"/firebasedatabase:v1beta/DatabaseInstance/state": state +"/firebasedatabase:v1beta/DatabaseInstance/type": type +"/firebasedatabase:v1beta/DisableDatabaseInstanceRequest": disable_database_instance_request +"/firebasedatabase:v1beta/ListDatabaseInstancesResponse": list_database_instances_response +"/firebasedatabase:v1beta/ListDatabaseInstancesResponse/instances": instances +"/firebasedatabase:v1beta/ListDatabaseInstancesResponse/instances/instance": instance +"/firebasedatabase:v1beta/ListDatabaseInstancesResponse/nextPageToken": next_page_token +"/firebasedatabase:v1beta/ReenableDatabaseInstanceRequest": reenable_database_instance_request +"/firebasedatabase:v1beta/fields": fields +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.create": create_project_location_instance +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.create/databaseId": database_id +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.create/parent": parent +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.create/validateOnly": validate_only +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.delete": delete_project_location_instance +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.delete/name": name +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.disable": disable_database_instance +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.disable/name": name +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.get": get_project_location_instance +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.get/name": name +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.list": list_project_location_instances +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.list/pageSize": page_size +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.list/pageToken": page_token +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.list/parent": parent +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.reenable": reenable_database_instance +"/firebasedatabase:v1beta/firebasedatabase.projects.locations.instances.reenable/name": name +"/firebasedatabase:v1beta/key": key +"/firebasedatabase:v1beta/quotaUser": quota_user "/firebasedynamiclinks:v1/AnalyticsInfo": analytics_info "/firebasedynamiclinks:v1/AnalyticsInfo/googlePlayAnalytics": google_play_analytics "/firebasedynamiclinks:v1/AnalyticsInfo/itunesConnectAnalytics": itunes_connect_analytics diff --git a/generated/google/apis/firebasedatabase_v1beta.rb b/generated/google/apis/firebasedatabase_v1beta.rb new file mode 100644 index 00000000000..26fa7223183 --- /dev/null +++ b/generated/google/apis/firebasedatabase_v1beta.rb @@ -0,0 +1,44 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/firebasedatabase_v1beta/service.rb' +require 'google/apis/firebasedatabase_v1beta/classes.rb' +require 'google/apis/firebasedatabase_v1beta/representations.rb' + +module Google + module Apis + # Firebase Realtime Database Management API + # + # The Firebase Realtime Database Management API enables programmatic + # provisioning and management of Realtime Database instances. + # + # @see https://firebase.google.com/docs/reference/rest/database/database-management/rest/ + module FirebasedatabaseV1beta + VERSION = 'V1beta' + REVISION = '20201112' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # View your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only' + + # View and administer all your Firebase data and settings + AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase' + + # View all your Firebase data and settings + AUTH_FIREBASE_READONLY = 'https://www.googleapis.com/auth/firebase.readonly' + end + end +end diff --git a/generated/google/apis/firebasedatabase_v1beta/classes.rb b/generated/google/apis/firebasedatabase_v1beta/classes.rb new file mode 100644 index 00000000000..ee73b60d95a --- /dev/null +++ b/generated/google/apis/firebasedatabase_v1beta/classes.rb @@ -0,0 +1,130 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module FirebasedatabaseV1beta + + # Representation of a Realtime Database instance. Details on interacting with + # contents of a DatabaseInstance can be found at: https://firebase.google.com/ + # docs/database/rest/start. + class DatabaseInstance + include Google::Apis::Core::Hashable + + # Immutable. The globally unique hostname of the database. + # Corresponds to the JSON property `databaseUrl` + # @return [String] + attr_accessor :database_url + + # The fully qualified resource name of the database instance, in the form: ` + # projects/`project-number`/locations/`location-id`/instances/`database-id``. + # Currently the only supported location is 'us-central1'. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The resource name of the project this instance belongs to. For example: ` + # projects/`project-number``. + # Corresponds to the JSON property `project` + # @return [String] + attr_accessor :project + + # The database's lifecycle state. Read-only. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The database instance type. On creation only USER_DATABASE is allowed, which + # is also the default when omitted. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @database_url = args[:database_url] if args.key?(:database_url) + @name = args[:name] if args.key?(:name) + @project = args[:project] if args.key?(:project) + @state = args[:state] if args.key?(:state) + @type = args[:type] if args.key?(:type) + end + end + + # The request sent to the DisableDatabaseInstance method. + class DisableDatabaseInstanceRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response from the ListDatabaseInstances method. + class ListDatabaseInstancesResponse + include Google::Apis::Core::Hashable + + # List of each DatabaseInstance that is in the parent Firebase project. + # Corresponds to the JSON property `instances` + # @return [Array] + attr_accessor :instances + + # If the result list is too large to fit in a single response, then a token is + # returned. If the string is empty, then this response is the last page of + # results. This token can be used in a subsequent call to `ListDatabaseInstances` + # to find the next group of database instances. Page tokens are short-lived and + # should not be persisted. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instances = args[:instances] if args.key?(:instances) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # The request sent to the ReenableDatabaseInstance method. + class ReenableDatabaseInstanceRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + end + end +end diff --git a/generated/google/apis/firebasedatabase_v1beta/representations.rb b/generated/google/apis/firebasedatabase_v1beta/representations.rb new file mode 100644 index 00000000000..7aa06d4545f --- /dev/null +++ b/generated/google/apis/firebasedatabase_v1beta/representations.rb @@ -0,0 +1,82 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'date' +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module FirebasedatabaseV1beta + + class DatabaseInstance + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DisableDatabaseInstanceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListDatabaseInstancesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ReenableDatabaseInstanceRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DatabaseInstance + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :database_url, as: 'databaseUrl' + property :name, as: 'name' + property :project, as: 'project' + property :state, as: 'state' + property :type, as: 'type' + end + end + + class DisableDatabaseInstanceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListDatabaseInstancesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :instances, as: 'instances', class: Google::Apis::FirebasedatabaseV1beta::DatabaseInstance, decorator: Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ReenableDatabaseInstanceRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + end + end +end diff --git a/generated/google/apis/firebasedatabase_v1beta/service.rb b/generated/google/apis/firebasedatabase_v1beta/service.rb new file mode 100644 index 00000000000..03fc6795b95 --- /dev/null +++ b/generated/google/apis/firebasedatabase_v1beta/service.rb @@ -0,0 +1,292 @@ +# Copyright 2015 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require 'google/apis/core/base_service' +require 'google/apis/core/json_representation' +require 'google/apis/core/hashable' +require 'google/apis/errors' + +module Google + module Apis + module FirebasedatabaseV1beta + # Firebase Realtime Database Management API + # + # The Firebase Realtime Database Management API enables programmatic + # provisioning and management of Realtime Database instances. + # + # @example + # require 'google/apis/firebasedatabase_v1beta' + # + # Firebasedatabase = Google::Apis::FirebasedatabaseV1beta # Alias the module + # service = Firebasedatabase::FirebaseRealtimeDatabaseService.new + # + # @see https://firebase.google.com/docs/reference/rest/database/database-management/rest/ + class FirebaseRealtimeDatabaseService < Google::Apis::Core::BaseService + # @return [String] + # API key. Your API key identifies your project and provides you with API access, + # quota, and reports. Required unless you provide an OAuth 2.0 token. + attr_accessor :key + + # @return [String] + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + attr_accessor :quota_user + + def initialize + super('https://firebasedatabase.googleapis.com/', '') + @batch_path = 'batch' + end + + # Requests that a new DatabaseInstance be created. The state of a successfully + # created DatabaseInstance is ACTIVE. Only available for projects on the Blaze + # plan. Projects can be upgraded using the Cloud Billing API https://cloud. + # google.com/billing/reference/rest/v1/projects/updateBillingInfo. Note that it + # might take a few minutes for billing enablement state to propagate to Firebase + # systems. + # @param [String] parent + # The parent project for which to create a database instance, in the form: ` + # projects/`project-number`/locations/`location-id``. + # @param [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] database_instance_object + # @param [String] database_id + # The globally unique identifier of the database instance. + # @param [Boolean] validate_only + # When set to true, the request will be validated but not submitted. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_instance(parent, database_instance_object = nil, database_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}/instances', options) + command.request_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation + command.request_object = database_instance_object + command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation + command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance + command.params['parent'] = parent unless parent.nil? + command.query['databaseId'] = database_id unless database_id.nil? + command.query['validateOnly'] = validate_only unless validate_only.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Marks a DatabaseInstance to be deleted. The DatabaseInstance will be purged + # within 30 days. The default database cannot be deleted. IDs for deleted + # database instances may never be recovered or re-used. The Database may only be + # deleted if it is already in a DISABLED state. + # @param [String] name + # The fully qualified resource name of the database instance, in the form: ` + # projects/`project-number`/locations/`location-id`/instances/`database-id`` + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta/{+name}', options) + command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation + command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Disables a DatabaseInstance. The database can be re-enabled later using + # ReenableDatabaseInstance. When a database is disabled, all reads and writes + # are denied, including view access in the Firebase console. + # @param [String] name + # The fully qualified resource name of the database instance, in the form: ` + # projects/`project-number`/locations/`location-id`/instances/`database-id`` + # @param [Google::Apis::FirebasedatabaseV1beta::DisableDatabaseInstanceRequest] disable_database_instance_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def disable_database_instance(name, disable_database_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+name}:disable', options) + command.request_representation = Google::Apis::FirebasedatabaseV1beta::DisableDatabaseInstanceRequest::Representation + command.request_object = disable_database_instance_request_object + command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation + command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the DatabaseInstance identified by the specified resource name. + # @param [String] name + # The fully qualified resource name of the database instance, in the form: ` + # projects/`project-number`/locations/`location-id`/instances/`database-id``. ` + # database-id` is a globally unique identifier across all parent collections. + # For convenience, this method allows you to supply `-` as a wildcard character + # in place of specific collections under `projects` and `locations`. The + # resulting wildcarding form of the method is: `projects/-/locations/-/instances/ + # `database-id``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_instance(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta/{+name}', options) + command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation + command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists each DatabaseInstance associated with the specified parent project. The + # list items are returned in no particular order, but will be a consistent view + # of the database instances when additional requests are made with a `pageToken`. + # The resulting list contains instances in any STATE. The list results may be + # stale by a few seconds. Use GetDatabaseInstance for consistent reads. + # @param [String] parent + # The parent project for which to list database instances, in the form: ` + # projects/`project-number`/locations/`location-id`` To list across all + # locations, use a parent in the form: `projects/`project-number`/locations/-` + # @param [Fixnum] page_size + # The maximum number of database instances to return in the response. The server + # may return fewer than this at its discretion. If no value is specified (or too + # large a value is specified), then the server will impose its own limit. + # @param [String] page_token + # Token returned from a previous call to `ListDatabaseInstances` indicating + # where in the set of database instances to resume listing. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_instances(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta/{+parent}/instances', options) + command.response_representation = Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse::Representation + command.response_class = Google::Apis::FirebasedatabaseV1beta::ListDatabaseInstancesResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Enables a DatabaseInstance. The database must have been disabled previously + # using DisableDatabaseInstance. The state of a successfully reenabled + # DatabaseInstance is ACTIVE. + # @param [String] name + # The fully qualified resource name of the database instance, in the form: ` + # projects/`project-number`/locations/`location-id`/instances/`database-id`` + # @param [Google::Apis::FirebasedatabaseV1beta::ReenableDatabaseInstanceRequest] reenable_database_instance_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::FirebasedatabaseV1beta::DatabaseInstance] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def reenable_database_instance(name, reenable_database_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+name}:reenable', options) + command.request_representation = Google::Apis::FirebasedatabaseV1beta::ReenableDatabaseInstanceRequest::Representation + command.request_object = reenable_database_instance_request_object + command.response_representation = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance::Representation + command.response_class = Google::Apis::FirebasedatabaseV1beta::DatabaseInstance + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + protected + + def apply_command_defaults(command) + command.query['key'] = key unless key.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + end + end + end + end +end diff --git a/generated/google/apis/firebasedatabase_v1beta/synth.metadata b/generated/google/apis/firebasedatabase_v1beta/synth.metadata new file mode 100644 index 00000000000..c997c16750e --- /dev/null +++ b/generated/google/apis/firebasedatabase_v1beta/synth.metadata @@ -0,0 +1,11 @@ +{ + "sources": [ + { + "git": { + "name": ".", + "remote": "https://github.com/googleapis/google-api-ruby-client.git", + "sha": "80ec0b967cd5a5684bfef8245037ac83f2801982" + } + } + ] +} \ No newline at end of file