google-cloud-security-private_ca-v1 0.1.0 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/client.rb +826 -157
- data/lib/google/cloud/security/private_ca/v1/certificate_authority_service/operations.rb +146 -34
- data/lib/google/cloud/security/private_ca/v1/version.rb +1 -1
- data/lib/google/cloud/security/privateca/v1/resources_pb.rb +2 -2
- data/lib/google/cloud/security/privateca/v1/service_pb.rb +2 -2
- data/lib/google/cloud/security/privateca/v1/service_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/cloud/security/privateca/v1/resources.rb +11 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ca8a75b33a81964bad5ae40a8ef19e2c690234c525b8de74c9f68c4bfa94c33
|
4
|
+
data.tar.gz: 60d2e0ae53ebc5809df57631f48febc1b643ede110bf464a54d0c882eced4e7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 985680a515c1cd8fb9c198f53ca2ad0b4edf6d0f216a0b641bcb4f24a074e27e3d1ff4b69c950ade5c9bf0bd4b4fec63234a25bd5d97ecea94ccb4ac5e98f70e
|
7
|
+
data.tar.gz: 0a996bac0bc46fc6e6beb1765f3922e639afc7630cef94792c230815c0f8d32b76c5feae677961bf45567e1ef10428b88b425514e67e0bdc088a465e558f7168
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-security-private_ca-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `PRIVATE_CA_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `PRIVATE_CA_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/security/private_ca/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/security/private_ca/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/security/private_ca/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/security/private_ca/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Security::PrivateCA::V1::CreateCertificateRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_certificate request
|
38
38
|
```
|
39
39
|
|