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

feat: [securesourcemanager] add field private_config to message .google.cloud.securesourcemanager.v1.Instance #5534

Merged
merged 2 commits into from
Jul 11, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ message Instance {

// Instance is paused.
PAUSED = 4;

// Instance is unknown, we are not sure if it's functioning.
UNKNOWN = 6;
}

// Provides information about the current instance state.
Expand Down Expand Up @@ -252,6 +255,43 @@ message Instance {
string git_ssh = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// PrivateConfig includes settings for private instance.
message PrivateConfig {
// Required. Immutable. Indicate if it's private instance.
bool is_private = 1 [
(google.api.field_behavior) = IMMUTABLE,
(google.api.field_behavior) = REQUIRED
];

// Required. Immutable. CA pool resource, resource must in the format of
// `projects/{project}/locations/{location}/caPools/{ca_pool}`.
string ca_pool = 2 [
(google.api.field_behavior) = IMMUTABLE,
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CaPool"
}
];

// Output only. Service Attachment for HTTP, resource is in the format of
// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
string http_service_attachment = 3 [
(google.api.field_behavior) = OUTPUT_ONLY,
(google.api.resource_reference) = {
type: "compute.googleapis.com/ServiceAttachment"
}
];

// Output only. Service Attachment for SSH, resource is in the format of
// `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
string ssh_service_attachment = 4 [
(google.api.field_behavior) = OUTPUT_ONLY,
(google.api.resource_reference) = {
type: "compute.googleapis.com/ServiceAttachment"
}
];
}

// Optional. A unique identifier for an instance. The name should be of the
// format:
// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
Expand All @@ -277,6 +317,9 @@ message Instance {
// Optional. Labels as key value pairs.
map<string, string> labels = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Private settings for private instance.
PrivateConfig private_config = 13 [(google.api.field_behavior) = OPTIONAL];

// Output only. Current state of the instance.
State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY];

Expand Down Expand Up @@ -465,10 +508,12 @@ message Repository {
// characters.
string description = 2 [(google.api.field_behavior) = OPTIONAL];

// Output only. The name of the instance in which the repository is hosted,
// Optional. The name of the instance in which the repository is hosted,
// formatted as
// `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
string instance = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
// For data plane CreateRepository requests, this field is output only.
// For control plane CreateRepository requests, this field is used as input.
string instance = 3 [(google.api.field_behavior) = OPTIONAL];

// Output only. Unique identifier of the repository.
string uid = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down
124 changes: 123 additions & 1 deletion packages/google-cloud-securesourcemanager/protos/protos.d.ts

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

Loading
Loading