480 lines
17 KiB
Ruby
480 lines
17 KiB
Ruby
# 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 MetastoreV1beta
|
|
|
|
class AuditConfig
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class AuditLogConfig
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Binding
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class DatabaseDump
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Empty
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ExportMetadataRequest
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Expr
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class HiveMetastoreConfig
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class HiveMetastoreVersion
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class KerberosConfig
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListLocationsResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListMetadataImportsResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListOperationsResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListServicesResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Location
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class LocationMetadata
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class MaintenanceWindow
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class MetadataExport
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class MetadataImport
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class MetadataIntegration
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class MetadataManagementActivity
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Operation
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Policy
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Secret
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Service
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class SetIamPolicyRequest
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Status
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class TestIamPermissionsRequest
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class TestIamPermissionsResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class AuditConfig
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::MetastoreV1beta::AuditLogConfig, decorator: Google::Apis::MetastoreV1beta::AuditLogConfig::Representation
|
|
|
|
property :service, as: 'service'
|
|
end
|
|
end
|
|
|
|
class AuditLogConfig
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :exempted_members, as: 'exemptedMembers'
|
|
property :log_type, as: 'logType'
|
|
end
|
|
end
|
|
|
|
class Binding
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :condition, as: 'condition', class: Google::Apis::MetastoreV1beta::Expr, decorator: Google::Apis::MetastoreV1beta::Expr::Representation
|
|
|
|
collection :members, as: 'members'
|
|
property :role, as: 'role'
|
|
end
|
|
end
|
|
|
|
class DatabaseDump
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :database_type, as: 'databaseType'
|
|
property :gcs_uri, as: 'gcsUri'
|
|
property :source_database, as: 'sourceDatabase'
|
|
end
|
|
end
|
|
|
|
class Empty
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
end
|
|
end
|
|
|
|
class ExportMetadataRequest
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :destination_gcs_folder, as: 'destinationGcsFolder'
|
|
property :request_id, as: 'requestId'
|
|
end
|
|
end
|
|
|
|
class Expr
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :description, as: 'description'
|
|
property :expression, as: 'expression'
|
|
property :location, as: 'location'
|
|
property :title, as: 'title'
|
|
end
|
|
end
|
|
|
|
class HiveMetastoreConfig
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
hash :config_overrides, as: 'configOverrides'
|
|
property :kerberos_config, as: 'kerberosConfig', class: Google::Apis::MetastoreV1beta::KerberosConfig, decorator: Google::Apis::MetastoreV1beta::KerberosConfig::Representation
|
|
|
|
property :version, as: 'version'
|
|
end
|
|
end
|
|
|
|
class HiveMetastoreVersion
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :is_default, as: 'isDefault'
|
|
property :version, as: 'version'
|
|
end
|
|
end
|
|
|
|
class KerberosConfig
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :keytab, as: 'keytab', class: Google::Apis::MetastoreV1beta::Secret, decorator: Google::Apis::MetastoreV1beta::Secret::Representation
|
|
|
|
property :krb5_config_gcs_uri, as: 'krb5ConfigGcsUri'
|
|
property :principal, as: 'principal'
|
|
end
|
|
end
|
|
|
|
class ListLocationsResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :locations, as: 'locations', class: Google::Apis::MetastoreV1beta::Location, decorator: Google::Apis::MetastoreV1beta::Location::Representation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
end
|
|
end
|
|
|
|
class ListMetadataImportsResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :metadata_imports, as: 'metadataImports', class: Google::Apis::MetastoreV1beta::MetadataImport, decorator: Google::Apis::MetastoreV1beta::MetadataImport::Representation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
collection :unreachable, as: 'unreachable'
|
|
end
|
|
end
|
|
|
|
class ListOperationsResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :next_page_token, as: 'nextPageToken'
|
|
collection :operations, as: 'operations', class: Google::Apis::MetastoreV1beta::Operation, decorator: Google::Apis::MetastoreV1beta::Operation::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class ListServicesResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :next_page_token, as: 'nextPageToken'
|
|
collection :services, as: 'services', class: Google::Apis::MetastoreV1beta::Service, decorator: Google::Apis::MetastoreV1beta::Service::Representation
|
|
|
|
collection :unreachable, as: 'unreachable'
|
|
end
|
|
end
|
|
|
|
class Location
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :display_name, as: 'displayName'
|
|
hash :labels, as: 'labels'
|
|
property :location_id, as: 'locationId'
|
|
hash :metadata, as: 'metadata'
|
|
property :name, as: 'name'
|
|
end
|
|
end
|
|
|
|
class LocationMetadata
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :supported_hive_metastore_versions, as: 'supportedHiveMetastoreVersions', class: Google::Apis::MetastoreV1beta::HiveMetastoreVersion, decorator: Google::Apis::MetastoreV1beta::HiveMetastoreVersion::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class MaintenanceWindow
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :day_of_week, as: 'dayOfWeek'
|
|
property :hour_of_day, as: 'hourOfDay'
|
|
end
|
|
end
|
|
|
|
class MetadataExport
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :destination_gcs_uri, as: 'destinationGcsUri'
|
|
property :end_time, as: 'endTime'
|
|
property :start_time, as: 'startTime'
|
|
property :state, as: 'state'
|
|
end
|
|
end
|
|
|
|
class MetadataImport
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :create_time, as: 'createTime'
|
|
property :database_dump, as: 'databaseDump', class: Google::Apis::MetastoreV1beta::DatabaseDump, decorator: Google::Apis::MetastoreV1beta::DatabaseDump::Representation
|
|
|
|
property :description, as: 'description'
|
|
property :name, as: 'name'
|
|
property :state, as: 'state'
|
|
property :update_time, as: 'updateTime'
|
|
end
|
|
end
|
|
|
|
class MetadataIntegration
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
end
|
|
end
|
|
|
|
class MetadataManagementActivity
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :metadata_exports, as: 'metadataExports', class: Google::Apis::MetastoreV1beta::MetadataExport, decorator: Google::Apis::MetastoreV1beta::MetadataExport::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class Operation
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :done, as: 'done'
|
|
property :error, as: 'error', class: Google::Apis::MetastoreV1beta::Status, decorator: Google::Apis::MetastoreV1beta::Status::Representation
|
|
|
|
hash :metadata, as: 'metadata'
|
|
property :name, as: 'name'
|
|
hash :response, as: 'response'
|
|
end
|
|
end
|
|
|
|
class Policy
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::MetastoreV1beta::AuditConfig, decorator: Google::Apis::MetastoreV1beta::AuditConfig::Representation
|
|
|
|
collection :bindings, as: 'bindings', class: Google::Apis::MetastoreV1beta::Binding, decorator: Google::Apis::MetastoreV1beta::Binding::Representation
|
|
|
|
property :etag, :base64 => true, as: 'etag'
|
|
property :version, as: 'version'
|
|
end
|
|
end
|
|
|
|
class Secret
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :cloud_secret, as: 'cloudSecret'
|
|
end
|
|
end
|
|
|
|
class Service
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :artifact_gcs_uri, as: 'artifactGcsUri'
|
|
property :create_time, as: 'createTime'
|
|
property :endpoint_uri, as: 'endpointUri'
|
|
property :hive_metastore_config, as: 'hiveMetastoreConfig', class: Google::Apis::MetastoreV1beta::HiveMetastoreConfig, decorator: Google::Apis::MetastoreV1beta::HiveMetastoreConfig::Representation
|
|
|
|
hash :labels, as: 'labels'
|
|
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::MetastoreV1beta::MaintenanceWindow, decorator: Google::Apis::MetastoreV1beta::MaintenanceWindow::Representation
|
|
|
|
property :metadata_integration, as: 'metadataIntegration', class: Google::Apis::MetastoreV1beta::MetadataIntegration, decorator: Google::Apis::MetastoreV1beta::MetadataIntegration::Representation
|
|
|
|
property :metadata_management_activity, as: 'metadataManagementActivity', class: Google::Apis::MetastoreV1beta::MetadataManagementActivity, decorator: Google::Apis::MetastoreV1beta::MetadataManagementActivity::Representation
|
|
|
|
property :name, as: 'name'
|
|
property :network, as: 'network'
|
|
property :port, as: 'port'
|
|
property :state, as: 'state'
|
|
property :state_message, as: 'stateMessage'
|
|
property :tier, as: 'tier'
|
|
property :uid, as: 'uid'
|
|
property :update_time, as: 'updateTime'
|
|
end
|
|
end
|
|
|
|
class SetIamPolicyRequest
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :policy, as: 'policy', class: Google::Apis::MetastoreV1beta::Policy, decorator: Google::Apis::MetastoreV1beta::Policy::Representation
|
|
|
|
property :update_mask, as: 'updateMask'
|
|
end
|
|
end
|
|
|
|
class Status
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :code, as: 'code'
|
|
collection :details, as: 'details'
|
|
property :message, as: 'message'
|
|
end
|
|
end
|
|
|
|
class TestIamPermissionsRequest
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :permissions, as: 'permissions'
|
|
end
|
|
end
|
|
|
|
class TestIamPermissionsResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :permissions, as: 'permissions'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|