Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PiperOrigin-RevId: 609107204
- Loading branch information
Googler
committed
Feb 21, 2024
1 parent
c97fec8
commit 4392b4a
Showing
2 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
components/google-cloud/google_cloud_pipeline_components/proto/preflight_validations.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
syntax = "proto3"; | ||
|
||
package preflight_validations; | ||
|
||
option java_multiple_files = true; | ||
|
||
// Describes the details of a validation item. | ||
message ValidationItem { | ||
// Required. Metadata of the validation item. | ||
oneof metadata { // Using 'oneof' for specialized metadata | ||
// Metadata for Google Cloud Service Account. | ||
GoogleCloudServiceAccountMetadata sa_metadata = 2; | ||
// Metadata for Google Cloud Project Quota. | ||
GoogleCloudProjectQuotaMetadata quota_metadata = 3; | ||
// Metadata for Google Cloud Api Enablement. | ||
GoogleCloudApiEnablementMetadata api_metadata = 4; | ||
} | ||
} | ||
|
||
// Describes the metadata of validation type of GOOGLE_CLOUD_PROJECT_QUOTA. | ||
message GoogleCloudProjectQuotaMetadata { | ||
// Required. Service name of the quota. Example: "compute.googleapis.com" | ||
string service_name = 1; | ||
// Required. The map of quota metrics name to its recommended value. | ||
// Example: {"CPUs": 440} | ||
map<string, int64> metrics_recommendations = 2; | ||
} | ||
|
||
// Describes the metadata of | ||
// GOOGLE_CLOUD_SERVICE_ACCOUNT_PERMISSION. | ||
message GoogleCloudServiceAccountMetadata { | ||
// Required. Principal name of the service account. | ||
string principal_name = 1; | ||
// Required. Permissions that the service account should have. | ||
// Example: "aiplatform.metadataStores.get" | ||
repeated string permissions = 2; | ||
} | ||
|
||
// Describes the metadata of validation type of GOOGLE_CLOUD_API_ENABLEMENT. | ||
message GoogleCloudApiEnablementMetadata { | ||
// Required. Service names of Google Cloud Api. | ||
repeated string service_names = 1; | ||
} |
58 changes: 58 additions & 0 deletions
58
components/google-cloud/google_cloud_pipeline_components/proto/preflight_validations_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.