Class: Google::Apis::MetastoreV1alpha::DataprocMetastoreService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::MetastoreV1alpha::DataprocMetastoreService
- Defined in:
- lib/google/apis/metastore_v1alpha/service.rb
Overview
Dataproc Metastore API
The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services.
Constant Summary collapse
- DEFAULT_ENDPOINT_TEMPLATE =
"https://metastore.$UNIVERSE_DOMAIN$/"
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#alter_project_location_service_location(service, alter_metadata_resource_location_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Alter metadata resource location.
-
#alter_service_table_properties(service, alter_table_properties_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Alter metadata table properties.
-
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Empty
Starts asynchronous cancellation on a long-running operation.
-
#cancel_service_migration(service, cancel_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Cancels the ongoing Managed Migration process.
-
#complete_service_migration(service, complete_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Completes the managed migration process.
-
#create_project_location_federation(parent, federation_object = nil, federation_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a metastore federation in a project and location.
-
#create_project_location_service(parent, service_object = nil, request_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a metastore service in a project and location.
-
#create_project_location_service_backup(parent, backup_object = nil, backup_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a new backup in a given project and location.
-
#create_project_location_service_metadata_import(parent, metadata_import_object = nil, metadata_import_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a new MetadataImport in a given project and location.
-
#delete_project_location_federation(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single federation.
-
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Empty
Deletes a long-running operation.
-
#delete_project_location_service(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single service.
-
#delete_project_location_service_backup(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single backup.
-
#delete_project_location_service_migration_execution(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single migration execution.
-
#export_service_metadata(service, export_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Exports metadata from a service.
-
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Location
Gets information about a location.
-
#get_project_location_federation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Federation
Gets the details of a single federation.
-
#get_project_location_federation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource.
-
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Gets the latest state of a long-running operation.
-
#get_project_location_service(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Service
Gets the details of a single service.
-
#get_project_location_service_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Backup
Gets details of a single backup.
-
#get_project_location_service_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource.
-
#get_project_location_service_database_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource.
-
#get_project_location_service_database_table_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource.
-
#get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource.
-
#get_project_location_service_metadata_import(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::MetadataImport
Gets details of a single import.
-
#get_project_location_service_migration_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::MigrationExecution
Gets details of a single migration execution.
-
#initialize ⇒ DataprocMetastoreService
constructor
A new instance of DataprocMetastoreService.
-
#list_project_location_federations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListFederationsResponse
Lists federations in a project and location.
-
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListOperationsResponse
Lists operations that match the specified filter in the request.
-
#list_project_location_service_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListBackupsResponse
Lists backups in a service.
-
#list_project_location_service_metadata_imports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListMetadataImportsResponse
Lists imports in a service.
-
#list_project_location_service_migration_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListMigrationExecutionsResponse
Lists migration executions on a service.
-
#list_project_location_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListServicesResponse
Lists services in a project and location.
-
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListLocationsResponse
Lists information about the supported locations for this service.This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: Global locations: If name is empty, the method lists the public locations available to all projects.
-
#move_service_table_to_database(service, move_table_to_database_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Move a table to another database.
-
#patch_project_location_federation(name, federation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Updates the fields of a federation.
-
#patch_project_location_service(name, service_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Updates the parameters of a single service.
-
#patch_project_location_service_metadata_import(name, metadata_import_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Updates a single import.
-
#query_service_metadata(service, query_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Query Dataproc Metastore metadata.
-
#remove_service_iam_policy(resource, remove_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::RemoveIamPolicyResponse
Removes the attached IAM policies for a resource.
-
#restore_service(service, restore_service_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Restores a service from a backup.
-
#set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource.
-
#set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource.
-
#set_federation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource.
-
#set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource.
-
#set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource.
-
#start_service_migration(service, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Starts the Managed Migration process.
-
#test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_federation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
-
#test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource.
Constructor Details
#initialize ⇒ DataprocMetastoreService
Returns a new instance of DataprocMetastoreService.
48 49 50 51 52 53 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 48 def initialize super(DEFAULT_ENDPOINT_TEMPLATE, '', client_name: 'google-apis-metastore_v1alpha', client_version: Google::Apis::MetastoreV1alpha::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns 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.
41 42 43 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 41 def key @key end |
#quota_user ⇒ String
Returns 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.
46 47 48 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 46 def quota_user @quota_user end |
Instance Method Details
#alter_project_location_service_location(service, alter_metadata_resource_location_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.
668 669 670 671 672 673 674 675 676 677 678 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 668 def alter_project_location_service_location(service, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:alterLocation', ) command.request_representation = Google::Apis::MetastoreV1alpha::AlterMetadataResourceLocationRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#alter_service_table_properties(service, alter_table_properties_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Alter metadata table properties.
703 704 705 706 707 708 709 710 711 712 713 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 703 def alter_service_table_properties(service, alter_table_properties_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:alterTableProperties', ) command.request_representation = Google::Apis::MetastoreV1alpha::AlterTablePropertiesRequest::Representation command.request_object = alter_table_properties_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Empty
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
517 518 519 520 521 522 523 524 525 526 527 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 517 def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+name}:cancel', ) command.request_representation = Google::Apis::MetastoreV1alpha::CancelOperationRequest::Representation command.request_object = cancel_operation_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Empty::Representation command.response_class = Google::Apis::MetastoreV1alpha::Empty 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 |
#cancel_service_migration(service, cancel_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Cancels the ongoing Managed Migration process.
738 739 740 741 742 743 744 745 746 747 748 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 738 def cancel_service_migration(service, cancel_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:cancelMigration', ) command.request_representation = Google::Apis::MetastoreV1alpha::CancelMigrationRequest::Representation command.request_object = cancel_migration_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#complete_service_migration(service, complete_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Completes the managed migration process. The Dataproc Metastore service will switch to using its own backend database after successful migration.
774 775 776 777 778 779 780 781 782 783 784 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 774 def complete_service_migration(service, complete_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:completeMigration', ) command.request_representation = Google::Apis::MetastoreV1alpha::CompleteMigrationRequest::Representation command.request_object = complete_migration_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_federation(parent, federation_object = nil, federation_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a metastore federation in a project and location.
178 179 180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 178 def create_project_location_federation(parent, federation_object = nil, federation_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/federations', ) command.request_representation = Google::Apis::MetastoreV1alpha::Federation::Representation command.request_object = federation_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['federationId'] = federation_id unless federation_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_service(parent, service_object = nil, request_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a metastore service in a project and location.
823 824 825 826 827 828 829 830 831 832 833 834 835 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 823 def create_project_location_service(parent, service_object = nil, request_id: nil, service_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/services', ) command.request_representation = Google::Apis::MetastoreV1alpha::Service::Representation command.request_object = service_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['serviceId'] = service_id unless service_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_service_backup(parent, backup_object = nil, backup_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a new backup in a given project and location.
1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1383 def create_project_location_service_backup(parent, backup_object = nil, backup_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/backups', ) command.request_representation = Google::Apis::MetastoreV1alpha::Backup::Representation command.request_object = backup_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['backupId'] = backup_id unless backup_id.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_project_location_service_metadata_import(parent, metadata_import_object = nil, metadata_import_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Creates a new MetadataImport in a given project and location.
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1922 def (parent, = nil, metadata_import_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+parent}/metadataImports', ) command.request_representation = Google::Apis::MetastoreV1alpha::MetadataImport::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['parent'] = parent unless parent.nil? command.query['metadataImportId'] = unless .nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_federation(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single federation.
223 224 225 226 227 228 229 230 231 232 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 223 def delete_project_location_federation(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Empty
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code. UNIMPLEMENTED.
552 553 554 555 556 557 558 559 560 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 552 def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Empty::Representation command.response_class = Google::Apis::MetastoreV1alpha::Empty 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 |
#delete_project_location_service(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single service.
868 869 870 871 872 873 874 875 876 877 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 868 def delete_project_location_service(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_service_backup(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single backup.
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1428 def delete_project_location_service_backup(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_project_location_service_migration_execution(name, request_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Deletes a single migration execution.
2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2103 def delete_project_location_service_migration_execution(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#export_service_metadata(service, export_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Exports metadata from a service.
902 903 904 905 906 907 908 909 910 911 912 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 902 def (service, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:exportMetadata', ) command.request_representation = Google::Apis::MetastoreV1alpha::ExportMetadataRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Location
Gets information about a location.
75 76 77 78 79 80 81 82 83 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 75 def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Location::Representation command.response_class = Google::Apis::MetastoreV1alpha::Location 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 |
#get_project_location_federation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Federation
Gets the details of a single federation.
256 257 258 259 260 261 262 263 264 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 256 def get_project_location_federation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Federation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Federation 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 |
#get_project_location_federation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
300 301 302 303 304 305 306 307 308 309 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 300 def get_project_location_federation_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
583 584 585 586 587 588 589 590 591 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 583 def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation 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 |
#get_project_location_service(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Service
Gets the details of a single service.
936 937 938 939 940 941 942 943 944 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 936 def get_project_location_service(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Service::Representation command.response_class = Google::Apis::MetastoreV1alpha::Service 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 |
#get_project_location_service_backup(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Backup
Gets details of a single backup.
1461 1462 1463 1464 1465 1466 1467 1468 1469 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1461 def get_project_location_service_backup(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::Backup::Representation command.response_class = Google::Apis::MetastoreV1alpha::Backup 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 |
#get_project_location_service_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1505 def get_project_location_service_backup_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_service_database_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1677 def get_project_location_service_database_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_service_database_table_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1798 def get_project_location_service_database_table_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
980 981 982 983 984 985 986 987 988 989 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 980 def get_project_location_service_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', ) command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['options.requestedPolicyVersion'] = unless .nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_project_location_service_metadata_import(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::MetadataImport
Gets details of a single import.
1958 1959 1960 1961 1962 1963 1964 1965 1966 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1958 def (name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::MetadataImport::Representation command.response_class = Google::Apis::MetastoreV1alpha::MetadataImport 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 |
#get_project_location_service_migration_execution(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::MigrationExecution
Gets details of a single migration execution.
2136 2137 2138 2139 2140 2141 2142 2143 2144 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2136 def get_project_location_service_migration_execution(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}', ) command.response_representation = Google::Apis::MetastoreV1alpha::MigrationExecution::Representation command.response_class = Google::Apis::MetastoreV1alpha::MigrationExecution 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 |
#list_project_location_federations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListFederationsResponse
Lists federations in a project and location.
349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 349 def list_project_location_federations(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/federations', ) command.response_representation = Google::Apis::MetastoreV1alpha::ListFederationsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::ListFederationsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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 |
#list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListOperationsResponse
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.
628 629 630 631 632 633 634 635 636 637 638 639 640 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 628 def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}/operations', ) command.response_representation = Google::Apis::MetastoreV1alpha::ListOperationsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::ListOperationsResponse command.params['name'] = name unless name.nil? command.query['filter'] = filter unless filter.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_project_location_service_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListBackupsResponse
Lists backups in a service.
1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1553 def list_project_location_service_backups(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/backups', ) command.response_representation = Google::Apis::MetastoreV1alpha::ListBackupsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::ListBackupsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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 |
#list_project_location_service_metadata_imports(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListMetadataImportsResponse
Lists imports in a service.
2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2006 def (parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/metadataImports', ) command.response_representation = Google::Apis::MetastoreV1alpha::ListMetadataImportsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::ListMetadataImportsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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 |
#list_project_location_service_migration_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListMigrationExecutionsResponse
Lists migration executions on a service.
2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2185 def list_project_location_service_migration_executions(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/migrationExecutions', ) command.response_representation = Google::Apis::MetastoreV1alpha::ListMigrationExecutionsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::ListMigrationExecutionsResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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 |
#list_project_location_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListServicesResponse
Lists services in a project and location.
1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1028 def list_project_location_services(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+parent}/services', ) command.response_representation = Google::Apis::MetastoreV1alpha::ListServicesResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::ListServicesResponse command.params['parent'] = parent unless parent.nil? command.query['filter'] = filter unless filter.nil? command.query['orderBy'] = order_by unless order_by.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 |
#list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::ListLocationsResponse
Lists information about the supported locations for this service.This method
lists locations based on the resource scope provided in the
ListLocationsRequest.name field: Global locations: If name is empty, the
method lists the public locations available to all projects. Project-specific
locations: If name follows the format projects/project, the method lists
locations visible to that specific project. This includes public, private, or
other project-specific locations enabled for the project.For gRPC and client
library implementations, the resource name is passed as the name field. For
direct service calls, the resource name is incorporated into the request path
based on the specific service implementation and version.
127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 127 def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1alpha/{+name}/locations', ) command.response_representation = Google::Apis::MetastoreV1alpha::ListLocationsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::ListLocationsResponse command.params['name'] = name unless name.nil? command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil? command.query['filter'] = filter unless filter.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 |
#move_service_table_to_database(service, move_table_to_database_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Move a table to another database.
1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1065 def move_service_table_to_database(service, move_table_to_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:moveTableToDatabase', ) command.request_representation = Google::Apis::MetastoreV1alpha::MoveTableToDatabaseRequest::Representation command.request_object = move_table_to_database_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_federation(name, federation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Updates the fields of a federation.
399 400 401 402 403 404 405 406 407 408 409 410 411 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 399 def patch_project_location_federation(name, federation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::MetastoreV1alpha::Federation::Representation command.request_object = federation_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_service(name, service_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Updates the parameters of a single service.
1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1114 def patch_project_location_service(name, service_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::MetastoreV1alpha::Service::Representation command.request_object = service_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project_location_service_metadata_import(name, metadata_import_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Updates a single import. Only the description field of MetadataImport is supported to be updated.
2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2058 def (name, = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1alpha/{+name}', ) command.request_representation = Google::Apis::MetastoreV1alpha::MetadataImport::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['name'] = name unless name.nil? command.query['requestId'] = request_id unless request_id.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#query_service_metadata(service, query_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Query Dataproc Metastore metadata.
1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1151 def (service, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:queryMetadata', ) command.request_representation = Google::Apis::MetastoreV1alpha::QueryMetadataRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#remove_service_iam_policy(resource, remove_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::RemoveIamPolicyResponse
Removes the attached IAM policies for a resource
1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1188 def remove_service_iam_policy(resource, remove_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:removeIamPolicy', ) command.request_representation = Google::Apis::MetastoreV1alpha::RemoveIamPolicyRequest::Representation command.request_object = remove_iam_policy_request_object command.response_representation = Google::Apis::MetastoreV1alpha::RemoveIamPolicyResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::RemoveIamPolicyResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#restore_service(service, restore_service_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Restores a service from a backup.
1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1223 def restore_service(service, restore_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:restore', ) command.request_representation = Google::Apis::MetastoreV1alpha::RestoreServiceRequest::Representation command.request_object = restore_service_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1592 def set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::MetastoreV1alpha::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1713 def set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::MetastoreV1alpha::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_federation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
438 439 440 441 442 443 444 445 446 447 448 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 438 def set_federation_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::MetastoreV1alpha::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1260 def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::MetastoreV1alpha::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Policy
Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.
1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1834 def set_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::MetastoreV1alpha::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Policy::Representation command.response_class = Google::Apis::MetastoreV1alpha::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#start_service_migration(service, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::Operation
Starts the Managed Migration process.
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1295 def start_service_migration(service, start_migration_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+service}:startMigration', ) command.request_representation = Google::Apis::MetastoreV1alpha::StartMigrationRequest::Representation command.request_object = start_migration_request_object command.response_representation = Google::Apis::MetastoreV1alpha::Operation::Representation command.response_class = Google::Apis::MetastoreV1alpha::Operation command.params['service'] = service unless service.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1631 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1752 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_federation_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
477 478 479 480 481 482 483 484 485 486 487 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 477 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1334 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1873 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::MetastoreV1alpha::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |