Skip to content

Commit

Permalink
chore: generate libraries at Fri Jan 10 02:29:33 UTC 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-java-bot committed Jan 10, 2025
1 parent a7da2a1 commit 0e63b78
Show file tree
Hide file tree
Showing 57 changed files with 4,305 additions and 926 deletions.
8 changes: 4 additions & 4 deletions java-backupdr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-backupdr</artifactId>
<version>0.14.0</version>
<version>0.15.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-backupdr:0.14.0'
implementation 'com.google.cloud:google-cloud-backupdr:0.15.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.14.0"
libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.15.0"
```

## Authentication
Expand Down Expand Up @@ -194,7 +194,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-backupdr.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.14.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.15.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
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,21 @@
* </td>
* </tr>
* <tr>
* <td><p> InitializeService</td>
* <td><p> Initializes the service related config for a project.</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
* <li><p> initializeServiceAsync(InitializeServiceRequest request)
* </ul>
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
* <ul>
* <li><p> initializeServiceOperationCallable()
* <li><p> initializeServiceCallable()
* </ul>
* </td>
* </tr>
* <tr>
* <td><p> ListLocations</td>
* <td><p> Lists information about the supported locations for this service.</td>
* <td>
Expand Down Expand Up @@ -2326,6 +2341,7 @@ public final OperationFuture<Empty, OperationMetadata> deleteBackupVaultAsync(St
* .setEtag("etag3123477")
* .setValidateOnly(true)
* .setAllowMissing(true)
* .setIgnoreBackupPlanReferences(true)
* .build();
* backupDRClient.deleteBackupVaultAsync(request).get();
* }
Expand Down Expand Up @@ -2360,6 +2376,7 @@ public final OperationFuture<Empty, OperationMetadata> deleteBackupVaultAsync(
* .setEtag("etag3123477")
* .setValidateOnly(true)
* .setAllowMissing(true)
* .setIgnoreBackupPlanReferences(true)
* .build();
* OperationFuture<Empty, OperationMetadata> future =
* backupDRClient.deleteBackupVaultOperationCallable().futureCall(request);
Expand Down Expand Up @@ -2394,6 +2411,7 @@ public final OperationFuture<Empty, OperationMetadata> deleteBackupVaultAsync(
* .setEtag("etag3123477")
* .setValidateOnly(true)
* .setAllowMissing(true)
* .setIgnoreBackupPlanReferences(true)
* .build();
* ApiFuture<Operation> future = backupDRClient.deleteBackupVaultCallable().futureCall(request);
* // Do something.
Expand Down Expand Up @@ -4995,6 +5013,98 @@ public final UnaryCallable<TriggerBackupRequest, Operation> triggerBackupCallabl
return stub.triggerBackupCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Initializes the service related config for a project.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (BackupDRClient backupDRClient = BackupDRClient.create()) {
* InitializeServiceRequest request =
* InitializeServiceRequest.newBuilder()
* .setName("name3373707")
* .setResourceType("resourceType-384364440")
* .setRequestId("requestId693933066")
* .build();
* InitializeServiceResponse response = backupDRClient.initializeServiceAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<InitializeServiceResponse, OperationMetadata> initializeServiceAsync(
InitializeServiceRequest request) {
return initializeServiceOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Initializes the service related config for a project.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (BackupDRClient backupDRClient = BackupDRClient.create()) {
* InitializeServiceRequest request =
* InitializeServiceRequest.newBuilder()
* .setName("name3373707")
* .setResourceType("resourceType-384364440")
* .setRequestId("requestId693933066")
* .build();
* OperationFuture<InitializeServiceResponse, OperationMetadata> future =
* backupDRClient.initializeServiceOperationCallable().futureCall(request);
* // Do something.
* InitializeServiceResponse response = future.get();
* }
* }</pre>
*/
public final OperationCallable<
InitializeServiceRequest, InitializeServiceResponse, OperationMetadata>
initializeServiceOperationCallable() {
return stub.initializeServiceOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Initializes the service related config for a project.
*
* <p>Sample code:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (BackupDRClient backupDRClient = BackupDRClient.create()) {
* InitializeServiceRequest request =
* InitializeServiceRequest.newBuilder()
* .setName("name3373707")
* .setResourceType("resourceType-384364440")
* .setRequestId("requestId693933066")
* .build();
* ApiFuture<Operation> future = backupDRClient.initializeServiceCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<InitializeServiceRequest, Operation> initializeServiceCallable() {
return stub.initializeServiceCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Lists information about the supported locations for this service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,18 @@ public UnaryCallSettings<TriggerBackupRequest, Operation> triggerBackupSettings(
return ((BackupDRStubSettings) getStubSettings()).triggerBackupOperationSettings();
}

/** Returns the object with the settings used for calls to initializeService. */
public UnaryCallSettings<InitializeServiceRequest, Operation> initializeServiceSettings() {
return ((BackupDRStubSettings) getStubSettings()).initializeServiceSettings();
}

/** Returns the object with the settings used for calls to initializeService. */
public OperationCallSettings<
InitializeServiceRequest, InitializeServiceResponse, OperationMetadata>
initializeServiceOperationSettings() {
return ((BackupDRStubSettings) getStubSettings()).initializeServiceOperationSettings();
}

/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
listLocationsSettings() {
Expand Down Expand Up @@ -772,6 +784,19 @@ public UnaryCallSettings.Builder<TriggerBackupRequest, Operation> triggerBackupS
return getStubSettingsBuilder().triggerBackupOperationSettings();
}

/** Returns the builder for the settings used for calls to initializeService. */
public UnaryCallSettings.Builder<InitializeServiceRequest, Operation>
initializeServiceSettings() {
return getStubSettingsBuilder().initializeServiceSettings();
}

/** Returns the builder for the settings used for calls to initializeService. */
public OperationCallSettings.Builder<
InitializeServiceRequest, InitializeServiceResponse, OperationMetadata>
initializeServiceOperationSettings() {
return getStubSettingsBuilder().initializeServiceOperationSettings();
}

/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"GetManagementServer": {
"methods": ["getManagementServer", "getManagementServer", "getManagementServer", "getManagementServerCallable"]
},
"InitializeService": {
"methods": ["initializeServiceAsync", "initializeServiceOperationCallable", "initializeServiceCallable"]
},
"ListBackupPlanAssociations": {
"methods": ["listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociations", "listBackupPlanAssociationsPagedCallable", "listBackupPlanAssociationsCallable"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
import com.google.cloud.backupdr.v1.GetBackupVaultRequest;
import com.google.cloud.backupdr.v1.GetDataSourceRequest;
import com.google.cloud.backupdr.v1.GetManagementServerRequest;
import com.google.cloud.backupdr.v1.InitializeServiceRequest;
import com.google.cloud.backupdr.v1.InitializeServiceResponse;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsRequest;
import com.google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse;
import com.google.cloud.backupdr.v1.ListBackupPlansRequest;
Expand Down Expand Up @@ -334,6 +336,16 @@ public UnaryCallable<TriggerBackupRequest, Operation> triggerBackupCallable() {
throw new UnsupportedOperationException("Not implemented: triggerBackupCallable()");
}

public OperationCallable<InitializeServiceRequest, InitializeServiceResponse, OperationMetadata>
initializeServiceOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: initializeServiceOperationCallable()");
}

public UnaryCallable<InitializeServiceRequest, Operation> initializeServiceCallable() {
throw new UnsupportedOperationException("Not implemented: initializeServiceCallable()");
}

public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
Expand Down
Loading

0 comments on commit 0e63b78

Please sign in to comment.