google-cloud-security-public_ca 1.0.1 → 2.0.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: d5814009e4e7a6bd311373d4829558f44552c2611e95196d8ff7a7c86d48465e
4
- data.tar.gz: fb30ff8794d12064651513ff9f0e7bf739a481d0f0797ce313eb106685c4a8af
3
+ metadata.gz: 905001dd3bd2f0df37370a3cc30e1c42ff4a5b83970d420404cac998bf88afe4
4
+ data.tar.gz: 31c1db75c96b39ff248d0374fdb5464b208a928d684525c28075862a73e92cca
5
5
  SHA512:
6
- metadata.gz: dd12ad6d2702d951a5cd4fb0e68c3a898afb4ee9c96d1f4f17ca699f02522ff79c5f41ae376b373a0cce7a622469615719d69c4ad581fab43eb77d8094fa6e95
7
- data.tar.gz: db73e10a81bc684134be754fbf720ebc4a92dfb512d56e68e92193d9df3154dc1aaba9e5a1d4c97e0f85c00d32f03d9d1314e1ec4e6505903f9b960871630665
6
+ metadata.gz: 7c61289faf068787028934f59f5a7c4374e510724bd564ef653703c10540d2429aa41aca77a92812928cbb9435eb2a08ae648b7307642d3de31db108494d4d3d
7
+ data.tar.gz: 7221fba618f01475b072ed00eaf7c715b018e2760991f0107b5594e1f26922e841996f8731dc163172b3b56e1410f8e0842f40324cd107d8be957aea0b61b252
data/README.md CHANGED
@@ -16,7 +16,7 @@ for this library, google-cloud-security-public_ca, to see the convenience method
16
16
  constructing client objects. Reference documentation for the client objects
17
17
  themselves can be found in the client library documentation for the versioned
18
18
  client gems:
19
- [google-cloud-security-public_ca-v1beta1](https://cloud.google.com/ruby/docs/reference/google-cloud-security-public_ca-v1beta1/latest).
19
+ [google-cloud-security-public_ca-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-security-public_ca-v1/latest).
20
20
 
21
21
  See also the [Product Documentation](https://cloud.google.com/certificate-manager/docs/public-ca/)
22
22
  for more usage information.
@@ -34,9 +34,39 @@ In order to use this library, you first need to go through the following steps:
34
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/publicca.googleapis.com)
35
35
  1. {file:AUTHENTICATION.md Set up authentication.}
36
36
 
37
+ ## Debug Logging
38
+
39
+ This library comes with opt-in Debug Logging that can help you troubleshoot
40
+ your application's integration with the API. When logging is activated, key
41
+ events such as requests and responses, along with data payloads and metadata
42
+ such as headers and client configuration, are logged to the standard error
43
+ stream.
44
+
45
+ **WARNING:** Client Library Debug Logging includes your data payloads in
46
+ plaintext, which could include sensitive data such as PII for yourself or your
47
+ customers, private keys, or other security data that could be compromising if
48
+ leaked. Always practice good data hygiene with your application logs, and follow
49
+ the principle of least access. Google also recommends that Client Library Debug
50
+ Logging be enabled only temporarily during active debugging, and not used
51
+ permanently in production.
52
+
53
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
54
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
55
+ list of client library gem names. This will select the default logging behavior,
56
+ which writes logs to the standard error stream. On a local workstation, this may
57
+ result in logs appearing on the console. When running on a Google Cloud hosting
58
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
59
+ results in logs appearing alongside your application logs in the
60
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
61
+
62
+ Debug logging also requires that the versioned clients for this service be
63
+ sufficiently recent, released after about Dec 10, 2024. If logging is not
64
+ working, try updating the versioned clients in your bundle or installed gems:
65
+ [google-cloud-security-public_ca-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-security-public_ca-v1/latest).
66
+
37
67
  ## Supported Ruby Versions
38
68
 
39
- This library is supported on Ruby 2.7+.
69
+ This library is supported on Ruby 3.0+.
40
70
 
41
71
  Google provides official support for Ruby versions that are actively supported
42
72
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -50,7 +80,7 @@ support schedule.
50
80
  Most modern Ruby client libraries for Google APIs come in two flavors: the main
51
81
  client library with a name such as `google-cloud-security-public_ca`,
52
82
  and lower-level _versioned_ client libraries with names such as
53
- `google-cloud-security-public_ca-v1beta1`.
83
+ `google-cloud-security-public_ca-v1`.
54
84
  _In most cases, you should install the main client._
55
85
 
56
86
  ### What's the difference between the main client and a versioned client?
@@ -88,7 +118,7 @@ You can use a versioned client if you are content with a possibly lower-level
88
118
  class interface, you explicitly want to avoid features provided by the main
89
119
  client, or you want to access a specific service version not be covered by the
90
120
  main client. You can identify versioned client gems because the service version
91
- is part of the name, e.g. `google-cloud-security-public_ca-v1beta1`.
121
+ is part of the name, e.g. `google-cloud-security-public_ca-v1`.
92
122
 
93
123
  ### What about the google-apis-<name> clients?
94
124
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Security
23
23
  module PublicCA
24
- VERSION = "1.0.1"
24
+ VERSION = "2.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -50,8 +50,8 @@ module Google
50
50
  # Create a new client object for PublicCertificateAuthorityService.
51
51
  #
52
52
  # By default, this returns an instance of
53
- # [Google::Cloud::Security::PublicCA::V1beta1::PublicCertificateAuthorityService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-security-public_ca-v1beta1/latest/Google-Cloud-Security-PublicCA-V1beta1-PublicCertificateAuthorityService-Client)
54
- # for a gRPC client for version V1beta1 of the API.
53
+ # [Google::Cloud::Security::PublicCA::V1::PublicCertificateAuthorityService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-security-public_ca-v1/latest/Google-Cloud-Security-PublicCA-V1-PublicCertificateAuthorityService-Client)
54
+ # for a gRPC client for version V1 of the API.
55
55
  # However, you can specify a different API version by passing it in the
56
56
  # `version` parameter. If the PublicCertificateAuthorityService service is
57
57
  # supported by that API version, and the corresponding gem is available, the
@@ -59,6 +59,11 @@ module Google
59
59
  # You can also specify a different transport by passing `:rest` or `:grpc` in
60
60
  # the `transport` parameter.
61
61
  #
62
+ # Raises an exception if the currently installed versioned client gem for the
63
+ # given API version does not support the given transport of the PublicCertificateAuthorityService service.
64
+ # You can determine whether the method will succeed by calling
65
+ # {Google::Cloud::Security::PublicCA.public_certificate_authority_service_available?}.
66
+ #
62
67
  # ## About PublicCertificateAuthorityService
63
68
  #
64
69
  # Manages the resources required for ACME [external account
@@ -66,11 +71,11 @@ module Google
66
71
  # the public certificate authority service.
67
72
  #
68
73
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
69
- # Defaults to `:v1beta1`.
74
+ # Defaults to `:v1`.
70
75
  # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
71
76
  # @return [::Object] A client object for the specified version.
72
77
  #
73
- def self.public_certificate_authority_service version: :v1beta1, transport: :grpc, &block
78
+ def self.public_certificate_authority_service version: :v1, transport: :grpc, &block
74
79
  require "google/cloud/security/public_ca/#{version.to_s.downcase}"
75
80
 
76
81
  package_name = Google::Cloud::Security::PublicCA
@@ -82,6 +87,37 @@ module Google
82
87
  service_module.const_get(:Client).new(&block)
83
88
  end
84
89
 
90
+ ##
91
+ # Determines whether the PublicCertificateAuthorityService service is supported by the current client.
92
+ # If true, you can retrieve a client object by calling {Google::Cloud::Security::PublicCA.public_certificate_authority_service}.
93
+ # If false, that method will raise an exception. This could happen if the given
94
+ # API version does not exist or does not support the PublicCertificateAuthorityService service,
95
+ # or if the versioned client gem needs an update to support the PublicCertificateAuthorityService service.
96
+ #
97
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
98
+ # Defaults to `:v1`.
99
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
100
+ # @return [boolean] Whether the service is available.
101
+ #
102
+ def self.public_certificate_authority_service_available? version: :v1, transport: :grpc
103
+ require "google/cloud/security/public_ca/#{version.to_s.downcase}"
104
+ package_name = Google::Cloud::Security::PublicCA
105
+ .constants
106
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
107
+ .first
108
+ return false unless package_name
109
+ service_module = Google::Cloud::Security::PublicCA.const_get package_name
110
+ return false unless service_module.const_defined? :PublicCertificateAuthorityService
111
+ service_module = service_module.const_get :PublicCertificateAuthorityService
112
+ if transport == :rest
113
+ return false unless service_module.const_defined? :Rest
114
+ service_module = service_module.const_get :Rest
115
+ end
116
+ service_module.const_defined? :Client
117
+ rescue ::LoadError
118
+ false
119
+ end
120
+
85
121
  ##
86
122
  # Configure the google-cloud-security-public_ca library.
87
123
  #
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-security-public_ca
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-08 00:00:00.000000000 Z
10
+ date: 2025-02-13 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-cloud-core
@@ -25,25 +24,19 @@ dependencies:
25
24
  - !ruby/object:Gem::Version
26
25
  version: '1.6'
27
26
  - !ruby/object:Gem::Dependency
28
- name: google-cloud-security-public_ca-v1beta1
27
+ name: google-cloud-security-public_ca-v1
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0.5'
34
- - - "<"
30
+ - - "~>"
35
31
  - !ruby/object:Gem::Version
36
- version: 2.a
32
+ version: '1.0'
37
33
  type: :runtime
38
34
  prerelease: false
39
35
  version_requirements: !ruby/object:Gem::Requirement
40
36
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '0.5'
44
- - - "<"
37
+ - - "~>"
45
38
  - !ruby/object:Gem::Version
46
- version: 2.a
39
+ version: '1.0'
47
40
  description: Certificate Manager's Public Certificate Authority (CA) functionality
48
41
  allows you to provision and deploy widely trusted X.509 certificates after validating
49
42
  that the certificate requester controls the domains. Certificate Manager lets you
@@ -67,7 +60,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
67
60
  licenses:
68
61
  - Apache-2.0
69
62
  metadata: {}
70
- post_install_message:
71
63
  rdoc_options: []
72
64
  require_paths:
73
65
  - lib
@@ -75,15 +67,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
67
  requirements:
76
68
  - - ">="
77
69
  - !ruby/object:Gem::Version
78
- version: '2.7'
70
+ version: '3.0'
79
71
  required_rubygems_version: !ruby/object:Gem::Requirement
80
72
  requirements:
81
73
  - - ">="
82
74
  - !ruby/object:Gem::Version
83
75
  version: '0'
84
76
  requirements: []
85
- rubygems_version: 3.5.6
86
- signing_key:
77
+ rubygems_version: 3.6.3
87
78
  specification_version: 4
88
79
  summary: API Client library for the Public Certificate Authority API
89
80
  test_files: []