Skip to content

Commit

Permalink
feat: [datamigration] Adding GenerateTcpProxyScript API (#9799)
Browse files Browse the repository at this point in the history
* feat: Adding GenerateTcpProxyScript API
feat: Add MappingRule resource and CRUD operations
feat: support for PostgreSQL 15
feat: Add support for CloudSQL editions
feat: Add support for VLDB migrations
feat: Add SSL config to Oracle Connection Profile
feat: Change CreateConnectionProfileRequest resource reference
feat: Change ImportMappingRulesRequest and DescribeDatabaseEntitiesRequest fields to required

PiperOrigin-RevId: 562321113

Source-Link: googleapis/googleapis@75c8944

Source-Link: googleapis/googleapis-gen@9a9a63f
Copy-Tag: eyJwIjoiamF2YS1kbXMvLk93bEJvdC55YW1sIiwiaCI6IjlhOWE2M2ZjNGIyYmY4NWZjNGQ2MTA3YjYxN2FhYmVkNjg5ZDMxN2YifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Sep 6, 2023
1 parent 6e23c3a commit 8c2aacb
Show file tree
Hide file tree
Showing 173 changed files with 64,747 additions and 2,717 deletions.
4 changes: 2 additions & 2 deletions java-dms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.19.0</version>
<version>26.22.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.20.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.22.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;

Expand Down Expand Up @@ -208,6 +209,12 @@ public UnaryCallSettings<GenerateSshScriptRequest, SshScript> generateSshScriptS
return ((DataMigrationServiceStubSettings) getStubSettings()).generateSshScriptSettings();
}

/** Returns the object with the settings used for calls to generateTcpProxyScript. */
public UnaryCallSettings<GenerateTcpProxyScriptRequest, TcpProxyScript>
generateTcpProxyScriptSettings() {
return ((DataMigrationServiceStubSettings) getStubSettings()).generateTcpProxyScriptSettings();
}

/** Returns the object with the settings used for calls to listConnectionProfiles. */
public PagedCallSettings<
ListConnectionProfilesRequest,
Expand Down Expand Up @@ -363,6 +370,28 @@ public UnaryCallSettings<GenerateSshScriptRequest, SshScript> generateSshScriptS
.deleteConversionWorkspaceOperationSettings();
}

/** Returns the object with the settings used for calls to createMappingRule. */
public UnaryCallSettings<CreateMappingRuleRequest, MappingRule> createMappingRuleSettings() {
return ((DataMigrationServiceStubSettings) getStubSettings()).createMappingRuleSettings();
}

/** Returns the object with the settings used for calls to deleteMappingRule. */
public UnaryCallSettings<DeleteMappingRuleRequest, Empty> deleteMappingRuleSettings() {
return ((DataMigrationServiceStubSettings) getStubSettings()).deleteMappingRuleSettings();
}

/** Returns the object with the settings used for calls to listMappingRules. */
public PagedCallSettings<
ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
listMappingRulesSettings() {
return ((DataMigrationServiceStubSettings) getStubSettings()).listMappingRulesSettings();
}

/** Returns the object with the settings used for calls to getMappingRule. */
public UnaryCallSettings<GetMappingRuleRequest, MappingRule> getMappingRuleSettings() {
return ((DataMigrationServiceStubSettings) getStubSettings()).getMappingRuleSettings();
}

/** Returns the object with the settings used for calls to seedConversionWorkspace. */
public UnaryCallSettings<SeedConversionWorkspaceRequest, Operation>
seedConversionWorkspaceSettings() {
Expand Down Expand Up @@ -709,6 +738,12 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().generateSshScriptSettings();
}

/** Returns the builder for the settings used for calls to generateTcpProxyScript. */
public UnaryCallSettings.Builder<GenerateTcpProxyScriptRequest, TcpProxyScript>
generateTcpProxyScriptSettings() {
return getStubSettingsBuilder().generateTcpProxyScriptSettings();
}

/** Returns the builder for the settings used for calls to listConnectionProfiles. */
public PagedCallSettings.Builder<
ListConnectionProfilesRequest,
Expand Down Expand Up @@ -855,6 +890,29 @@ public Builder applyToAllUnaryMethods(
return getStubSettingsBuilder().deleteConversionWorkspaceOperationSettings();
}

/** Returns the builder for the settings used for calls to createMappingRule. */
public UnaryCallSettings.Builder<CreateMappingRuleRequest, MappingRule>
createMappingRuleSettings() {
return getStubSettingsBuilder().createMappingRuleSettings();
}

/** Returns the builder for the settings used for calls to deleteMappingRule. */
public UnaryCallSettings.Builder<DeleteMappingRuleRequest, Empty> deleteMappingRuleSettings() {
return getStubSettingsBuilder().deleteMappingRuleSettings();
}

/** Returns the builder for the settings used for calls to listMappingRules. */
public PagedCallSettings.Builder<
ListMappingRulesRequest, ListMappingRulesResponse, ListMappingRulesPagedResponse>
listMappingRulesSettings() {
return getStubSettingsBuilder().listMappingRulesSettings();
}

/** Returns the builder for the settings used for calls to getMappingRule. */
public UnaryCallSettings.Builder<GetMappingRuleRequest, MappingRule> getMappingRuleSettings() {
return getStubSettingsBuilder().getMappingRuleSettings();
}

/** Returns the builder for the settings used for calls to seedConversionWorkspace. */
public UnaryCallSettings.Builder<SeedConversionWorkspaceRequest, Operation>
seedConversionWorkspaceSettings() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"CreateConversionWorkspace": {
"methods": ["createConversionWorkspaceAsync", "createConversionWorkspaceAsync", "createConversionWorkspaceAsync", "createConversionWorkspaceOperationCallable", "createConversionWorkspaceCallable"]
},
"CreateMappingRule": {
"methods": ["createMappingRule", "createMappingRule", "createMappingRule", "createMappingRuleCallable"]
},
"CreateMigrationJob": {
"methods": ["createMigrationJobAsync", "createMigrationJobAsync", "createMigrationJobAsync", "createMigrationJobOperationCallable", "createMigrationJobCallable"]
},
Expand All @@ -37,6 +40,9 @@
"DeleteConversionWorkspace": {
"methods": ["deleteConversionWorkspaceAsync", "deleteConversionWorkspaceAsync", "deleteConversionWorkspaceAsync", "deleteConversionWorkspaceOperationCallable", "deleteConversionWorkspaceCallable"]
},
"DeleteMappingRule": {
"methods": ["deleteMappingRule", "deleteMappingRule", "deleteMappingRule", "deleteMappingRuleCallable"]
},
"DeleteMigrationJob": {
"methods": ["deleteMigrationJobAsync", "deleteMigrationJobAsync", "deleteMigrationJobAsync", "deleteMigrationJobOperationCallable", "deleteMigrationJobCallable"]
},
Expand All @@ -55,12 +61,18 @@
"GenerateSshScript": {
"methods": ["generateSshScript", "generateSshScriptCallable"]
},
"GenerateTcpProxyScript": {
"methods": ["generateTcpProxyScript", "generateTcpProxyScriptCallable"]
},
"GetConnectionProfile": {
"methods": ["getConnectionProfile", "getConnectionProfile", "getConnectionProfile", "getConnectionProfileCallable"]
},
"GetConversionWorkspace": {
"methods": ["getConversionWorkspace", "getConversionWorkspace", "getConversionWorkspace", "getConversionWorkspaceCallable"]
},
"GetMappingRule": {
"methods": ["getMappingRule", "getMappingRule", "getMappingRule", "getMappingRuleCallable"]
},
"GetMigrationJob": {
"methods": ["getMigrationJob", "getMigrationJob", "getMigrationJob", "getMigrationJobCallable"]
},
Expand All @@ -76,6 +88,9 @@
"ListConversionWorkspaces": {
"methods": ["listConversionWorkspaces", "listConversionWorkspaces", "listConversionWorkspaces", "listConversionWorkspacesPagedCallable", "listConversionWorkspacesCallable"]
},
"ListMappingRules": {
"methods": ["listMappingRules", "listMappingRules", "listMappingRules", "listMappingRulesPagedCallable", "listMappingRulesCallable"]
},
"ListMigrationJobs": {
"methods": ["listMigrationJobs", "listMigrationJobs", "listMigrationJobs", "listMigrationJobsPagedCallable", "listMigrationJobsCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.FetchStaticIpsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConnectionProfilesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListConversionWorkspacesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMappingRulesPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListMigrationJobsPagedResponse;
import static com.google.cloud.clouddms.v1.DataMigrationServiceClient.ListPrivateConnectionsPagedResponse;

Expand All @@ -33,10 +34,12 @@
import com.google.cloud.clouddms.v1.ConvertConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
import com.google.cloud.clouddms.v1.CreateConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.CreateMappingRuleRequest;
import com.google.cloud.clouddms.v1.CreateMigrationJobRequest;
import com.google.cloud.clouddms.v1.CreatePrivateConnectionRequest;
import com.google.cloud.clouddms.v1.DeleteConnectionProfileRequest;
import com.google.cloud.clouddms.v1.DeleteConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.DeleteMappingRuleRequest;
import com.google.cloud.clouddms.v1.DeleteMigrationJobRequest;
import com.google.cloud.clouddms.v1.DeletePrivateConnectionRequest;
import com.google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsRequest;
Expand All @@ -46,19 +49,24 @@
import com.google.cloud.clouddms.v1.FetchStaticIpsRequest;
import com.google.cloud.clouddms.v1.FetchStaticIpsResponse;
import com.google.cloud.clouddms.v1.GenerateSshScriptRequest;
import com.google.cloud.clouddms.v1.GenerateTcpProxyScriptRequest;
import com.google.cloud.clouddms.v1.GetConnectionProfileRequest;
import com.google.cloud.clouddms.v1.GetConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.GetMappingRuleRequest;
import com.google.cloud.clouddms.v1.GetMigrationJobRequest;
import com.google.cloud.clouddms.v1.GetPrivateConnectionRequest;
import com.google.cloud.clouddms.v1.ImportMappingRulesRequest;
import com.google.cloud.clouddms.v1.ListConnectionProfilesRequest;
import com.google.cloud.clouddms.v1.ListConnectionProfilesResponse;
import com.google.cloud.clouddms.v1.ListConversionWorkspacesRequest;
import com.google.cloud.clouddms.v1.ListConversionWorkspacesResponse;
import com.google.cloud.clouddms.v1.ListMappingRulesRequest;
import com.google.cloud.clouddms.v1.ListMappingRulesResponse;
import com.google.cloud.clouddms.v1.ListMigrationJobsRequest;
import com.google.cloud.clouddms.v1.ListMigrationJobsResponse;
import com.google.cloud.clouddms.v1.ListPrivateConnectionsRequest;
import com.google.cloud.clouddms.v1.ListPrivateConnectionsResponse;
import com.google.cloud.clouddms.v1.MappingRule;
import com.google.cloud.clouddms.v1.MigrationJob;
import com.google.cloud.clouddms.v1.OperationMetadata;
import com.google.cloud.clouddms.v1.PrivateConnection;
Expand All @@ -72,6 +80,7 @@
import com.google.cloud.clouddms.v1.SshScript;
import com.google.cloud.clouddms.v1.StartMigrationJobRequest;
import com.google.cloud.clouddms.v1.StopMigrationJobRequest;
import com.google.cloud.clouddms.v1.TcpProxyScript;
import com.google.cloud.clouddms.v1.UpdateConnectionProfileRequest;
import com.google.cloud.clouddms.v1.UpdateConversionWorkspaceRequest;
import com.google.cloud.clouddms.v1.UpdateMigrationJobRequest;
Expand Down Expand Up @@ -201,6 +210,11 @@ public UnaryCallable<GenerateSshScriptRequest, SshScript> generateSshScriptCalla
throw new UnsupportedOperationException("Not implemented: generateSshScriptCallable()");
}

public UnaryCallable<GenerateTcpProxyScriptRequest, TcpProxyScript>
generateTcpProxyScriptCallable() {
throw new UnsupportedOperationException("Not implemented: generateTcpProxyScriptCallable()");
}

public UnaryCallable<ListConnectionProfilesRequest, ListConnectionProfilesPagedResponse>
listConnectionProfilesPagedCallable() {
throw new UnsupportedOperationException(
Expand Down Expand Up @@ -337,6 +351,28 @@ public UnaryCallable<GenerateSshScriptRequest, SshScript> generateSshScriptCalla
throw new UnsupportedOperationException("Not implemented: deleteConversionWorkspaceCallable()");
}

public UnaryCallable<CreateMappingRuleRequest, MappingRule> createMappingRuleCallable() {
throw new UnsupportedOperationException("Not implemented: createMappingRuleCallable()");
}

public UnaryCallable<DeleteMappingRuleRequest, Empty> deleteMappingRuleCallable() {
throw new UnsupportedOperationException("Not implemented: deleteMappingRuleCallable()");
}

public UnaryCallable<ListMappingRulesRequest, ListMappingRulesPagedResponse>
listMappingRulesPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listMappingRulesPagedCallable()");
}

public UnaryCallable<ListMappingRulesRequest, ListMappingRulesResponse>
listMappingRulesCallable() {
throw new UnsupportedOperationException("Not implemented: listMappingRulesCallable()");
}

public UnaryCallable<GetMappingRuleRequest, MappingRule> getMappingRuleCallable() {
throw new UnsupportedOperationException("Not implemented: getMappingRuleCallable()");
}

public OperationCallable<SeedConversionWorkspaceRequest, ConversionWorkspace, OperationMetadata>
seedConversionWorkspaceOperationCallable() {
throw new UnsupportedOperationException(
Expand Down
Loading

0 comments on commit 8c2aacb

Please sign in to comment.