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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0968f16c4c69d9c728d9c46908ae43ae8c8577d2f727ca5b986dea2af0f5b4d1'
4
- data.tar.gz: fc02dd50ae48633fe2e23ef6b62707b765143c885330598dd491be8e4dce41c5
3
+ metadata.gz: 3de0dd590a478c904f23b6419ffdc7750d4923e50ef20561e317a6dbd79e107c
4
+ data.tar.gz: 95c2f639505af5deecea120ff4450af7b05f24e925d600b028e7a440a440bf7f
5
5
  SHA512:
6
- metadata.gz: 00246f2576ef6c6bac1781c6e9e9ae8ade1b98bf63a2fe3032c4a720589f05be7954bc8c78f1f6b7b1fb4e8eb0f73e05fac04756bc26993bbe88e5715c83974c
7
- data.tar.gz: 930a1024191add5ad4a3a942eaaaa5583849a87fc5d3e68506fa94f41056cadf4aa8a537a6aa2f028aa236fe6ddd6d83ce688b33edd02b0535960a0f3704fd3b
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://googleapis.dev/ruby/google-cloud-security-private_ca-v1beta1/latest)
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
- # # iterate over all elements by calling #each, and the enumerable
424
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
745
- # # object to check the status of an operation, cancel it, or wait
746
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
859
- # # object to check the status of an operation, cancel it, or wait
860
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
967
- # # object to check the status of an operation, cancel it, or wait
968
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1075
- # # object to check the status of an operation, cancel it, or wait
1076
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
1363
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
1469
- # # object to check the status of an operation, cancel it, or wait
1470
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1577
- # # object to check the status of an operation, cancel it, or wait
1578
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1686
- # # object to check the status of an operation, cancel it, or wait
1687
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
1882
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
1989
- # # object to check the status of an operation, cancel it, or wait
1990
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
2184
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
2180
+ # p item
2189
2181
  # end
2190
2182
  #
2191
2183
  def list_reusable_configs request, options = nil
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
161
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
255
- # # object to check the status of an operation, cancel it, or wait
256
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
542
- # # object to check the status of an operation, cancel it, or wait
543
- # # for results. Here is how to block until completion:
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 "Error!"
549
+ # puts "No response received."
549
550
  # end
550
551
  #
551
552
  def wait_operation request, options = nil