service.proto 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.cloud.security.publicca.v1beta1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/cloud/security/publicca/v1beta1/resources.proto";
  21. option cc_enable_arenas = true;
  22. option csharp_namespace = "Google.Cloud.Security.PublicCA.V1Beta1";
  23. option go_package = "google.golang.org/genproto/googleapis/cloud/security/publicca/v1beta1;publicca";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "ServiceProto";
  26. option java_package = "com.google.cloud.security.publicca.v1beta1";
  27. option php_namespace = "Google\\Cloud\\Security\\PublicCA\\V1beta1";
  28. option ruby_package = "Google::Cloud::Security::PublicCA::V1beta1";
  29. // Manages the resources required for ACME [external account
  30. // binding](https://tools.ietf.org/html/rfc8555#section-7.3.4) for
  31. // the public certificate authority service.
  32. service PublicCertificateAuthorityService {
  33. option (google.api.default_host) = "publicca.googleapis.com";
  34. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  35. // Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project.
  36. rpc CreateExternalAccountKey(CreateExternalAccountKeyRequest) returns (ExternalAccountKey) {
  37. option (google.api.http) = {
  38. post: "/v1beta1/{parent=projects/*/locations/*}/externalAccountKeys"
  39. body: "external_account_key"
  40. };
  41. option (google.api.method_signature) = "parent,external_account_key";
  42. }
  43. }
  44. // Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] in a given project.
  45. message CreateExternalAccountKeyRequest {
  46. // Required. The parent resource where this external_account_key will be created.
  47. // Format: projects/[project_id]/locations/[location].
  48. // At present only the "global" location is supported.
  49. string parent = 1 [
  50. (google.api.field_behavior) = REQUIRED,
  51. (google.api.resource_reference) = {
  52. child_type: "publicca.googleapis.com/ExternalAccountKey"
  53. }
  54. ];
  55. // Required. The external account key to create. This field only exists to future-proof
  56. // the API. At present, all fields in ExternalAccountKey are output only and
  57. // all values are ignored. For the purpose of the
  58. // CreateExternalAccountKeyRequest, set it to a default/empty value.
  59. ExternalAccountKey external_account_key = 2 [(google.api.field_behavior) = REQUIRED];
  60. }