Skip to content

Commit 7709391

Browse files
docs: [gke-backup] minor documentation fixes (#9533)
* docs: minor documentation fixes PiperOrigin-RevId: 538564373 Source-Link: googleapis/googleapis@477cf96 Source-Link: https://github.com/googleapis/googleapis-gen/commit/51fbcf5f64fd2f1b8eee7f426da712e98cc7d960 Copy-Tag: eyJwIjoiamF2YS1na2UtYmFja3VwLy5Pd2xCb3QueWFtbCIsImgiOiI1MWZiY2Y1ZjY0ZmQyZjFiOGVlZTdmNDI2ZGE3MTJlOThjYzdkOTYwIn0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix(deps): add iam dependency. * fix(deps): add grpc-google-common-protos for com.google.cloud.location.LocationsGrpc classes in test. --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Min Zhu <[email protected]>
1 parent cf43432 commit 7709391

File tree

112 files changed

+5137
-2051
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+5137
-2051
lines changed

java-gke-backup/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
2323
<dependency>
2424
<groupId>com.google.cloud</groupId>
2525
<artifactId>libraries-bom</artifactId>
26-
<version>26.16.0</version>
26+
<version>26.17.0</version>
2727
<type>pom</type>
2828
<scope>import</scope>
2929
</dependency>

java-gke-backup/google-cloud-gke-backup/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@
6666
<artifactId>threetenbp</artifactId>
6767
</dependency>
6868

69+
<dependency>
70+
<groupId>com.google.api.grpc</groupId>
71+
<artifactId>proto-google-iam-v1</artifactId>
72+
</dependency>
73+
<dependency>
74+
<groupId>com.google.api.grpc</groupId>
75+
<artifactId>grpc-google-iam-v1</artifactId>
76+
</dependency>
6977
<!-- Test dependencies -->
7078
<dependency>
7179
<groupId>junit</groupId>
@@ -97,5 +105,9 @@
97105
<classifier>testlib</classifier>
98106
<scope>test</scope>
99107
</dependency>
108+
<dependency>
109+
<groupId>com.google.api.grpc</groupId>
110+
<artifactId>grpc-google-common-protos</artifactId>
111+
</dependency>
100112
</dependencies>
101113
</project>

java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKEClient.java

Lines changed: 477 additions & 40 deletions
Large diffs are not rendered by default.

java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/BackupForGKESettings.java

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListBackupPlansPagedResponse;
2020
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListBackupsPagedResponse;
21+
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListLocationsPagedResponse;
2122
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListRestorePlansPagedResponse;
2223
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListRestoresPagedResponse;
2324
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListVolumeBackupsPagedResponse;
@@ -37,6 +38,15 @@
3738
import com.google.api.gax.rpc.TransportChannelProvider;
3839
import com.google.api.gax.rpc.UnaryCallSettings;
3940
import com.google.cloud.gkebackup.v1.stub.BackupForGKEStubSettings;
41+
import com.google.cloud.location.GetLocationRequest;
42+
import com.google.cloud.location.ListLocationsRequest;
43+
import com.google.cloud.location.ListLocationsResponse;
44+
import com.google.cloud.location.Location;
45+
import com.google.iam.v1.GetIamPolicyRequest;
46+
import com.google.iam.v1.Policy;
47+
import com.google.iam.v1.SetIamPolicyRequest;
48+
import com.google.iam.v1.TestIamPermissionsRequest;
49+
import com.google.iam.v1.TestIamPermissionsResponse;
4050
import com.google.longrunning.Operation;
4151
import com.google.protobuf.Empty;
4252
import java.io.IOException;
@@ -284,6 +294,33 @@ public UnaryCallSettings<GetVolumeRestoreRequest, VolumeRestore> getVolumeRestor
284294
return ((BackupForGKEStubSettings) getStubSettings()).getVolumeRestoreSettings();
285295
}
286296

297+
/** Returns the object with the settings used for calls to listLocations. */
298+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
299+
listLocationsSettings() {
300+
return ((BackupForGKEStubSettings) getStubSettings()).listLocationsSettings();
301+
}
302+
303+
/** Returns the object with the settings used for calls to getLocation. */
304+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
305+
return ((BackupForGKEStubSettings) getStubSettings()).getLocationSettings();
306+
}
307+
308+
/** Returns the object with the settings used for calls to setIamPolicy. */
309+
public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() {
310+
return ((BackupForGKEStubSettings) getStubSettings()).setIamPolicySettings();
311+
}
312+
313+
/** Returns the object with the settings used for calls to getIamPolicy. */
314+
public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
315+
return ((BackupForGKEStubSettings) getStubSettings()).getIamPolicySettings();
316+
}
317+
318+
/** Returns the object with the settings used for calls to testIamPermissions. */
319+
public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
320+
testIamPermissionsSettings() {
321+
return ((BackupForGKEStubSettings) getStubSettings()).testIamPermissionsSettings();
322+
}
323+
287324
public static final BackupForGKESettings create(BackupForGKEStubSettings stub)
288325
throws IOException {
289326
return new BackupForGKESettings.Builder(stub.toBuilder()).build();
@@ -611,6 +648,34 @@ public UnaryCallSettings.Builder<DeleteRestoreRequest, Operation> deleteRestoreS
611648
return getStubSettingsBuilder().getVolumeRestoreSettings();
612649
}
613650

651+
/** Returns the builder for the settings used for calls to listLocations. */
652+
public PagedCallSettings.Builder<
653+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
654+
listLocationsSettings() {
655+
return getStubSettingsBuilder().listLocationsSettings();
656+
}
657+
658+
/** Returns the builder for the settings used for calls to getLocation. */
659+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
660+
return getStubSettingsBuilder().getLocationSettings();
661+
}
662+
663+
/** Returns the builder for the settings used for calls to setIamPolicy. */
664+
public UnaryCallSettings.Builder<SetIamPolicyRequest, Policy> setIamPolicySettings() {
665+
return getStubSettingsBuilder().setIamPolicySettings();
666+
}
667+
668+
/** Returns the builder for the settings used for calls to getIamPolicy. */
669+
public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettings() {
670+
return getStubSettingsBuilder().getIamPolicySettings();
671+
}
672+
673+
/** Returns the builder for the settings used for calls to testIamPermissions. */
674+
public UnaryCallSettings.Builder<TestIamPermissionsRequest, TestIamPermissionsResponse>
675+
testIamPermissionsSettings() {
676+
return getStubSettingsBuilder().testIamPermissionsSettings();
677+
}
678+
614679
@Override
615680
public BackupForGKESettings build() throws IOException {
616681
return new BackupForGKESettings(this);

java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/gapic_metadata.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
"GetBackupPlan": {
4141
"methods": ["getBackupPlan", "getBackupPlan", "getBackupPlan", "getBackupPlanCallable"]
4242
},
43+
"GetIamPolicy": {
44+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
45+
},
46+
"GetLocation": {
47+
"methods": ["getLocation", "getLocationCallable"]
48+
},
4349
"GetRestore": {
4450
"methods": ["getRestore", "getRestore", "getRestore", "getRestoreCallable"]
4551
},
@@ -58,6 +64,9 @@
5864
"ListBackups": {
5965
"methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"]
6066
},
67+
"ListLocations": {
68+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
69+
},
6170
"ListRestorePlans": {
6271
"methods": ["listRestorePlans", "listRestorePlans", "listRestorePlans", "listRestorePlansPagedCallable", "listRestorePlansCallable"]
6372
},
@@ -70,6 +79,12 @@
7079
"ListVolumeRestores": {
7180
"methods": ["listVolumeRestores", "listVolumeRestores", "listVolumeRestores", "listVolumeRestoresPagedCallable", "listVolumeRestoresCallable"]
7281
},
82+
"SetIamPolicy": {
83+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
84+
},
85+
"TestIamPermissions": {
86+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
87+
},
7388
"UpdateBackup": {
7489
"methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"]
7590
},

java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/BackupForGKEStub.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListBackupPlansPagedResponse;
2020
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListBackupsPagedResponse;
21+
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListLocationsPagedResponse;
2122
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListRestorePlansPagedResponse;
2223
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListRestoresPagedResponse;
2324
import static com.google.cloud.gkebackup.v1.BackupForGKEClient.ListVolumeBackupsPagedResponse;
@@ -63,6 +64,15 @@
6364
import com.google.cloud.gkebackup.v1.UpdateRestoreRequest;
6465
import com.google.cloud.gkebackup.v1.VolumeBackup;
6566
import com.google.cloud.gkebackup.v1.VolumeRestore;
67+
import com.google.cloud.location.GetLocationRequest;
68+
import com.google.cloud.location.ListLocationsRequest;
69+
import com.google.cloud.location.ListLocationsResponse;
70+
import com.google.cloud.location.Location;
71+
import com.google.iam.v1.GetIamPolicyRequest;
72+
import com.google.iam.v1.Policy;
73+
import com.google.iam.v1.SetIamPolicyRequest;
74+
import com.google.iam.v1.TestIamPermissionsRequest;
75+
import com.google.iam.v1.TestIamPermissionsResponse;
6676
import com.google.longrunning.Operation;
6777
import com.google.longrunning.stub.OperationsStub;
6878
import com.google.protobuf.Empty;
@@ -275,6 +285,32 @@ public UnaryCallable<GetVolumeRestoreRequest, VolumeRestore> getVolumeRestoreCal
275285
throw new UnsupportedOperationException("Not implemented: getVolumeRestoreCallable()");
276286
}
277287

288+
public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
289+
listLocationsPagedCallable() {
290+
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
291+
}
292+
293+
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
294+
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
295+
}
296+
297+
public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
298+
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
299+
}
300+
301+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
302+
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
303+
}
304+
305+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
306+
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
307+
}
308+
309+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
310+
testIamPermissionsCallable() {
311+
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
312+
}
313+
278314
@Override
279315
public abstract void close();
280316
}

0 commit comments

Comments
 (0)