-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set longer polling timeouts for filestore RestoreInstance
PiperOrigin-RevId: 468309184 Source-Link: googleapis/googleapis@260cd02 Source-Link: googleapis/googleapis-gen@221f16a Copy-Tag: eyJwIjoiamF2YS1maWxlc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6IjIyMWYxNmE3NThhYmRkYTU2NDJlN2FhMzNiM2U3NjQzOGUxOTg2MDgifQ==
- Loading branch information
1 parent
a7b6f06
commit 4ed890a
Showing
229 changed files
with
83,816 additions
and
0 deletions.
There are no files selected for viewing
1,854 changes: 1,854 additions & 0 deletions
1,854
...ud-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
407 changes: 407 additions & 0 deletions
407
...-filestore/src/main/java/com/google/cloud/filestore/v1/CloudFilestoreManagerSettings.java
Large diffs are not rendered by default.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
...v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/gapic_metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"schema": "1.0", | ||
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods", | ||
"language": "java", | ||
"protoPackage": "google.cloud.filestore.v1", | ||
"libraryPackage": "com.google.cloud.filestore.v1", | ||
"services": { | ||
"CloudFilestoreManager": { | ||
"clients": { | ||
"grpc": { | ||
"libraryClient": "CloudFilestoreManagerClient", | ||
"rpcs": { | ||
"CreateBackup": { | ||
"methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"] | ||
}, | ||
"CreateInstance": { | ||
"methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"] | ||
}, | ||
"DeleteBackup": { | ||
"methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] | ||
}, | ||
"DeleteInstance": { | ||
"methods": ["deleteInstanceAsync", "deleteInstanceAsync", "deleteInstanceAsync", "deleteInstanceOperationCallable", "deleteInstanceCallable"] | ||
}, | ||
"GetBackup": { | ||
"methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] | ||
}, | ||
"GetInstance": { | ||
"methods": ["getInstance", "getInstance", "getInstance", "getInstanceCallable"] | ||
}, | ||
"ListBackups": { | ||
"methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] | ||
}, | ||
"ListInstances": { | ||
"methods": ["listInstances", "listInstances", "listInstances", "listInstancesPagedCallable", "listInstancesCallable"] | ||
}, | ||
"RestoreInstance": { | ||
"methods": ["restoreInstanceAsync", "restoreInstanceOperationCallable", "restoreInstanceCallable"] | ||
}, | ||
"UpdateBackup": { | ||
"methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] | ||
}, | ||
"UpdateInstance": { | ||
"methods": ["updateInstanceAsync", "updateInstanceAsync", "updateInstanceOperationCallable", "updateInstanceCallable"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...e/v1/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* A client to Cloud Filestore API | ||
* | ||
* <p>The interfaces provided are listed below, along with usage samples. | ||
* | ||
* <p>======================= CloudFilestoreManagerClient ======================= | ||
* | ||
* <p>Service Description: Configures and manages Cloud Filestore resources. | ||
* | ||
* <p>Cloud Filestore Manager v1. | ||
* | ||
* <p>The `file.googleapis.com` service implements the Cloud Filestore API and defines the following | ||
* resource model for managing instances: | ||
* | ||
* <ul> | ||
* <li> The service works with a collection of cloud projects, named: `/projects/*` | ||
* <li> Each project has a collection of available locations, named: `/locations/*` | ||
* <li> Each location has a collection of instances and backups, named: `/instances/*` and | ||
* `/backups/*` respectively. | ||
* <li> As such, Cloud Filestore instances are resources of the form: | ||
* `/projects/{project_number}/locations/{location_id}/instances/{instance_id}` and backups | ||
* are resources of the form: | ||
* `/projects/{project_number}/locations/{location_id}/backup/{backup_id}` | ||
* </ul> | ||
* | ||
* <p>Note that location_id must be a GCP `zone` for instances and but to a GCP `region` for | ||
* backups; for example: | ||
* | ||
* <ul> | ||
* <li> `projects/12345/locations/us-central1-c/instances/my-filestore` | ||
* <li> `projects/12345/locations/us-central1/backups/my-backup` | ||
* </ul> | ||
* | ||
* <p>Sample for CloudFilestoreManagerClient: | ||
* | ||
* <pre>{@code | ||
* // This snippet has been automatically generated for illustrative purposes only. | ||
* // It may require modifications to work in your environment. | ||
* try (CloudFilestoreManagerClient cloudFilestoreManagerClient = | ||
* CloudFilestoreManagerClient.create()) { | ||
* InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); | ||
* Instance response = cloudFilestoreManagerClient.getInstance(name); | ||
* } | ||
* }</pre> | ||
*/ | ||
@Generated("by gapic-generator-java") | ||
package com.google.cloud.filestore.v1; | ||
|
||
import javax.annotation.Generated; |
153 changes: 153 additions & 0 deletions
153
...filestore/src/main/java/com/google/cloud/filestore/v1/stub/CloudFilestoreManagerStub.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
/* | ||
* Copyright 2022 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.cloud.filestore.v1.stub; | ||
|
||
import static com.google.cloud.filestore.v1.CloudFilestoreManagerClient.ListBackupsPagedResponse; | ||
import static com.google.cloud.filestore.v1.CloudFilestoreManagerClient.ListInstancesPagedResponse; | ||
|
||
import com.google.api.gax.core.BackgroundResource; | ||
import com.google.api.gax.rpc.OperationCallable; | ||
import com.google.api.gax.rpc.UnaryCallable; | ||
import com.google.cloud.common.OperationMetadata; | ||
import com.google.cloud.filestore.v1.Backup; | ||
import com.google.cloud.filestore.v1.CreateBackupRequest; | ||
import com.google.cloud.filestore.v1.CreateInstanceRequest; | ||
import com.google.cloud.filestore.v1.DeleteBackupRequest; | ||
import com.google.cloud.filestore.v1.DeleteInstanceRequest; | ||
import com.google.cloud.filestore.v1.GetBackupRequest; | ||
import com.google.cloud.filestore.v1.GetInstanceRequest; | ||
import com.google.cloud.filestore.v1.Instance; | ||
import com.google.cloud.filestore.v1.ListBackupsRequest; | ||
import com.google.cloud.filestore.v1.ListBackupsResponse; | ||
import com.google.cloud.filestore.v1.ListInstancesRequest; | ||
import com.google.cloud.filestore.v1.ListInstancesResponse; | ||
import com.google.cloud.filestore.v1.RestoreInstanceRequest; | ||
import com.google.cloud.filestore.v1.UpdateBackupRequest; | ||
import com.google.cloud.filestore.v1.UpdateInstanceRequest; | ||
import com.google.longrunning.Operation; | ||
import com.google.longrunning.stub.OperationsStub; | ||
import com.google.protobuf.Empty; | ||
import javax.annotation.Generated; | ||
|
||
// AUTO-GENERATED DOCUMENTATION AND CLASS. | ||
/** | ||
* Base stub class for the CloudFilestoreManager service API. | ||
* | ||
* <p>This class is for advanced usage and reflects the underlying API directly. | ||
*/ | ||
@Generated("by gapic-generator-java") | ||
public abstract class CloudFilestoreManagerStub implements BackgroundResource { | ||
|
||
public OperationsStub getOperationsStub() { | ||
return null; | ||
} | ||
|
||
public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { | ||
return null; | ||
} | ||
|
||
public UnaryCallable<ListInstancesRequest, ListInstancesPagedResponse> | ||
listInstancesPagedCallable() { | ||
throw new UnsupportedOperationException("Not implemented: listInstancesPagedCallable()"); | ||
} | ||
|
||
public UnaryCallable<ListInstancesRequest, ListInstancesResponse> listInstancesCallable() { | ||
throw new UnsupportedOperationException("Not implemented: listInstancesCallable()"); | ||
} | ||
|
||
public UnaryCallable<GetInstanceRequest, Instance> getInstanceCallable() { | ||
throw new UnsupportedOperationException("Not implemented: getInstanceCallable()"); | ||
} | ||
|
||
public OperationCallable<CreateInstanceRequest, Instance, OperationMetadata> | ||
createInstanceOperationCallable() { | ||
throw new UnsupportedOperationException("Not implemented: createInstanceOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<CreateInstanceRequest, Operation> createInstanceCallable() { | ||
throw new UnsupportedOperationException("Not implemented: createInstanceCallable()"); | ||
} | ||
|
||
public OperationCallable<UpdateInstanceRequest, Instance, OperationMetadata> | ||
updateInstanceOperationCallable() { | ||
throw new UnsupportedOperationException("Not implemented: updateInstanceOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<UpdateInstanceRequest, Operation> updateInstanceCallable() { | ||
throw new UnsupportedOperationException("Not implemented: updateInstanceCallable()"); | ||
} | ||
|
||
public OperationCallable<RestoreInstanceRequest, Instance, OperationMetadata> | ||
restoreInstanceOperationCallable() { | ||
throw new UnsupportedOperationException("Not implemented: restoreInstanceOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<RestoreInstanceRequest, Operation> restoreInstanceCallable() { | ||
throw new UnsupportedOperationException("Not implemented: restoreInstanceCallable()"); | ||
} | ||
|
||
public OperationCallable<DeleteInstanceRequest, Empty, OperationMetadata> | ||
deleteInstanceOperationCallable() { | ||
throw new UnsupportedOperationException("Not implemented: deleteInstanceOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<DeleteInstanceRequest, Operation> deleteInstanceCallable() { | ||
throw new UnsupportedOperationException("Not implemented: deleteInstanceCallable()"); | ||
} | ||
|
||
public UnaryCallable<ListBackupsRequest, ListBackupsPagedResponse> listBackupsPagedCallable() { | ||
throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()"); | ||
} | ||
|
||
public UnaryCallable<ListBackupsRequest, ListBackupsResponse> listBackupsCallable() { | ||
throw new UnsupportedOperationException("Not implemented: listBackupsCallable()"); | ||
} | ||
|
||
public UnaryCallable<GetBackupRequest, Backup> getBackupCallable() { | ||
throw new UnsupportedOperationException("Not implemented: getBackupCallable()"); | ||
} | ||
|
||
public OperationCallable<CreateBackupRequest, Backup, OperationMetadata> | ||
createBackupOperationCallable() { | ||
throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<CreateBackupRequest, Operation> createBackupCallable() { | ||
throw new UnsupportedOperationException("Not implemented: createBackupCallable()"); | ||
} | ||
|
||
public OperationCallable<DeleteBackupRequest, Empty, OperationMetadata> | ||
deleteBackupOperationCallable() { | ||
throw new UnsupportedOperationException("Not implemented: deleteBackupOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<DeleteBackupRequest, Operation> deleteBackupCallable() { | ||
throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()"); | ||
} | ||
|
||
public OperationCallable<UpdateBackupRequest, Backup, OperationMetadata> | ||
updateBackupOperationCallable() { | ||
throw new UnsupportedOperationException("Not implemented: updateBackupOperationCallable()"); | ||
} | ||
|
||
public UnaryCallable<UpdateBackupRequest, Operation> updateBackupCallable() { | ||
throw new UnsupportedOperationException("Not implemented: updateBackupCallable()"); | ||
} | ||
|
||
@Override | ||
public abstract void close(); | ||
} |
Oops, something went wrong.