Skip to content

Commit

Permalink
feat: [securesourcemanager] add field private_config to message `.g…
Browse files Browse the repository at this point in the history
…oogle.cloud.securesourcemanager.v1.Instance` (#5534)

* feat: add field `private_config` to message `.google.cloud.securesourcemanager.v1.Instance`
feat: add constant `UNKNOWN` to field `State` in message `.google.cloud.securesourcemanager.v1.Instance`
docs: A comment for field `instance` in message `.google.cloud.securesourcemanager.v1.Repository` is updated to include data plane vs control plane behavior.

PiperOrigin-RevId: 650735536

Source-Link: googleapis/googleapis@847b40b

Source-Link: googleapis/googleapis-gen@dd9deaf
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyZXNvdXJjZW1hbmFnZXIvLk93bEJvdC55YW1sIiwiaCI6ImRkOWRlYWY3YzlhMWQ5MmI5ZjNmMjQxY2I4YzdjY2ZhNTNiNmYyNTQifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jul 11, 2024
1 parent 371b36a commit d43007b
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 5 deletions.
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

0 comments on commit d43007b

Please sign in to comment.