google-cloud-gke_multi_cloud 1.5.0 → 1.5.2

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: 4924a734061840e43e36fcc26db1ac7d0ba933eb99b047f0eced5381b1c6a479
4
- data.tar.gz: d0284d71f3e8d1eefdea7053dcc2e625b766d82dbd56fe9e6dcffab43023ca92
3
+ metadata.gz: cc752a6e7891c11694328e90a5b985e3db837d7eb73030a76ecef88e140d38df
4
+ data.tar.gz: c489e610fa73242ce5a95f5fe0f72e37611c6d73bef4ca5f56063d4f5d9f7519
5
5
  SHA512:
6
- metadata.gz: 1f7819e08902a288c96fd105160614af82bf571dc3a8fdba61593c4121111e568a58a82409ff418cc53247524f3e0b22ff6fe08da161cc2cf639d9300a05a5d6
7
- data.tar.gz: 41078248b77c3d0724ace4cdcddd73e57d6d43cd207c3ec3de37a8b6ab9a37997237c92c1f15c6dc407e1409279b98f1b990e6327956e16173a408c70730e839
6
+ metadata.gz: 9f8054f065af08af459771555385f313d1296a1ab1ce41a2a074493b4e04782932ef8246f4a46a9b79735acd6796d03604b27896808f00ec82487dc55a8b3daa
7
+ data.tar.gz: 46e9e572f9b7cb64bfc0dda62c845bb38e5d382a6c0ca11fee25ed6c84c712d6ae5e711846f543383c11eca73daab9430c45bf779b104d7f29e116f52fb2aeae
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title="Anthos Multi-Cloud API"
2
+ --title="GKE Multi-Cloud API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- # Ruby Client for the Anthos Multi-Cloud API
1
+ # Ruby Client for the GKE Multi-Cloud API
2
2
 
3
- API Client library for the Anthos Multi-Cloud API
3
+ GKE Multi-Cloud provides a way to manage Kubernetes clusters that run on AWS and Azure infrastructure using the GKE Multi-Cloud API. Combined with Connect, you can manage Kubernetes clusters on Google Cloud, AWS, and Azure from the Google Cloud Console. When you create a cluster with GKE Multi-Cloud, Google creates the resources needed and brings up a cluster on your behalf. You can deploy workloads with the GKE Multi-Cloud API or the gcloud and kubectl command-line tools.
4
4
 
5
- Anthos Multi-Cloud provides a way to manage Kubernetes clusters that run on AWS and Azure infrastructure using the Anthos Multi-Cloud API. Combined with Connect, you can manage Kubernetes clusters on Google Cloud, AWS, and Azure from the Google Cloud Console.
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-gke_multi_cloud-v*`.
@@ -18,7 +17,7 @@ themselves can be found in the client library documentation for the versioned
18
17
  client gems:
19
18
  [google-cloud-gke_multi_cloud-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_multi_cloud-v1/latest).
20
19
 
21
- See also the [Product Documentation](https://cloud.google.com/anthos/clusters/docs/multi-cloud)
20
+ See also the [Product Documentation](https://cloud.google.com/kubernetes-engine/multi-cloud/docs)
22
21
  for more usage information.
23
22
 
24
23
  ## Quick Start
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module GkeMultiCloud
23
- VERSION = "1.5.0"
23
+ VERSION = "1.5.2"
24
24
  end
25
25
  end
26
26
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -55,9 +55,11 @@ module Google
55
55
  # `version` parameter. If the AttachedClusters 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 AttachedClusters service.
62
+ # given API version does not support the given transport of the AttachedClusters service.
61
63
  # You can determine whether the method will succeed by calling
62
64
  # {Google::Cloud::GkeMultiCloud.attached_clusters_available?}.
63
65
  #
@@ -69,9 +71,10 @@ module Google
69
71
  #
70
72
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
71
73
  # Defaults to `:v1`.
74
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
72
75
  # @return [::Object] A client object for the specified version.
73
76
  #
74
- def self.attached_clusters version: :v1, &block
77
+ def self.attached_clusters version: :v1, transport: :grpc, &block
75
78
  require "google/cloud/gke_multi_cloud/#{version.to_s.downcase}"
76
79
 
77
80
  package_name = Google::Cloud::GkeMultiCloud
@@ -79,6 +82,7 @@ module Google
79
82
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
80
83
  .first
81
84
  service_module = Google::Cloud::GkeMultiCloud.const_get(package_name).const_get(:AttachedClusters)
85
+ service_module = service_module.const_get(:Rest) if transport == :rest
82
86
  service_module.const_get(:Client).new(&block)
83
87
  end
84
88
 
@@ -91,9 +95,10 @@ module Google
91
95
  #
92
96
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
93
97
  # Defaults to `:v1`.
98
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
94
99
  # @return [boolean] Whether the service is available.
95
100
  #
96
- def self.attached_clusters_available? version: :v1
101
+ def self.attached_clusters_available? version: :v1, transport: :grpc
97
102
  require "google/cloud/gke_multi_cloud/#{version.to_s.downcase}"
98
103
  package_name = Google::Cloud::GkeMultiCloud
99
104
  .constants
@@ -103,6 +108,10 @@ module Google
103
108
  service_module = Google::Cloud::GkeMultiCloud.const_get package_name
104
109
  return false unless service_module.const_defined? :AttachedClusters
105
110
  service_module = service_module.const_get :AttachedClusters
111
+ if transport == :rest
112
+ return false unless service_module.const_defined? :Rest
113
+ service_module = service_module.const_get :Rest
114
+ end
106
115
  service_module.const_defined? :Client
107
116
  rescue ::LoadError
108
117
  false
@@ -118,9 +127,11 @@ module Google
118
127
  # `version` parameter. If the AwsClusters service is
119
128
  # supported by that API version, and the corresponding gem is available, the
120
129
  # appropriate versioned client will be returned.
130
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
131
+ # the `transport` parameter.
121
132
  #
122
133
  # Raises an exception if the currently installed versioned client gem for the
123
- # given API version does not support the AwsClusters service.
134
+ # given API version does not support the given transport of the AwsClusters service.
124
135
  # You can determine whether the method will succeed by calling
125
136
  # {Google::Cloud::GkeMultiCloud.aws_clusters_available?}.
126
137
  #
@@ -131,9 +142,10 @@ module Google
131
142
  #
132
143
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
133
144
  # Defaults to `:v1`.
145
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
134
146
  # @return [::Object] A client object for the specified version.
135
147
  #
136
- def self.aws_clusters version: :v1, &block
148
+ def self.aws_clusters version: :v1, transport: :grpc, &block
137
149
  require "google/cloud/gke_multi_cloud/#{version.to_s.downcase}"
138
150
 
139
151
  package_name = Google::Cloud::GkeMultiCloud
@@ -141,6 +153,7 @@ module Google
141
153
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
142
154
  .first
143
155
  service_module = Google::Cloud::GkeMultiCloud.const_get(package_name).const_get(:AwsClusters)
156
+ service_module = service_module.const_get(:Rest) if transport == :rest
144
157
  service_module.const_get(:Client).new(&block)
145
158
  end
146
159
 
@@ -153,9 +166,10 @@ module Google
153
166
  #
154
167
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
155
168
  # Defaults to `:v1`.
169
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
156
170
  # @return [boolean] Whether the service is available.
157
171
  #
158
- def self.aws_clusters_available? version: :v1
172
+ def self.aws_clusters_available? version: :v1, transport: :grpc
159
173
  require "google/cloud/gke_multi_cloud/#{version.to_s.downcase}"
160
174
  package_name = Google::Cloud::GkeMultiCloud
161
175
  .constants
@@ -165,6 +179,10 @@ module Google
165
179
  service_module = Google::Cloud::GkeMultiCloud.const_get package_name
166
180
  return false unless service_module.const_defined? :AwsClusters
167
181
  service_module = service_module.const_get :AwsClusters
182
+ if transport == :rest
183
+ return false unless service_module.const_defined? :Rest
184
+ service_module = service_module.const_get :Rest
185
+ end
168
186
  service_module.const_defined? :Client
169
187
  rescue ::LoadError
170
188
  false
@@ -180,9 +198,11 @@ module Google
180
198
  # `version` parameter. If the AzureClusters service is
181
199
  # supported by that API version, and the corresponding gem is available, the
182
200
  # appropriate versioned client will be returned.
201
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
202
+ # the `transport` parameter.
183
203
  #
184
204
  # Raises an exception if the currently installed versioned client gem for the
185
- # given API version does not support the AzureClusters service.
205
+ # given API version does not support the given transport of the AzureClusters service.
186
206
  # You can determine whether the method will succeed by calling
187
207
  # {Google::Cloud::GkeMultiCloud.azure_clusters_available?}.
188
208
  #
@@ -193,9 +213,10 @@ module Google
193
213
  #
194
214
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
195
215
  # Defaults to `:v1`.
216
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
196
217
  # @return [::Object] A client object for the specified version.
197
218
  #
198
- def self.azure_clusters version: :v1, &block
219
+ def self.azure_clusters version: :v1, transport: :grpc, &block
199
220
  require "google/cloud/gke_multi_cloud/#{version.to_s.downcase}"
200
221
 
201
222
  package_name = Google::Cloud::GkeMultiCloud
@@ -203,6 +224,7 @@ module Google
203
224
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
204
225
  .first
205
226
  service_module = Google::Cloud::GkeMultiCloud.const_get(package_name).const_get(:AzureClusters)
227
+ service_module = service_module.const_get(:Rest) if transport == :rest
206
228
  service_module.const_get(:Client).new(&block)
207
229
  end
208
230
 
@@ -215,9 +237,10 @@ module Google
215
237
  #
216
238
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
217
239
  # Defaults to `:v1`.
240
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
218
241
  # @return [boolean] Whether the service is available.
219
242
  #
220
- def self.azure_clusters_available? version: :v1
243
+ def self.azure_clusters_available? version: :v1, transport: :grpc
221
244
  require "google/cloud/gke_multi_cloud/#{version.to_s.downcase}"
222
245
  package_name = Google::Cloud::GkeMultiCloud
223
246
  .constants
@@ -227,6 +250,10 @@ module Google
227
250
  service_module = Google::Cloud::GkeMultiCloud.const_get package_name
228
251
  return false unless service_module.const_defined? :AzureClusters
229
252
  service_module = service_module.const_get :AzureClusters
253
+ if transport == :rest
254
+ return false unless service_module.const_defined? :Rest
255
+ service_module = service_module.const_get :Rest
256
+ end
230
257
  service_module.const_defined? :Client
231
258
  rescue ::LoadError
232
259
  false
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2022 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-gke_multi_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -43,10 +43,12 @@ dependencies:
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
45
  version: 2.a
46
- description: Anthos Multi-Cloud provides a way to manage Kubernetes clusters that
47
- run on AWS and Azure infrastructure using the Anthos Multi-Cloud API. Combined with
48
- Connect, you can manage Kubernetes clusters on Google Cloud, AWS, and Azure from
49
- the Google Cloud Console.
46
+ description: GKE Multi-Cloud provides a way to manage Kubernetes clusters that run
47
+ on AWS and Azure infrastructure using the GKE Multi-Cloud API. Combined with Connect,
48
+ you can manage Kubernetes clusters on Google Cloud, AWS, and Azure from the Google
49
+ Cloud Console. When you create a cluster with GKE Multi-Cloud, Google creates the
50
+ resources needed and brings up a cluster on your behalf. You can deploy workloads
51
+ with the GKE Multi-Cloud API or the gcloud and kubectl command-line tools.
50
52
  email: googleapis-packages@google.com
51
53
  executables: []
52
54
  extensions: []
@@ -79,5 +81,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
81
  requirements: []
80
82
  rubygems_version: 3.6.9
81
83
  specification_version: 4
82
- summary: API Client library for the Anthos Multi-Cloud API
84
+ summary: GKE Multi-Cloud provides a way to manage Kubernetes clusters that run on
85
+ AWS and Azure infrastructure using the GKE Multi-Cloud API. Combined with Connect,
86
+ you can manage Kubernetes clusters on Google Cloud, AWS, and Azure from the Google
87
+ Cloud Console. When you create a cluster with GKE Multi-Cloud, Google creates the
88
+ resources needed and brings up a cluster on your behalf. You can deploy workloads
89
+ with the GKE Multi-Cloud API or the gcloud and kubectl command-line tools.
83
90
  test_files: []