Skip to content

Commit 89d75d5

Browse files
Google APIscopybara-github
authored andcommitted
feat: add network_attachment to PscInterfaceConfig
feat: add psc_interface_config to CustomJobSpec feat: add psc_interface_config to PersistentResource feat: add psc_interface_config to PipelineJob PiperOrigin-RevId: 765264778
1 parent d03cc13 commit 89d75d5

4 files changed

Lines changed: 32 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/custom_job.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import "google/cloud/aiplatform/v1/env_var.proto";
2323
import "google/cloud/aiplatform/v1/io.proto";
2424
import "google/cloud/aiplatform/v1/job_state.proto";
2525
import "google/cloud/aiplatform/v1/machine_resources.proto";
26+
import "google/cloud/aiplatform/v1/service_networking.proto";
2627
import "google/protobuf/duration.proto";
2728
import "google/protobuf/timestamp.proto";
2829
import "google/rpc/status.proto";
@@ -178,6 +179,10 @@ message CustomJobSpec {
178179
repeated string reserved_ip_ranges = 13
179180
[(google.api.field_behavior) = OPTIONAL];
180181

182+
// Optional. Configuration for PSC-I for CustomJob.
183+
PscInterfaceConfig psc_interface_config = 21
184+
[(google.api.field_behavior) = OPTIONAL];
185+
181186
// The Cloud Storage location to store the output of this CustomJob or
182187
// HyperparameterTuningJob. For HyperparameterTuningJob,
183188
// the baseOutputDirectory of

google/cloud/aiplatform/v1/persistent_resource.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/aiplatform/v1/encryption_spec.proto";
2222
import "google/cloud/aiplatform/v1/machine_resources.proto";
23+
import "google/cloud/aiplatform/v1/service_networking.proto";
2324
import "google/protobuf/timestamp.proto";
2425
import "google/rpc/status.proto";
2526

@@ -131,6 +132,10 @@ message PersistentResource {
131132
(google.api.resource_reference) = { type: "compute.googleapis.com/Network" }
132133
];
133134

135+
// Optional. Configuration for PSC-I for PersistentResource.
136+
PscInterfaceConfig psc_interface_config = 17
137+
[(google.api.field_behavior) = OPTIONAL];
138+
134139
// Optional. Customer-managed encryption key spec for a PersistentResource.
135140
// If set, this PersistentResource and all sub-resources of this
136141
// PersistentResource will be secured by this key.

google/cloud/aiplatform/v1/pipeline_job.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import "google/cloud/aiplatform/v1/encryption_spec.proto";
2424
import "google/cloud/aiplatform/v1/execution.proto";
2525
import "google/cloud/aiplatform/v1/pipeline_failure_policy.proto";
2626
import "google/cloud/aiplatform/v1/pipeline_state.proto";
27+
import "google/cloud/aiplatform/v1/service_networking.proto";
2728
import "google/cloud/aiplatform/v1/value.proto";
2829
import "google/protobuf/struct.proto";
2930
import "google/protobuf/timestamp.proto";
@@ -197,6 +198,10 @@ message PipelineJob {
197198
// Example: ['vertex-ai-ip-range'].
198199
repeated string reserved_ip_ranges = 25;
199200

201+
// Optional. Configuration for PSC-I for PipelineJob.
202+
PscInterfaceConfig psc_interface_config = 31
203+
[(google.api.field_behavior) = OPTIONAL];
204+
200205
// A template uri from where the
201206
// [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec],
202207
// if empty, will be downloaded. Currently, only uri from Vertex Template

google/cloud/aiplatform/v1/service_networking.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,20 @@ message PscAutomatedEndpoints {
7474
// Ip Address created by the automated forwarding rule.
7575
string match_address = 3;
7676
}
77+
78+
// Configuration for PSC-I.
79+
message PscInterfaceConfig {
80+
// Optional. The name of the Compute Engine
81+
// [network
82+
// attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to
83+
// attach to the resource within the region and user project.
84+
// To specify this field, you must have already [created a network attachment]
85+
// (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments).
86+
// This field is only used for resources using PSC-I.
87+
string network_attachment = 1 [
88+
(google.api.field_behavior) = OPTIONAL,
89+
(google.api.resource_reference) = {
90+
type: "compute.googleapis.com/NetworkAttachment"
91+
}
92+
];
93+
}

0 commit comments

Comments
 (0)