Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
feat: add DeploymentResourcePool in aiplatform v1beta1 deployment_res…
Browse files Browse the repository at this point in the history
…ource_pool.proto (#998)

- [ ] Regenerate this pull request now.

feat: add DeploymentResourcePoolService in aiplatform v1beta1 deployment_resource_pool_service.proto
feat: add SHARED_RESOURCES to DeploymentResourcesType in aiplatform v1beta1 model.proto

PiperOrigin-RevId: 463147866

Source-Link: googleapis/googleapis@6276461

Source-Link: https://github.com/googleapis/googleapis-gen/commit/57665f4b491d7c0f1e466e430701dbae0472f64e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTc2NjVmNGI0OTFkN2MwZjFlNDY2ZTQzMDcwMWRiYWUwNDcyZjY0ZSJ9

chore(bazel): update protobuf to v3.21.3
chore(bazel): update gax-java to 2.18.4

PiperOrigin-RevId: 463115700

Source-Link: googleapis/googleapis@52130a9

Source-Link: https://github.com/googleapis/googleapis-gen/commit/6a4d9d9bb3afb20b0f5fa4f5d9f6740b1d0eb19a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmE0ZDlkOWJiM2FmYjIwYjBmNWZhNGY1ZDlmNjc0MGIxZDBlYjE5YSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jul 26, 2022
1 parent f3e6d4f commit 49fb069
Show file tree
Hide file tree
Showing 46 changed files with 18,075 additions and 49 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
Expand Up @@ -62,6 +62,45 @@
}
}
},
"DeploymentResourcePoolService": {
"clients": {
"grpc": {
"libraryClient": "DeploymentResourcePoolServiceClient",
"rpcs": {
"CreateDeploymentResourcePool": {
"methods": ["createDeploymentResourcePoolAsync", "createDeploymentResourcePoolAsync", "createDeploymentResourcePoolAsync", "createDeploymentResourcePoolOperationCallable", "createDeploymentResourcePoolCallable"]
},
"DeleteDeploymentResourcePool": {
"methods": ["deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolOperationCallable", "deleteDeploymentResourcePoolCallable"]
},
"GetDeploymentResourcePool": {
"methods": ["getDeploymentResourcePool", "getDeploymentResourcePool", "getDeploymentResourcePool", "getDeploymentResourcePoolCallable"]
},
"GetIamPolicy": {
"methods": ["getIamPolicy", "getIamPolicyCallable"]
},
"GetLocation": {
"methods": ["getLocation", "getLocationCallable"]
},
"ListDeploymentResourcePools": {
"methods": ["listDeploymentResourcePools", "listDeploymentResourcePools", "listDeploymentResourcePools", "listDeploymentResourcePoolsPagedCallable", "listDeploymentResourcePoolsCallable"]
},
"ListLocations": {
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
},
"QueryDeployedModels": {
"methods": ["queryDeployedModels", "queryDeployedModels", "queryDeployedModelsPagedCallable", "queryDeployedModelsCallable"]
},
"SetIamPolicy": {
"methods": ["setIamPolicy", "setIamPolicyCallable"]
},
"TestIamPermissions": {
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
}
}
}
}
},
"EndpointService": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
* }
* }</pre>
*
* <p>======================= DeploymentResourcePoolServiceClient =======================
*
* <p>Service Description: A service that manages the DeploymentResourcePool resource.
*
* <p>Sample for DeploymentResourcePoolServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
* DeploymentResourcePoolServiceClient.create()) {
* DeploymentResourcePoolName name =
* DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
* DeploymentResourcePool response =
* deploymentResourcePoolServiceClient.getDeploymentResourcePool(name);
* }
* }</pre>
*
* <p>======================= EndpointServiceClient =======================
*
* <p>Service Description: A service for managing Vertex AI's Endpoints.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
/*
* 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.aiplatform.v1beta1.stub;

import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListDeploymentResourcePoolsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListLocationsPagedResponse;
import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.QueryDeployedModelsPagedResponse;

import com.google.api.core.BetaApi;
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.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest;
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
import com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool;
import com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest;
import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest;
import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse;
import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest;
import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse;
import com.google.cloud.location.GetLocationRequest;
import com.google.cloud.location.ListLocationsRequest;
import com.google.cloud.location.ListLocationsResponse;
import com.google.cloud.location.Location;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
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 DeploymentResourcePoolService service API.
*
* <p>This class is for advanced usage and reflects the underlying API directly.
*/
@BetaApi
@Generated("by gapic-generator-java")
public abstract class DeploymentResourcePoolServiceStub implements BackgroundResource {

public OperationsStub getOperationsStub() {
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
}

public OperationCallable<
CreateDeploymentResourcePoolRequest,
DeploymentResourcePool,
CreateDeploymentResourcePoolOperationMetadata>
createDeploymentResourcePoolOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: createDeploymentResourcePoolOperationCallable()");
}

public UnaryCallable<CreateDeploymentResourcePoolRequest, Operation>
createDeploymentResourcePoolCallable() {
throw new UnsupportedOperationException(
"Not implemented: createDeploymentResourcePoolCallable()");
}

public UnaryCallable<GetDeploymentResourcePoolRequest, DeploymentResourcePool>
getDeploymentResourcePoolCallable() {
throw new UnsupportedOperationException("Not implemented: getDeploymentResourcePoolCallable()");
}

public UnaryCallable<ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsPagedResponse>
listDeploymentResourcePoolsPagedCallable() {
throw new UnsupportedOperationException(
"Not implemented: listDeploymentResourcePoolsPagedCallable()");
}

public UnaryCallable<ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse>
listDeploymentResourcePoolsCallable() {
throw new UnsupportedOperationException(
"Not implemented: listDeploymentResourcePoolsCallable()");
}

public OperationCallable<DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata>
deleteDeploymentResourcePoolOperationCallable() {
throw new UnsupportedOperationException(
"Not implemented: deleteDeploymentResourcePoolOperationCallable()");
}

public UnaryCallable<DeleteDeploymentResourcePoolRequest, Operation>
deleteDeploymentResourcePoolCallable() {
throw new UnsupportedOperationException(
"Not implemented: deleteDeploymentResourcePoolCallable()");
}

public UnaryCallable<QueryDeployedModelsRequest, QueryDeployedModelsPagedResponse>
queryDeployedModelsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: queryDeployedModelsPagedCallable()");
}

public UnaryCallable<QueryDeployedModelsRequest, QueryDeployedModelsResponse>
queryDeployedModelsCallable() {
throw new UnsupportedOperationException("Not implemented: queryDeployedModelsCallable()");
}

public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
listLocationsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
}

public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
}

public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
}

public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
}

public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
}

public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsCallable() {
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
}

@Override
public abstract void close();
}
Loading

0 comments on commit 49fb069

Please sign in to comment.