Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate compute client #4210

Merged
merged 1 commit into from
Dec 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,107 @@ public final UnaryCallable<GetDiskHttpRequest, Disk> getDiskCallable() {
return stub.getDiskCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for a resource. May be empty if no such policy or resource
* exists.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* Policy response = diskClient.getIamPolicyDisk(resource);
* }
* </code></pre>
*
* @param resource Name or id of the resource for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final Policy getIamPolicyDisk(ProjectZoneDiskResourceName resource) {

GetIamPolicyDiskHttpRequest request =
GetIamPolicyDiskHttpRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
.build();
return getIamPolicyDisk(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for a resource. May be empty if no such policy or resource
* exists.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* Policy response = diskClient.getIamPolicyDisk(resource.toString());
* }
* </code></pre>
*
* @param resource Name or id of the resource for this request.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final Policy getIamPolicyDisk(String resource) {

GetIamPolicyDiskHttpRequest request =
GetIamPolicyDiskHttpRequest.newBuilder().setResource(resource).build();
return getIamPolicyDisk(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for a resource. May be empty if no such policy or resource
* exists.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* GetIamPolicyDiskHttpRequest request = GetIamPolicyDiskHttpRequest.newBuilder()
* .setResource(resource.toString())
* .build();
* Policy response = diskClient.getIamPolicyDisk(request);
* }
* </code></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
*/
@BetaApi
public final Policy getIamPolicyDisk(GetIamPolicyDiskHttpRequest request) {
return getIamPolicyDiskCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Gets the access control policy for a resource. May be empty if no such policy or resource
* exists.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* GetIamPolicyDiskHttpRequest request = GetIamPolicyDiskHttpRequest.newBuilder()
* .setResource(resource.toString())
* .build();
* ApiFuture&lt;Policy&gt; future = diskClient.getIamPolicyDiskCallable().futureCall(request);
* // Do something
* Policy response = future.get();
* }
* </code></pre>
*/
@BetaApi
public final UnaryCallable<GetIamPolicyDiskHttpRequest, Policy> getIamPolicyDiskCallable() {
return stub.getIamPolicyDiskCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Creates a persistent disk in the specified project using the data in the request. You can
Expand Down Expand Up @@ -977,6 +1078,117 @@ public final UnaryCallable<ResizeDiskHttpRequest, Operation> resizeDiskCallable(
return stub.resizeDiskCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
* Policy response = diskClient.setIamPolicyDisk(resource, zoneSetPolicyRequestResource);
* }
* </code></pre>
*
* @param resource Name or id of the resource for this request.
* @param zoneSetPolicyRequestResource
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final Policy setIamPolicyDisk(
ProjectZoneDiskResourceName resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource) {

SetIamPolicyDiskHttpRequest request =
SetIamPolicyDiskHttpRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
.setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
.build();
return setIamPolicyDisk(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
* Policy response = diskClient.setIamPolicyDisk(resource.toString(), zoneSetPolicyRequestResource);
* }
* </code></pre>
*
* @param resource Name or id of the resource for this request.
* @param zoneSetPolicyRequestResource
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final Policy setIamPolicyDisk(
String resource, ZoneSetPolicyRequest zoneSetPolicyRequestResource) {

SetIamPolicyDiskHttpRequest request =
SetIamPolicyDiskHttpRequest.newBuilder()
.setResource(resource)
.setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
.build();
return setIamPolicyDisk(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
* SetIamPolicyDiskHttpRequest request = SetIamPolicyDiskHttpRequest.newBuilder()
* .setResource(resource.toString())
* .setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
* .build();
* Policy response = diskClient.setIamPolicyDisk(request);
* }
* </code></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
*/
@BetaApi
public final Policy setIamPolicyDisk(SetIamPolicyDiskHttpRequest request) {
return setIamPolicyDiskCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the access control policy on the specified resource. Replaces any existing policy.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* ZoneSetPolicyRequest zoneSetPolicyRequestResource = ZoneSetPolicyRequest.newBuilder().build();
* SetIamPolicyDiskHttpRequest request = SetIamPolicyDiskHttpRequest.newBuilder()
* .setResource(resource.toString())
* .setZoneSetPolicyRequestResource(zoneSetPolicyRequestResource)
* .build();
* ApiFuture&lt;Policy&gt; future = diskClient.setIamPolicyDiskCallable().futureCall(request);
* // Do something
* Policy response = future.get();
* }
* </code></pre>
*/
@BetaApi
public final UnaryCallable<SetIamPolicyDiskHttpRequest, Policy> setIamPolicyDiskCallable() {
return stub.setIamPolicyDiskCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Sets the labels on a disk. To learn more about labels, read the Labeling Resources
Expand Down Expand Up @@ -1092,6 +1304,119 @@ public final UnaryCallable<SetLabelsDiskHttpRequest, Operation> setLabelsDiskCal
return stub.setLabelsDiskCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns permissions that a caller has on the specified resource.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* TestPermissionsRequest testPermissionsRequestResource = TestPermissionsRequest.newBuilder().build();
* TestPermissionsResponse response = diskClient.testIamPermissionsDisk(resource, testPermissionsRequestResource);
* }
* </code></pre>
*
* @param resource Name or id of the resource for this request.
* @param testPermissionsRequestResource
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final TestPermissionsResponse testIamPermissionsDisk(
ProjectZoneDiskResourceName resource, TestPermissionsRequest testPermissionsRequestResource) {

TestIamPermissionsDiskHttpRequest request =
TestIamPermissionsDiskHttpRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
.setTestPermissionsRequestResource(testPermissionsRequestResource)
.build();
return testIamPermissionsDisk(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns permissions that a caller has on the specified resource.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* TestPermissionsRequest testPermissionsRequestResource = TestPermissionsRequest.newBuilder().build();
* TestPermissionsResponse response = diskClient.testIamPermissionsDisk(resource.toString(), testPermissionsRequestResource);
* }
* </code></pre>
*
* @param resource Name or id of the resource for this request.
* @param testPermissionsRequestResource
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi
public final TestPermissionsResponse testIamPermissionsDisk(
String resource, TestPermissionsRequest testPermissionsRequestResource) {

TestIamPermissionsDiskHttpRequest request =
TestIamPermissionsDiskHttpRequest.newBuilder()
.setResource(resource)
.setTestPermissionsRequestResource(testPermissionsRequestResource)
.build();
return testIamPermissionsDisk(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns permissions that a caller has on the specified resource.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* TestPermissionsRequest testPermissionsRequestResource = TestPermissionsRequest.newBuilder().build();
* TestIamPermissionsDiskHttpRequest request = TestIamPermissionsDiskHttpRequest.newBuilder()
* .setResource(resource.toString())
* .setTestPermissionsRequestResource(testPermissionsRequestResource)
* .build();
* TestPermissionsResponse response = diskClient.testIamPermissionsDisk(request);
* }
* </code></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
*/
@BetaApi
public final TestPermissionsResponse testIamPermissionsDisk(
TestIamPermissionsDiskHttpRequest request) {
return testIamPermissionsDiskCallable().call(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Returns permissions that a caller has on the specified resource.
*
* <p>Sample code:
*
* <pre><code>
* try (DiskClient diskClient = DiskClient.create()) {
* ProjectZoneDiskResourceName resource = ProjectZoneDiskResourceName.of("[PROJECT]", "[ZONE]", "[RESOURCE]");
* TestPermissionsRequest testPermissionsRequestResource = TestPermissionsRequest.newBuilder().build();
* TestIamPermissionsDiskHttpRequest request = TestIamPermissionsDiskHttpRequest.newBuilder()
* .setResource(resource.toString())
* .setTestPermissionsRequestResource(testPermissionsRequestResource)
* .build();
* ApiFuture&lt;TestPermissionsResponse&gt; future = diskClient.testIamPermissionsDiskCallable().futureCall(request);
* // Do something
* TestPermissionsResponse response = future.get();
* }
* </code></pre>
*/
@BetaApi
public final UnaryCallable<TestIamPermissionsDiskHttpRequest, TestPermissionsResponse>
testIamPermissionsDiskCallable() {
return stub.testIamPermissionsDiskCallable();
}

@Override
public final void close() {
stub.close();
Expand Down
Loading