Content-Length: 859159 | pFad | https://github.com/googleapis/googleapis/commit/cc51e4818f5f928f34e801252cc11db73e097933

F8 feat!: Removes AcceleratorType.TPU_V2 and TPU_V3 constants · googleapis/googleapis@cc51e48 · GitHub
Skip to content

Commit cc51e48

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat!: Removes AcceleratorType.TPU_V2 and TPU_V3 constants
feat: Adds AcceleratorType.NVIDIA_TESLA_A100 constant feat: Adds BigQuery output table field to batch prediction job output config feat: Adds JobState.JOB_STATE_EXPIRED constant feat: Adds AutoscalingMetricSpec message feat: Adds PipelineService methods: CreatePipelineJob, GetPipelineJob, ListPipelineJobs, DeletePipelineJobs, CancelPipelineJobs feat: Adds fields to Study message PiperOrigin-RevId: 384714314
1 parent 34b0ce6 commit cc51e48

16 files changed

+1227
-29
lines changed

google/cloud/aiplatform/v1/BUILD.bazel

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was automatically generated by BuildFileGenerator
2-
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
33

44
# Most of the manual changes to this file will be overwritten.
55
# It's **only** allowed to change the following rule attribute values:
@@ -31,8 +31,10 @@ proto_library(
3131
"accelerator_type.proto",
3232
"annotation.proto",
3333
"annotation_spec.proto",
34+
"artifact.proto",
3435
"batch_prediction_job.proto",
3536
"completion_stats.proto",
37+
"context.proto",
3638
"custom_job.proto",
3739
"data_item.proto",
3840
"data_labeling_job.proto",
@@ -43,6 +45,7 @@ proto_library(
4345
"endpoint.proto",
4446
"endpoint_service.proto",
4547
"env_var.proto",
48+
"execution.proto",
4649
"hyperparameter_tuning_job.proto",
4750
"io.proto",
4851
"job_service.proto",
@@ -56,6 +59,7 @@ proto_library(
5659
"model_evaluation_slice.proto",
5760
"model_service.proto",
5861
"operation.proto",
62+
"pipeline_job.proto",
5963
"pipeline_service.proto",
6064
"pipeline_state.proto",
6165
"prediction_service.proto",
@@ -64,11 +68,13 @@ proto_library(
6468
"study.proto",
6569
"training_pipeline.proto",
6670
"user_action_reference.proto",
71+
"value.proto",
6772
],
6873
deps = [
6974
"//google/api:annotations_proto",
7075
"//google/api:client_proto",
7176
"//google/api:field_behavior_proto",
77+
"//google/api:httpbody_proto",
7278
"//google/api:resource_proto",
7379
"//google/longrunning:operations_proto",
7480
"//google/rpc:status_proto",
@@ -183,6 +189,7 @@ go_proto_library(
183189
protos = [":aiplatform_proto"],
184190
deps = [
185191
"//google/api:annotations_go_proto",
192+
"//google/api:httpbody_go_proto",
186193
"//google/longrunning:longrunning_go_proto",
187194
"//google/rpc:status_go_proto",
188195
"//google/type:money_go_proto",
@@ -194,9 +201,11 @@ go_gapic_library(
194201
srcs = [":aiplatform_proto_with_info"],
195202
grpc_service_config = "aiplatform_grpc_service_config.json",
196203
importpath = "cloud.google.com/go/aiplatform/apiv1;aiplatform",
204+
metadata = True,
197205
service_yaml = "aiplatform_v1.yaml",
198206
deps = [
199207
":aiplatform_go_proto",
208+
"//google/api:httpbody_go_proto",
200209
"//google/longrunning:longrunning_go_proto",
201210
"@com_google_cloud_go//longrunning:go_default_library",
202211
"@com_google_cloud_go//longrunning/autogen:go_default_library",
@@ -217,6 +226,7 @@ go_gapic_assembly_pkg(
217226
name = "gapi-cloud-aiplatform-v1-go",
218227
deps = [
219228
":aiplatform_go_gapic",
229+
":aiplatform_go_gapic_srcjar-metadata.srcjar",
220230
":aiplatform_go_gapic_srcjar-test.srcjar",
221231
":aiplatform_go_proto",
222232
],
@@ -278,6 +288,7 @@ php_gapic_library(
278288
name = "aiplatform_php_gapic",
279289
srcs = [":aiplatform_proto_with_info"],
280290
grpc_service_config = "aiplatform_grpc_service_config.json",
291+
service_yaml = "aiplatform_v1.yaml",
281292
deps = [
282293
":aiplatform_php_grpc",
283294
":aiplatform_php_proto",

google/cloud/aiplatform/v1/accelerator_type.proto

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -46,9 +46,6 @@ enum AcceleratorType {
4646
// Nvidia Tesla T4 GPU.
4747
NVIDIA_TESLA_T4 = 5;
4848

49-
// TPU v2.
50-
TPU_V2 = 6;
51-
52-
// TPU v3.
53-
TPU_V3 = 7;
49+
// Nvidia Tesla A100 GPU.
50+
NVIDIA_TESLA_A100 = 8;
5451
}

google/cloud/aiplatform/v1/aiplatform_v1.yaml

Lines changed: 313 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/cloud/aiplatform/v1/value.proto";
22+
import "google/protobuf/struct.proto";
23+
import "google/protobuf/timestamp.proto";
24+
import "google/api/annotations.proto";
25+
26+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
27+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
28+
option java_multiple_files = true;
29+
option java_outer_classname = "ArtifactProto";
30+
option java_package = "com.google.cloud.aiplatform.v1";
31+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
32+
option ruby_package = "Google::Cloud::AIPlatform::V1";
33+
34+
// Instance of a general artifact.
35+
message Artifact {
36+
option (google.api.resource) = {
37+
type: "aiplatform.googleapis.com/Artifact"
38+
pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}"
39+
};
40+
41+
// Describes the state of the Artifact.
42+
enum State {
43+
// Unspecified state for the Artifact.
44+
STATE_UNSPECIFIED = 0;
45+
46+
// A state used by systems like Vertex Pipelines to indicate that the
47+
// underlying data item represented by this Artifact is being created.
48+
PENDING = 1;
49+
50+
// A state indicating that the Artifact should exist, unless something
51+
// external to the system deletes it.
52+
LIVE = 2;
53+
}
54+
55+
// Output only. The resource name of the Artifact.
56+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
57+
58+
// User provided display name of the Artifact.
59+
// May be up to 128 Unicode characters.
60+
string display_name = 2;
61+
62+
// The uniform resource identifier of the artifact file.
63+
// May be empty if there is no actual artifact file.
64+
string uri = 6;
65+
66+
// An eTag used to perform consistent read-modify-write updates. If not set, a
67+
// blind "overwrite" update happens.
68+
string etag = 9;
69+
70+
// The labels with user-defined metadata to organize your Artifacts.
71+
//
72+
// Label keys and values can be no longer than 64 characters
73+
// (Unicode codepoints), can only contain lowercase letters, numeric
74+
// characters, underscores and dashes. International characters are allowed.
75+
// No more than 64 user labels can be associated with one Artifact (System
76+
// labels are excluded).
77+
map<string, string> labels = 10;
78+
79+
// Output only. Timestamp when this Artifact was created.
80+
google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
81+
82+
// Output only. Timestamp when this Artifact was last updated.
83+
google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
84+
85+
// The state of this Artifact. This is a property of the Artifact, and does
86+
// not imply or capture any ongoing process. This property is managed by
87+
// clients (such as Vertex Pipelines), and the system does not prescribe
88+
// or check the validity of state transitions.
89+
State state = 13;
90+
}

google/cloud/aiplatform/v1/batch_prediction_job.proto

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ message BatchPredictionJob {
9494
// `errors_N.<extension>` files are created (N depends on total number
9595
// of failed predictions). These files contain the failed instances,
9696
// as per their schema, followed by an additional `error` field which as
97-
// value has
98-
// [`google.rpc.Status`](Status)
97+
// value has [google.rpc.Status][google.rpc.Status]
9998
// containing only `code` and `message` fields.
10099
GcsDestination gcs_destination = 2;
101100

@@ -115,7 +114,7 @@ message BatchPredictionJob {
115114
// prediction schemata. The `errors` table contains rows for which the
116115
// prediction has failed, it has instance columns, as per the
117116
// instance schema, followed by a single "errors" column, which as values
118-
// has [`google.rpc.Status`](Status)
117+
// has [google.rpc.Status][google.rpc.Status]
119118
// represented as a STRUCT, and containing only `code` and `message`.
120119
BigQueryDestination bigquery_destination = 3;
121120
}
@@ -140,6 +139,12 @@ message BatchPredictionJob {
140139
// format, into which the prediction output is written.
141140
string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
142141
}
142+
143+
// Output only. The name of the BigQuery table created, in
144+
// `predictions_<timestamp>`
145+
// format, into which the prediction output is written.
146+
// Can be used by UI to generate the BigQuery output path, for example.
147+
string bigquery_output_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
143148
}
144149

145150
// Output only. Resource name of the BatchPredictionJob.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.aiplatform.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/cloud/aiplatform/v1/value.proto";
22+
import "google/protobuf/struct.proto";
23+
import "google/protobuf/timestamp.proto";
24+
import "google/api/annotations.proto";
25+
26+
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
27+
option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
28+
option java_multiple_files = true;
29+
option java_outer_classname = "ContextProto";
30+
option java_package = "com.google.cloud.aiplatform.v1";
31+
option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
32+
option ruby_package = "Google::Cloud::AIPlatform::V1";
33+
34+
// Instance of a general context.
35+
message Context {
36+
option (google.api.resource) = {
37+
type: "aiplatform.googleapis.com/Context"
38+
pattern: "projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}"
39+
};
40+
41+
// Output only. The resource name of the Context.
42+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
43+
44+
// User provided display name of the Context.
45+
// May be up to 128 Unicode characters.
46+
string display_name = 2;
47+
48+
// An eTag used to perform consistent read-modify-write updates. If not set, a
49+
// blind "overwrite" update happens.
50+
string etag = 8;
51+
52+
// The labels with user-defined metadata to organize your Contexts.
53+
//
54+
// Label keys and values can be no longer than 64 characters
55+
// (Unicode codepoints), can only contain lowercase letters, numeric
56+
// characters, underscores and dashes. International characters are allowed.
57+
// No more than 64 user labels can be associated with one Context (System
58+
// labels are excluded).
59+
map<string, string> labels = 9;
60+
61+
// Output only. Timestamp when this Context was created.
62+
google.protobuf.Timestamp create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
63+
64+
// Output only. Timestamp when this Context was last updated.
65+
google.protobuf.Timestamp update_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
66+
67+
// Output only. A list of resource names of Contexts that are parents of this Context.
68+
// A Context may have at most 10 parent_contexts.
69+
repeated string parent_contexts = 12 [
70+
(google.api.field_behavior) = OUTPUT_ONLY,
71+
(google.api.resource_reference) = {
72+
type: "aiplatform.googleapis.com/Context"
73+
}
74+
];
75+
}

google/cloud/aiplatform/v1/custom_job.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ message CustomJobSpec {
120120
//
121121
// Private services access must already be configured for the network. If left
122122
// unspecified, the job is not peered with any network.
123-
string network = 5;
123+
string network = 5 [(google.api.resource_reference) = {
124+
type: "compute.googleapis.com/Network"
125+
}];
124126

125127
// The Cloud Storage location to store the output of this CustomJob or
126128
// HyperparameterTuningJob. For HyperparameterTuningJob,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/googleapis/commit/cc51e4818f5f928f34e801252cc11db73e097933

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy