|
124 | 124 | * </td> |
125 | 125 | * </tr> |
126 | 126 | * <tr> |
| 127 | + * <td><p> BulkSetLabels</td> |
| 128 | + * <td><p> Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources documentation.</td> |
| 129 | + * <td> |
| 130 | + * <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p> |
| 131 | + * <ul> |
| 132 | + * <li><p> bulkSetLabelsAsync(BulkSetLabelsDiskRequest request) |
| 133 | + * </ul> |
| 134 | + * <p>Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.</p> |
| 135 | + * <ul> |
| 136 | + * <li><p> bulkSetLabelsAsync(String project, String zone, BulkZoneSetLabelsRequest bulkZoneSetLabelsRequestResource) |
| 137 | + * </ul> |
| 138 | + * <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> |
| 139 | + * <ul> |
| 140 | + * <li><p> bulkSetLabelsOperationCallable() |
| 141 | + * <li><p> bulkSetLabelsCallable() |
| 142 | + * </ul> |
| 143 | + * </td> |
| 144 | + * </tr> |
| 145 | + * <tr> |
127 | 146 | * <td><p> CreateSnapshot</td> |
128 | 147 | * <td><p> Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.</td> |
129 | 148 | * <td> |
@@ -930,6 +949,145 @@ public final UnaryCallable<BulkInsertDiskRequest, Operation> bulkInsertCallable( |
930 | 949 | return stub.bulkInsertCallable(); |
931 | 950 | } |
932 | 951 |
|
| 952 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 953 | + /** |
| 954 | + * Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources |
| 955 | + * documentation. |
| 956 | + * |
| 957 | + * <p>Sample code: |
| 958 | + * |
| 959 | + * <pre>{@code |
| 960 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 961 | + * // It will require modifications to work: |
| 962 | + * // - It may require correct/in-range values for request initialization. |
| 963 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 964 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 965 | + * try (DisksClient disksClient = DisksClient.create()) { |
| 966 | + * String project = "project-309310695"; |
| 967 | + * String zone = "zone3744684"; |
| 968 | + * BulkZoneSetLabelsRequest bulkZoneSetLabelsRequestResource = |
| 969 | + * BulkZoneSetLabelsRequest.newBuilder().build(); |
| 970 | + * Operation response = |
| 971 | + * disksClient.bulkSetLabelsAsync(project, zone, bulkZoneSetLabelsRequestResource).get(); |
| 972 | + * } |
| 973 | + * }</pre> |
| 974 | + * |
| 975 | + * @param project Project ID for this request. |
| 976 | + * @param zone The name of the zone for this request. |
| 977 | + * @param bulkZoneSetLabelsRequestResource The body resource for this request |
| 978 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 979 | + */ |
| 980 | + public final OperationFuture<Operation, Operation> bulkSetLabelsAsync( |
| 981 | + String project, String zone, BulkZoneSetLabelsRequest bulkZoneSetLabelsRequestResource) { |
| 982 | + BulkSetLabelsDiskRequest request = |
| 983 | + BulkSetLabelsDiskRequest.newBuilder() |
| 984 | + .setProject(project) |
| 985 | + .setZone(zone) |
| 986 | + .setBulkZoneSetLabelsRequestResource(bulkZoneSetLabelsRequestResource) |
| 987 | + .build(); |
| 988 | + return bulkSetLabelsAsync(request); |
| 989 | + } |
| 990 | + |
| 991 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 992 | + /** |
| 993 | + * Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources |
| 994 | + * documentation. |
| 995 | + * |
| 996 | + * <p>Sample code: |
| 997 | + * |
| 998 | + * <pre>{@code |
| 999 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 1000 | + * // It will require modifications to work: |
| 1001 | + * // - It may require correct/in-range values for request initialization. |
| 1002 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 1003 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 1004 | + * try (DisksClient disksClient = DisksClient.create()) { |
| 1005 | + * BulkSetLabelsDiskRequest request = |
| 1006 | + * BulkSetLabelsDiskRequest.newBuilder() |
| 1007 | + * .setBulkZoneSetLabelsRequestResource(BulkZoneSetLabelsRequest.newBuilder().build()) |
| 1008 | + * .setProject("project-309310695") |
| 1009 | + * .setRequestId("requestId693933066") |
| 1010 | + * .setResource("resource-341064690") |
| 1011 | + * .setZone("zone3744684") |
| 1012 | + * .build(); |
| 1013 | + * Operation response = disksClient.bulkSetLabelsAsync(request).get(); |
| 1014 | + * } |
| 1015 | + * }</pre> |
| 1016 | + * |
| 1017 | + * @param request The request object containing all of the parameters for the API call. |
| 1018 | + * @throws com.google.api.gax.rpc.ApiException if the remote call fails |
| 1019 | + */ |
| 1020 | + public final OperationFuture<Operation, Operation> bulkSetLabelsAsync( |
| 1021 | + BulkSetLabelsDiskRequest request) { |
| 1022 | + return bulkSetLabelsOperationCallable().futureCall(request); |
| 1023 | + } |
| 1024 | + |
| 1025 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 1026 | + /** |
| 1027 | + * Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources |
| 1028 | + * documentation. |
| 1029 | + * |
| 1030 | + * <p>Sample code: |
| 1031 | + * |
| 1032 | + * <pre>{@code |
| 1033 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 1034 | + * // It will require modifications to work: |
| 1035 | + * // - It may require correct/in-range values for request initialization. |
| 1036 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 1037 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 1038 | + * try (DisksClient disksClient = DisksClient.create()) { |
| 1039 | + * BulkSetLabelsDiskRequest request = |
| 1040 | + * BulkSetLabelsDiskRequest.newBuilder() |
| 1041 | + * .setBulkZoneSetLabelsRequestResource(BulkZoneSetLabelsRequest.newBuilder().build()) |
| 1042 | + * .setProject("project-309310695") |
| 1043 | + * .setRequestId("requestId693933066") |
| 1044 | + * .setResource("resource-341064690") |
| 1045 | + * .setZone("zone3744684") |
| 1046 | + * .build(); |
| 1047 | + * OperationFuture<Operation, Operation> future = |
| 1048 | + * disksClient.bulkSetLabelsOperationCallable().futureCall(request); |
| 1049 | + * // Do something. |
| 1050 | + * Operation response = future.get(); |
| 1051 | + * } |
| 1052 | + * }</pre> |
| 1053 | + */ |
| 1054 | + public final OperationCallable<BulkSetLabelsDiskRequest, Operation, Operation> |
| 1055 | + bulkSetLabelsOperationCallable() { |
| 1056 | + return stub.bulkSetLabelsOperationCallable(); |
| 1057 | + } |
| 1058 | + |
| 1059 | + // AUTO-GENERATED DOCUMENTATION AND METHOD. |
| 1060 | + /** |
| 1061 | + * Sets the labels on many disks at once. To learn more about labels, read the Labeling Resources |
| 1062 | + * documentation. |
| 1063 | + * |
| 1064 | + * <p>Sample code: |
| 1065 | + * |
| 1066 | + * <pre>{@code |
| 1067 | + * // This snippet has been automatically generated and should be regarded as a code template only. |
| 1068 | + * // It will require modifications to work: |
| 1069 | + * // - It may require correct/in-range values for request initialization. |
| 1070 | + * // - It may require specifying regional endpoints when creating the service client as shown in |
| 1071 | + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library |
| 1072 | + * try (DisksClient disksClient = DisksClient.create()) { |
| 1073 | + * BulkSetLabelsDiskRequest request = |
| 1074 | + * BulkSetLabelsDiskRequest.newBuilder() |
| 1075 | + * .setBulkZoneSetLabelsRequestResource(BulkZoneSetLabelsRequest.newBuilder().build()) |
| 1076 | + * .setProject("project-309310695") |
| 1077 | + * .setRequestId("requestId693933066") |
| 1078 | + * .setResource("resource-341064690") |
| 1079 | + * .setZone("zone3744684") |
| 1080 | + * .build(); |
| 1081 | + * ApiFuture<Operation> future = disksClient.bulkSetLabelsCallable().futureCall(request); |
| 1082 | + * // Do something. |
| 1083 | + * Operation response = future.get(); |
| 1084 | + * } |
| 1085 | + * }</pre> |
| 1086 | + */ |
| 1087 | + public final UnaryCallable<BulkSetLabelsDiskRequest, Operation> bulkSetLabelsCallable() { |
| 1088 | + return stub.bulkSetLabelsCallable(); |
| 1089 | + } |
| 1090 | + |
933 | 1091 | // AUTO-GENERATED DOCUMENTATION AND METHOD. |
934 | 1092 | /** |
935 | 1093 | * Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider |
|
0 commit comments