google-cloud-security-private_ca-v1beta1 0.4.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebf185fae6d6c77aabf1c9c6111f7b0c9ad0a8c3dd338f5d1970725602f0dac0
4
- data.tar.gz: 0f96fa79063ad871d8a138abaf07c49cf348e6185d06ac309c836232b5b45d05
3
+ metadata.gz: 737b70447318b994a043c47155bb15c54f724f60406280ea601a1a28986a9f90
4
+ data.tar.gz: 4ee7293d90ece71eb01ab9aedef0f558d0bdfb3d8ce96990cb7c41f51024bd0a
5
5
  SHA512:
6
- metadata.gz: d75dd66f43dd57e4334f5bcb1bec4af2864679b03bf9240be7a148fbb2f339dc2bbe89ff3bfaf4ccd3d24a636e3ca6c241a9a0b8436308aef9ec191fc1ce53fe
7
- data.tar.gz: de33d34370cdd2a81ba7fca2feb31f8f301c7d523294c7cb8d1ac9de9d6cce2d06d57aa57b987ceebad617875e402b0292520fc5140abb5860957571c9078ba4
6
+ metadata.gz: da53e7feba3f451a49f2cfa22fc131019345ab9739d4dadff63ea8d624f66904beb454fe69890507b0239c032c18884eb02cc29e4962728bc29c0b96bee828c2
7
+ data.tar.gz: 72a0ebf7b8dad5d1fcb84d4834ca3e583515081c4a1437d3e36421108ac2100ad00949aeec96a398326d72d0fdd62ae3cda18e67176f365e45a6cbf7cc42fa3c
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
@@ -46,8 +46,8 @@ 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,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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://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
 
@@ -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
@@ -2268,9 +2260,9 @@ module Google
2268
2260
  # * (`String`) The path to a service account key file in JSON format
2269
2261
  # * (`Hash`) A service account key as a Hash
2270
2262
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2271
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2263
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2272
2264
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2273
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2265
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2274
2266
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2275
2267
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2276
2268
  # * (`nil`) indicating no credentials
@@ -159,13 +159,11 @@ module Google
159
159
  # # Call the list_operations method.
160
160
  # result = client.list_operations request
161
161
  #
162
- # # The returned object is of type Gapic::PagedEnumerable. You can
163
- # # iterate over all elements by calling #each, and the enumerable
164
- # # will lazily make API calls to fetch subsequent pages. Other
165
- # # methods are also available for managing paging directly.
166
- # 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|
167
165
  # # Each element is of type ::Google::Longrunning::Operation.
168
- # p response
166
+ # p item
169
167
  # end
170
168
  #
171
169
  def list_operations request, options = nil
@@ -254,14 +252,14 @@ module Google
254
252
  # # Call the get_operation method.
255
253
  # result = client.get_operation request
256
254
  #
257
- # # The returned object is of type Gapic::Operation. You can use this
258
- # # object to check the status of an operation, cancel it, or wait
259
- # # 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.
260
258
  # result.wait_until_done! timeout: 60
261
259
  # if result.response?
262
260
  # p result.response
263
261
  # else
264
- # puts "Error!"
262
+ # puts "No response received."
265
263
  # end
266
264
  #
267
265
  def get_operation request, options = nil
@@ -541,14 +539,14 @@ module Google
541
539
  # # Call the wait_operation method.
542
540
  # result = client.wait_operation request
543
541
  #
544
- # # The returned object is of type Gapic::Operation. You can use this
545
- # # object to check the status of an operation, cancel it, or wait
546
- # # 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.
547
545
  # result.wait_until_done! timeout: 60
548
546
  # if result.response?
549
547
  # p result.response
550
548
  # else
551
- # puts "Error!"
549
+ # puts "No response received."
552
550
  # end
553
551
  #
554
552
  def wait_operation request, options = nil
@@ -623,9 +621,9 @@ module Google
623
621
  # * (`String`) The path to a service account key file in JSON format
624
622
  # * (`Hash`) A service account key as a Hash
625
623
  # * (`Google::Auth::Credentials`) A googleauth credentials object
626
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
624
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
627
625
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
628
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
626
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
629
627
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
630
628
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
631
629
  # * (`nil`) indicating no credentials