target.apidocs.com.google.api.services.datamigration.v1.DatabaseMigrationService.Projects.Locations.ConnectionProfiles.html Maven / Gradle / Ivy
DatabaseMigrationService.Projects.Locations.ConnectionProfiles (Database Migration API v1-rev20241006-2.0.0)
com.google.api.services.datamigration.v1
Class DatabaseMigrationService.Projects.Locations.ConnectionProfiles
- java.lang.Object
-
- com.google.api.services.datamigration.v1.DatabaseMigrationService.Projects.Locations.ConnectionProfiles
-
- Enclosing class:
- DatabaseMigrationService.Projects.Locations
public class DatabaseMigrationService.Projects.Locations.ConnectionProfiles
extends Object
The "connectionProfiles" collection of methods.
-
-
Nested Class Summary
-
Constructor Summary
Constructors
Constructor and Description
ConnectionProfiles()
-
Method Summary
-
-
Method Detail
-
create
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.Create create(String parent,
ConnectionProfile content)
throws IOException
Creates a new connection profile in a given project and location.
Create a request for the method "connectionProfiles.create".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent which owns this collection of connection profiles.
content
- the ConnectionProfile
- Returns:
- the request
- Throws:
IOException
-
delete
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.Delete delete(String name)
throws IOException
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.
Create a request for the method "connectionProfiles.delete".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the connection profile resource to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.Get get(String name)
throws IOException
Gets details of a single connection profile.
Create a request for the method "connectionProfiles.get".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- Required. Name of the connection profile resource to get.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.GetIamPolicy getIamPolicy(String resource)
throws IOException
Gets the access control policy for a resource. Returns an empty policy if the resource exists and
does not have a policy set.
Create a request for the method "connectionProfiles.getIamPolicy".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
- Returns:
- the request
- Throws:
IOException
-
list
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.List list(String parent)
throws IOException
Retrieves a list of all connection profiles in a given project and location.
Create a request for the method "connectionProfiles.list".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- Required. The parent which owns this collection of connection profiles.
- Returns:
- the request
- Throws:
IOException
-
patch
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.Patch patch(String name,
ConnectionProfile content)
throws IOException
Update the configuration of a single connection profile.
Create a request for the method "connectionProfiles.patch".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The name of this connection profile resource in the form of
projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
content
- the ConnectionProfile
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.SetIamPolicy setIamPolicy(String resource,
SetIamPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy. Can
return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Create a request for the method "connectionProfiles.setIamPolicy".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy is being specified. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
content
- the SetIamPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public DatabaseMigrationService.Projects.Locations.ConnectionProfiles.TestIamPermissions testIamPermissions(String resource,
TestIamPermissionsRequest content)
throws IOException
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.
Create a request for the method "connectionProfiles.testIamPermissions".
This request holds the parameters needed by the datamigration server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
resource
- REQUIRED: The resource for which the policy detail is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.
content
- the TestIamPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy