google-cloud-config_delivery 1.0.1 → 1.1.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 +4 -4
- data/.yardopts +1 -1
- data/README.md +10 -9
- data/lib/google/cloud/config_delivery/version.rb +1 -1
- data/lib/google/cloud/config_delivery.rb +12 -3
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0e88203be9ac80e9338bc03534708623735cd5a4af66a477fe203bfd60e4fed5
|
|
4
|
+
data.tar.gz: c238551cda7074fbd648fe13ebfeae3239c03bd4cfb93e2bc4acd6df9547b0b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 812a6e14b47eacad186bb2ca55507cfbf4e6edccb1a1b8556972f0c74cff74b54d9b3722f0928d7dd38848f4f4298e384a352ac3d4dc2f7d1d4fdf048d05e213
|
|
7
|
+
data.tar.gz: 7b927050cd94718124b5037d393bffad7d009b7fd85b035193846fd78c70f7c12c2e5e51e716eaf43a66dd23f2c7706c708fe06cc660b42d7ca821d3a73d7082
|
data/.yardopts
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
# Ruby Client for the
|
|
1
|
+
# Ruby Client for the Config Delivery API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters.
|
|
4
4
|
|
|
5
|
-
google-cloud-config_delivery is the official client library for the Google Cloud ConfigDelivery API.
|
|
6
5
|
|
|
7
6
|
Actual client classes for the various versions of this API are defined in
|
|
8
7
|
_versioned_ client gems, with names of the form `google-cloud-config_delivery-v*`.
|
|
@@ -18,6 +17,9 @@ themselves can be found in the client library documentation for the versioned
|
|
|
18
17
|
client gems:
|
|
19
18
|
[google-cloud-config_delivery-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-config_delivery-v1/latest).
|
|
20
19
|
|
|
20
|
+
See also the [Product Documentation](https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/concepts/fleet-packages)
|
|
21
|
+
for more usage information.
|
|
22
|
+
|
|
21
23
|
## Quick Start
|
|
22
24
|
|
|
23
25
|
```
|
|
@@ -28,6 +30,7 @@ In order to use this library, you first need to go through the following steps:
|
|
|
28
30
|
|
|
29
31
|
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
|
30
32
|
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
|
33
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/configdelivery.googleapis.com)
|
|
31
34
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
|
32
35
|
|
|
33
36
|
```ruby
|
|
@@ -72,12 +75,10 @@ working, try updating the versioned clients in your bundle or installed gems:
|
|
|
72
75
|
|
|
73
76
|
This library is supported on Ruby 3.2+.
|
|
74
77
|
|
|
75
|
-
Google provides official support for Ruby versions
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
80
|
-
support schedule.
|
|
78
|
+
Google provides official support for Ruby versions as described in the
|
|
79
|
+
[Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
|
|
80
|
+
policy. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
81
|
+
recommended.
|
|
81
82
|
|
|
82
83
|
## Which client should I use?
|
|
83
84
|
|
|
@@ -55,9 +55,11 @@ module Google
|
|
|
55
55
|
# `version` parameter. If the ConfigDelivery service is
|
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
|
57
57
|
# appropriate versioned client will be returned.
|
|
58
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
|
59
|
+
# the `transport` parameter.
|
|
58
60
|
#
|
|
59
61
|
# Raises an exception if the currently installed versioned client gem for the
|
|
60
|
-
# given API version does not support the ConfigDelivery service.
|
|
62
|
+
# given API version does not support the given transport of the ConfigDelivery service.
|
|
61
63
|
# You can determine whether the method will succeed by calling
|
|
62
64
|
# {Google::Cloud::ConfigDelivery.config_delivery_available?}.
|
|
63
65
|
#
|
|
@@ -68,9 +70,10 @@ module Google
|
|
|
68
70
|
#
|
|
69
71
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
70
72
|
# Defaults to `:v1`.
|
|
73
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
71
74
|
# @return [::Object] A client object for the specified version.
|
|
72
75
|
#
|
|
73
|
-
def self.config_delivery version: :v1, &block
|
|
76
|
+
def self.config_delivery version: :v1, transport: :grpc, &block
|
|
74
77
|
require "google/cloud/config_delivery/#{version.to_s.downcase}"
|
|
75
78
|
|
|
76
79
|
package_name = Google::Cloud::ConfigDelivery
|
|
@@ -78,6 +81,7 @@ module Google
|
|
|
78
81
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
79
82
|
.first
|
|
80
83
|
service_module = Google::Cloud::ConfigDelivery.const_get(package_name).const_get(:ConfigDelivery)
|
|
84
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
|
81
85
|
service_module.const_get(:Client).new(&block)
|
|
82
86
|
end
|
|
83
87
|
|
|
@@ -90,9 +94,10 @@ module Google
|
|
|
90
94
|
#
|
|
91
95
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
92
96
|
# Defaults to `:v1`.
|
|
97
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
|
93
98
|
# @return [boolean] Whether the service is available.
|
|
94
99
|
#
|
|
95
|
-
def self.config_delivery_available? version: :v1
|
|
100
|
+
def self.config_delivery_available? version: :v1, transport: :grpc
|
|
96
101
|
require "google/cloud/config_delivery/#{version.to_s.downcase}"
|
|
97
102
|
package_name = Google::Cloud::ConfigDelivery
|
|
98
103
|
.constants
|
|
@@ -102,6 +107,10 @@ module Google
|
|
|
102
107
|
service_module = Google::Cloud::ConfigDelivery.const_get package_name
|
|
103
108
|
return false unless service_module.const_defined? :ConfigDelivery
|
|
104
109
|
service_module = service_module.const_get :ConfigDelivery
|
|
110
|
+
if transport == :rest
|
|
111
|
+
return false unless service_module.const_defined? :Rest
|
|
112
|
+
service_module = service_module.const_get :Rest
|
|
113
|
+
end
|
|
105
114
|
service_module.const_defined? :Client
|
|
106
115
|
rescue ::LoadError
|
|
107
116
|
false
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-config_delivery
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -43,8 +43,8 @@ dependencies:
|
|
|
43
43
|
- - "~>"
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
45
|
version: '1.6'
|
|
46
|
-
description:
|
|
47
|
-
|
|
46
|
+
description: ConfigDelivery service manages the deployment of kubernetes configuration
|
|
47
|
+
to a fleet of kubernetes clusters.
|
|
48
48
|
email: googleapis-packages@google.com
|
|
49
49
|
executables: []
|
|
50
50
|
extensions: []
|
|
@@ -77,5 +77,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
77
|
requirements: []
|
|
78
78
|
rubygems_version: 3.6.9
|
|
79
79
|
specification_version: 4
|
|
80
|
-
summary:
|
|
80
|
+
summary: ConfigDelivery service manages the deployment of kubernetes configuration
|
|
81
|
+
to a fleet of kubernetes clusters.
|
|
81
82
|
test_files: []
|