google-cloud-security-private_ca-v1 0.1.6 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +6 -1
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/client.rb +33 -1
- data/lib/google/cloud/security/private_ca/v1/version.rb +1 -1
- data/lib/google/cloud/security/private_ca/v1.rb +2 -0
- data/lib/google/cloud/security/privateca/v1/resources_pb.rb +2 -2
- data/lib/google/cloud/security/privateca/v1/service_pb.rb +3 -2
- data/lib/google-cloud-security-private_ca-v1.rb +0 -2
- data/proto_docs/google/cloud/security/privateca/v1/service.rb +5 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3459a3c7af6f345720af1c2ab63de621204499cadd1f35fee663d7e7cd8df20b
|
4
|
+
data.tar.gz: 6a7661d1c40a50d6d99f2bd253826c8d6c3274d84fd31e58e74219aa7936a4c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 798c9b6f16f49f19bacee265a6f776152039d8b0ea3073f59214b0457716ec063d2a6b2615e41327c751a35af545decaaefb4f55b90634cc7e398ab0bef21d23
|
7
|
+
data.tar.gz: de3567eae39b2936daab5714650f4838378b6fcc2797b698b92ac0e066c4fec2a57aa242486b3d3bf046ade2170c765d624c9a493b426cbec13473b5d5da2814
|
data/AUTHENTICATION.md
CHANGED
@@ -25,7 +25,7 @@ export PRIVATE_CA_CREDENTIALS=path/to/keyfile.json
|
|
25
25
|
3. Initialize the client.
|
26
26
|
|
27
27
|
```ruby
|
28
|
-
require "google/cloud/
|
28
|
+
require "google/cloud/security/private_ca/v1"
|
29
29
|
|
30
30
|
client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
|
31
31
|
```
|
@@ -73,7 +73,7 @@ checks for credentials are configured on the service Credentials class (such as
|
|
73
73
|
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
|
-
require "google/cloud/
|
76
|
+
require "google/cloud/security/private_ca/v1"
|
77
77
|
|
78
78
|
ENV["PRIVATE_CA_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
@@ -86,7 +86,7 @@ The path to the **Credentials JSON** file can be configured instead of storing
|
|
86
86
|
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
|
-
require "google/cloud/
|
89
|
+
require "google/cloud/security/private_ca/v1"
|
90
90
|
|
91
91
|
client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
@@ -96,7 +96,7 @@ end
|
|
96
96
|
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
|
-
require "google/cloud/
|
99
|
+
require "google/cloud/security/private_ca/v1"
|
100
100
|
|
101
101
|
::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ In order to use this library, you first need to go through the following steps:
|
|
30
30
|
## Quick Start
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
require "google/cloud/
|
33
|
+
require "google/cloud/security/private_ca/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
|
36
36
|
request = ::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest.new # (request fields as keyword arguments...)
|
@@ -69,6 +69,11 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
79
|
This library is supported on Ruby 2.5+.
|
@@ -18,6 +18,8 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/security/privateca/v1/service_pb"
|
21
|
+
require "google/cloud/location"
|
22
|
+
require "google/iam/v1/iam_policy"
|
21
23
|
|
22
24
|
module Google
|
23
25
|
module Cloud
|
@@ -146,6 +148,18 @@ module Google
|
|
146
148
|
config.endpoint = @config.endpoint
|
147
149
|
end
|
148
150
|
|
151
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
152
|
+
config.credentials = credentials
|
153
|
+
config.quota_project = @quota_project_id
|
154
|
+
config.endpoint = @config.endpoint
|
155
|
+
end
|
156
|
+
|
157
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
158
|
+
config.credentials = credentials
|
159
|
+
config.quota_project = @quota_project_id
|
160
|
+
config.endpoint = @config.endpoint
|
161
|
+
end
|
162
|
+
|
149
163
|
@certificate_authority_service_stub = ::Gapic::ServiceStub.new(
|
150
164
|
::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Stub,
|
151
165
|
credentials: credentials,
|
@@ -162,6 +176,20 @@ module Google
|
|
162
176
|
#
|
163
177
|
attr_reader :operations_client
|
164
178
|
|
179
|
+
##
|
180
|
+
# Get the associated client for mix-in of the Locations.
|
181
|
+
#
|
182
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
183
|
+
#
|
184
|
+
attr_reader :location_client
|
185
|
+
|
186
|
+
##
|
187
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
188
|
+
#
|
189
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
190
|
+
#
|
191
|
+
attr_reader :iam_policy_client
|
192
|
+
|
165
193
|
# Service calls
|
166
194
|
|
167
195
|
##
|
@@ -1546,7 +1574,7 @@ module Google
|
|
1546
1574
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1547
1575
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1548
1576
|
#
|
1549
|
-
# @overload delete_certificate_authority(name: nil, request_id: nil, ignore_active_certificates: nil)
|
1577
|
+
# @overload delete_certificate_authority(name: nil, request_id: nil, ignore_active_certificates: nil, skip_grace_period: nil)
|
1550
1578
|
# Pass arguments to `delete_certificate_authority` via keyword arguments. Note that at
|
1551
1579
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1552
1580
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1571,6 +1599,10 @@ module Google
|
|
1571
1599
|
# @param ignore_active_certificates [::Boolean]
|
1572
1600
|
# Optional. This field allows the CA to be deleted even if the CA has
|
1573
1601
|
# active certs. Active certs include both unrevoked and unexpired certs.
|
1602
|
+
# @param skip_grace_period [::Boolean]
|
1603
|
+
# Optional. If this flag is set, the Certificate Authority will be deleted as soon as
|
1604
|
+
# possible without a 30-day grace period where undeletion would have been
|
1605
|
+
# allowed. If you proceed, there will be no way to recover this CA.
|
1574
1606
|
#
|
1575
1607
|
# @yield [response, operation] Access the result along with the RPC operation
|
1576
1608
|
# @yieldparam response [::Gapic::Operation]
|
@@ -26,6 +26,8 @@ module Google
|
|
26
26
|
##
|
27
27
|
# To load this package, including all its services, and instantiate a client:
|
28
28
|
#
|
29
|
+
# @example
|
30
|
+
#
|
29
31
|
# require "google/cloud/security/private_ca/v1"
|
30
32
|
# client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
|
31
33
|
#
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/security/privateca/v1/resources.proto
|
3
3
|
|
4
|
-
require 'google/
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
5
6
|
require 'google/api/field_behavior_pb'
|
6
7
|
require 'google/api/resource_pb'
|
7
8
|
require 'google/protobuf/duration_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
10
|
require 'google/type/expr_pb'
|
10
|
-
require 'google/protobuf'
|
11
11
|
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/security/privateca/v1/resources.proto", :syntax => :proto3) do
|
@@ -1,16 +1,16 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/security/privateca/v1/service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
7
9
|
require 'google/api/resource_pb'
|
8
10
|
require 'google/cloud/security/privateca/v1/resources_pb'
|
9
11
|
require 'google/longrunning/operations_pb'
|
10
|
-
require 'google/protobuf/duration_pb'
|
11
12
|
require 'google/protobuf/field_mask_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
|
-
require 'google/protobuf'
|
14
14
|
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/cloud/security/privateca/v1/service.proto", :syntax => :proto3) do
|
@@ -96,6 +96,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
96
96
|
optional :name, :string, 1
|
97
97
|
optional :request_id, :string, 2
|
98
98
|
optional :ignore_active_certificates, :bool, 4
|
99
|
+
optional :skip_grace_period, :bool, 5
|
99
100
|
end
|
100
101
|
add_message "google.cloud.security.privateca.v1.UpdateCertificateAuthorityRequest" do
|
101
102
|
optional :certificate_authority, :message, 1, "google.cloud.security.privateca.v1.CertificateAuthority"
|
@@ -441,6 +441,11 @@ module Google
|
|
441
441
|
# @return [::Boolean]
|
442
442
|
# Optional. This field allows the CA to be deleted even if the CA has
|
443
443
|
# active certs. Active certs include both unrevoked and unexpired certs.
|
444
|
+
# @!attribute [rw] skip_grace_period
|
445
|
+
# @return [::Boolean]
|
446
|
+
# Optional. If this flag is set, the Certificate Authority will be deleted as soon as
|
447
|
+
# possible without a 30-day grace period where undeletion would have been
|
448
|
+
# allowed. If you proceed, there will be no way to recover this CA.
|
444
449
|
class DeleteCertificateAuthorityRequest
|
445
450
|
include ::Google::Protobuf::MessageExts
|
446
451
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security-private_ca-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -48,7 +48,7 @@ dependencies:
|
|
48
48
|
name: google-cloud-location
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0.0'
|
54
54
|
- - "<"
|
@@ -58,19 +58,19 @@ dependencies:
|
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - "
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0.0'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
68
|
+
name: google-iam-v1
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
71
|
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
|
-
version: 0.
|
73
|
+
version: '0.0'
|
74
74
|
- - "<"
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 2.a
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.
|
83
|
+
version: '0.0'
|
84
84
|
- - "<"
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: 2.a
|