xref: /aosp_15_r20/external/googleapis/google/cloud/aiplatform/v1beta1/network_spec.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.aiplatform.v1beta1;
18
19import "google/api/resource.proto";
20
21option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1";
22option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb";
23option java_multiple_files = true;
24option java_outer_classname = "NetworkSpecProto";
25option java_package = "com.google.cloud.aiplatform.v1beta1";
26option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1";
27option ruby_package = "Google::Cloud::AIPlatform::V1beta1";
28option (google.api.resource_definition) = {
29  type: "compute.googleapis.com/Subnetwork"
30  pattern: "projects/{project}/regions/{region}/subnetworks/{subnetwork}"
31};
32
33// Network spec.
34message NetworkSpec {
35  // Whether to enable public internet access. Default false.
36  bool enable_internet_access = 1;
37
38  // The full name of the Google Compute Engine
39  // [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks)
40  string network = 2 [
41    (google.api.resource_reference) = { type: "compute.googleapis.com/Network" }
42  ];
43
44  // The name of the subnet that this instance is in.
45  // Format:
46  // `projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}`
47  string subnetwork = 3 [(google.api.resource_reference) = {
48    type: "compute.googleapis.com/Subnetwork"
49  }];
50}
51