google-cloud-security-private_ca-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-cloud-security-private_ca-v1.rb +21 -0
- data/lib/google/cloud/security/private_ca/v1.rb +40 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service.rb +53 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/client.rb +2891 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/credentials.rb +53 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +657 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/paths.rb +155 -0
- data/lib/google/cloud/security/private_ca/v1/version.rb +30 -0
- data/lib/google/cloud/security/privateca/v1/resources_pb.rb +368 -0
- data/lib/google/cloud/security/privateca/v1/service_pb.rb +254 -0
- data/lib/google/cloud/security/privateca/v1/service_services_pb.rb +119 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +65 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/security/privateca/v1/resources.rb +1188 -0
- data/proto_docs/google/cloud/security/privateca/v1/service.rb +934 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +221 -0
@@ -0,0 +1,155 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Security
|
23
|
+
module PrivateCA
|
24
|
+
module V1
|
25
|
+
module CertificateAuthorityService
|
26
|
+
# Path helper methods for the CertificateAuthorityService API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified CaPool resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/caPools/{ca_pool}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param ca_pool [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def ca_pool_path project:, location:, ca_pool:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/caPools/#{ca_pool}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified Certificate resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/locations/{location}/caPools/{ca_pool}/certificates/{certificate}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param location [String]
|
56
|
+
# @param ca_pool [String]
|
57
|
+
# @param certificate [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def certificate_path project:, location:, ca_pool:, certificate:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
raise ::ArgumentError, "ca_pool cannot contain /" if ca_pool.to_s.include? "/"
|
64
|
+
|
65
|
+
"projects/#{project}/locations/#{location}/caPools/#{ca_pool}/certificates/#{certificate}"
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# Create a fully-qualified CertificateAuthority resource string.
|
70
|
+
#
|
71
|
+
# The resource will be in the following format:
|
72
|
+
#
|
73
|
+
# `projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}`
|
74
|
+
#
|
75
|
+
# @param project [String]
|
76
|
+
# @param location [String]
|
77
|
+
# @param ca_pool [String]
|
78
|
+
# @param certificate_authority [String]
|
79
|
+
#
|
80
|
+
# @return [::String]
|
81
|
+
def certificate_authority_path project:, location:, ca_pool:, certificate_authority:
|
82
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
83
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
84
|
+
raise ::ArgumentError, "ca_pool cannot contain /" if ca_pool.to_s.include? "/"
|
85
|
+
|
86
|
+
"projects/#{project}/locations/#{location}/caPools/#{ca_pool}/certificateAuthorities/#{certificate_authority}"
|
87
|
+
end
|
88
|
+
|
89
|
+
##
|
90
|
+
# Create a fully-qualified CertificateRevocationList resource string.
|
91
|
+
#
|
92
|
+
# The resource will be in the following format:
|
93
|
+
#
|
94
|
+
# `projects/{project}/locations/{location}/caPools/{ca_pool}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list}`
|
95
|
+
#
|
96
|
+
# @param project [String]
|
97
|
+
# @param location [String]
|
98
|
+
# @param ca_pool [String]
|
99
|
+
# @param certificate_authority [String]
|
100
|
+
# @param certificate_revocation_list [String]
|
101
|
+
#
|
102
|
+
# @return [::String]
|
103
|
+
def certificate_revocation_list_path project:, location:, ca_pool:, certificate_authority:, certificate_revocation_list:
|
104
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
105
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
106
|
+
raise ::ArgumentError, "ca_pool cannot contain /" if ca_pool.to_s.include? "/"
|
107
|
+
raise ::ArgumentError, "certificate_authority cannot contain /" if certificate_authority.to_s.include? "/"
|
108
|
+
|
109
|
+
"projects/#{project}/locations/#{location}/caPools/#{ca_pool}/certificateAuthorities/#{certificate_authority}/certificateRevocationLists/#{certificate_revocation_list}"
|
110
|
+
end
|
111
|
+
|
112
|
+
##
|
113
|
+
# Create a fully-qualified CertificateTemplate resource string.
|
114
|
+
#
|
115
|
+
# The resource will be in the following format:
|
116
|
+
#
|
117
|
+
# `projects/{project}/locations/{location}/certificateTemplates/{certificate_template}`
|
118
|
+
#
|
119
|
+
# @param project [String]
|
120
|
+
# @param location [String]
|
121
|
+
# @param certificate_template [String]
|
122
|
+
#
|
123
|
+
# @return [::String]
|
124
|
+
def certificate_template_path project:, location:, certificate_template:
|
125
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
126
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
127
|
+
|
128
|
+
"projects/#{project}/locations/#{location}/certificateTemplates/#{certificate_template}"
|
129
|
+
end
|
130
|
+
|
131
|
+
##
|
132
|
+
# Create a fully-qualified Location resource string.
|
133
|
+
#
|
134
|
+
# The resource will be in the following format:
|
135
|
+
#
|
136
|
+
# `projects/{project}/locations/{location}`
|
137
|
+
#
|
138
|
+
# @param project [String]
|
139
|
+
# @param location [String]
|
140
|
+
#
|
141
|
+
# @return [::String]
|
142
|
+
def location_path project:, location:
|
143
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
144
|
+
|
145
|
+
"projects/#{project}/locations/#{location}"
|
146
|
+
end
|
147
|
+
|
148
|
+
extend self
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Security
|
23
|
+
module PrivateCA
|
24
|
+
module V1
|
25
|
+
VERSION = "0.1.0"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,368 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/security/privateca/v1/resources.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/type/expr_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/security/privateca/v1/resources.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.security.privateca.v1.CertificateAuthority" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :type, :enum, 2, "google.cloud.security.privateca.v1.CertificateAuthority.Type"
|
17
|
+
optional :config, :message, 3, "google.cloud.security.privateca.v1.CertificateConfig"
|
18
|
+
optional :lifetime, :message, 4, "google.protobuf.Duration"
|
19
|
+
optional :key_spec, :message, 5, "google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec"
|
20
|
+
optional :subordinate_config, :message, 6, "google.cloud.security.privateca.v1.SubordinateConfig"
|
21
|
+
optional :tier, :enum, 7, "google.cloud.security.privateca.v1.CaPool.Tier"
|
22
|
+
optional :state, :enum, 8, "google.cloud.security.privateca.v1.CertificateAuthority.State"
|
23
|
+
repeated :pem_ca_certificates, :string, 9
|
24
|
+
repeated :ca_certificate_descriptions, :message, 10, "google.cloud.security.privateca.v1.CertificateDescription"
|
25
|
+
optional :gcs_bucket, :string, 11
|
26
|
+
optional :access_urls, :message, 12, "google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls"
|
27
|
+
optional :create_time, :message, 13, "google.protobuf.Timestamp"
|
28
|
+
optional :update_time, :message, 14, "google.protobuf.Timestamp"
|
29
|
+
optional :delete_time, :message, 15, "google.protobuf.Timestamp"
|
30
|
+
optional :expire_time, :message, 16, "google.protobuf.Timestamp"
|
31
|
+
map :labels, :string, :string, 17
|
32
|
+
end
|
33
|
+
add_message "google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls" do
|
34
|
+
optional :ca_certificate_access_url, :string, 1
|
35
|
+
repeated :crl_access_urls, :string, 2
|
36
|
+
end
|
37
|
+
add_message "google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec" do
|
38
|
+
oneof :KeyVersion do
|
39
|
+
optional :cloud_kms_key_version, :string, 1
|
40
|
+
optional :algorithm, :enum, 2, "google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
add_enum "google.cloud.security.privateca.v1.CertificateAuthority.Type" do
|
44
|
+
value :TYPE_UNSPECIFIED, 0
|
45
|
+
value :SELF_SIGNED, 1
|
46
|
+
value :SUBORDINATE, 2
|
47
|
+
end
|
48
|
+
add_enum "google.cloud.security.privateca.v1.CertificateAuthority.State" do
|
49
|
+
value :STATE_UNSPECIFIED, 0
|
50
|
+
value :ENABLED, 1
|
51
|
+
value :DISABLED, 2
|
52
|
+
value :STAGED, 3
|
53
|
+
value :AWAITING_USER_ACTIVATION, 4
|
54
|
+
value :DELETED, 5
|
55
|
+
end
|
56
|
+
add_enum "google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm" do
|
57
|
+
value :SIGN_HASH_ALGORITHM_UNSPECIFIED, 0
|
58
|
+
value :RSA_PSS_2048_SHA256, 1
|
59
|
+
value :RSA_PSS_3072_SHA256, 2
|
60
|
+
value :RSA_PSS_4096_SHA256, 3
|
61
|
+
value :RSA_PKCS1_2048_SHA256, 6
|
62
|
+
value :RSA_PKCS1_3072_SHA256, 7
|
63
|
+
value :RSA_PKCS1_4096_SHA256, 8
|
64
|
+
value :EC_P256_SHA256, 4
|
65
|
+
value :EC_P384_SHA384, 5
|
66
|
+
end
|
67
|
+
add_message "google.cloud.security.privateca.v1.CaPool" do
|
68
|
+
optional :name, :string, 1
|
69
|
+
optional :tier, :enum, 2, "google.cloud.security.privateca.v1.CaPool.Tier"
|
70
|
+
optional :issuance_policy, :message, 3, "google.cloud.security.privateca.v1.CaPool.IssuancePolicy"
|
71
|
+
optional :publishing_options, :message, 4, "google.cloud.security.privateca.v1.CaPool.PublishingOptions"
|
72
|
+
map :labels, :string, :string, 5
|
73
|
+
end
|
74
|
+
add_message "google.cloud.security.privateca.v1.CaPool.PublishingOptions" do
|
75
|
+
optional :publish_ca_cert, :bool, 1
|
76
|
+
optional :publish_crl, :bool, 2
|
77
|
+
end
|
78
|
+
add_message "google.cloud.security.privateca.v1.CaPool.IssuancePolicy" do
|
79
|
+
repeated :allowed_key_types, :message, 1, "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType"
|
80
|
+
optional :maximum_lifetime, :message, 2, "google.protobuf.Duration"
|
81
|
+
optional :allowed_issuance_modes, :message, 3, "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes"
|
82
|
+
optional :baseline_values, :message, 4, "google.cloud.security.privateca.v1.X509Parameters"
|
83
|
+
optional :identity_constraints, :message, 5, "google.cloud.security.privateca.v1.CertificateIdentityConstraints"
|
84
|
+
optional :passthrough_extensions, :message, 6, "google.cloud.security.privateca.v1.CertificateExtensionConstraints"
|
85
|
+
end
|
86
|
+
add_message "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType" do
|
87
|
+
oneof :key_type do
|
88
|
+
optional :rsa, :message, 1, "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType"
|
89
|
+
optional :elliptic_curve, :message, 2, "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType"
|
90
|
+
end
|
91
|
+
end
|
92
|
+
add_message "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType" do
|
93
|
+
optional :min_modulus_size, :int64, 1
|
94
|
+
optional :max_modulus_size, :int64, 2
|
95
|
+
end
|
96
|
+
add_message "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType" do
|
97
|
+
optional :signature_algorithm, :enum, 1, "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm"
|
98
|
+
end
|
99
|
+
add_enum "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm" do
|
100
|
+
value :EC_SIGNATURE_ALGORITHM_UNSPECIFIED, 0
|
101
|
+
value :ECDSA_P256, 1
|
102
|
+
value :ECDSA_P384, 2
|
103
|
+
value :EDDSA_25519, 3
|
104
|
+
end
|
105
|
+
add_message "google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes" do
|
106
|
+
optional :allow_csr_based_issuance, :bool, 1
|
107
|
+
optional :allow_config_based_issuance, :bool, 2
|
108
|
+
end
|
109
|
+
add_enum "google.cloud.security.privateca.v1.CaPool.Tier" do
|
110
|
+
value :TIER_UNSPECIFIED, 0
|
111
|
+
value :ENTERPRISE, 1
|
112
|
+
value :DEVOPS, 2
|
113
|
+
end
|
114
|
+
add_message "google.cloud.security.privateca.v1.CertificateRevocationList" do
|
115
|
+
optional :name, :string, 1
|
116
|
+
optional :sequence_number, :int64, 2
|
117
|
+
repeated :revoked_certificates, :message, 3, "google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate"
|
118
|
+
optional :pem_crl, :string, 4
|
119
|
+
optional :access_url, :string, 5
|
120
|
+
optional :state, :enum, 6, "google.cloud.security.privateca.v1.CertificateRevocationList.State"
|
121
|
+
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
122
|
+
optional :update_time, :message, 8, "google.protobuf.Timestamp"
|
123
|
+
optional :revision_id, :string, 9
|
124
|
+
map :labels, :string, :string, 10
|
125
|
+
end
|
126
|
+
add_message "google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate" do
|
127
|
+
optional :certificate, :string, 1
|
128
|
+
optional :hex_serial_number, :string, 2
|
129
|
+
optional :revocation_reason, :enum, 3, "google.cloud.security.privateca.v1.RevocationReason"
|
130
|
+
end
|
131
|
+
add_enum "google.cloud.security.privateca.v1.CertificateRevocationList.State" do
|
132
|
+
value :STATE_UNSPECIFIED, 0
|
133
|
+
value :ACTIVE, 1
|
134
|
+
value :SUPERSEDED, 2
|
135
|
+
end
|
136
|
+
add_message "google.cloud.security.privateca.v1.Certificate" do
|
137
|
+
optional :name, :string, 1
|
138
|
+
optional :issuer_certificate_authority, :string, 4
|
139
|
+
optional :lifetime, :message, 5, "google.protobuf.Duration"
|
140
|
+
optional :certificate_template, :string, 6
|
141
|
+
optional :subject_mode, :enum, 7, "google.cloud.security.privateca.v1.SubjectRequestMode"
|
142
|
+
optional :revocation_details, :message, 8, "google.cloud.security.privateca.v1.Certificate.RevocationDetails"
|
143
|
+
optional :pem_certificate, :string, 9
|
144
|
+
optional :certificate_description, :message, 10, "google.cloud.security.privateca.v1.CertificateDescription"
|
145
|
+
repeated :pem_certificate_chain, :string, 11
|
146
|
+
optional :create_time, :message, 12, "google.protobuf.Timestamp"
|
147
|
+
optional :update_time, :message, 13, "google.protobuf.Timestamp"
|
148
|
+
map :labels, :string, :string, 14
|
149
|
+
oneof :certificate_config do
|
150
|
+
optional :pem_csr, :string, 2
|
151
|
+
optional :config, :message, 3, "google.cloud.security.privateca.v1.CertificateConfig"
|
152
|
+
end
|
153
|
+
end
|
154
|
+
add_message "google.cloud.security.privateca.v1.Certificate.RevocationDetails" do
|
155
|
+
optional :revocation_state, :enum, 1, "google.cloud.security.privateca.v1.RevocationReason"
|
156
|
+
optional :revocation_time, :message, 2, "google.protobuf.Timestamp"
|
157
|
+
end
|
158
|
+
add_message "google.cloud.security.privateca.v1.CertificateTemplate" do
|
159
|
+
optional :name, :string, 1
|
160
|
+
optional :predefined_values, :message, 2, "google.cloud.security.privateca.v1.X509Parameters"
|
161
|
+
optional :identity_constraints, :message, 3, "google.cloud.security.privateca.v1.CertificateIdentityConstraints"
|
162
|
+
optional :passthrough_extensions, :message, 4, "google.cloud.security.privateca.v1.CertificateExtensionConstraints"
|
163
|
+
optional :description, :string, 5
|
164
|
+
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
165
|
+
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
166
|
+
map :labels, :string, :string, 8
|
167
|
+
end
|
168
|
+
add_message "google.cloud.security.privateca.v1.X509Parameters" do
|
169
|
+
optional :key_usage, :message, 1, "google.cloud.security.privateca.v1.KeyUsage"
|
170
|
+
optional :ca_options, :message, 2, "google.cloud.security.privateca.v1.X509Parameters.CaOptions"
|
171
|
+
repeated :policy_ids, :message, 3, "google.cloud.security.privateca.v1.ObjectId"
|
172
|
+
repeated :aia_ocsp_servers, :string, 4
|
173
|
+
repeated :additional_extensions, :message, 5, "google.cloud.security.privateca.v1.X509Extension"
|
174
|
+
end
|
175
|
+
add_message "google.cloud.security.privateca.v1.X509Parameters.CaOptions" do
|
176
|
+
proto3_optional :is_ca, :bool, 1
|
177
|
+
proto3_optional :max_issuer_path_length, :int32, 2
|
178
|
+
end
|
179
|
+
add_message "google.cloud.security.privateca.v1.SubordinateConfig" do
|
180
|
+
oneof :subordinate_config do
|
181
|
+
optional :certificate_authority, :string, 1
|
182
|
+
optional :pem_issuer_chain, :message, 2, "google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain"
|
183
|
+
end
|
184
|
+
end
|
185
|
+
add_message "google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain" do
|
186
|
+
repeated :pem_certificates, :string, 1
|
187
|
+
end
|
188
|
+
add_message "google.cloud.security.privateca.v1.PublicKey" do
|
189
|
+
optional :key, :bytes, 1
|
190
|
+
optional :format, :enum, 2, "google.cloud.security.privateca.v1.PublicKey.KeyFormat"
|
191
|
+
end
|
192
|
+
add_enum "google.cloud.security.privateca.v1.PublicKey.KeyFormat" do
|
193
|
+
value :KEY_FORMAT_UNSPECIFIED, 0
|
194
|
+
value :PEM, 1
|
195
|
+
end
|
196
|
+
add_message "google.cloud.security.privateca.v1.CertificateConfig" do
|
197
|
+
optional :subject_config, :message, 1, "google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig"
|
198
|
+
optional :x509_config, :message, 2, "google.cloud.security.privateca.v1.X509Parameters"
|
199
|
+
optional :public_key, :message, 3, "google.cloud.security.privateca.v1.PublicKey"
|
200
|
+
end
|
201
|
+
add_message "google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig" do
|
202
|
+
optional :subject, :message, 1, "google.cloud.security.privateca.v1.Subject"
|
203
|
+
optional :subject_alt_name, :message, 2, "google.cloud.security.privateca.v1.SubjectAltNames"
|
204
|
+
end
|
205
|
+
add_message "google.cloud.security.privateca.v1.CertificateDescription" do
|
206
|
+
optional :subject_description, :message, 1, "google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription"
|
207
|
+
optional :x509_description, :message, 2, "google.cloud.security.privateca.v1.X509Parameters"
|
208
|
+
optional :public_key, :message, 3, "google.cloud.security.privateca.v1.PublicKey"
|
209
|
+
optional :subject_key_id, :message, 4, "google.cloud.security.privateca.v1.CertificateDescription.KeyId"
|
210
|
+
optional :authority_key_id, :message, 5, "google.cloud.security.privateca.v1.CertificateDescription.KeyId"
|
211
|
+
repeated :crl_distribution_points, :string, 6
|
212
|
+
repeated :aia_issuing_certificate_urls, :string, 7
|
213
|
+
optional :cert_fingerprint, :message, 8, "google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint"
|
214
|
+
end
|
215
|
+
add_message "google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription" do
|
216
|
+
optional :subject, :message, 1, "google.cloud.security.privateca.v1.Subject"
|
217
|
+
optional :subject_alt_name, :message, 2, "google.cloud.security.privateca.v1.SubjectAltNames"
|
218
|
+
optional :hex_serial_number, :string, 3
|
219
|
+
optional :lifetime, :message, 4, "google.protobuf.Duration"
|
220
|
+
optional :not_before_time, :message, 5, "google.protobuf.Timestamp"
|
221
|
+
optional :not_after_time, :message, 6, "google.protobuf.Timestamp"
|
222
|
+
end
|
223
|
+
add_message "google.cloud.security.privateca.v1.CertificateDescription.KeyId" do
|
224
|
+
optional :key_id, :string, 1
|
225
|
+
end
|
226
|
+
add_message "google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint" do
|
227
|
+
optional :sha256_hash, :string, 1
|
228
|
+
end
|
229
|
+
add_message "google.cloud.security.privateca.v1.ObjectId" do
|
230
|
+
repeated :object_id_path, :int32, 1
|
231
|
+
end
|
232
|
+
add_message "google.cloud.security.privateca.v1.X509Extension" do
|
233
|
+
optional :object_id, :message, 1, "google.cloud.security.privateca.v1.ObjectId"
|
234
|
+
optional :critical, :bool, 2
|
235
|
+
optional :value, :bytes, 3
|
236
|
+
end
|
237
|
+
add_message "google.cloud.security.privateca.v1.KeyUsage" do
|
238
|
+
optional :base_key_usage, :message, 1, "google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions"
|
239
|
+
optional :extended_key_usage, :message, 2, "google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions"
|
240
|
+
repeated :unknown_extended_key_usages, :message, 3, "google.cloud.security.privateca.v1.ObjectId"
|
241
|
+
end
|
242
|
+
add_message "google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions" do
|
243
|
+
optional :digital_signature, :bool, 1
|
244
|
+
optional :content_commitment, :bool, 2
|
245
|
+
optional :key_encipherment, :bool, 3
|
246
|
+
optional :data_encipherment, :bool, 4
|
247
|
+
optional :key_agreement, :bool, 5
|
248
|
+
optional :cert_sign, :bool, 6
|
249
|
+
optional :crl_sign, :bool, 7
|
250
|
+
optional :encipher_only, :bool, 8
|
251
|
+
optional :decipher_only, :bool, 9
|
252
|
+
end
|
253
|
+
add_message "google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions" do
|
254
|
+
optional :server_auth, :bool, 1
|
255
|
+
optional :client_auth, :bool, 2
|
256
|
+
optional :code_signing, :bool, 3
|
257
|
+
optional :email_protection, :bool, 4
|
258
|
+
optional :time_stamping, :bool, 5
|
259
|
+
optional :ocsp_signing, :bool, 6
|
260
|
+
end
|
261
|
+
add_message "google.cloud.security.privateca.v1.Subject" do
|
262
|
+
optional :common_name, :string, 1
|
263
|
+
optional :country_code, :string, 2
|
264
|
+
optional :organization, :string, 3
|
265
|
+
optional :organizational_unit, :string, 4
|
266
|
+
optional :locality, :string, 5
|
267
|
+
optional :province, :string, 6
|
268
|
+
optional :street_address, :string, 7
|
269
|
+
optional :postal_code, :string, 8
|
270
|
+
end
|
271
|
+
add_message "google.cloud.security.privateca.v1.SubjectAltNames" do
|
272
|
+
repeated :dns_names, :string, 1
|
273
|
+
repeated :uris, :string, 2
|
274
|
+
repeated :email_addresses, :string, 3
|
275
|
+
repeated :ip_addresses, :string, 4
|
276
|
+
repeated :custom_sans, :message, 5, "google.cloud.security.privateca.v1.X509Extension"
|
277
|
+
end
|
278
|
+
add_message "google.cloud.security.privateca.v1.CertificateIdentityConstraints" do
|
279
|
+
optional :cel_expression, :message, 1, "google.type.Expr"
|
280
|
+
proto3_optional :allow_subject_passthrough, :bool, 2
|
281
|
+
proto3_optional :allow_subject_alt_names_passthrough, :bool, 3
|
282
|
+
end
|
283
|
+
add_message "google.cloud.security.privateca.v1.CertificateExtensionConstraints" do
|
284
|
+
repeated :known_extensions, :enum, 1, "google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension"
|
285
|
+
repeated :additional_extensions, :message, 2, "google.cloud.security.privateca.v1.ObjectId"
|
286
|
+
end
|
287
|
+
add_enum "google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension" do
|
288
|
+
value :KNOWN_CERTIFICATE_EXTENSION_UNSPECIFIED, 0
|
289
|
+
value :BASE_KEY_USAGE, 1
|
290
|
+
value :EXTENDED_KEY_USAGE, 2
|
291
|
+
value :CA_OPTIONS, 3
|
292
|
+
value :POLICY_IDS, 4
|
293
|
+
value :AIA_OCSP_SERVERS, 5
|
294
|
+
end
|
295
|
+
add_enum "google.cloud.security.privateca.v1.RevocationReason" do
|
296
|
+
value :REVOCATION_REASON_UNSPECIFIED, 0
|
297
|
+
value :KEY_COMPROMISE, 1
|
298
|
+
value :CERTIFICATE_AUTHORITY_COMPROMISE, 2
|
299
|
+
value :AFFILIATION_CHANGED, 3
|
300
|
+
value :SUPERSEDED, 4
|
301
|
+
value :CESSATION_OF_OPERATION, 5
|
302
|
+
value :CERTIFICATE_HOLD, 6
|
303
|
+
value :PRIVILEGE_WITHDRAWN, 7
|
304
|
+
value :ATTRIBUTE_AUTHORITY_COMPROMISE, 8
|
305
|
+
end
|
306
|
+
add_enum "google.cloud.security.privateca.v1.SubjectRequestMode" do
|
307
|
+
value :SUBJECT_REQUEST_MODE_UNSPECIFIED, 0
|
308
|
+
value :DEFAULT, 1
|
309
|
+
value :REFLECTED_SPIFFE, 2
|
310
|
+
end
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
module Google
|
315
|
+
module Cloud
|
316
|
+
module Security
|
317
|
+
module PrivateCA
|
318
|
+
module V1
|
319
|
+
CertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateAuthority").msgclass
|
320
|
+
CertificateAuthority::AccessUrls = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateAuthority.AccessUrls").msgclass
|
321
|
+
CertificateAuthority::KeyVersionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateAuthority.KeyVersionSpec").msgclass
|
322
|
+
CertificateAuthority::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateAuthority.Type").enummodule
|
323
|
+
CertificateAuthority::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateAuthority.State").enummodule
|
324
|
+
CertificateAuthority::SignHashAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateAuthority.SignHashAlgorithm").enummodule
|
325
|
+
CaPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool").msgclass
|
326
|
+
CaPool::PublishingOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.PublishingOptions").msgclass
|
327
|
+
CaPool::IssuancePolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.IssuancePolicy").msgclass
|
328
|
+
CaPool::IssuancePolicy::AllowedKeyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType").msgclass
|
329
|
+
CaPool::IssuancePolicy::AllowedKeyType::RsaKeyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.RsaKeyType").msgclass
|
330
|
+
CaPool::IssuancePolicy::AllowedKeyType::EcKeyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType").msgclass
|
331
|
+
CaPool::IssuancePolicy::AllowedKeyType::EcKeyType::EcSignatureAlgorithm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.IssuancePolicy.AllowedKeyType.EcKeyType.EcSignatureAlgorithm").enummodule
|
332
|
+
CaPool::IssuancePolicy::IssuanceModes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes").msgclass
|
333
|
+
CaPool::Tier = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CaPool.Tier").enummodule
|
334
|
+
CertificateRevocationList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateRevocationList").msgclass
|
335
|
+
CertificateRevocationList::RevokedCertificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateRevocationList.RevokedCertificate").msgclass
|
336
|
+
CertificateRevocationList::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateRevocationList.State").enummodule
|
337
|
+
Certificate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.Certificate").msgclass
|
338
|
+
Certificate::RevocationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.Certificate.RevocationDetails").msgclass
|
339
|
+
CertificateTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateTemplate").msgclass
|
340
|
+
X509Parameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.X509Parameters").msgclass
|
341
|
+
X509Parameters::CaOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.X509Parameters.CaOptions").msgclass
|
342
|
+
SubordinateConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.SubordinateConfig").msgclass
|
343
|
+
SubordinateConfig::SubordinateConfigChain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.SubordinateConfig.SubordinateConfigChain").msgclass
|
344
|
+
PublicKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.PublicKey").msgclass
|
345
|
+
PublicKey::KeyFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.PublicKey.KeyFormat").enummodule
|
346
|
+
CertificateConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateConfig").msgclass
|
347
|
+
CertificateConfig::SubjectConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig").msgclass
|
348
|
+
CertificateDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateDescription").msgclass
|
349
|
+
CertificateDescription::SubjectDescription = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription").msgclass
|
350
|
+
CertificateDescription::KeyId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateDescription.KeyId").msgclass
|
351
|
+
CertificateDescription::CertificateFingerprint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint").msgclass
|
352
|
+
ObjectId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.ObjectId").msgclass
|
353
|
+
X509Extension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.X509Extension").msgclass
|
354
|
+
KeyUsage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.KeyUsage").msgclass
|
355
|
+
KeyUsage::KeyUsageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.KeyUsage.KeyUsageOptions").msgclass
|
356
|
+
KeyUsage::ExtendedKeyUsageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions").msgclass
|
357
|
+
Subject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.Subject").msgclass
|
358
|
+
SubjectAltNames = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.SubjectAltNames").msgclass
|
359
|
+
CertificateIdentityConstraints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateIdentityConstraints").msgclass
|
360
|
+
CertificateExtensionConstraints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateExtensionConstraints").msgclass
|
361
|
+
CertificateExtensionConstraints::KnownCertificateExtension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.CertificateExtensionConstraints.KnownCertificateExtension").enummodule
|
362
|
+
RevocationReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.RevocationReason").enummodule
|
363
|
+
SubjectRequestMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.security.privateca.v1.SubjectRequestMode").enummodule
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
367
|
+
end
|
368
|
+
end
|