google-cloud-security-private_ca-v1beta1 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/client.rb +50 -58
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations.rb +14 -16
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/client.rb +1958 -0
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/operations.rb +795 -0
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/service_stub.rb +1241 -0
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest.rb +56 -0
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service.rb +7 -1
- data/lib/google/cloud/security/private_ca/v1beta1/rest.rb +39 -0
- data/lib/google/cloud/security/private_ca/v1beta1/version.rb +1 -1
- data/lib/google/cloud/security/private_ca/v1beta1.rb +7 -2
- data/lib/google/cloud/security/privateca/v1beta1/resources_pb.rb +27 -267
- data/lib/google/cloud/security/privateca/v1beta1/service_pb.rb +27 -131
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +14 -7
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/security/private_ca/v1beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/credentials"
|
26
|
+
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/paths"
|
27
|
+
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/operations"
|
28
|
+
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Security
|
33
|
+
module PrivateCA
|
34
|
+
module V1beta1
|
35
|
+
##
|
36
|
+
# {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client Certificate Authority Service} manages private
|
37
|
+
# certificate authorities and issued certificates.
|
38
|
+
#
|
39
|
+
# To load this service and instantiate a REST client:
|
40
|
+
#
|
41
|
+
# require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest"
|
42
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
43
|
+
#
|
44
|
+
module CertificateAuthorityService
|
45
|
+
# Client for the REST transport
|
46
|
+
module Rest
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
56
|
+
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/
|
|
26
26
|
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/paths"
|
27
27
|
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations"
|
28
28
|
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/client"
|
29
|
+
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -36,11 +37,16 @@ module Google
|
|
36
37
|
# {::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client Certificate Authority Service} manages private
|
37
38
|
# certificate authorities and issued certificates.
|
38
39
|
#
|
39
|
-
#
|
40
|
+
# @example Load this service and instantiate a gRPC client
|
40
41
|
#
|
41
42
|
# require "google/cloud/security/private_ca/v1beta1/certificate_authority_service"
|
42
43
|
# client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
|
43
44
|
#
|
45
|
+
# @example Load this service and instantiate a REST client
|
46
|
+
#
|
47
|
+
# require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest"
|
48
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
49
|
+
#
|
44
50
|
module CertificateAuthorityService
|
45
51
|
end
|
46
52
|
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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
|
+
require "google/cloud/security/private_ca/v1beta1/certificate_authority_service/rest"
|
20
|
+
require "google/cloud/security/private_ca/v1beta1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Security
|
25
|
+
module PrivateCA
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/security/private_ca/v1beta1/rest"
|
32
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1beta1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -24,13 +24,18 @@ module Google
|
|
24
24
|
module Security
|
25
25
|
module PrivateCA
|
26
26
|
##
|
27
|
-
#
|
27
|
+
# API client module.
|
28
28
|
#
|
29
|
-
# @example
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
30
|
#
|
31
31
|
# require "google/cloud/security/private_ca/v1beta1"
|
32
32
|
# client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Client.new
|
33
33
|
#
|
34
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
35
|
+
#
|
36
|
+
# require "google/cloud/security/private_ca/v1beta1"
|
37
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthorityService::Rest::Client.new
|
38
|
+
#
|
34
39
|
module V1beta1
|
35
40
|
end
|
36
41
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/security/privateca/v1beta1/resources.proto
|
3
4
|
|
@@ -8,276 +9,35 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
require 'google/protobuf/wrappers_pb'
|
11
|
-
require 'google/api/annotations_pb'
|
12
12
|
|
13
|
-
|
14
|
-
add_file("google/cloud/security/privateca/v1beta1/resources.proto", :syntax => :proto3) do
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
optional :include_crl_access_url, :bool, 2
|
38
|
-
end
|
39
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy" do
|
40
|
-
repeated :allowed_locations_and_organizations, :message, 3, "google.cloud.security.privateca.v1beta1.Subject"
|
41
|
-
repeated :allowed_common_names, :string, 4
|
42
|
-
optional :allowed_sans, :message, 5, "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames"
|
43
|
-
optional :maximum_lifetime, :message, 6, "google.protobuf.Duration"
|
44
|
-
optional :allowed_issuance_modes, :message, 8, "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes"
|
45
|
-
oneof :config_policy do
|
46
|
-
optional :allowed_config_list, :message, 1, "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList"
|
47
|
-
optional :overwrite_config_values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper"
|
48
|
-
end
|
49
|
-
end
|
50
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList" do
|
51
|
-
repeated :allowed_config_values, :message, 1, "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper"
|
52
|
-
end
|
53
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames" do
|
54
|
-
repeated :allowed_dns_names, :string, 1
|
55
|
-
repeated :allowed_uris, :string, 2
|
56
|
-
repeated :allowed_email_addresses, :string, 3
|
57
|
-
repeated :allowed_ips, :string, 4
|
58
|
-
optional :allow_globbing_dns_wildcards, :bool, 5
|
59
|
-
optional :allow_custom_sans, :bool, 6
|
60
|
-
end
|
61
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes" do
|
62
|
-
optional :allow_csr_based_issuance, :bool, 1
|
63
|
-
optional :allow_config_based_issuance, :bool, 2
|
64
|
-
end
|
65
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls" do
|
66
|
-
optional :ca_certificate_access_url, :string, 1
|
67
|
-
optional :crl_access_url, :string, 2
|
68
|
-
end
|
69
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec" do
|
70
|
-
oneof :KeyVersion do
|
71
|
-
optional :cloud_kms_key_version, :string, 1
|
72
|
-
optional :algorithm, :enum, 2, "google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm"
|
73
|
-
end
|
74
|
-
end
|
75
|
-
add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.Type" do
|
76
|
-
value :TYPE_UNSPECIFIED, 0
|
77
|
-
value :SELF_SIGNED, 1
|
78
|
-
value :SUBORDINATE, 2
|
79
|
-
end
|
80
|
-
add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier" do
|
81
|
-
value :TIER_UNSPECIFIED, 0
|
82
|
-
value :ENTERPRISE, 1
|
83
|
-
value :DEVOPS, 2
|
84
|
-
end
|
85
|
-
add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.State" do
|
86
|
-
value :STATE_UNSPECIFIED, 0
|
87
|
-
value :ENABLED, 1
|
88
|
-
value :DISABLED, 2
|
89
|
-
value :PENDING_ACTIVATION, 3
|
90
|
-
value :PENDING_DELETION, 4
|
91
|
-
end
|
92
|
-
add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm" do
|
93
|
-
value :SIGN_HASH_ALGORITHM_UNSPECIFIED, 0
|
94
|
-
value :RSA_PSS_2048_SHA256, 1
|
95
|
-
value :RSA_PSS_3072_SHA256, 2
|
96
|
-
value :RSA_PSS_4096_SHA256, 3
|
97
|
-
value :RSA_PKCS1_2048_SHA256, 6
|
98
|
-
value :RSA_PKCS1_3072_SHA256, 7
|
99
|
-
value :RSA_PKCS1_4096_SHA256, 8
|
100
|
-
value :EC_P256_SHA256, 4
|
101
|
-
value :EC_P384_SHA384, 5
|
102
|
-
end
|
103
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateRevocationList" do
|
104
|
-
optional :name, :string, 1
|
105
|
-
optional :sequence_number, :int64, 2
|
106
|
-
repeated :revoked_certificates, :message, 3, "google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate"
|
107
|
-
optional :pem_crl, :string, 4
|
108
|
-
optional :access_url, :string, 5
|
109
|
-
optional :state, :enum, 6, "google.cloud.security.privateca.v1beta1.CertificateRevocationList.State"
|
110
|
-
optional :create_time, :message, 7, "google.protobuf.Timestamp"
|
111
|
-
optional :update_time, :message, 8, "google.protobuf.Timestamp"
|
112
|
-
map :labels, :string, :string, 9
|
113
|
-
end
|
114
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate" do
|
115
|
-
optional :certificate, :string, 1
|
116
|
-
optional :hex_serial_number, :string, 2
|
117
|
-
optional :revocation_reason, :enum, 3, "google.cloud.security.privateca.v1beta1.RevocationReason"
|
118
|
-
end
|
119
|
-
add_enum "google.cloud.security.privateca.v1beta1.CertificateRevocationList.State" do
|
120
|
-
value :STATE_UNSPECIFIED, 0
|
121
|
-
value :ACTIVE, 1
|
122
|
-
value :SUPERSEDED, 2
|
123
|
-
end
|
124
|
-
add_message "google.cloud.security.privateca.v1beta1.Certificate" do
|
125
|
-
optional :name, :string, 1
|
126
|
-
optional :lifetime, :message, 4, "google.protobuf.Duration"
|
127
|
-
optional :revocation_details, :message, 5, "google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails"
|
128
|
-
optional :pem_certificate, :string, 6
|
129
|
-
optional :certificate_description, :message, 7, "google.cloud.security.privateca.v1beta1.CertificateDescription"
|
130
|
-
repeated :pem_certificate_chain, :string, 8
|
131
|
-
optional :create_time, :message, 9, "google.protobuf.Timestamp"
|
132
|
-
optional :update_time, :message, 10, "google.protobuf.Timestamp"
|
133
|
-
map :labels, :string, :string, 11
|
134
|
-
oneof :certificate_config do
|
135
|
-
optional :pem_csr, :string, 2
|
136
|
-
optional :config, :message, 3, "google.cloud.security.privateca.v1beta1.CertificateConfig"
|
137
|
-
end
|
138
|
-
end
|
139
|
-
add_message "google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails" do
|
140
|
-
optional :revocation_state, :enum, 1, "google.cloud.security.privateca.v1beta1.RevocationReason"
|
141
|
-
optional :revocation_time, :message, 2, "google.protobuf.Timestamp"
|
142
|
-
end
|
143
|
-
add_message "google.cloud.security.privateca.v1beta1.ReusableConfig" do
|
144
|
-
optional :name, :string, 1
|
145
|
-
optional :values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues"
|
146
|
-
optional :description, :string, 3
|
147
|
-
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
148
|
-
optional :update_time, :message, 5, "google.protobuf.Timestamp"
|
149
|
-
map :labels, :string, :string, 6
|
150
|
-
end
|
151
|
-
add_message "google.cloud.security.privateca.v1beta1.ReusableConfigValues" do
|
152
|
-
optional :key_usage, :message, 1, "google.cloud.security.privateca.v1beta1.KeyUsage"
|
153
|
-
optional :ca_options, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions"
|
154
|
-
repeated :policy_ids, :message, 3, "google.cloud.security.privateca.v1beta1.ObjectId"
|
155
|
-
repeated :aia_ocsp_servers, :string, 4
|
156
|
-
repeated :additional_extensions, :message, 5, "google.cloud.security.privateca.v1beta1.X509Extension"
|
157
|
-
end
|
158
|
-
add_message "google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions" do
|
159
|
-
optional :is_ca, :message, 1, "google.protobuf.BoolValue"
|
160
|
-
optional :max_issuer_path_length, :message, 2, "google.protobuf.Int32Value"
|
161
|
-
end
|
162
|
-
add_message "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper" do
|
163
|
-
oneof :config_values do
|
164
|
-
optional :reusable_config, :string, 1
|
165
|
-
optional :reusable_config_values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues"
|
166
|
-
end
|
167
|
-
end
|
168
|
-
add_message "google.cloud.security.privateca.v1beta1.SubordinateConfig" do
|
169
|
-
oneof :subordinate_config do
|
170
|
-
optional :certificate_authority, :string, 1
|
171
|
-
optional :pem_issuer_chain, :message, 2, "google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain"
|
172
|
-
end
|
173
|
-
end
|
174
|
-
add_message "google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain" do
|
175
|
-
repeated :pem_certificates, :string, 1
|
176
|
-
end
|
177
|
-
add_message "google.cloud.security.privateca.v1beta1.PublicKey" do
|
178
|
-
optional :type, :enum, 1, "google.cloud.security.privateca.v1beta1.PublicKey.KeyType"
|
179
|
-
optional :key, :bytes, 2
|
180
|
-
end
|
181
|
-
add_enum "google.cloud.security.privateca.v1beta1.PublicKey.KeyType" do
|
182
|
-
value :KEY_TYPE_UNSPECIFIED, 0
|
183
|
-
value :PEM_RSA_KEY, 1
|
184
|
-
value :PEM_EC_KEY, 2
|
185
|
-
end
|
186
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateConfig" do
|
187
|
-
optional :subject_config, :message, 1, "google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig"
|
188
|
-
optional :reusable_config, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper"
|
189
|
-
optional :public_key, :message, 3, "google.cloud.security.privateca.v1beta1.PublicKey"
|
190
|
-
end
|
191
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig" do
|
192
|
-
optional :subject, :message, 1, "google.cloud.security.privateca.v1beta1.Subject"
|
193
|
-
optional :common_name, :string, 2
|
194
|
-
optional :subject_alt_name, :message, 3, "google.cloud.security.privateca.v1beta1.SubjectAltNames"
|
195
|
-
end
|
196
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateDescription" do
|
197
|
-
optional :subject_description, :message, 1, "google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription"
|
198
|
-
optional :config_values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues"
|
199
|
-
optional :public_key, :message, 3, "google.cloud.security.privateca.v1beta1.PublicKey"
|
200
|
-
optional :subject_key_id, :message, 4, "google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId"
|
201
|
-
optional :authority_key_id, :message, 5, "google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId"
|
202
|
-
repeated :crl_distribution_points, :string, 6
|
203
|
-
repeated :aia_issuing_certificate_urls, :string, 7
|
204
|
-
optional :cert_fingerprint, :message, 8, "google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint"
|
205
|
-
end
|
206
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription" do
|
207
|
-
optional :subject, :message, 1, "google.cloud.security.privateca.v1beta1.Subject"
|
208
|
-
optional :common_name, :string, 2
|
209
|
-
optional :subject_alt_name, :message, 3, "google.cloud.security.privateca.v1beta1.SubjectAltNames"
|
210
|
-
optional :hex_serial_number, :string, 4
|
211
|
-
optional :lifetime, :message, 5, "google.protobuf.Duration"
|
212
|
-
optional :not_before_time, :message, 6, "google.protobuf.Timestamp"
|
213
|
-
optional :not_after_time, :message, 7, "google.protobuf.Timestamp"
|
214
|
-
end
|
215
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId" do
|
216
|
-
optional :key_id, :string, 1
|
217
|
-
end
|
218
|
-
add_message "google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint" do
|
219
|
-
optional :sha256_hash, :string, 1
|
220
|
-
end
|
221
|
-
add_message "google.cloud.security.privateca.v1beta1.ObjectId" do
|
222
|
-
repeated :object_id_path, :int32, 1
|
223
|
-
end
|
224
|
-
add_message "google.cloud.security.privateca.v1beta1.X509Extension" do
|
225
|
-
optional :object_id, :message, 1, "google.cloud.security.privateca.v1beta1.ObjectId"
|
226
|
-
optional :critical, :bool, 2
|
227
|
-
optional :value, :bytes, 3
|
228
|
-
end
|
229
|
-
add_message "google.cloud.security.privateca.v1beta1.KeyUsage" do
|
230
|
-
optional :base_key_usage, :message, 1, "google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions"
|
231
|
-
optional :extended_key_usage, :message, 2, "google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions"
|
232
|
-
repeated :unknown_extended_key_usages, :message, 3, "google.cloud.security.privateca.v1beta1.ObjectId"
|
233
|
-
end
|
234
|
-
add_message "google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions" do
|
235
|
-
optional :digital_signature, :bool, 1
|
236
|
-
optional :content_commitment, :bool, 2
|
237
|
-
optional :key_encipherment, :bool, 3
|
238
|
-
optional :data_encipherment, :bool, 4
|
239
|
-
optional :key_agreement, :bool, 5
|
240
|
-
optional :cert_sign, :bool, 6
|
241
|
-
optional :crl_sign, :bool, 7
|
242
|
-
optional :encipher_only, :bool, 8
|
243
|
-
optional :decipher_only, :bool, 9
|
244
|
-
end
|
245
|
-
add_message "google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions" do
|
246
|
-
optional :server_auth, :bool, 1
|
247
|
-
optional :client_auth, :bool, 2
|
248
|
-
optional :code_signing, :bool, 3
|
249
|
-
optional :email_protection, :bool, 4
|
250
|
-
optional :time_stamping, :bool, 5
|
251
|
-
optional :ocsp_signing, :bool, 6
|
252
|
-
end
|
253
|
-
add_message "google.cloud.security.privateca.v1beta1.Subject" do
|
254
|
-
optional :country_code, :string, 1
|
255
|
-
optional :organization, :string, 2
|
256
|
-
optional :organizational_unit, :string, 3
|
257
|
-
optional :locality, :string, 4
|
258
|
-
optional :province, :string, 5
|
259
|
-
optional :street_address, :string, 6
|
260
|
-
optional :postal_code, :string, 7
|
261
|
-
end
|
262
|
-
add_message "google.cloud.security.privateca.v1beta1.SubjectAltNames" do
|
263
|
-
repeated :dns_names, :string, 1
|
264
|
-
repeated :uris, :string, 2
|
265
|
-
repeated :email_addresses, :string, 3
|
266
|
-
repeated :ip_addresses, :string, 4
|
267
|
-
repeated :custom_sans, :message, 5, "google.cloud.security.privateca.v1beta1.X509Extension"
|
268
|
-
end
|
269
|
-
add_enum "google.cloud.security.privateca.v1beta1.RevocationReason" do
|
270
|
-
value :REVOCATION_REASON_UNSPECIFIED, 0
|
271
|
-
value :KEY_COMPROMISE, 1
|
272
|
-
value :CERTIFICATE_AUTHORITY_COMPROMISE, 2
|
273
|
-
value :AFFILIATION_CHANGED, 3
|
274
|
-
value :SUPERSEDED, 4
|
275
|
-
value :CESSATION_OF_OPERATION, 5
|
276
|
-
value :CERTIFICATE_HOLD, 6
|
277
|
-
value :PRIVILEGE_WITHDRAWN, 7
|
278
|
-
value :ATTRIBUTE_AUTHORITY_COMPROMISE, 8
|
13
|
+
|
14
|
+
descriptor_data = "\n7google/cloud/security/privateca/v1beta1/resources.proto\x12\'google.cloud.security.privateca.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa8\x1c\n\x14\x43\x65rtificateAuthority\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12X\n\x04type\x18\x02 \x01(\x0e\x32\x42.google.cloud.security.privateca.v1beta1.CertificateAuthority.TypeB\x06\xe0\x41\x02\xe0\x41\x05\x12X\n\x04tier\x18\x03 \x01(\x0e\x32\x42.google.cloud.security.privateca.v1beta1.CertificateAuthority.TierB\x06\xe0\x41\x02\xe0\x41\x05\x12R\n\x06\x63onfig\x18\x04 \x01(\x0b\x32:.google.cloud.security.privateca.v1beta1.CertificateConfigB\x06\xe0\x41\x02\xe0\x41\x05\x12\x30\n\x08lifetime\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12\x66\n\x08key_spec\x18\x06 \x01(\x0b\x32L.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecB\x06\xe0\x41\x02\xe0\x41\x05\x12y\n\x12\x63\x65rtificate_policy\x18\x07 \x01(\x0b\x32X.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyB\x03\xe0\x41\x01\x12j\n\x0fissuing_options\x18\x08 \x01(\x0b\x32L.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsB\x03\xe0\x41\x01\x12[\n\x12subordinate_config\x18\x13 \x01(\x0b\x32:.google.cloud.security.privateca.v1beta1.SubordinateConfigB\x03\xe0\x41\x01\x12W\n\x05state\x18\n \x01(\x0e\x32\x43.google.cloud.security.privateca.v1beta1.CertificateAuthority.StateB\x03\xe0\x41\x03\x12 \n\x13pem_ca_certificates\x18\t \x03(\tB\x03\xe0\x41\x03\x12i\n\x1b\x63\x61_certificate_descriptions\x18\x0c \x03(\x0b\x32?.google.cloud.security.privateca.v1beta1.CertificateDescriptionB\x03\xe0\x41\x03\x12\x17\n\ngcs_bucket\x18\r \x01(\tB\x03\xe0\x41\x05\x12\x62\n\x0b\x61\x63\x63\x65ss_urls\x18\x0e \x01(\x0b\x32H.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12^\n\x06labels\x18\x12 \x03(\x0b\x32I.google.cloud.security.privateca.v1beta1.CertificateAuthority.LabelsEntryB\x03\xe0\x41\x01\x1aW\n\x0eIssuingOptions\x12 \n\x13include_ca_cert_url\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12#\n\x16include_crl_access_url\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\x1a\xbe\t\n\x1a\x43\x65rtificateAuthorityPolicy\x12\x8e\x01\n\x13\x61llowed_config_list\x18\x01 \x01(\x0b\x32j.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListB\x03\xe0\x41\x01H\x00\x12\x66\n\x17overwrite_config_values\x18\x02 \x01(\x0b\x32>.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperB\x03\xe0\x41\x01H\x00\x12\x62\n#allowed_locations_and_organizations\x18\x03 \x03(\x0b\x32\x30.google.cloud.security.privateca.v1beta1.SubjectB\x03\xe0\x41\x01\x12!\n\x14\x61llowed_common_names\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x8a\x01\n\x0c\x61llowed_sans\x18\x05 \x01(\x0b\x32o.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesB\x03\xe0\x41\x01\x12\x38\n\x10maximum_lifetime\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x8b\x01\n\x16\x61llowed_issuance_modes\x18\x08 \x01(\x0b\x32\x66.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesB\x03\xe0\x41\x01\x1aw\n\x11\x41llowedConfigList\x12\x62\n\x15\x61llowed_config_values\x18\x01 \x03(\x0b\x32>.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperB\x03\xe0\x41\x02\x1a\xde\x01\n\x16\x41llowedSubjectAltNames\x12\x1e\n\x11\x61llowed_dns_names\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61llowed_uris\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12$\n\x17\x61llowed_email_addresses\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x61llowed_ips\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12)\n\x1c\x61llow_globbing_dns_wildcards\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11\x61llow_custom_sans\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x1a`\n\rIssuanceModes\x12%\n\x18\x61llow_csr_based_issuance\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12(\n\x1b\x61llow_config_based_issuance\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\x42\x0f\n\rconfig_policy\x1aG\n\nAccessUrls\x12!\n\x19\x63\x61_certificate_access_url\x18\x01 \x01(\t\x12\x16\n\x0e\x63rl_access_url\x18\x02 \x01(\t\x1a\xaf\x01\n\x0eKeyVersionSpec\x12$\n\x15\x63loud_kms_key_version\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12i\n\talgorithm\x18\x02 \x01(\x0e\x32O.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithmB\x03\xe0\x41\x02H\x00\x42\x0c\n\nKeyVersion\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\">\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSELF_SIGNED\x10\x01\x12\x0f\n\x0bSUBORDINATE\x10\x02\"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x0e\n\nENTERPRISE\x10\x01\x12\n\n\x06\x44\x45VOPS\x10\x02\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x16\n\x12PENDING_ACTIVATION\x10\x03\x12\x14\n\x10PENDING_DELETION\x10\x04\"\xfc\x01\n\x11SignHashAlgorithm\x12#\n\x1fSIGN_HASH_ALGORITHM_UNSPECIFIED\x10\x00\x12\x17\n\x13RSA_PSS_2048_SHA256\x10\x01\x12\x17\n\x13RSA_PSS_3072_SHA256\x10\x02\x12\x17\n\x13RSA_PSS_4096_SHA256\x10\x03\x12\x19\n\x15RSA_PKCS1_2048_SHA256\x10\x06\x12\x19\n\x15RSA_PKCS1_3072_SHA256\x10\x07\x12\x19\n\x15RSA_PKCS1_4096_SHA256\x10\x08\x12\x12\n\x0e\x45\x43_P256_SHA256\x10\x04\x12\x12\n\x0e\x45\x43_P384_SHA384\x10\x05:\x8b\x01\xea\x41\x87\x01\n-privateca.googleapis.com/CertificateAuthority\x12Vprojects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}\"\xf9\x07\n\x19\x43\x65rtificateRevocationList\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsequence_number\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12x\n\x14revoked_certificates\x18\x03 \x03(\x0b\x32U.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateB\x03\xe0\x41\x03\x12\x14\n\x07pem_crl\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\naccess_url\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\\\n\x05state\x18\x06 \x01(\x0e\x32H.google.cloud.security.privateca.v1beta1.CertificateRevocationList.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x63\n\x06labels\x18\t \x03(\x0b\x32N.google.cloud.security.privateca.v1beta1.CertificateRevocationList.LabelsEntryB\x03\xe0\x41\x01\x1a\x9a\x01\n\x12RevokedCertificate\x12\x13\n\x0b\x63\x65rtificate\x18\x01 \x01(\t\x12\x19\n\x11hex_serial_number\x18\x02 \x01(\t\x12T\n\x11revocation_reason\x18\x03 \x01(\x0e\x32\x39.google.cloud.security.privateca.v1beta1.RevocationReason\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\":\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nSUPERSEDED\x10\x02:\xca\x01\xea\x41\xc6\x01\n2privateca.googleapis.com/CertificateRevocationList\x12\x8f\x01projects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list}\"\x9a\x08\n\x0b\x43\x65rtificate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\x07pem_csr\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12Q\n\x06\x63onfig\x18\x03 \x01(\x0b\x32:.google.cloud.security.privateca.v1beta1.CertificateConfigB\x03\xe0\x41\x05H\x00\x12\x33\n\x08lifetime\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x06\xe0\x41\x02\xe0\x41\x05\x12g\n\x12revocation_details\x18\x05 \x01(\x0b\x32\x46.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsB\x03\xe0\x41\x03\x12\x1c\n\x0fpem_certificate\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x65\n\x17\x63\x65rtificate_description\x18\x07 \x01(\x0b\x32?.google.cloud.security.privateca.v1beta1.CertificateDescriptionB\x03\xe0\x41\x03\x12\"\n\x15pem_certificate_chain\x18\x08 \x03(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12U\n\x06labels\x18\x0b \x03(\x0b\x32@.google.cloud.security.privateca.v1beta1.Certificate.LabelsEntryB\x03\xe0\x41\x01\x1a\x9d\x01\n\x11RevocationDetails\x12S\n\x10revocation_state\x18\x01 \x01(\x0e\x32\x39.google.cloud.security.privateca.v1beta1.RevocationReason\x12\x33\n\x0frevocation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9d\x01\xea\x41\x99\x01\n$privateca.googleapis.com/Certificate\x12qprojects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}/certificates/{certificate}B\x14\n\x12\x63\x65rtificate_config\"\xff\x03\n\x0eReusableConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12R\n\x06values\x18\x02 \x01(\x0b\x32=.google.cloud.security.privateca.v1beta1.ReusableConfigValuesB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12X\n\x06labels\x18\x06 \x03(\x0b\x32\x43.google.cloud.security.privateca.v1beta1.ReusableConfig.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:w\xea\x41t\n\'privateca.googleapis.com/ReusableConfig\x12Iprojects/{project}/locations/{location}/reusableConfigs/{reusable_config}\"\x89\x04\n\x14ReusableConfigValues\x12I\n\tkey_usage\x18\x01 \x01(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.KeyUsageB\x03\xe0\x41\x01\x12`\n\nca_options\x18\x02 \x01(\x0b\x32G.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsB\x03\xe0\x41\x01\x12J\n\npolicy_ids\x18\x03 \x03(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.ObjectIdB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ia_ocsp_servers\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12Z\n\x15\x61\x64\x64itional_extensions\x18\x05 \x03(\x0b\x32\x36.google.cloud.security.privateca.v1beta1.X509ExtensionB\x03\xe0\x41\x01\x1a}\n\tCaOptions\x12.\n\x05is_ca\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x01\x12@\n\x16max_issuer_path_length\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x01\"\xae\x01\n\x15ReusableConfigWrapper\x12\x1e\n\x0freusable_config\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12\x64\n\x16reusable_config_values\x18\x02 \x01(\x0b\x32=.google.cloud.security.privateca.v1beta1.ReusableConfigValuesB\x03\xe0\x41\x02H\x00\x42\x0f\n\rconfig_values\"\xfc\x01\n\x11SubordinateConfig\x12$\n\x15\x63\x65rtificate_authority\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12r\n\x10pem_issuer_chain\x18\x02 \x01(\x0b\x32Q.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainB\x03\xe0\x41\x02H\x00\x1a\x37\n\x16SubordinateConfigChain\x12\x1d\n\x10pem_certificates\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\x14\n\x12subordinate_config\"\xb2\x01\n\tPublicKey\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.security.privateca.v1beta1.PublicKey.KeyTypeB\x03\xe0\x41\x02\x12\x10\n\x03key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"D\n\x07KeyType\x12\x18\n\x14KEY_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPEM_RSA_KEY\x10\x01\x12\x0e\n\nPEM_EC_KEY\x10\x02\"\xf2\x03\n\x11\x43\x65rtificateConfig\x12\x65\n\x0esubject_config\x18\x01 \x01(\x0b\x32H.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigB\x03\xe0\x41\x02\x12\\\n\x0freusable_config\x18\x02 \x01(\x0b\x32>.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperB\x03\xe0\x41\x02\x12K\n\npublic_key\x18\x03 \x01(\x0b\x32\x32.google.cloud.security.privateca.v1beta1.PublicKeyB\x03\xe0\x41\x01\x1a\xca\x01\n\rSubjectConfig\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32\x30.google.cloud.security.privateca.v1beta1.SubjectB\x03\xe0\x41\x02\x12\x18\n\x0b\x63ommon_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12W\n\x10subject_alt_name\x18\x03 \x01(\x0b\x32\x38.google.cloud.security.privateca.v1beta1.SubjectAltNamesB\x03\xe0\x41\x01\"\xe1\x08\n\x16\x43\x65rtificateDescription\x12o\n\x13subject_description\x18\x01 \x01(\x0b\x32R.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription\x12T\n\rconfig_values\x18\x02 \x01(\x0b\x32=.google.cloud.security.privateca.v1beta1.ReusableConfigValues\x12\x46\n\npublic_key\x18\x03 \x01(\x0b\x32\x32.google.cloud.security.privateca.v1beta1.PublicKey\x12]\n\x0esubject_key_id\x18\x04 \x01(\x0b\x32\x45.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId\x12_\n\x10\x61uthority_key_id\x18\x05 \x01(\x0b\x32\x45.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId\x12\x1f\n\x17\x63rl_distribution_points\x18\x06 \x03(\t\x12$\n\x1c\x61ia_issuing_certificate_urls\x18\x07 \x03(\t\x12p\n\x10\x63\x65rt_fingerprint\x18\x08 \x01(\x0b\x32V.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint\x1a\xf1\x02\n\x12SubjectDescription\x12\x41\n\x07subject\x18\x01 \x01(\x0b\x32\x30.google.cloud.security.privateca.v1beta1.Subject\x12\x13\n\x0b\x63ommon_name\x18\x02 \x01(\t\x12R\n\x10subject_alt_name\x18\x03 \x01(\x0b\x32\x38.google.cloud.security.privateca.v1beta1.SubjectAltNames\x12\x19\n\x11hex_serial_number\x18\x04 \x01(\t\x12+\n\x08lifetime\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\x0fnot_before_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0enot_after_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x1c\n\x05KeyId\x12\x13\n\x06key_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x16\x43\x65rtificateFingerprint\x12\x13\n\x0bsha256_hash\x18\x01 \x01(\t\"\'\n\x08ObjectId\x12\x1b\n\x0eobject_id_path\x18\x01 \x03(\x05\x42\x03\xe0\x41\x02\"\x85\x01\n\rX509Extension\x12I\n\tobject_id\x18\x01 \x01(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.ObjectIdB\x03\xe0\x41\x02\x12\x15\n\x08\x63ritical\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\xb1\x05\n\x08KeyUsage\x12Y\n\x0e\x62\x61se_key_usage\x18\x01 \x01(\x0b\x32\x41.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions\x12\x65\n\x12\x65xtended_key_usage\x18\x02 \x01(\x0b\x32I.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions\x12V\n\x1bunknown_extended_key_usages\x18\x03 \x03(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.ObjectId\x1a\xe7\x01\n\x0fKeyUsageOptions\x12\x19\n\x11\x64igital_signature\x18\x01 \x01(\x08\x12\x1a\n\x12\x63ontent_commitment\x18\x02 \x01(\x08\x12\x18\n\x10key_encipherment\x18\x03 \x01(\x08\x12\x19\n\x11\x64\x61ta_encipherment\x18\x04 \x01(\x08\x12\x15\n\rkey_agreement\x18\x05 \x01(\x08\x12\x11\n\tcert_sign\x18\x06 \x01(\x08\x12\x10\n\x08\x63rl_sign\x18\x07 \x01(\x08\x12\x15\n\rencipher_only\x18\x08 \x01(\x08\x12\x15\n\rdecipher_only\x18\t \x01(\x08\x1a\xa0\x01\n\x17\x45xtendedKeyUsageOptions\x12\x13\n\x0bserver_auth\x18\x01 \x01(\x08\x12\x13\n\x0b\x63lient_auth\x18\x02 \x01(\x08\x12\x14\n\x0c\x63ode_signing\x18\x03 \x01(\x08\x12\x18\n\x10\x65mail_protection\x18\x04 \x01(\x08\x12\x15\n\rtime_stamping\x18\x05 \x01(\x08\x12\x14\n\x0cocsp_signing\x18\x06 \x01(\x08\"\xa3\x01\n\x07Subject\x12\x14\n\x0c\x63ountry_code\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x1b\n\x13organizational_unit\x18\x03 \x01(\t\x12\x10\n\x08locality\x18\x04 \x01(\t\x12\x10\n\x08province\x18\x05 \x01(\t\x12\x16\n\x0estreet_address\x18\x06 \x01(\t\x12\x13\n\x0bpostal_code\x18\x07 \x01(\t\"\xae\x01\n\x0fSubjectAltNames\x12\x11\n\tdns_names\x18\x01 \x03(\t\x12\x0c\n\x04uris\x18\x02 \x03(\t\x12\x17\n\x0f\x65mail_addresses\x18\x03 \x03(\t\x12\x14\n\x0cip_addresses\x18\x04 \x03(\t\x12K\n\x0b\x63ustom_sans\x18\x05 \x03(\x0b\x32\x36.google.cloud.security.privateca.v1beta1.X509Extension*\x87\x02\n\x10RevocationReason\x12!\n\x1dREVOCATION_REASON_UNSPECIFIED\x10\x00\x12\x12\n\x0eKEY_COMPROMISE\x10\x01\x12$\n CERTIFICATE_AUTHORITY_COMPROMISE\x10\x02\x12\x17\n\x13\x41\x46\x46ILIATION_CHANGED\x10\x03\x12\x0e\n\nSUPERSEDED\x10\x04\x12\x1a\n\x16\x43\x45SSATION_OF_OPERATION\x10\x05\x12\x14\n\x10\x43\x45RTIFICATE_HOLD\x10\x06\x12\x17\n\x13PRIVILEGE_WITHDRAWN\x10\x07\x12\"\n\x1e\x41TTRIBUTE_AUTHORITY_COMPROMISE\x10\x08\x42\x98\x02\n+com.google.cloud.security.privateca.v1beta1B\x17PrivateCaResourcesProtoP\x01ZIcloud.google.com/go/security/privateca/apiv1beta1/privatecapb;privatecapb\xf8\x01\x01\xaa\x02\'Google.Cloud.Security.PrivateCA.V1Beta1\xca\x02\'Google\\Cloud\\Security\\PrivateCA\\V1beta1\xea\x02+Google::Cloud::Security::PrivateCA::V1beta1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
279
37
|
end
|
280
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
281
41
|
end
|
282
42
|
|
283
43
|
module Google
|