-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
service.proto
1437 lines (1288 loc) · 65.2 KB
/
service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.security.privateca.v1;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/security/privateca/v1/resources.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Security.PrivateCA.V1";
option go_package = "cloud.google.com/go/security/privateca/apiv1/privatecapb;privatecapb";
option java_multiple_files = true;
option java_outer_classname = "PrivateCaProto";
option java_package = "com.google.cloud.security.privateca.v1";
option php_namespace = "Google\\Cloud\\Security\\PrivateCA\\V1";
option ruby_package = "Google::Cloud::Security::PrivateCA::V1";
// [Certificate Authority
// Service][google.cloud.security.privateca.v1.CertificateAuthorityService]
// manages private certificate authorities and issued certificates.
service CertificateAuthorityService {
option (google.api.default_host) = "privateca.googleapis.com";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform";
// Create a new [Certificate][google.cloud.security.privateca.v1.Certificate]
// in a given Project, Location from a particular
// [CaPool][google.cloud.security.privateca.v1.CaPool].
rpc CreateCertificate(CreateCertificateRequest) returns (Certificate) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*/caPools/*}/certificates"
body: "certificate"
};
option (google.api.method_signature) = "parent,certificate,certificate_id";
}
// Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].
rpc GetCertificate(GetCertificateRequest) returns (Certificate) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/caPools/*/certificates/*}"
};
option (google.api.method_signature) = "name";
}
// Lists [Certificates][google.cloud.security.privateca.v1.Certificate].
rpc ListCertificates(ListCertificatesRequest)
returns (ListCertificatesResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/caPools/*}/certificates"
};
option (google.api.method_signature) = "parent";
}
// Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].
rpc RevokeCertificate(RevokeCertificateRequest) returns (Certificate) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/caPools/*/certificates/*}:revoke"
body: "*"
};
option (google.api.method_signature) = "name";
}
// Update a [Certificate][google.cloud.security.privateca.v1.Certificate].
// Currently, the only field you can update is the
// [labels][google.cloud.security.privateca.v1.Certificate.labels] field.
rpc UpdateCertificate(UpdateCertificateRequest) returns (Certificate) {
option (google.api.http) = {
patch: "/v1/{certificate.name=projects/*/locations/*/caPools/*/certificates/*}"
body: "certificate"
};
option (google.api.method_signature) = "certificate,update_mask";
}
// Activate a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// that is in state
// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
// and is of type
// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE].
// After the parent Certificate Authority signs a certificate signing request
// from
// [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr],
// this method can complete the activation process.
rpc ActivateCertificateAuthority(ActivateCertificateAuthorityRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:activate"
body: "*"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "CertificateAuthority"
metadata_type: "OperationMetadata"
};
}
// Create a new
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in a given Project and Location.
rpc CreateCertificateAuthority(CreateCertificateAuthorityRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*/caPools/*}/certificateAuthorities"
body: "certificate_authority"
};
option (google.api.method_signature) =
"parent,certificate_authority,certificate_authority_id";
option (google.longrunning.operation_info) = {
response_type: "CertificateAuthority"
metadata_type: "OperationMetadata"
};
}
// Disable a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
rpc DisableCertificateAuthority(DisableCertificateAuthorityRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:disable"
body: "*"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "CertificateAuthority"
metadata_type: "OperationMetadata"
};
}
// Enable a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
rpc EnableCertificateAuthority(EnableCertificateAuthorityRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:enable"
body: "*"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "CertificateAuthority"
metadata_type: "OperationMetadata"
};
}
// Fetch a certificate signing request (CSR) from a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// that is in state
// [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION]
// and is of type
// [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE].
// The CSR must then be signed by the desired parent Certificate Authority,
// which could be another
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// resource, or could be an on-prem certificate authority. See also
// [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
rpc FetchCertificateAuthorityCsr(FetchCertificateAuthorityCsrRequest)
returns (FetchCertificateAuthorityCsrResponse) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:fetch"
};
option (google.api.method_signature) = "name";
}
// Returns a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
rpc GetCertificateAuthority(GetCertificateAuthorityRequest)
returns (CertificateAuthority) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}"
};
option (google.api.method_signature) = "name";
}
// Lists
// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
rpc ListCertificateAuthorities(ListCertificateAuthoritiesRequest)
returns (ListCertificateAuthoritiesResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/caPools/*}/certificateAuthorities"
};
option (google.api.method_signature) = "parent";
}
// Undelete a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// that has been deleted.
rpc UndeleteCertificateAuthority(UndeleteCertificateAuthorityRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}:undelete"
body: "*"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "CertificateAuthority"
metadata_type: "OperationMetadata"
};
}
// Delete a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
rpc DeleteCertificateAuthority(DeleteCertificateAuthorityRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "CertificateAuthority"
metadata_type: "OperationMetadata"
};
}
// Update a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].
rpc UpdateCertificateAuthority(UpdateCertificateAuthorityRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{certificate_authority.name=projects/*/locations/*/caPools/*/certificateAuthorities/*}"
body: "certificate_authority"
};
option (google.api.method_signature) = "certificate_authority,update_mask";
option (google.longrunning.operation_info) = {
response_type: "CertificateAuthority"
metadata_type: "OperationMetadata"
};
}
// Create a [CaPool][google.cloud.security.privateca.v1.CaPool].
rpc CreateCaPool(CreateCaPoolRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/caPools"
body: "ca_pool"
};
option (google.api.method_signature) = "parent,ca_pool,ca_pool_id";
option (google.longrunning.operation_info) = {
response_type: "CaPool"
metadata_type: "OperationMetadata"
};
}
// Update a [CaPool][google.cloud.security.privateca.v1.CaPool].
rpc UpdateCaPool(UpdateCaPoolRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{ca_pool.name=projects/*/locations/*/caPools/*}"
body: "ca_pool"
};
option (google.api.method_signature) = "ca_pool,update_mask";
option (google.longrunning.operation_info) = {
response_type: "CaPool"
metadata_type: "OperationMetadata"
};
}
// Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].
rpc GetCaPool(GetCaPoolRequest) returns (CaPool) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/caPools/*}"
};
option (google.api.method_signature) = "name";
}
// Lists [CaPools][google.cloud.security.privateca.v1.CaPool].
rpc ListCaPools(ListCaPoolsRequest) returns (ListCaPoolsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/caPools"
};
option (google.api.method_signature) = "parent";
}
// Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].
rpc DeleteCaPool(DeleteCaPoolRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/caPools/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "OperationMetadata"
};
}
// FetchCaCerts returns the current trust anchor for the
// [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA
// certificate chains for all Certificate Authorities in the ENABLED,
// DISABLED, or STAGED states.
rpc FetchCaCerts(FetchCaCertsRequest) returns (FetchCaCertsResponse) {
option (google.api.http) = {
post: "/v1/{ca_pool=projects/*/locations/*/caPools/*}:fetchCaCerts"
body: "*"
};
option (google.api.method_signature) = "ca_pool";
}
// Returns a
// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
rpc GetCertificateRevocationList(GetCertificateRevocationListRequest)
returns (CertificateRevocationList) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}"
};
option (google.api.method_signature) = "name";
}
// Lists
// [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].
rpc ListCertificateRevocationLists(ListCertificateRevocationListsRequest)
returns (ListCertificateRevocationListsResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*/caPools/*/certificateAuthorities/*}/certificateRevocationLists"
};
option (google.api.method_signature) = "parent";
}
// Update a
// [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].
rpc UpdateCertificateRevocationList(UpdateCertificateRevocationListRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{certificate_revocation_list.name=projects/*/locations/*/caPools/*/certificateAuthorities/*/certificateRevocationLists/*}"
body: "certificate_revocation_list"
};
option (google.api.method_signature) =
"certificate_revocation_list,update_mask";
option (google.longrunning.operation_info) = {
response_type: "CertificateRevocationList"
metadata_type: "OperationMetadata"
};
}
// Create a new
// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate]
// in a given Project and Location.
rpc CreateCertificateTemplate(CreateCertificateTemplateRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1/{parent=projects/*/locations/*}/certificateTemplates"
body: "certificate_template"
};
option (google.api.method_signature) =
"parent,certificate_template,certificate_template_id";
option (google.longrunning.operation_info) = {
response_type: "CertificateTemplate"
metadata_type: "OperationMetadata"
};
}
// DeleteCertificateTemplate deletes a
// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
rpc DeleteCertificateTemplate(DeleteCertificateTemplateRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1/{name=projects/*/locations/*/certificateTemplates/*}"
};
option (google.api.method_signature) = "name";
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
metadata_type: "google.cloud.security.privateca.v1.OperationMetadata"
};
}
// Returns a
// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
rpc GetCertificateTemplate(GetCertificateTemplateRequest)
returns (CertificateTemplate) {
option (google.api.http) = {
get: "/v1/{name=projects/*/locations/*/certificateTemplates/*}"
};
option (google.api.method_signature) = "name";
}
// Lists
// [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].
rpc ListCertificateTemplates(ListCertificateTemplatesRequest)
returns (ListCertificateTemplatesResponse) {
option (google.api.http) = {
get: "/v1/{parent=projects/*/locations/*}/certificateTemplates"
};
option (google.api.method_signature) = "parent";
}
// Update a
// [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].
rpc UpdateCertificateTemplate(UpdateCertificateTemplateRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1/{certificate_template.name=projects/*/locations/*/certificateTemplates/*}"
body: "certificate_template"
};
option (google.api.method_signature) = "certificate_template,update_mask";
option (google.longrunning.operation_info) = {
response_type: "CertificateTemplate"
metadata_type: "OperationMetadata"
};
}
}
// Request message for
// [CertificateAuthorityService.CreateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate].
message CreateCertificateRequest {
// Required. The resource name of the
// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
// [Certificate][google.cloud.security.privateca.v1.Certificate], in the
// format `projects/*/locations/*/caPools/*`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CaPool"
}
];
// Optional. It must be unique within a location and match the regular
// expression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in the Enterprise [CertificateAuthority.Tier][], but is optional and its
// value is ignored otherwise.
string certificate_id = 2 [(google.api.field_behavior) = OPTIONAL];
// Required. A [Certificate][google.cloud.security.privateca.v1.Certificate]
// with initial field values.
Certificate certificate = 3 [(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and the
// request times out. If you make the request again with the same request ID,
// the server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents clients
// from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. If this is true, no
// [Certificate][google.cloud.security.privateca.v1.Certificate] resource will
// be persisted regardless of the
// [CaPool][google.cloud.security.privateca.v1.CaPool]'s
// [tier][google.cloud.security.privateca.v1.CaPool.tier], and the returned
// [Certificate][google.cloud.security.privateca.v1.Certificate] will not
// contain the
// [pem_certificate][google.cloud.security.privateca.v1.Certificate.pem_certificate]
// field.
bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
// Optional. The resource ID of the
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// that should issue the certificate. This optional field will ignore the
// load-balancing scheme of the Pool and directly issue the certificate from
// the CA with the specified ID, contained in the same
// [CaPool][google.cloud.security.privateca.v1.CaPool] referenced by `parent`.
// Per-CA quota rules apply. If left empty, a
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// will be chosen from the [CaPool][google.cloud.security.privateca.v1.CaPool]
// by the service. For example, to issue a
// [Certificate][google.cloud.security.privateca.v1.Certificate] from a
// Certificate Authority with resource name
// "projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca",
// you can set the
// [parent][google.cloud.security.privateca.v1.CreateCertificateRequest.parent]
// to "projects/my-project/locations/us-central1/caPools/my-pool" and the
// [issuing_certificate_authority_id][google.cloud.security.privateca.v1.CreateCertificateRequest.issuing_certificate_authority_id]
// to "my-ca".
string issuing_certificate_authority_id = 6
[(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.GetCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate].
message GetCertificateRequest {
// Required. The [name][google.cloud.security.privateca.v1.Certificate.name]
// of the [Certificate][google.cloud.security.privateca.v1.Certificate] to
// get.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/Certificate"
}
];
}
// Request message for
// [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
message ListCertificatesRequest {
// Required. The resource name of the location associated with the
// [Certificates][google.cloud.security.privateca.v1.Certificate], in the
// format `projects/*/locations/*/caPools/*`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CaPool"
}
];
// Optional. Limit on the number of
// [Certificates][google.cloud.security.privateca.v1.Certificate] to include
// in the response. Further
// [Certificates][google.cloud.security.privateca.v1.Certificate] can
// subsequently be obtained by including the
// [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.next_page_token]
// in a subsequent request. If unspecified, the server will pick an
// appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. Pagination token, returned earlier via
// [ListCertificatesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificatesResponse.next_page_token].
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Only include resources that match the filter in the response. For
// details on supported filters and syntax, see [Certificates Filtering
// documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#filtering_support).
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Specify how the results should be sorted. For details on
// supported fields and syntax, see [Certificates Sorting
// documentation](https://cloud.google.com/certificate-authority-service/docs/sorting-filtering-certificates#sorting_support).
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response message for
// [CertificateAuthorityService.ListCertificates][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates].
message ListCertificatesResponse {
// The list of [Certificates][google.cloud.security.privateca.v1.Certificate].
repeated Certificate certificates = 1;
// A token to retrieve next page of results. Pass this value in
// [ListCertificatesRequest.next_page_token][] to retrieve the
// next page of results.
string next_page_token = 2;
// A list of locations (e.g. "us-west1") that could not be reached.
repeated string unreachable = 3;
}
// Request message for
// [CertificateAuthorityService.RevokeCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate].
message RevokeCertificateRequest {
// Required. The resource name for this
// [Certificate][google.cloud.security.privateca.v1.Certificate] in the format
// `projects/*/locations/*/caPools/*/certificates/*`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/Certificate"
}
];
// Required. The
// [RevocationReason][google.cloud.security.privateca.v1.RevocationReason] for
// revoking this certificate.
RevocationReason reason = 2 [(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.UpdateCertificate][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate].
message UpdateCertificateRequest {
// Required. [Certificate][google.cloud.security.privateca.v1.Certificate]
// with updated values.
Certificate certificate = 1 [(google.api.field_behavior) = REQUIRED];
// Required. A list of fields to be updated in this request.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].
message ActivateCertificateAuthorityRequest {
// Required. The resource name for this
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CertificateAuthority"
}
];
// Required. The signed CA certificate issued from
// [FetchCertificateAuthorityCsrResponse.pem_csr][google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse.pem_csr].
string pem_ca_certificate = 2 [(google.api.field_behavior) = REQUIRED];
// Required. Must include information about the issuer of
// 'pem_ca_certificate', and any further issuers until the self-signed CA.
SubordinateConfig subordinate_config = 3
[(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.CreateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority].
message CreateCertificateAuthorityRequest {
// Required. The resource name of the
// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
// in the format `projects/*/locations/*/caPools/*`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CaPool"
}
];
// Required. It must be unique within a location and match the regular
// expression `[a-zA-Z0-9_-]{1,63}`
string certificate_authority_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. A
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// with initial field values.
CertificateAuthority certificate_authority = 3
[(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.DisableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority].
message DisableCertificateAuthorityRequest {
// Required. The resource name for this
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CertificateAuthority"
}
];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. This field allows this CA to be disabled even if it's being
// depended on by another resource. However, doing so may result in unintended
// and unrecoverable effects on any dependent resource(s) since the CA will
// no longer be able to issue certificates.
bool ignore_dependent_resources = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.EnableCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority].
message EnableCertificateAuthorityRequest {
// Required. The resource name for this
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CertificateAuthority"
}
];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
message FetchCertificateAuthorityCsrRequest {
// Required. The resource name for this
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CertificateAuthority"
}
];
}
// Response message for
// [CertificateAuthorityService.FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr].
message FetchCertificateAuthorityCsrResponse {
// Output only. The PEM-encoded signed certificate signing request (CSR).
string pem_csr = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Request message for
// [CertificateAuthorityService.GetCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority].
message GetCertificateAuthorityRequest {
// Required. The
// [name][google.cloud.security.privateca.v1.CertificateAuthority.name] of the
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// to get.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CertificateAuthority"
}
];
}
// Request message for
// [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
message ListCertificateAuthoritiesRequest {
// Required. The resource name of the
// [CaPool][google.cloud.security.privateca.v1.CaPool] associated with the
// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority],
// in the format `projects/*/locations/*/caPools/*`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CaPool"
}
];
// Optional. Limit on the number of
// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]
// to include in the response. Further
// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority]
// can subsequently be obtained by including the
// [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.next_page_token]
// in a subsequent request. If unspecified, the server will pick an
// appropriate default.
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. Pagination token, returned earlier via
// [ListCertificateAuthoritiesResponse.next_page_token][google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse.next_page_token].
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. Only include resources that match the filter in the response.
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Specify how the results should be sorted.
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}
// Response message for
// [CertificateAuthorityService.ListCertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities].
message ListCertificateAuthoritiesResponse {
// The list of
// [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].
repeated CertificateAuthority certificate_authorities = 1;
// A token to retrieve next page of results. Pass this value in
// [ListCertificateAuthoritiesRequest.next_page_token][] to retrieve the next
// page of results.
string next_page_token = 2;
// A list of locations (e.g. "us-west1") that could not be reached.
repeated string unreachable = 3;
}
// Request message for
// [CertificateAuthorityService.UndeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority].
message UndeleteCertificateAuthorityRequest {
// Required. The resource name for this
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CertificateAuthority"
}
];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.DeleteCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority].
message DeleteCertificateAuthorityRequest {
// Required. The resource name for this
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "privateca.googleapis.com/CertificateAuthority"
}
];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
// Optional. This field allows the CA to be deleted even if the CA has
// active certs. Active certs include both unrevoked and unexpired certs.
bool ignore_active_certificates = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. If this flag is set, the Certificate Authority will be deleted as
// soon as possible without a 30-day grace period where undeletion would have
// been allowed. If you proceed, there will be no way to recover this CA.
bool skip_grace_period = 5 [(google.api.field_behavior) = OPTIONAL];
// Optional. This field allows this ca to be deleted even if it's being
// depended on by another resource. However, doing so may result in unintended
// and unrecoverable effects on any dependent resource(s) since the CA will
// no longer be able to issue certificates.
bool ignore_dependent_resources = 6 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.UpdateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority].
message UpdateCertificateAuthorityRequest {
// Required.
// [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
// with updated values.
CertificateAuthority certificate_authority = 1
[(google.api.field_behavior) = REQUIRED];
// Required. A list of fields to be updated in this request.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.CreateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool].
message CreateCaPoolRequest {
// Required. The resource name of the location associated with the
// [CaPool][google.cloud.security.privateca.v1.CaPool], in the format
// `projects/*/locations/*`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "locations.googleapis.com/Location"
}
];
// Required. It must be unique within a location and match the regular
// expression `[a-zA-Z0-9_-]{1,63}`
string ca_pool_id = 2 [(google.api.field_behavior) = REQUIRED];
// Required. A [CaPool][google.cloud.security.privateca.v1.CaPool] with
// initial field values.
CaPool ca_pool = 3 [(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.
//
// For example, consider a situation where you make an initial request and
// the request times out. If you make the request again with the same request
// ID, the server can check if original operation with the same request ID
// was received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments.
//
// The request ID must be a valid UUID with the exception that zero UUID is
// not supported (00000000-0000-0000-0000-000000000000).
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
}
// Request message for
// [CertificateAuthorityService.UpdateCaPool][google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool].
message UpdateCaPoolRequest {
// Required. [CaPool][google.cloud.security.privateca.v1.CaPool] with updated
// values.
CaPool ca_pool = 1 [(google.api.field_behavior) = REQUIRED];
// Required. A list of fields to be updated in this request.
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
// Optional. An ID to identify requests. Specify a unique request ID so that
// if you must retry your request, the server will know to ignore the request
// if it has already been completed. The server will guarantee that for at
// least 60 minutes since the first request.