pub struct ProjectMethods<'a, C>where
C: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the DatabaseMigrationService
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_datamigration1 as datamigration1;
use datamigration1::{DatabaseMigrationService, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = DatabaseMigrationService::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `locations_connection_profiles_create(...)`, `locations_connection_profiles_delete(...)`, `locations_connection_profiles_get(...)`, `locations_connection_profiles_get_iam_policy(...)`, `locations_connection_profiles_list(...)`, `locations_connection_profiles_patch(...)`, `locations_connection_profiles_set_iam_policy(...)`, `locations_connection_profiles_test_iam_permissions(...)`, `locations_conversion_workspaces_apply(...)`, `locations_conversion_workspaces_commit(...)`, `locations_conversion_workspaces_convert(...)`, `locations_conversion_workspaces_create(...)`, `locations_conversion_workspaces_delete(...)`, `locations_conversion_workspaces_describe_conversion_workspace_revisions(...)`, `locations_conversion_workspaces_describe_database_entities(...)`, `locations_conversion_workspaces_get(...)`, `locations_conversion_workspaces_get_iam_policy(...)`, `locations_conversion_workspaces_list(...)`, `locations_conversion_workspaces_mapping_rules_create(...)`, `locations_conversion_workspaces_mapping_rules_delete(...)`, `locations_conversion_workspaces_mapping_rules_get(...)`, `locations_conversion_workspaces_mapping_rules_import(...)`, `locations_conversion_workspaces_mapping_rules_list(...)`, `locations_conversion_workspaces_patch(...)`, `locations_conversion_workspaces_rollback(...)`, `locations_conversion_workspaces_search_background_jobs(...)`, `locations_conversion_workspaces_seed(...)`, `locations_conversion_workspaces_set_iam_policy(...)`, `locations_conversion_workspaces_test_iam_permissions(...)`, `locations_fetch_static_ips(...)`, `locations_get(...)`, `locations_list(...)`, `locations_migration_jobs_create(...)`, `locations_migration_jobs_delete(...)`, `locations_migration_jobs_demote_destination(...)`, `locations_migration_jobs_generate_ssh_script(...)`, `locations_migration_jobs_generate_tcp_proxy_script(...)`, `locations_migration_jobs_get(...)`, `locations_migration_jobs_get_iam_policy(...)`, `locations_migration_jobs_list(...)`, `locations_migration_jobs_patch(...)`, `locations_migration_jobs_promote(...)`, `locations_migration_jobs_restart(...)`, `locations_migration_jobs_resume(...)`, `locations_migration_jobs_set_iam_policy(...)`, `locations_migration_jobs_start(...)`, `locations_migration_jobs_stop(...)`, `locations_migration_jobs_test_iam_permissions(...)`, `locations_migration_jobs_verify(...)`, `locations_operations_cancel(...)`, `locations_operations_delete(...)`, `locations_operations_get(...)`, `locations_operations_list(...)`, `locations_private_connections_create(...)`, `locations_private_connections_delete(...)`, `locations_private_connections_get(...)`, `locations_private_connections_get_iam_policy(...)`, `locations_private_connections_list(...)`, `locations_private_connections_set_iam_policy(...)` and `locations_private_connections_test_iam_permissions(...)`
// to build up your call.
let rb = hub.projects();
Implementations§
Source§impl<'a, C> ProjectMethods<'a, C>
impl<'a, C> ProjectMethods<'a, C>
Sourcepub fn locations_connection_profiles_create(
&self,
request: ConnectionProfile,
parent: &str,
) -> ProjectLocationConnectionProfileCreateCall<'a, C>
pub fn locations_connection_profiles_create( &self, request: ConnectionProfile, parent: &str, ) -> ProjectLocationConnectionProfileCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new connection profile in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent which owns this collection of connection profiles.
Sourcepub fn locations_connection_profiles_delete(
&self,
name: &str,
) -> ProjectLocationConnectionProfileDeleteCall<'a, C>
pub fn locations_connection_profiles_delete( &self, name: &str, ) -> ProjectLocationConnectionProfileDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.
§Arguments
name
- Required. Name of the connection profile resource to delete.
Sourcepub fn locations_connection_profiles_get(
&self,
name: &str,
) -> ProjectLocationConnectionProfileGetCall<'a, C>
pub fn locations_connection_profiles_get( &self, name: &str, ) -> ProjectLocationConnectionProfileGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single connection profile.
§Arguments
name
- Required. Name of the connection profile resource to get.
Sourcepub fn locations_connection_profiles_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationConnectionProfileGetIamPolicyCall<'a, C>
pub fn locations_connection_profiles_get_iam_policy( &self, resource: &str, ) -> ProjectLocationConnectionProfileGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_connection_profiles_list(
&self,
parent: &str,
) -> ProjectLocationConnectionProfileListCall<'a, C>
pub fn locations_connection_profiles_list( &self, parent: &str, ) -> ProjectLocationConnectionProfileListCall<'a, C>
Create a builder to help you perform the following task:
Retrieves a list of all connection profiles in a given project and location.
§Arguments
parent
- Required. The parent which owns this collection of connection profiles.
Sourcepub fn locations_connection_profiles_patch(
&self,
request: ConnectionProfile,
name: &str,
) -> ProjectLocationConnectionProfilePatchCall<'a, C>
pub fn locations_connection_profiles_patch( &self, request: ConnectionProfile, name: &str, ) -> ProjectLocationConnectionProfilePatchCall<'a, C>
Create a builder to help you perform the following task:
Update the configuration of a single connection profile.
§Arguments
request
- No description provided.name
- The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
Sourcepub fn locations_connection_profiles_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationConnectionProfileSetIamPolicyCall<'a, C>
pub fn locations_connection_profiles_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationConnectionProfileSetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_connection_profiles_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationConnectionProfileTestIamPermissionCall<'a, C>
pub fn locations_connection_profiles_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationConnectionProfileTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_conversion_workspaces_mapping_rules_create(
&self,
request: MappingRule,
parent: &str,
) -> ProjectLocationConversionWorkspaceMappingRuleCreateCall<'a, C>
pub fn locations_conversion_workspaces_mapping_rules_create( &self, request: MappingRule, parent: &str, ) -> ProjectLocationConversionWorkspaceMappingRuleCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new mapping rule for a given conversion workspace.
§Arguments
request
- No description provided.parent
- Required. The parent which owns this collection of mapping rules.
Sourcepub fn locations_conversion_workspaces_mapping_rules_delete(
&self,
name: &str,
) -> ProjectLocationConversionWorkspaceMappingRuleDeleteCall<'a, C>
pub fn locations_conversion_workspaces_mapping_rules_delete( &self, name: &str, ) -> ProjectLocationConversionWorkspaceMappingRuleDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single mapping rule.
§Arguments
name
- Required. Name of the mapping rule resource to delete.
Sourcepub fn locations_conversion_workspaces_mapping_rules_get(
&self,
name: &str,
) -> ProjectLocationConversionWorkspaceMappingRuleGetCall<'a, C>
pub fn locations_conversion_workspaces_mapping_rules_get( &self, name: &str, ) -> ProjectLocationConversionWorkspaceMappingRuleGetCall<'a, C>
Create a builder to help you perform the following task:
Gets the details of a mapping rule.
§Arguments
name
- Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123 In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8
Sourcepub fn locations_conversion_workspaces_mapping_rules_import(
&self,
request: ImportMappingRulesRequest,
parent: &str,
) -> ProjectLocationConversionWorkspaceMappingRuleImportCall<'a, C>
pub fn locations_conversion_workspaces_mapping_rules_import( &self, request: ImportMappingRulesRequest, parent: &str, ) -> ProjectLocationConversionWorkspaceMappingRuleImportCall<'a, C>
Create a builder to help you perform the following task:
Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.
§Arguments
request
- No description provided.parent
- Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_mapping_rules_list(
&self,
parent: &str,
) -> ProjectLocationConversionWorkspaceMappingRuleListCall<'a, C>
pub fn locations_conversion_workspaces_mapping_rules_list( &self, parent: &str, ) -> ProjectLocationConversionWorkspaceMappingRuleListCall<'a, C>
Create a builder to help you perform the following task:
Lists the mapping rules for a specific conversion workspace.
§Arguments
parent
- Required. Name of the conversion workspace resource whose mapping rules are listed in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_apply(
&self,
request: ApplyConversionWorkspaceRequest,
name: &str,
) -> ProjectLocationConversionWorkspaceApplyCall<'a, C>
pub fn locations_conversion_workspaces_apply( &self, request: ApplyConversionWorkspaceRequest, name: &str, ) -> ProjectLocationConversionWorkspaceApplyCall<'a, C>
Create a builder to help you perform the following task:
Applies draft tree onto a specific destination database.
§Arguments
request
- No description provided.name
- Required. The name of the conversion workspace resource for which to apply the draft tree. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_commit(
&self,
request: CommitConversionWorkspaceRequest,
name: &str,
) -> ProjectLocationConversionWorkspaceCommitCall<'a, C>
pub fn locations_conversion_workspaces_commit( &self, request: CommitConversionWorkspaceRequest, name: &str, ) -> ProjectLocationConversionWorkspaceCommitCall<'a, C>
Create a builder to help you perform the following task:
Marks all the data in the conversion workspace as committed.
§Arguments
request
- No description provided.name
- Required. Name of the conversion workspace resource to commit.
Sourcepub fn locations_conversion_workspaces_convert(
&self,
request: ConvertConversionWorkspaceRequest,
name: &str,
) -> ProjectLocationConversionWorkspaceConvertCall<'a, C>
pub fn locations_conversion_workspaces_convert( &self, request: ConvertConversionWorkspaceRequest, name: &str, ) -> ProjectLocationConversionWorkspaceConvertCall<'a, C>
Create a builder to help you perform the following task:
Creates a draft tree schema for the destination database.
§Arguments
request
- No description provided.name
- Name of the conversion workspace resource to convert in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_create(
&self,
request: ConversionWorkspace,
parent: &str,
) -> ProjectLocationConversionWorkspaceCreateCall<'a, C>
pub fn locations_conversion_workspaces_create( &self, request: ConversionWorkspace, parent: &str, ) -> ProjectLocationConversionWorkspaceCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new conversion workspace in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent which owns this collection of conversion workspaces.
Sourcepub fn locations_conversion_workspaces_delete(
&self,
name: &str,
) -> ProjectLocationConversionWorkspaceDeleteCall<'a, C>
pub fn locations_conversion_workspaces_delete( &self, name: &str, ) -> ProjectLocationConversionWorkspaceDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single conversion workspace.
§Arguments
name
- Required. Name of the conversion workspace resource to delete.
Sourcepub fn locations_conversion_workspaces_describe_conversion_workspace_revisions(
&self,
conversion_workspace: &str,
) -> ProjectLocationConversionWorkspaceDescribeConversionWorkspaceRevisionCall<'a, C>
pub fn locations_conversion_workspaces_describe_conversion_workspace_revisions( &self, conversion_workspace: &str, ) -> ProjectLocationConversionWorkspaceDescribeConversionWorkspaceRevisionCall<'a, C>
Create a builder to help you perform the following task:
Retrieves a list of committed revisions of a specific conversion workspace.
§Arguments
conversionWorkspace
- Required. Name of the conversion workspace resource whose revisions are listed. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_describe_database_entities(
&self,
conversion_workspace: &str,
) -> ProjectLocationConversionWorkspaceDescribeDatabaseEntityCall<'a, C>
pub fn locations_conversion_workspaces_describe_database_entities( &self, conversion_workspace: &str, ) -> ProjectLocationConversionWorkspaceDescribeDatabaseEntityCall<'a, C>
Create a builder to help you perform the following task:
Describes the database entities tree for a specific conversion workspace and a specific tree type. Database entities are not resources like conversion workspaces or mapping rules, and they can’t be created, updated or deleted. Instead, they are simple data objects describing the structure of the client database.
§Arguments
conversionWorkspace
- Required. Name of the conversion workspace resource whose database entities are described. Must be in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_get(
&self,
name: &str,
) -> ProjectLocationConversionWorkspaceGetCall<'a, C>
pub fn locations_conversion_workspaces_get( &self, name: &str, ) -> ProjectLocationConversionWorkspaceGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single conversion workspace.
§Arguments
name
- Required. Name of the conversion workspace resource to get.
Sourcepub fn locations_conversion_workspaces_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationConversionWorkspaceGetIamPolicyCall<'a, C>
pub fn locations_conversion_workspaces_get_iam_policy( &self, resource: &str, ) -> ProjectLocationConversionWorkspaceGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_conversion_workspaces_list(
&self,
parent: &str,
) -> ProjectLocationConversionWorkspaceListCall<'a, C>
pub fn locations_conversion_workspaces_list( &self, parent: &str, ) -> ProjectLocationConversionWorkspaceListCall<'a, C>
Create a builder to help you perform the following task:
Lists conversion workspaces in a given project and location.
§Arguments
parent
- Required. The parent which owns this collection of conversion workspaces.
Sourcepub fn locations_conversion_workspaces_patch(
&self,
request: ConversionWorkspace,
name: &str,
) -> ProjectLocationConversionWorkspacePatchCall<'a, C>
pub fn locations_conversion_workspaces_patch( &self, request: ConversionWorkspace, name: &str, ) -> ProjectLocationConversionWorkspacePatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single conversion workspace.
§Arguments
request
- No description provided.name
- Full name of the workspace resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_rollback(
&self,
request: RollbackConversionWorkspaceRequest,
name: &str,
) -> ProjectLocationConversionWorkspaceRollbackCall<'a, C>
pub fn locations_conversion_workspaces_rollback( &self, request: RollbackConversionWorkspaceRequest, name: &str, ) -> ProjectLocationConversionWorkspaceRollbackCall<'a, C>
Create a builder to help you perform the following task:
Rolls back a conversion workspace to the last committed snapshot.
§Arguments
request
- No description provided.name
- Required. Name of the conversion workspace resource to roll back to.
Sourcepub fn locations_conversion_workspaces_search_background_jobs(
&self,
conversion_workspace: &str,
) -> ProjectLocationConversionWorkspaceSearchBackgroundJobCall<'a, C>
pub fn locations_conversion_workspaces_search_background_jobs( &self, conversion_workspace: &str, ) -> ProjectLocationConversionWorkspaceSearchBackgroundJobCall<'a, C>
Create a builder to help you perform the following task:
Searches/lists the background jobs for a specific conversion workspace. The background jobs are not resources like conversion workspaces or mapping rules, and they can’t be created, updated or deleted. Instead, they are a way to expose the data plane jobs log.
§Arguments
conversionWorkspace
- Required. Name of the conversion workspace resource whose jobs are listed, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_seed(
&self,
request: SeedConversionWorkspaceRequest,
name: &str,
) -> ProjectLocationConversionWorkspaceSeedCall<'a, C>
pub fn locations_conversion_workspaces_seed( &self, request: SeedConversionWorkspaceRequest, name: &str, ) -> ProjectLocationConversionWorkspaceSeedCall<'a, C>
Create a builder to help you perform the following task:
Imports a snapshot of the source database into the conversion workspace.
§Arguments
request
- No description provided.name
- Name of the conversion workspace resource to seed with new database structure, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.
Sourcepub fn locations_conversion_workspaces_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationConversionWorkspaceSetIamPolicyCall<'a, C>
pub fn locations_conversion_workspaces_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationConversionWorkspaceSetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_conversion_workspaces_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationConversionWorkspaceTestIamPermissionCall<'a, C>
pub fn locations_conversion_workspaces_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationConversionWorkspaceTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_migration_jobs_create(
&self,
request: MigrationJob,
parent: &str,
) -> ProjectLocationMigrationJobCreateCall<'a, C>
pub fn locations_migration_jobs_create( &self, request: MigrationJob, parent: &str, ) -> ProjectLocationMigrationJobCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new migration job in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent which owns this collection of migration jobs.
Sourcepub fn locations_migration_jobs_delete(
&self,
name: &str,
) -> ProjectLocationMigrationJobDeleteCall<'a, C>
pub fn locations_migration_jobs_delete( &self, name: &str, ) -> ProjectLocationMigrationJobDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single migration job.
§Arguments
name
- Required. Name of the migration job resource to delete.
Sourcepub fn locations_migration_jobs_demote_destination(
&self,
request: DemoteDestinationRequest,
name: &str,
) -> ProjectLocationMigrationJobDemoteDestinationCall<'a, C>
pub fn locations_migration_jobs_demote_destination( &self, request: DemoteDestinationRequest, name: &str, ) -> ProjectLocationMigrationJobDemoteDestinationCall<'a, C>
Create a builder to help you perform the following task:
Demotes the destination database to become a read replica of the source. This is applicable for the following migrations: 1. MySQL to Cloud SQL for MySQL 2. PostgreSQL to Cloud SQL for PostgreSQL 3. PostgreSQL to AlloyDB for PostgreSQL.
§Arguments
request
- No description provided.name
- Name of the migration job resource to demote its destination.
Sourcepub fn locations_migration_jobs_generate_ssh_script(
&self,
request: GenerateSshScriptRequest,
migration_job: &str,
) -> ProjectLocationMigrationJobGenerateSshScriptCall<'a, C>
pub fn locations_migration_jobs_generate_ssh_script( &self, request: GenerateSshScriptRequest, migration_job: &str, ) -> ProjectLocationMigrationJobGenerateSshScriptCall<'a, C>
Create a builder to help you perform the following task:
Generate a SSH configuration script to configure the reverse SSH connectivity.
§Arguments
request
- No description provided.migrationJob
- Name of the migration job resource to generate the SSH script.
Sourcepub fn locations_migration_jobs_generate_tcp_proxy_script(
&self,
request: GenerateTcpProxyScriptRequest,
migration_job: &str,
) -> ProjectLocationMigrationJobGenerateTcpProxyScriptCall<'a, C>
pub fn locations_migration_jobs_generate_tcp_proxy_script( &self, request: GenerateTcpProxyScriptRequest, migration_job: &str, ) -> ProjectLocationMigrationJobGenerateTcpProxyScriptCall<'a, C>
Create a builder to help you perform the following task:
Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.
§Arguments
request
- No description provided.migrationJob
- Name of the migration job resource to generate the TCP Proxy script.
Sourcepub fn locations_migration_jobs_get(
&self,
name: &str,
) -> ProjectLocationMigrationJobGetCall<'a, C>
pub fn locations_migration_jobs_get( &self, name: &str, ) -> ProjectLocationMigrationJobGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single migration job.
§Arguments
name
- Required. Name of the migration job resource to get.
Sourcepub fn locations_migration_jobs_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationMigrationJobGetIamPolicyCall<'a, C>
pub fn locations_migration_jobs_get_iam_policy( &self, resource: &str, ) -> ProjectLocationMigrationJobGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_migration_jobs_list(
&self,
parent: &str,
) -> ProjectLocationMigrationJobListCall<'a, C>
pub fn locations_migration_jobs_list( &self, parent: &str, ) -> ProjectLocationMigrationJobListCall<'a, C>
Create a builder to help you perform the following task:
Lists migration jobs in a given project and location.
§Arguments
parent
- Required. The parent which owns this collection of migrationJobs.
Sourcepub fn locations_migration_jobs_patch(
&self,
request: MigrationJob,
name: &str,
) -> ProjectLocationMigrationJobPatchCall<'a, C>
pub fn locations_migration_jobs_patch( &self, request: MigrationJob, name: &str, ) -> ProjectLocationMigrationJobPatchCall<'a, C>
Create a builder to help you perform the following task:
Updates the parameters of a single migration job.
§Arguments
request
- No description provided.name
- The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
Sourcepub fn locations_migration_jobs_promote(
&self,
request: PromoteMigrationJobRequest,
name: &str,
) -> ProjectLocationMigrationJobPromoteCall<'a, C>
pub fn locations_migration_jobs_promote( &self, request: PromoteMigrationJobRequest, name: &str, ) -> ProjectLocationMigrationJobPromoteCall<'a, C>
Create a builder to help you perform the following task:
Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.
§Arguments
request
- No description provided.name
- Name of the migration job resource to promote.
Sourcepub fn locations_migration_jobs_restart(
&self,
request: RestartMigrationJobRequest,
name: &str,
) -> ProjectLocationMigrationJobRestartCall<'a, C>
pub fn locations_migration_jobs_restart( &self, request: RestartMigrationJobRequest, name: &str, ) -> ProjectLocationMigrationJobRestartCall<'a, C>
Create a builder to help you perform the following task:
Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.
§Arguments
request
- No description provided.name
- Name of the migration job resource to restart.
Sourcepub fn locations_migration_jobs_resume(
&self,
request: ResumeMigrationJobRequest,
name: &str,
) -> ProjectLocationMigrationJobResumeCall<'a, C>
pub fn locations_migration_jobs_resume( &self, request: ResumeMigrationJobRequest, name: &str, ) -> ProjectLocationMigrationJobResumeCall<'a, C>
Create a builder to help you perform the following task:
Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).
§Arguments
request
- No description provided.name
- Name of the migration job resource to resume.
Sourcepub fn locations_migration_jobs_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationMigrationJobSetIamPolicyCall<'a, C>
pub fn locations_migration_jobs_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationMigrationJobSetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_migration_jobs_start(
&self,
request: StartMigrationJobRequest,
name: &str,
) -> ProjectLocationMigrationJobStartCall<'a, C>
pub fn locations_migration_jobs_start( &self, request: StartMigrationJobRequest, name: &str, ) -> ProjectLocationMigrationJobStartCall<'a, C>
Create a builder to help you perform the following task:
Start an already created migration job.
§Arguments
request
- No description provided.name
- Name of the migration job resource to start.
Sourcepub fn locations_migration_jobs_stop(
&self,
request: StopMigrationJobRequest,
name: &str,
) -> ProjectLocationMigrationJobStopCall<'a, C>
pub fn locations_migration_jobs_stop( &self, request: StopMigrationJobRequest, name: &str, ) -> ProjectLocationMigrationJobStopCall<'a, C>
Create a builder to help you perform the following task:
Stops a running migration job.
§Arguments
request
- No description provided.name
- Name of the migration job resource to stop.
Sourcepub fn locations_migration_jobs_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationMigrationJobTestIamPermissionCall<'a, C>
pub fn locations_migration_jobs_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationMigrationJobTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_migration_jobs_verify(
&self,
request: VerifyMigrationJobRequest,
name: &str,
) -> ProjectLocationMigrationJobVerifyCall<'a, C>
pub fn locations_migration_jobs_verify( &self, request: VerifyMigrationJobRequest, name: &str, ) -> ProjectLocationMigrationJobVerifyCall<'a, C>
Create a builder to help you perform the following task:
Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.
§Arguments
request
- No description provided.name
- Name of the migration job resource to verify.
Sourcepub fn locations_operations_cancel(
&self,
request: CancelOperationRequest,
name: &str,
) -> ProjectLocationOperationCancelCall<'a, C>
pub fn locations_operations_cancel( &self, request: CancelOperationRequest, name: &str, ) -> ProjectLocationOperationCancelCall<'a, C>
Create a builder to help you perform the following task:
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
.
§Arguments
request
- No description provided.name
- The name of the operation resource to be cancelled.
Sourcepub fn locations_operations_delete(
&self,
name: &str,
) -> ProjectLocationOperationDeleteCall<'a, C>
pub fn locations_operations_delete( &self, name: &str, ) -> ProjectLocationOperationDeleteCall<'a, C>
Create a builder to help you perform the following task:
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
.
§Arguments
name
- The name of the operation resource to be deleted.
Sourcepub fn locations_operations_get(
&self,
name: &str,
) -> ProjectLocationOperationGetCall<'a, C>
pub fn locations_operations_get( &self, name: &str, ) -> ProjectLocationOperationGetCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
name
- The name of the operation resource.
Sourcepub fn locations_operations_list(
&self,
name: &str,
) -> ProjectLocationOperationListCall<'a, C>
pub fn locations_operations_list( &self, name: &str, ) -> ProjectLocationOperationListCall<'a, C>
Create a builder to help you perform the following task:
Lists operations that match the specified filter in the request. If the server doesn’t support this method, it returns UNIMPLEMENTED
.
§Arguments
name
- The name of the operation’s parent resource.
Sourcepub fn locations_private_connections_create(
&self,
request: PrivateConnection,
parent: &str,
) -> ProjectLocationPrivateConnectionCreateCall<'a, C>
pub fn locations_private_connections_create( &self, request: PrivateConnection, parent: &str, ) -> ProjectLocationPrivateConnectionCreateCall<'a, C>
Create a builder to help you perform the following task:
Creates a new private connection in a given project and location.
§Arguments
request
- No description provided.parent
- Required. The parent that owns the collection of PrivateConnections.
Sourcepub fn locations_private_connections_delete(
&self,
name: &str,
) -> ProjectLocationPrivateConnectionDeleteCall<'a, C>
pub fn locations_private_connections_delete( &self, name: &str, ) -> ProjectLocationPrivateConnectionDeleteCall<'a, C>
Create a builder to help you perform the following task:
Deletes a single Database Migration Service private connection.
§Arguments
name
- Required. The name of the private connection to delete.
Sourcepub fn locations_private_connections_get(
&self,
name: &str,
) -> ProjectLocationPrivateConnectionGetCall<'a, C>
pub fn locations_private_connections_get( &self, name: &str, ) -> ProjectLocationPrivateConnectionGetCall<'a, C>
Create a builder to help you perform the following task:
Gets details of a single private connection.
§Arguments
name
- Required. The name of the private connection to get.
Sourcepub fn locations_private_connections_get_iam_policy(
&self,
resource: &str,
) -> ProjectLocationPrivateConnectionGetIamPolicyCall<'a, C>
pub fn locations_private_connections_get_iam_policy( &self, resource: &str, ) -> ProjectLocationPrivateConnectionGetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
§Arguments
resource
- REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_private_connections_list(
&self,
parent: &str,
) -> ProjectLocationPrivateConnectionListCall<'a, C>
pub fn locations_private_connections_list( &self, parent: &str, ) -> ProjectLocationPrivateConnectionListCall<'a, C>
Create a builder to help you perform the following task:
Retrieves a list of private connections in a given project and location.
§Arguments
parent
- Required. The parent that owns the collection of private connections.
Sourcepub fn locations_private_connections_set_iam_policy(
&self,
request: SetIamPolicyRequest,
resource: &str,
) -> ProjectLocationPrivateConnectionSetIamPolicyCall<'a, C>
pub fn locations_private_connections_set_iam_policy( &self, request: SetIamPolicyRequest, resource: &str, ) -> ProjectLocationPrivateConnectionSetIamPolicyCall<'a, C>
Create a builder to help you perform the following task:
Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Sourcepub fn locations_private_connections_test_iam_permissions(
&self,
request: TestIamPermissionsRequest,
resource: &str,
) -> ProjectLocationPrivateConnectionTestIamPermissionCall<'a, C>
pub fn locations_private_connections_test_iam_permissions( &self, request: TestIamPermissionsRequest, resource: &str, ) -> ProjectLocationPrivateConnectionTestIamPermissionCall<'a, C>
Create a builder to help you perform the following task:
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.
§Arguments
request
- No description provided.resource
- REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Sourcepub fn locations_fetch_static_ips(
&self,
name: &str,
) -> ProjectLocationFetchStaticIpCall<'a, C>
pub fn locations_fetch_static_ips( &self, name: &str, ) -> ProjectLocationFetchStaticIpCall<'a, C>
Create a builder to help you perform the following task:
Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.
§Arguments
name
- Required. The resource name for the location for which static IPs should be returned. Must be in the formatprojects/*/locations/*
.
Sourcepub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
pub fn locations_get(&self, name: &str) -> ProjectLocationGetCall<'a, C>
Create a builder to help you perform the following task:
Gets information about a location.
§Arguments
name
- Resource name for the location.
Sourcepub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
pub fn locations_list(&self, name: &str) -> ProjectLocationListCall<'a, C>
Create a builder to help you perform the following task:
Lists information about the supported locations for this service.
§Arguments
name
- The resource that owns the locations collection, if applicable.
Trait Implementations§
impl<'a, C> MethodsBuilder for ProjectMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for ProjectMethods<'a, C>
impl<'a, C> !RefUnwindSafe for ProjectMethods<'a, C>
impl<'a, C> Send for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for ProjectMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for ProjectMethods<'a, C>
impl<'a, C> !UnwindSafe for ProjectMethods<'a, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more