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

Commit 49fb069

Browse files
feat: add DeploymentResourcePool in aiplatform v1beta1 deployment_resource_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
1 parent f3e6d4f commit 49fb069

File tree

46 files changed

+18075
-49
lines changed

Some content is hidden

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

46 files changed

+18075
-49
lines changed

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceClient.java

+1,580
Large diffs are not rendered by default.

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DeploymentResourcePoolServiceSettings.java

+358
Large diffs are not rendered by default.

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json

+39
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,45 @@
6262
}
6363
}
6464
},
65+
"DeploymentResourcePoolService": {
66+
"clients": {
67+
"grpc": {
68+
"libraryClient": "DeploymentResourcePoolServiceClient",
69+
"rpcs": {
70+
"CreateDeploymentResourcePool": {
71+
"methods": ["createDeploymentResourcePoolAsync", "createDeploymentResourcePoolAsync", "createDeploymentResourcePoolAsync", "createDeploymentResourcePoolOperationCallable", "createDeploymentResourcePoolCallable"]
72+
},
73+
"DeleteDeploymentResourcePool": {
74+
"methods": ["deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolAsync", "deleteDeploymentResourcePoolOperationCallable", "deleteDeploymentResourcePoolCallable"]
75+
},
76+
"GetDeploymentResourcePool": {
77+
"methods": ["getDeploymentResourcePool", "getDeploymentResourcePool", "getDeploymentResourcePool", "getDeploymentResourcePoolCallable"]
78+
},
79+
"GetIamPolicy": {
80+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
81+
},
82+
"GetLocation": {
83+
"methods": ["getLocation", "getLocationCallable"]
84+
},
85+
"ListDeploymentResourcePools": {
86+
"methods": ["listDeploymentResourcePools", "listDeploymentResourcePools", "listDeploymentResourcePools", "listDeploymentResourcePoolsPagedCallable", "listDeploymentResourcePoolsCallable"]
87+
},
88+
"ListLocations": {
89+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
90+
},
91+
"QueryDeployedModels": {
92+
"methods": ["queryDeployedModels", "queryDeployedModels", "queryDeployedModelsPagedCallable", "queryDeployedModelsCallable"]
93+
},
94+
"SetIamPolicy": {
95+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
96+
},
97+
"TestIamPermissions": {
98+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
99+
}
100+
}
101+
}
102+
}
103+
},
65104
"EndpointService": {
66105
"clients": {
67106
"grpc": {

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java

+18
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,24 @@
3535
* }
3636
* }</pre>
3737
*
38+
* <p>======================= DeploymentResourcePoolServiceClient =======================
39+
*
40+
* <p>Service Description: A service that manages the DeploymentResourcePool resource.
41+
*
42+
* <p>Sample for DeploymentResourcePoolServiceClient:
43+
*
44+
* <pre>{@code
45+
* // This snippet has been automatically generated for illustrative purposes only.
46+
* // It may require modifications to work in your environment.
47+
* try (DeploymentResourcePoolServiceClient deploymentResourcePoolServiceClient =
48+
* DeploymentResourcePoolServiceClient.create()) {
49+
* DeploymentResourcePoolName name =
50+
* DeploymentResourcePoolName.of("[PROJECT]", "[LOCATION]", "[DEPLOYMENT_RESOURCE_POOL]");
51+
* DeploymentResourcePool response =
52+
* deploymentResourcePoolServiceClient.getDeploymentResourcePool(name);
53+
* }
54+
* }</pre>
55+
*
3856
* <p>======================= EndpointServiceClient =======================
3957
*
4058
* <p>Service Description: A service for managing Vertex AI's Endpoints.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.aiplatform.v1beta1.stub;
18+
19+
import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListDeploymentResourcePoolsPagedResponse;
20+
import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.ListLocationsPagedResponse;
21+
import static com.google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient.QueryDeployedModelsPagedResponse;
22+
23+
import com.google.api.core.BetaApi;
24+
import com.google.api.gax.core.BackgroundResource;
25+
import com.google.api.gax.rpc.OperationCallable;
26+
import com.google.api.gax.rpc.UnaryCallable;
27+
import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata;
28+
import com.google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest;
29+
import com.google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest;
30+
import com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata;
31+
import com.google.cloud.aiplatform.v1beta1.DeploymentResourcePool;
32+
import com.google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest;
33+
import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest;
34+
import com.google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse;
35+
import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest;
36+
import com.google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse;
37+
import com.google.cloud.location.GetLocationRequest;
38+
import com.google.cloud.location.ListLocationsRequest;
39+
import com.google.cloud.location.ListLocationsResponse;
40+
import com.google.cloud.location.Location;
41+
import com.google.iam.v1.GetIamPolicyRequest;
42+
import com.google.iam.v1.Policy;
43+
import com.google.iam.v1.SetIamPolicyRequest;
44+
import com.google.iam.v1.TestIamPermissionsRequest;
45+
import com.google.iam.v1.TestIamPermissionsResponse;
46+
import com.google.longrunning.Operation;
47+
import com.google.longrunning.stub.OperationsStub;
48+
import com.google.protobuf.Empty;
49+
import javax.annotation.Generated;
50+
51+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
52+
/**
53+
* Base stub class for the DeploymentResourcePoolService service API.
54+
*
55+
* <p>This class is for advanced usage and reflects the underlying API directly.
56+
*/
57+
@BetaApi
58+
@Generated("by gapic-generator-java")
59+
public abstract class DeploymentResourcePoolServiceStub implements BackgroundResource {
60+
61+
public OperationsStub getOperationsStub() {
62+
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
63+
}
64+
65+
public OperationCallable<
66+
CreateDeploymentResourcePoolRequest,
67+
DeploymentResourcePool,
68+
CreateDeploymentResourcePoolOperationMetadata>
69+
createDeploymentResourcePoolOperationCallable() {
70+
throw new UnsupportedOperationException(
71+
"Not implemented: createDeploymentResourcePoolOperationCallable()");
72+
}
73+
74+
public UnaryCallable<CreateDeploymentResourcePoolRequest, Operation>
75+
createDeploymentResourcePoolCallable() {
76+
throw new UnsupportedOperationException(
77+
"Not implemented: createDeploymentResourcePoolCallable()");
78+
}
79+
80+
public UnaryCallable<GetDeploymentResourcePoolRequest, DeploymentResourcePool>
81+
getDeploymentResourcePoolCallable() {
82+
throw new UnsupportedOperationException("Not implemented: getDeploymentResourcePoolCallable()");
83+
}
84+
85+
public UnaryCallable<ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsPagedResponse>
86+
listDeploymentResourcePoolsPagedCallable() {
87+
throw new UnsupportedOperationException(
88+
"Not implemented: listDeploymentResourcePoolsPagedCallable()");
89+
}
90+
91+
public UnaryCallable<ListDeploymentResourcePoolsRequest, ListDeploymentResourcePoolsResponse>
92+
listDeploymentResourcePoolsCallable() {
93+
throw new UnsupportedOperationException(
94+
"Not implemented: listDeploymentResourcePoolsCallable()");
95+
}
96+
97+
public OperationCallable<DeleteDeploymentResourcePoolRequest, Empty, DeleteOperationMetadata>
98+
deleteDeploymentResourcePoolOperationCallable() {
99+
throw new UnsupportedOperationException(
100+
"Not implemented: deleteDeploymentResourcePoolOperationCallable()");
101+
}
102+
103+
public UnaryCallable<DeleteDeploymentResourcePoolRequest, Operation>
104+
deleteDeploymentResourcePoolCallable() {
105+
throw new UnsupportedOperationException(
106+
"Not implemented: deleteDeploymentResourcePoolCallable()");
107+
}
108+
109+
public UnaryCallable<QueryDeployedModelsRequest, QueryDeployedModelsPagedResponse>
110+
queryDeployedModelsPagedCallable() {
111+
throw new UnsupportedOperationException("Not implemented: queryDeployedModelsPagedCallable()");
112+
}
113+
114+
public UnaryCallable<QueryDeployedModelsRequest, QueryDeployedModelsResponse>
115+
queryDeployedModelsCallable() {
116+
throw new UnsupportedOperationException("Not implemented: queryDeployedModelsCallable()");
117+
}
118+
119+
public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
120+
listLocationsPagedCallable() {
121+
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
122+
}
123+
124+
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
125+
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
126+
}
127+
128+
public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
129+
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
130+
}
131+
132+
public UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
133+
throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()");
134+
}
135+
136+
public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
137+
throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()");
138+
}
139+
140+
public UnaryCallable<TestIamPermissionsRequest, TestIamPermissionsResponse>
141+
testIamPermissionsCallable() {
142+
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
143+
}
144+
145+
@Override
146+
public abstract void close();
147+
}

0 commit comments

Comments
 (0)