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.
-
#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.
659 660 661 662 663 664 665 666 667 668 669 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 659 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.
694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 694 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.
508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 508 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.
729 730 731 732 733 734 735 736 737 738 739 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 729 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.
765 766 767 768 769 770 771 772 773 774 775 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 765 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.
169 170 171 172 173 174 175 176 177 178 179 180 181 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 169 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.
814 815 816 817 818 819 820 821 822 823 824 825 826 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 814 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.
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1374 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.
1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1913 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.
214 215 216 217 218 219 220 221 222 223 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 214 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.
543 544 545 546 547 548 549 550 551 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 543 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.
859 860 861 862 863 864 865 866 867 868 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 859 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.
1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1419 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.
2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2094 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.
893 894 895 896 897 898 899 900 901 902 903 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 893 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.
247 248 249 250 251 252 253 254 255 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 247 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.
291 292 293 294 295 296 297 298 299 300 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 291 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.
574 575 576 577 578 579 580 581 582 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 574 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.
927 928 929 930 931 932 933 934 935 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 927 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.
1452 1453 1454 1455 1456 1457 1458 1459 1460 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1452 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.
1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1496 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.
1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1668 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.
1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1789 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.
971 972 973 974 975 976 977 978 979 980 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 971 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.
1949 1950 1951 1952 1953 1954 1955 1956 1957 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1949 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.
2127 2128 2129 2130 2131 2132 2133 2134 2135 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2127 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.
340 341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 340 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.
619 620 621 622 623 624 625 626 627 628 629 630 631 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 619 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.
1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1544 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.
1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1997 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.
2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2176 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.
1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1019 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.
118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 118 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.
1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1056 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.
390 391 392 393 394 395 396 397 398 399 400 401 402 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 390 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.
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1105 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.
2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 2049 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.
1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1142 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
1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1179 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.
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1214 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.
1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1583 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.
1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1704 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.
429 430 431 432 433 434 435 436 437 438 439 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 429 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.
1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1251 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.
1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1825 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.
1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1286 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.
1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1622 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.
1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1743 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.
468 469 470 471 472 473 474 475 476 477 478 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 468 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.
1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1325 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.
1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 |
# File 'lib/google/apis/metastore_v1alpha/service.rb', line 1864 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 |