Skip to content

Commit 273ff46

Browse files
feat: [security] added protos for publicca v1alpha1 (#6255)
* feat: added protos for publicca v1alpha1 PiperOrigin-RevId: 746071987 Source-Link: googleapis/googleapis@08a8380 Source-Link: googleapis/googleapis-gen@ee29b6a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5LXB1YmxpY2NhLy5Pd2xCb3QueWFtbCIsImgiOiJlZTI5YjZhNzllZWZlYjZjZTczYmE3ZDAzMDZlNDA1YWRhZWRmYzU1In0= * 🦉 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>
1 parent b883d1d commit 273ff46

16 files changed

Lines changed: 2552 additions & 2 deletions

packages/google-cloud-security-publicca/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
109109
| Sample | Source Code | Try it |
110110
| --------------------------- | --------------------------------- | ------ |
111111
| Public_certificate_authority_service.create_external_account_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-security-publicca/samples/generated/v1/public_certificate_authority_service.create_external_account_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-security-publicca/samples/generated/v1/public_certificate_authority_service.create_external_account_key.js,packages/google-cloud-security-publicca/samples/README.md) |
112+
| Public_certificate_authority_service.create_external_account_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-security-publicca/samples/generated/v1alpha1/public_certificate_authority_service.create_external_account_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-security-publicca/samples/generated/v1alpha1/public_certificate_authority_service.create_external_account_key.js,packages/google-cloud-security-publicca/samples/README.md) |
112113
| Public_certificate_authority_service.create_external_account_key | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-security-publicca/samples/generated/v1beta1/public_certificate_authority_service.create_external_account_key.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-security-publicca/samples/generated/v1beta1/public_certificate_authority_service.create_external_account_key.js,packages/google-cloud-security-publicca/samples/README.md) |
113114
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-security-publicca/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-security-publicca/samples/quickstart.js,packages/google-cloud-security-publicca/samples/README.md) |
114115

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Copyright 2025 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+
15+
syntax = "proto3";
16+
17+
package google.cloud.security.publicca.v1alpha1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
22+
option csharp_namespace = "Google.Cloud.Security.PublicCA.V1Alpha1";
23+
option go_package = "cloud.google.com/go/security/publicca/apiv1alpha1/publiccapb;publiccapb";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "ResourcesProto";
26+
option java_package = "com.google.cloud.security.publicca.v1alpha1";
27+
option php_namespace = "Google\\Cloud\\Security\\PublicCA\\V1alpha1";
28+
option ruby_package = "Google::Cloud::Security::PublicCA::V1alpha1";
29+
30+
// A representation of an ExternalAccountKey used for [external account
31+
// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) within ACME.
32+
message ExternalAccountKey {
33+
option (google.api.resource) = {
34+
type: "publicca.googleapis.com/ExternalAccountKey"
35+
pattern: "projects/{project}/locations/{location}/externalAccountKeys/{external_account_key}"
36+
};
37+
38+
// Output only. Resource name.
39+
// projects/{project}/locations/{location}/externalAccountKeys/{key_id}
40+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
41+
42+
// Output only. Key ID.
43+
// It is generated by the PublicCertificateAuthorityService
44+
// when the ExternalAccountKey is created
45+
string key_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
46+
47+
// Output only. Base64-URL-encoded HS256 key.
48+
// It is generated by the PublicCertificateAuthorityService
49+
// when the ExternalAccountKey is created
50+
bytes b64_mac_key = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
51+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
// Copyright 2025 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+
15+
syntax = "proto3";
16+
17+
package google.cloud.security.publicca.v1alpha1;
18+
19+
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
21+
import "google/api/field_behavior.proto";
22+
import "google/api/resource.proto";
23+
import "google/cloud/security/publicca/v1alpha1/resources.proto";
24+
25+
option csharp_namespace = "Google.Cloud.Security.PublicCA.V1Alpha1";
26+
option go_package = "cloud.google.com/go/security/publicca/apiv1alpha1/publiccapb;publiccapb";
27+
option java_multiple_files = true;
28+
option java_outer_classname = "ServiceProto";
29+
option java_package = "com.google.cloud.security.publicca.v1alpha1";
30+
option php_namespace = "Google\\Cloud\\Security\\PublicCA\\V1alpha1";
31+
option ruby_package = "Google::Cloud::Security::PublicCA::V1alpha1";
32+
33+
// Manages the resources required for ACME [external account
34+
// binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for
35+
// the public certificate authority service.
36+
service PublicCertificateAuthorityService {
37+
option (google.api.default_host) = "publicca.googleapis.com";
38+
option (google.api.oauth_scopes) =
39+
"https://www.googleapis.com/auth/cloud-platform";
40+
41+
// Creates a new
42+
// [ExternalAccountKey][google.cloud.security.publicca.v1alpha1.ExternalAccountKey]
43+
// bound to the project.
44+
rpc CreateExternalAccountKey(CreateExternalAccountKeyRequest)
45+
returns (ExternalAccountKey) {
46+
option (google.api.http) = {
47+
post: "/v1alpha1/{parent=projects/*/locations/*}/externalAccountKeys"
48+
body: "external_account_key"
49+
};
50+
option (google.api.method_signature) = "parent,external_account_key";
51+
}
52+
}
53+
54+
// Creates a new
55+
// [ExternalAccountKey][google.cloud.security.publicca.v1alpha1.ExternalAccountKey]
56+
// in a given project.
57+
message CreateExternalAccountKeyRequest {
58+
// Required. The parent resource where this external_account_key will be
59+
// created. Format: projects/[project_id]/locations/[location]. At present
60+
// only the "global" location is supported.
61+
string parent = 1 [
62+
(google.api.field_behavior) = REQUIRED,
63+
(google.api.resource_reference) = {
64+
child_type: "publicca.googleapis.com/ExternalAccountKey"
65+
}
66+
];
67+
68+
// Required. The external account key to create. This field only exists to
69+
// future-proof the API. At present, all fields in ExternalAccountKey are
70+
// output only and all values are ignored. For the purpose of the
71+
// CreateExternalAccountKeyRequest, set it to a default/empty value.
72+
ExternalAccountKey external_account_key = 2
73+
[(google.api.field_behavior) = REQUIRED];
74+
}

0 commit comments

Comments
 (0)