google-cloud-security-private_ca-v1beta1 0.3.6 → 0.5.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 +12 -7
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/client.rb +48 -56
- data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations.rb +15 -14
- 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 +8 -1
- data/lib/google/cloud/security/privateca/v1beta1/resources_pb.rb +2 -2
- data/lib/google/cloud/security/privateca/v1beta1/service_pb.rb +2 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +19 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3de0dd590a478c904f23b6419ffdc7750d4923e50ef20561e317a6dbd79e107c
|
4
|
+
data.tar.gz: 95c2f639505af5deecea120ff4450af7b05f24e925d600b028e7a440a440bf7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b54bc8c2f5e02fc24eec6919c3ad8d555b8ab95353afd4e7f149eff414fccebc6fc42949c5d04ba7ac4d2496127850da80a4fd20c6ed9a512e03009343e0a10d
|
7
|
+
data.tar.gz: 100709fef7041355ec173b1e5f56e885e237960b7a58abc5d8847991a64ccc4f307304093d27ec2d01347f795489bce1da4b51166be65f1d25e717cfd9e7bef7
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Security::PrivateCA::V1beta1::CreateCertificateReques
|
|
37
37
|
response = client.create_certificate request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1beta1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/certificate-authority-service/)
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
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
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
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
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
|
@@ -69,16 +69,21 @@ 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
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -419,13 +419,11 @@ module Google
|
|
419
419
|
# # Call the list_certificates method.
|
420
420
|
# result = client.list_certificates request
|
421
421
|
#
|
422
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
423
|
-
# #
|
424
|
-
#
|
425
|
-
# # methods are also available for managing paging directly.
|
426
|
-
# result.each do |response|
|
422
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
423
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
424
|
+
# result.each do |item|
|
427
425
|
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::Certificate.
|
428
|
-
# p
|
426
|
+
# p item
|
429
427
|
# end
|
430
428
|
#
|
431
429
|
def list_certificates request, options = nil
|
@@ -741,14 +739,14 @@ module Google
|
|
741
739
|
# # Call the activate_certificate_authority method.
|
742
740
|
# result = client.activate_certificate_authority request
|
743
741
|
#
|
744
|
-
# # The returned object is of type Gapic::Operation. You can use
|
745
|
-
# #
|
746
|
-
# #
|
742
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
743
|
+
# # check the status of an operation, cancel it, or wait for results.
|
744
|
+
# # Here is how to wait for a response.
|
747
745
|
# result.wait_until_done! timeout: 60
|
748
746
|
# if result.response?
|
749
747
|
# p result.response
|
750
748
|
# else
|
751
|
-
# puts "
|
749
|
+
# puts "No response received."
|
752
750
|
# end
|
753
751
|
#
|
754
752
|
def activate_certificate_authority request, options = nil
|
@@ -855,14 +853,14 @@ module Google
|
|
855
853
|
# # Call the create_certificate_authority method.
|
856
854
|
# result = client.create_certificate_authority request
|
857
855
|
#
|
858
|
-
# # The returned object is of type Gapic::Operation. You can use
|
859
|
-
# #
|
860
|
-
# #
|
856
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
857
|
+
# # check the status of an operation, cancel it, or wait for results.
|
858
|
+
# # Here is how to wait for a response.
|
861
859
|
# result.wait_until_done! timeout: 60
|
862
860
|
# if result.response?
|
863
861
|
# p result.response
|
864
862
|
# else
|
865
|
-
# puts "
|
863
|
+
# puts "No response received."
|
866
864
|
# end
|
867
865
|
#
|
868
866
|
def create_certificate_authority request, options = nil
|
@@ -963,14 +961,14 @@ module Google
|
|
963
961
|
# # Call the disable_certificate_authority method.
|
964
962
|
# result = client.disable_certificate_authority request
|
965
963
|
#
|
966
|
-
# # The returned object is of type Gapic::Operation. You can use
|
967
|
-
# #
|
968
|
-
# #
|
964
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
965
|
+
# # check the status of an operation, cancel it, or wait for results.
|
966
|
+
# # Here is how to wait for a response.
|
969
967
|
# result.wait_until_done! timeout: 60
|
970
968
|
# if result.response?
|
971
969
|
# p result.response
|
972
970
|
# else
|
973
|
-
# puts "
|
971
|
+
# puts "No response received."
|
974
972
|
# end
|
975
973
|
#
|
976
974
|
def disable_certificate_authority request, options = nil
|
@@ -1071,14 +1069,14 @@ module Google
|
|
1071
1069
|
# # Call the enable_certificate_authority method.
|
1072
1070
|
# result = client.enable_certificate_authority request
|
1073
1071
|
#
|
1074
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1075
|
-
# #
|
1076
|
-
# #
|
1072
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1073
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1074
|
+
# # Here is how to wait for a response.
|
1077
1075
|
# result.wait_until_done! timeout: 60
|
1078
1076
|
# if result.response?
|
1079
1077
|
# p result.response
|
1080
1078
|
# else
|
1081
|
-
# puts "
|
1079
|
+
# puts "No response received."
|
1082
1080
|
# end
|
1083
1081
|
#
|
1084
1082
|
def enable_certificate_authority request, options = nil
|
@@ -1358,13 +1356,11 @@ module Google
|
|
1358
1356
|
# # Call the list_certificate_authorities method.
|
1359
1357
|
# result = client.list_certificate_authorities request
|
1360
1358
|
#
|
1361
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1362
|
-
# #
|
1363
|
-
#
|
1364
|
-
# # methods are also available for managing paging directly.
|
1365
|
-
# result.each do |response|
|
1359
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1360
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1361
|
+
# result.each do |item|
|
1366
1362
|
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateAuthority.
|
1367
|
-
# p
|
1363
|
+
# p item
|
1368
1364
|
# end
|
1369
1365
|
#
|
1370
1366
|
def list_certificate_authorities request, options = nil
|
@@ -1465,14 +1461,14 @@ module Google
|
|
1465
1461
|
# # Call the restore_certificate_authority method.
|
1466
1462
|
# result = client.restore_certificate_authority request
|
1467
1463
|
#
|
1468
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1469
|
-
# #
|
1470
|
-
# #
|
1464
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1465
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1466
|
+
# # Here is how to wait for a response.
|
1471
1467
|
# result.wait_until_done! timeout: 60
|
1472
1468
|
# if result.response?
|
1473
1469
|
# p result.response
|
1474
1470
|
# else
|
1475
|
-
# puts "
|
1471
|
+
# puts "No response received."
|
1476
1472
|
# end
|
1477
1473
|
#
|
1478
1474
|
def restore_certificate_authority request, options = nil
|
@@ -1573,14 +1569,14 @@ module Google
|
|
1573
1569
|
# # Call the schedule_delete_certificate_authority method.
|
1574
1570
|
# result = client.schedule_delete_certificate_authority request
|
1575
1571
|
#
|
1576
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1577
|
-
# #
|
1578
|
-
# #
|
1572
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1573
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1574
|
+
# # Here is how to wait for a response.
|
1579
1575
|
# result.wait_until_done! timeout: 60
|
1580
1576
|
# if result.response?
|
1581
1577
|
# p result.response
|
1582
1578
|
# else
|
1583
|
-
# puts "
|
1579
|
+
# puts "No response received."
|
1584
1580
|
# end
|
1585
1581
|
#
|
1586
1582
|
def schedule_delete_certificate_authority request, options = nil
|
@@ -1682,14 +1678,14 @@ module Google
|
|
1682
1678
|
# # Call the update_certificate_authority method.
|
1683
1679
|
# result = client.update_certificate_authority request
|
1684
1680
|
#
|
1685
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1686
|
-
# #
|
1687
|
-
# #
|
1681
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1682
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1683
|
+
# # Here is how to wait for a response.
|
1688
1684
|
# result.wait_until_done! timeout: 60
|
1689
1685
|
# if result.response?
|
1690
1686
|
# p result.response
|
1691
1687
|
# else
|
1692
|
-
# puts "
|
1688
|
+
# puts "No response received."
|
1693
1689
|
# end
|
1694
1690
|
#
|
1695
1691
|
def update_certificate_authority request, options = nil
|
@@ -1877,13 +1873,11 @@ module Google
|
|
1877
1873
|
# # Call the list_certificate_revocation_lists method.
|
1878
1874
|
# result = client.list_certificate_revocation_lists request
|
1879
1875
|
#
|
1880
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1881
|
-
# #
|
1882
|
-
#
|
1883
|
-
# # methods are also available for managing paging directly.
|
1884
|
-
# result.each do |response|
|
1876
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1877
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1878
|
+
# result.each do |item|
|
1885
1879
|
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::CertificateRevocationList.
|
1886
|
-
# p
|
1880
|
+
# p item
|
1887
1881
|
# end
|
1888
1882
|
#
|
1889
1883
|
def list_certificate_revocation_lists request, options = nil
|
@@ -1985,14 +1979,14 @@ module Google
|
|
1985
1979
|
# # Call the update_certificate_revocation_list method.
|
1986
1980
|
# result = client.update_certificate_revocation_list request
|
1987
1981
|
#
|
1988
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1989
|
-
# #
|
1990
|
-
# #
|
1982
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1983
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1984
|
+
# # Here is how to wait for a response.
|
1991
1985
|
# result.wait_until_done! timeout: 60
|
1992
1986
|
# if result.response?
|
1993
1987
|
# p result.response
|
1994
1988
|
# else
|
1995
|
-
# puts "
|
1989
|
+
# puts "No response received."
|
1996
1990
|
# end
|
1997
1991
|
#
|
1998
1992
|
def update_certificate_revocation_list request, options = nil
|
@@ -2179,13 +2173,11 @@ module Google
|
|
2179
2173
|
# # Call the list_reusable_configs method.
|
2180
2174
|
# result = client.list_reusable_configs request
|
2181
2175
|
#
|
2182
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2183
|
-
# #
|
2184
|
-
#
|
2185
|
-
# # methods are also available for managing paging directly.
|
2186
|
-
# result.each do |response|
|
2176
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2177
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2178
|
+
# result.each do |item|
|
2187
2179
|
# # Each element is of type ::Google::Cloud::Security::PrivateCA::V1beta1::ReusableConfig.
|
2188
|
-
# p
|
2180
|
+
# p item
|
2189
2181
|
# end
|
2190
2182
|
#
|
2191
2183
|
def list_reusable_configs request, options = nil
|
data/lib/google/cloud/security/private_ca/v1beta1/certificate_authority_service/operations.rb
CHANGED
@@ -96,6 +96,9 @@ module Google
|
|
96
96
|
channel_args: @config.channel_args,
|
97
97
|
interceptors: @config.interceptors
|
98
98
|
)
|
99
|
+
|
100
|
+
# Used by an LRO wrapper for some methods of this service
|
101
|
+
@operations_client = self
|
99
102
|
end
|
100
103
|
|
101
104
|
# Service calls
|
@@ -156,13 +159,11 @@ module Google
|
|
156
159
|
# # Call the list_operations method.
|
157
160
|
# result = client.list_operations request
|
158
161
|
#
|
159
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
160
|
-
# #
|
161
|
-
#
|
162
|
-
# # methods are also available for managing paging directly.
|
163
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
164
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
165
|
-
# p
|
166
|
+
# p item
|
166
167
|
# end
|
167
168
|
#
|
168
169
|
def list_operations request, options = nil
|
@@ -251,14 +252,14 @@ module Google
|
|
251
252
|
# # Call the get_operation method.
|
252
253
|
# result = client.get_operation request
|
253
254
|
#
|
254
|
-
# # The returned object is of type Gapic::Operation. You can use
|
255
|
-
# #
|
256
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
257
258
|
# result.wait_until_done! timeout: 60
|
258
259
|
# if result.response?
|
259
260
|
# p result.response
|
260
261
|
# else
|
261
|
-
# puts "
|
262
|
+
# puts "No response received."
|
262
263
|
# end
|
263
264
|
#
|
264
265
|
def get_operation request, options = nil
|
@@ -538,14 +539,14 @@ module Google
|
|
538
539
|
# # Call the wait_operation method.
|
539
540
|
# result = client.wait_operation request
|
540
541
|
#
|
541
|
-
# # The returned object is of type Gapic::Operation. You can use
|
542
|
-
# #
|
543
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
544
545
|
# result.wait_until_done! timeout: 60
|
545
546
|
# if result.response?
|
546
547
|
# p result.response
|
547
548
|
# else
|
548
|
-
# puts "
|
549
|
+
# puts "No response received."
|
549
550
|
# end
|
550
551
|
#
|
551
552
|
def wait_operation request, options = nil
|