All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.datamigration.v1.DatabaseMigrationService.Projects.Locations.MigrationJobs.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241211-2.0.0
Show newest version






DatabaseMigrationService.Projects.Locations.MigrationJobs (Database Migration API v1-rev20241006-2.0.0)












com.google.api.services.datamigration.v1

Class DatabaseMigrationService.Projects.Locations.MigrationJobs

  • java.lang.Object
    • com.google.api.services.datamigration.v1.DatabaseMigrationService.Projects.Locations.MigrationJobs
    • Constructor Detail

      • MigrationJobs

        public MigrationJobs()
    • Method Detail

      • create

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.Create create(String parent,
                                                                                       MigrationJob content)
                                                                                throws IOException
        Creates a new migration job in a given project and location. Create a request for the method "migrationJobs.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 migration jobs.
        content - the MigrationJob
        Returns:
        the request
        Throws:
        IOException
      • delete

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.Delete delete(String name)
                                                                                throws IOException
        Deletes a single migration job. Create a request for the method "migrationJobs.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 migration job resource to delete.
        Returns:
        the request
        Throws:
        IOException
      • demoteDestination

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.DemoteDestination demoteDestination(String name,
                                                                                                             DemoteDestinationRequest content)
                                                                                                      throws IOException
        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. Create a request for the method "migrationJobs.demoteDestination". 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 - Name of the migration job resource to demote its destination.
        content - the DemoteDestinationRequest
        Returns:
        the request
        Throws:
        IOException
      • get

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.Get get(String name)
                                                                          throws IOException
        Gets details of a single migration job. Create a request for the method "migrationJobs.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 migration job resource to get.
        Returns:
        the request
        Throws:
        IOException
      • getIamPolicy

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.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 "migrationJobs.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.MigrationJobs.List list(String parent)
                                                                            throws IOException
        Lists migration jobs in a given project and location. Create a request for the method "migrationJobs.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 migrationJobs.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.Patch patch(String name,
                                                                                     MigrationJob content)
                                                                              throws IOException
        Updates the parameters of a single migration job. Create a request for the method "migrationJobs.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 (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.
        content - the MigrationJob
        Returns:
        the request
        Throws:
        IOException
      • setIamPolicy

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.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 "migrationJobs.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.MigrationJobs.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 "migrationJobs.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
      • objects

        public DatabaseMigrationService.Projects.Locations.MigrationJobs.Objects objects()
        An accessor for creating requests from the Objects collection.

        The typical use is:

            DatabaseMigrationService datamigration = new DatabaseMigrationService(...);
            DatabaseMigrationService.Objects.List request = datamigration.objects().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy