Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(components): internal #10505

Merged
merged 1 commit into from Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.