google-cloud-certificate_manager 0.2.0 → 0.3.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: 591cab5d71d0f500b44456df67e18696f7c5e335b6247c3cd576565437921755
4
- data.tar.gz: 4c8fbc008db5efb0e9aba88985b7681ffaca56b915b30aa595b9db29be95f1d6
3
+ metadata.gz: 5c5b1c4fc7af7cb47aeef96a7414d9a352da33d8f4dc6785d5e6389c95a00644
4
+ data.tar.gz: 3eb9029331212ad69eb316957d8f3e1475d9a156a067092a029dda1f0c6a61cf
5
5
  SHA512:
6
- metadata.gz: 8e2c1bf52b2ae591e0cc834559bdb4541828188781db2d45b25d8c6fe60a8c97282a26c309ee3a52fe449086d4f6e82a9fb579be48473cfe4ed5ec5201d9d01c
7
- data.tar.gz: 2f46a5860a685f6f2a979f6787ac9553592f34342f1547ebb04268dc43aadd75a3558e17df4611624a2cbc8ee8ba0585704a224f4f4775858356aafc56047d5a
6
+ metadata.gz: 65feac2e35db41dbca36336c8819f98d51b199cef69aa559b2adee9a0d9efa767d9dd73fa169999c7fb31011814fb4d58d70c8a58fb15f13ecbf9ddeb9325578
7
+ data.tar.gz: 4c1b9c0973ff2fbfe3070e30efbf0023a891d4c2d56814e8fd18345427c7a9aed66838310422bb5db7f646ed26f3f16d7f7a055acaf06aed3bbaa0ed2077e6a5
data/AUTHENTICATION.md CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
112
112
  To configure your system for this, simply:
113
113
 
114
114
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
115
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
115
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
116
116
  3. Write code as if already authenticated.
117
117
 
118
118
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -34,32 +34,6 @@ 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/certificatemanager.googleapis.com)
35
35
  1. {file:AUTHENTICATION.md Set up authentication.}
36
36
 
37
- ## Enabling Logging
38
-
39
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
40
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
41
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
42
- 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)
43
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
44
-
45
- Configuring a Ruby stdlib logger:
46
-
47
- ```ruby
48
- require "logger"
49
-
50
- module MyLogger
51
- LOGGER = Logger.new $stderr, level: Logger::WARN
52
- def logger
53
- LOGGER
54
- end
55
- end
56
-
57
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
58
- module GRPC
59
- extend MyLogger
60
- end
61
- ```
62
-
63
37
  ## Supported Ruby Versions
64
38
 
65
39
  This library is supported on Ruby 2.6+.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module CertificateManager
23
- VERSION = "0.2.0"
23
+ VERSION = "0.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -49,11 +49,13 @@ module Google
49
49
  #
50
50
  # By default, this returns an instance of
51
51
  # [Google::Cloud::CertificateManager::V1::CertificateManager::Client](https://googleapis.dev/ruby/google-cloud-certificate_manager-v1/latest/Google/Cloud/CertificateManager/V1/CertificateManager/Client.html)
52
- # for version V1 of the API.
53
- # However, you can specify specify a different API version by passing it in the
52
+ # for a gRPC client for version V1 of the API.
53
+ # However, you can specify a different API version by passing it in the
54
54
  # `version` parameter. If the CertificateManager service is
55
55
  # supported by that API version, and the corresponding gem is available, the
56
56
  # appropriate versioned client will be returned.
57
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
58
+ # the `transport` parameter.
57
59
  #
58
60
  # ## About CertificateManager
59
61
  #
@@ -70,15 +72,15 @@ module Google
70
72
  #
71
73
  # The Certificates Manager service exposes the following resources:
72
74
  #
73
- # * `Certificate` which describes a single TLS certificate.
74
- # * `CertificateMap` which describes a collection of certificates that can be
75
+ # * `Certificate` that describes a single TLS certificate.
76
+ # * `CertificateMap` that describes a collection of certificates that can be
75
77
  # attached to a target resource.
76
- # * `CertificateMapEntry` which describes a single configuration entry that
78
+ # * `CertificateMapEntry` that describes a single configuration entry that
77
79
  # consists of a SNI and a group of certificates. It's a subresource of
78
80
  # CertificateMap.
79
81
  #
80
82
  # Certificate, CertificateMap and CertificateMapEntry IDs
81
- # have to match "^[a-z0-9-]\\{1,63}$" regexp, which means that
83
+ # have to fully match the regexp `[a-z0-9-]{1,63}`. In other words,
82
84
  # - only lower case letters, digits, and hyphen are allowed
83
85
  # - length of the resource ID has to be in [1,63] range.
84
86
  #
@@ -86,17 +88,19 @@ module Google
86
88
  #
87
89
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
88
90
  # Defaults to `:v1`.
89
- # @return [CertificateManager::Client] A client object for the specified version.
91
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
92
+ # @return [::Object] A client object for the specified version.
90
93
  #
91
- def self.certificate_manager version: :v1, &block
94
+ def self.certificate_manager version: :v1, transport: :grpc, &block
92
95
  require "google/cloud/certificate_manager/#{version.to_s.downcase}"
93
96
 
94
97
  package_name = Google::Cloud::CertificateManager
95
98
  .constants
96
99
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
97
100
  .first
98
- package_module = Google::Cloud::CertificateManager.const_get package_name
99
- package_module.const_get(:CertificateManager).const_get(:Client).new(&block)
101
+ service_module = Google::Cloud::CertificateManager.const_get(package_name).const_get(:CertificateManager)
102
+ service_module = service_module.const_get(:Rest) if transport == :rest
103
+ service_module.const_get(:Client).new(&block)
100
104
  end
101
105
 
102
106
  ##
@@ -116,7 +120,7 @@ module Google
116
120
  # * `timeout` (*type:* `Numeric`) -
117
121
  # Default timeout in seconds.
118
122
  # * `metadata` (*type:* `Hash{Symbol=>String}`) -
119
- # Additional gRPC headers to be sent with the call.
123
+ # Additional headers to be sent with the call.
120
124
  # * `retry_policy` (*type:* `Hash`) -
121
125
  # The retry policy. The value is a hash with the following keys:
122
126
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-certificate_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-02 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-certificate_manager-v1
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.0'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.0'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.3.14
193
+ rubygems_version: 3.4.2
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: API Client library for the Certificate Manager API