google-cloud-security-private_ca-v1 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/security/private_ca/v1/bindings_override.rb +185 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/client.rb +20 -5
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +2 -2
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/client.rb +2892 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/operations.rb +795 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest/service_stub.rb +1776 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/rest.rb +58 -0
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service.rb +6 -0
- data/lib/google/cloud/security/private_ca/v1/rest.rb +40 -0
- data/lib/google/cloud/security/private_ca/v1/version.rb +1 -1
- data/lib/google/cloud/security/private_ca/v1.rb +5 -0
- data/lib/google/cloud/security/privateca/v1/service_pb.rb +4 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/security/privateca/v1/resources.rb +1 -1
- data/proto_docs/google/cloud/security/privateca/v1/service.rb +18 -0
- metadata +19 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 813e12cd245e9857f682b683224cafd0cd387e76808877d3d00af2e1e74b4ae6
|
4
|
+
data.tar.gz: 740b7019bc07b8961ff3bc3c50237d5eb7b565d4eea32904327a8b78b347c7b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88f81e9ab259df35dc15d3bd0f0cdb6d504e328b2995ce30dbaebe194c49efff4c5e5d7323c1a3859190a4c55fa74cb861f9a0a3571840826a9531c918046207
|
7
|
+
data.tar.gz: b757b1fa61fac3748a5e0e2dd32081c3b3a56296aee34669ea20d39296afa93fae77bfa0665a52eb091e18acd0a37c0e4407c7e06bcd82eed905c3b67f6cda0b
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Ceritificate Authority Service V1 API
|
2
2
|
|
3
|
-
API
|
3
|
+
The Certificate Authority Service API is a highly-available, scalable service that enables you to simplify and automate the management of private certificate authorities (CAs) while staying in control of your private keys.
|
4
4
|
|
5
5
|
Certificate Authority Service is a highly available, scalable Google Cloud service that enables you to simplify, automate, and customize the deployment, management, and security of private certificate authorities (CA).
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -0,0 +1,185 @@
|
|
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/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Security
|
24
|
+
module PrivateCA
|
25
|
+
##
|
26
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
27
|
+
#
|
28
|
+
# require "google/cloud/security/private_ca/v1/rest"
|
29
|
+
# client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Rest::Client.new
|
30
|
+
#
|
31
|
+
module V1
|
32
|
+
##
|
33
|
+
# @private
|
34
|
+
# Initialize the mixin bindings configuration
|
35
|
+
#
|
36
|
+
def self.configure
|
37
|
+
@configure ||= begin
|
38
|
+
namespace = ["Google", "Cloud", "Security", "PrivateCA"]
|
39
|
+
parent_config = while namespace.any?
|
40
|
+
parent_name = namespace.join "::"
|
41
|
+
parent_const = const_get parent_name
|
42
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
43
|
+
namespace.pop
|
44
|
+
end
|
45
|
+
|
46
|
+
default_config = Configuration.new parent_config
|
47
|
+
default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
|
48
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
49
|
+
uri_method: :get,
|
50
|
+
uri_template: "/v1/{name}",
|
51
|
+
matches: [
|
52
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
53
|
+
],
|
54
|
+
body: nil
|
55
|
+
)
|
56
|
+
]
|
57
|
+
default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
|
58
|
+
|
59
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
60
|
+
uri_method: :get,
|
61
|
+
uri_template: "/v1/{name}/locations",
|
62
|
+
matches: [
|
63
|
+
["name", %r{^projects/[^/]+/?$}, false]
|
64
|
+
],
|
65
|
+
body: nil
|
66
|
+
)
|
67
|
+
]
|
68
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
|
69
|
+
|
70
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
71
|
+
uri_method: :get,
|
72
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
73
|
+
matches: [
|
74
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
|
75
|
+
],
|
76
|
+
body: nil
|
77
|
+
),
|
78
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
79
|
+
uri_method: :get,
|
80
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
81
|
+
matches: [
|
82
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
|
83
|
+
],
|
84
|
+
body: nil
|
85
|
+
),
|
86
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
87
|
+
uri_method: :get,
|
88
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
89
|
+
matches: [
|
90
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
|
91
|
+
],
|
92
|
+
body: nil
|
93
|
+
)
|
94
|
+
]
|
95
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
96
|
+
|
97
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
98
|
+
uri_method: :post,
|
99
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
100
|
+
matches: [
|
101
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
|
102
|
+
],
|
103
|
+
body: "*"
|
104
|
+
),
|
105
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
106
|
+
uri_method: :post,
|
107
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
108
|
+
matches: [
|
109
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
|
110
|
+
],
|
111
|
+
body: "*"
|
112
|
+
),
|
113
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
114
|
+
uri_method: :post,
|
115
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
116
|
+
matches: [
|
117
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
|
118
|
+
],
|
119
|
+
body: "*"
|
120
|
+
)
|
121
|
+
]
|
122
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
123
|
+
|
124
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
125
|
+
uri_method: :post,
|
126
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
127
|
+
matches: [
|
128
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/?$}, false]
|
129
|
+
],
|
130
|
+
body: "*"
|
131
|
+
),
|
132
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
133
|
+
uri_method: :post,
|
134
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
135
|
+
matches: [
|
136
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/certificateTemplates/[^/]+/?$}, false]
|
137
|
+
],
|
138
|
+
body: "*"
|
139
|
+
),
|
140
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
141
|
+
uri_method: :post,
|
142
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
143
|
+
matches: [
|
144
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/caPools/[^/]+/certificateAuthorities/[^/]+/certificateRevocationLists/[^/]+/?$}, false]
|
145
|
+
],
|
146
|
+
body: "*"
|
147
|
+
)
|
148
|
+
]
|
149
|
+
default_config
|
150
|
+
end
|
151
|
+
yield @configure if block_given?
|
152
|
+
@configure
|
153
|
+
end
|
154
|
+
|
155
|
+
##
|
156
|
+
# @private
|
157
|
+
# Configuration class for the google.cloud.security.privateca.v1 package.
|
158
|
+
#
|
159
|
+
# This class contains common configuration for all services
|
160
|
+
# of the google.cloud.security.privateca.v1 package.
|
161
|
+
#
|
162
|
+
# This configuration is for internal use of the client library classes,
|
163
|
+
# and it is not intended that the end-users will read or change it.
|
164
|
+
#
|
165
|
+
class Configuration
|
166
|
+
extend ::Gapic::Config
|
167
|
+
|
168
|
+
# @private
|
169
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
170
|
+
# Services in this package should use these when creating clients for the mixin services.
|
171
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
172
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
173
|
+
|
174
|
+
# @private
|
175
|
+
def initialize parent_config = nil
|
176
|
+
@parent_config = parent_config unless parent_config.nil?
|
177
|
+
|
178
|
+
yield self if block_given?
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
@@ -1000,7 +1000,7 @@ module Google
|
|
1000
1000
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1001
1001
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1002
1002
|
#
|
1003
|
-
# @overload disable_certificate_authority(name: nil, request_id: nil)
|
1003
|
+
# @overload disable_certificate_authority(name: nil, request_id: nil, ignore_dependent_resources: nil)
|
1004
1004
|
# Pass arguments to `disable_certificate_authority` via keyword arguments. Note that at
|
1005
1005
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1006
1006
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1023,6 +1023,11 @@ module Google
|
|
1023
1023
|
#
|
1024
1024
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
1025
1025
|
# not supported (00000000-0000-0000-0000-000000000000).
|
1026
|
+
# @param ignore_dependent_resources [::Boolean]
|
1027
|
+
# Optional. This field allows this CA to be disabled even if it's being
|
1028
|
+
# depended on by another resource. However, doing so may result in unintended
|
1029
|
+
# and unrecoverable effects on any dependent resource(s) since the CA will
|
1030
|
+
# no longer be able to issue certificates.
|
1026
1031
|
#
|
1027
1032
|
# @yield [response, operation] Access the result along with the RPC operation
|
1028
1033
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1627,7 +1632,7 @@ module Google
|
|
1627
1632
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1628
1633
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1629
1634
|
#
|
1630
|
-
# @overload delete_certificate_authority(name: nil, request_id: nil, ignore_active_certificates: nil, skip_grace_period: nil)
|
1635
|
+
# @overload delete_certificate_authority(name: nil, request_id: nil, ignore_active_certificates: nil, skip_grace_period: nil, ignore_dependent_resources: nil)
|
1631
1636
|
# Pass arguments to `delete_certificate_authority` via keyword arguments. Note that at
|
1632
1637
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1633
1638
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1657,6 +1662,11 @@ module Google
|
|
1657
1662
|
# Optional. If this flag is set, the Certificate Authority will be deleted as
|
1658
1663
|
# soon as possible without a 30-day grace period where undeletion would have
|
1659
1664
|
# been allowed. If you proceed, there will be no way to recover this CA.
|
1665
|
+
# @param ignore_dependent_resources [::Boolean]
|
1666
|
+
# Optional. This field allows this ca to be deleted even if it's being
|
1667
|
+
# depended on by another resource. However, doing so may result in unintended
|
1668
|
+
# and unrecoverable effects on any dependent resource(s) since the CA will
|
1669
|
+
# no longer be able to issue certificates.
|
1660
1670
|
#
|
1661
1671
|
# @yield [response, operation] Access the result along with the RPC operation
|
1662
1672
|
# @yieldparam response [::Gapic::Operation]
|
@@ -2273,7 +2283,7 @@ module Google
|
|
2273
2283
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2274
2284
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2275
2285
|
#
|
2276
|
-
# @overload delete_ca_pool(name: nil, request_id: nil)
|
2286
|
+
# @overload delete_ca_pool(name: nil, request_id: nil, ignore_dependent_resources: nil)
|
2277
2287
|
# Pass arguments to `delete_ca_pool` via keyword arguments. Note that at
|
2278
2288
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2279
2289
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -2296,6 +2306,11 @@ module Google
|
|
2296
2306
|
#
|
2297
2307
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
2298
2308
|
# not supported (00000000-0000-0000-0000-000000000000).
|
2309
|
+
# @param ignore_dependent_resources [::Boolean]
|
2310
|
+
# Optional. This field allows this pool to be deleted even if it's being
|
2311
|
+
# depended on by another resource. However, doing so may result in unintended
|
2312
|
+
# and unrecoverable effects on any dependent resource(s) since the pool will
|
2313
|
+
# no longer be able to issue certificates.
|
2299
2314
|
#
|
2300
2315
|
# @yield [response, operation] Access the result along with the RPC operation
|
2301
2316
|
# @yieldparam response [::Gapic::Operation]
|
@@ -3361,9 +3376,9 @@ module Google
|
|
3361
3376
|
# * (`String`) The path to a service account key file in JSON format
|
3362
3377
|
# * (`Hash`) A service account key as a Hash
|
3363
3378
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3364
|
-
# (see the [googleauth docs](https://
|
3379
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3365
3380
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3366
|
-
# (see the [signet docs](https://
|
3381
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3367
3382
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
3368
3383
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
3369
3384
|
# * (`nil`) indicating no credentials
|
@@ -621,9 +621,9 @@ module Google
|
|
621
621
|
# * (`String`) The path to a service account key file in JSON format
|
622
622
|
# * (`Hash`) A service account key as a Hash
|
623
623
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
624
|
-
# (see the [googleauth docs](https://
|
624
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
625
625
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
626
|
-
# (see the [signet docs](https://
|
626
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
627
627
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
628
628
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
629
629
|
# * (`nil`) indicating no credentials
|