Skip to content

Commit

Permalink
fix: set longer polling timeouts for filestore RestoreInstance
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 468309184

Source-Link: googleapis/googleapis@260cd02

Source-Link: googleapis/googleapis-gen@221f16a
Copy-Tag: eyJwIjoiamF2YS1maWxlc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6IjIyMWYxNmE3NThhYmRkYTU2NDJlN2FhMzNiM2U3NjQzOGUxOTg2MDgifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Aug 17, 2022
1 parent a7b6f06 commit 4ed890a
Show file tree
Hide file tree
Showing 229 changed files with 83,816 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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"]
}
}
}
}
}
}
}
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/&#42;`
* <li> Each project has a collection of available locations, named: `/locations/&#42;`
* <li> Each location has a collection of instances and backups, named: `/instances/&#42;` and
* `/backups/&#42;` 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;
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();
}

0 comments on commit 4ed890a

Please sign in to comment.