Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

docs: update link in comments #45

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view

This file was deleted.

Expand Up @@ -63,13 +63,13 @@
* methods:
*
* <ol>
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand Down Expand Up @@ -439,7 +439,7 @@ public final UnaryCallable<GetMigrationJobRequest, MigrationJob> getMigrationJob
*
* @param parent Required. The parent, which owns this collection of migration jobs.
* @param migrationJob Required. Represents a [migration
* job](https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.migrationJobs)
* job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
* object.
* @param migrationJobId Required. The ID of the instance to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -476,7 +476,7 @@ public final OperationFuture<MigrationJob, OperationMetadata> createMigrationJob
*
* @param parent Required. The parent, which owns this collection of migration jobs.
* @param migrationJob Required. Represents a [migration
* job](https://cloud.google.com/database-migration/reference/rest/v1/projects.locations.migrationJobs)
* job](https://cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.migrationJobs)
* object.
* @param migrationJobId Required. The ID of the instance to create.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -2052,10 +2052,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListMigrationJobsPagedResponse
extends AbstractPagedListResponse<
ListMigrationJobsRequest,
ListMigrationJobsResponse,
MigrationJob,
ListMigrationJobsPage,
ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, ListMigrationJobsPage,
ListMigrationJobsFixedSizeCollection> {

public static ApiFuture<ListMigrationJobsPagedResponse> createAsync(
Expand All @@ -2081,9 +2078,7 @@ private ListMigrationJobsPagedResponse(ListMigrationJobsPage page) {

public static class ListMigrationJobsPage
extends AbstractPage<
ListMigrationJobsRequest,
ListMigrationJobsResponse,
MigrationJob,
ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob,
ListMigrationJobsPage> {

private ListMigrationJobsPage(
Expand Down Expand Up @@ -2113,10 +2108,7 @@ public ApiFuture<ListMigrationJobsPage> createPageAsync(

public static class ListMigrationJobsFixedSizeCollection
extends AbstractFixedSizeCollection<
ListMigrationJobsRequest,
ListMigrationJobsResponse,
MigrationJob,
ListMigrationJobsPage,
ListMigrationJobsRequest, ListMigrationJobsResponse, MigrationJob, ListMigrationJobsPage,
ListMigrationJobsFixedSizeCollection> {

private ListMigrationJobsFixedSizeCollection(
Expand All @@ -2137,11 +2129,8 @@ protected ListMigrationJobsFixedSizeCollection createCollection(

public static class ListConnectionProfilesPagedResponse
extends AbstractPagedListResponse<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ConnectionProfile,
ListConnectionProfilesPage,
ListConnectionProfilesFixedSizeCollection> {
ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile,
ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> {

public static ApiFuture<ListConnectionProfilesPagedResponse> createAsync(
PageContext<
Expand All @@ -2168,9 +2157,7 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) {

public static class ListConnectionProfilesPage
extends AbstractPage<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ConnectionProfile,
ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile,
ListConnectionProfilesPage> {

private ListConnectionProfilesPage(
Expand Down Expand Up @@ -2206,11 +2193,8 @@ public ApiFuture<ListConnectionProfilesPage> createPageAsync(

public static class ListConnectionProfilesFixedSizeCollection
extends AbstractFixedSizeCollection<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ConnectionProfile,
ListConnectionProfilesPage,
ListConnectionProfilesFixedSizeCollection> {
ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile,
ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> {

private ListConnectionProfilesFixedSizeCollection(
List<ListConnectionProfilesPage> pages, int collectionSize) {
Expand Down
Expand Up @@ -29,6 +29,7 @@
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.clouddms.v1.stub.DataMigrationServiceStubSettings;
Expand All @@ -45,9 +46,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (datamigration.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (datamigration.googleapis.com) and default port (443) are
* used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -201,8 +203,7 @@ public UnaryCallSettings<GenerateSshScriptRequest, SshScript> generateSshScriptS

/** Returns the object with the settings used for calls to listConnectionProfiles. */
public PagedCallSettings<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>
listConnectionProfilesSettings() {
return ((DataMigrationServiceStubSettings) getStubSettings()).listConnectionProfilesSettings();
Expand Down Expand Up @@ -483,8 +484,7 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectionProfiles. */
public PagedCallSettings.Builder<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>
listConnectionProfilesSettings() {
return getStubSettingsBuilder().listConnectionProfilesSettings();
Expand Down
Expand Up @@ -86,9 +86,10 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (datamigration.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* <li> The default service address (datamigration.googleapis.com) and default port (443) are
* used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down Expand Up @@ -154,8 +155,7 @@ public class DataMigrationServiceStubSettings
restartMigrationJobOperationSettings;
private final UnaryCallSettings<GenerateSshScriptRequest, SshScript> generateSshScriptSettings;
private final PagedCallSettings<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>
listConnectionProfilesSettings;
private final UnaryCallSettings<GetConnectionProfileRequest, ConnectionProfile>
Expand Down Expand Up @@ -262,8 +262,7 @@ public Iterable<ConnectionProfile> extractResources(
ListMigrationJobsRequest, ListMigrationJobsResponse, ListMigrationJobsPagedResponse>
LIST_MIGRATION_JOBS_PAGE_STR_FACT =
new PagedListResponseFactory<
ListMigrationJobsRequest,
ListMigrationJobsResponse,
ListMigrationJobsRequest, ListMigrationJobsResponse,
ListMigrationJobsPagedResponse>() {
@Override
public ApiFuture<ListMigrationJobsPagedResponse> getFuturePagedResponse(
Expand All @@ -280,13 +279,11 @@ public ApiFuture<ListMigrationJobsPagedResponse> getFuturePagedResponse(
};

private static final PagedListResponseFactory<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>
LIST_CONNECTION_PROFILES_PAGE_STR_FACT =
new PagedListResponseFactory<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>() {
@Override
public ApiFuture<ListConnectionProfilesPagedResponse> getFuturePagedResponse(
Expand All @@ -296,8 +293,7 @@ public ApiFuture<ListConnectionProfilesPagedResponse> getFuturePagedResponse(
ApiCallContext context,
ApiFuture<ListConnectionProfilesResponse> futureResponse) {
PageContext<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ConnectionProfile>
pageContext =
PageContext.create(
Expand Down Expand Up @@ -424,8 +420,7 @@ public UnaryCallSettings<GenerateSshScriptRequest, SshScript> generateSshScriptS

/** Returns the object with the settings used for calls to listConnectionProfiles. */
public PagedCallSettings<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>
listConnectionProfilesSettings() {
return listConnectionProfilesSettings;
Expand Down Expand Up @@ -640,8 +635,7 @@ public static class Builder
private final UnaryCallSettings.Builder<GenerateSshScriptRequest, SshScript>
generateSshScriptSettings;
private final PagedCallSettings.Builder<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>
listConnectionProfilesSettings;
private final UnaryCallSettings.Builder<GetConnectionProfileRequest, ConnectionProfile>
Expand Down Expand Up @@ -1365,8 +1359,7 @@ public Builder applyToAllUnaryMethods(

/** Returns the builder for the settings used for calls to listConnectionProfiles. */
public PagedCallSettings.Builder<
ListConnectionProfilesRequest,
ListConnectionProfilesResponse,
ListConnectionProfilesRequest, ListConnectionProfilesResponse,
ListConnectionProfilesPagedResponse>
listConnectionProfilesSettings() {
return listConnectionProfilesSettings;
Expand Down
Expand Up @@ -53,10 +53,10 @@

@Generated("by gapic-generator-java")
public class DataMigrationServiceClientTest {
private static MockServiceHelper mockServiceHelper;
private DataMigrationServiceClient client;
private static MockDataMigrationService mockDataMigrationService;
private static MockServiceHelper mockServiceHelper;
private LocalChannelProvider channelProvider;
private DataMigrationServiceClient client;

@BeforeClass
public static void startStaticServer() {
Expand Down