Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of firebasedatabase v1beta client #1537

Merged
merged 1 commit into from Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions api_names_out.yaml
Expand Up @@ -102638,6 +102638,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
Expand Down
44 changes: 44 additions & 0 deletions 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
130 changes: 130 additions & 0 deletions 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<Google::Apis::FirebasedatabaseV1beta::DatabaseInstance>]
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
82 changes: 82 additions & 0 deletions 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