google-cloud-gke_hub-v1 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/gke_hub/v1/gke_hub/client.rb +5 -5
- data/lib/google/cloud/gke_hub/v1/version.rb +1 -1
- data/lib/google/cloud/gke_hub/v1.rb +2 -0
- data/lib/google/cloud/gkehub/v1/membership_pb.rb +20 -1
- data/lib/google/cloud/gkehub/v1/service_pb.rb +1 -0
- data/proto_docs/google/cloud/gkehub/v1/membership.rb +89 -1
- data/proto_docs/google/cloud/gkehub/v1/service.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab270f9a65942083380c26d16fd3ae1d0089d8eeb36a134cd82743e4196b7955
|
4
|
+
data.tar.gz: 6ba4a2cada35b35f52df499645a3287ffa22106076a6cc351be314d7b21a9247
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e68fd0e24d7be18d89db16b1fff0562d5d0522c8f584e7a240b4b0c2d1529973ad3d3d6c1aaa751afe940a7608fc03b9a455a5faa49d0769c4e6b548ed4eb161
|
7
|
+
data.tar.gz: eb3d9b6c7812fbbbc964bb1714d9c66a454ef0e128cb08c290b267c75c7d99dab4cc4803e1995fa5c14f3eb46dd07b87bc0ce86aca2e902d6eea204aa116ef40
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::GkeHub::V1::ListMembershipsRequest.new # (request fie
|
|
37
37
|
response = client.list_memberships request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_hub-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/anthos/clusters/docs)
|
@@ -319,7 +319,7 @@ module Google
|
|
319
319
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
320
320
|
#
|
321
321
|
# @param parent [::String]
|
322
|
-
# The parent (project and location) where the Features will be listed.
|
322
|
+
# Required. The parent (project and location) where the Features will be listed.
|
323
323
|
# Specified in the format `projects/*/locations/*`.
|
324
324
|
# @param page_size [::Integer]
|
325
325
|
# When requesting a 'page' of resources, `page_size` specifies number of
|
@@ -526,7 +526,7 @@ module Google
|
|
526
526
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
527
527
|
#
|
528
528
|
# @param name [::String]
|
529
|
-
# The Feature resource name in the format
|
529
|
+
# Required. The Feature resource name in the format
|
530
530
|
# `projects/*/locations/*/features/*`
|
531
531
|
#
|
532
532
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -736,7 +736,7 @@ module Google
|
|
736
736
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
737
737
|
#
|
738
738
|
# @param parent [::String]
|
739
|
-
# The parent (project and location) where the Feature will be created.
|
739
|
+
# Required. The parent (project and location) where the Feature will be created.
|
740
740
|
# Specified in the format `projects/*/locations/*`.
|
741
741
|
# @param feature_id [::String]
|
742
742
|
# The ID of the feature to create.
|
@@ -960,7 +960,7 @@ module Google
|
|
960
960
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
961
961
|
#
|
962
962
|
# @param name [::String]
|
963
|
-
# The Feature resource name in the format
|
963
|
+
# Required. The Feature resource name in the format
|
964
964
|
# `projects/*/locations/*/features/*`.
|
965
965
|
# @param force [::Boolean]
|
966
966
|
# If set to true, the delete will ignore any outstanding resources for
|
@@ -1191,7 +1191,7 @@ module Google
|
|
1191
1191
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1192
1192
|
#
|
1193
1193
|
# @param name [::String]
|
1194
|
-
# The Feature resource name in the format
|
1194
|
+
# Required. The Feature resource name in the format
|
1195
1195
|
# `projects/*/locations/*/features/*`.
|
1196
1196
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1197
1197
|
# Mask of fields to update.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/membership.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/api/field_behavior_pb'
|
5
6
|
require 'google/api/resource_pb'
|
6
7
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
8
|
require 'google/protobuf'
|
9
9
|
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -28,6 +28,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
28
|
add_message "google.cloud.gkehub.v1.MembershipEndpoint" do
|
29
29
|
optional :gke_cluster, :message, 1, "google.cloud.gkehub.v1.GkeCluster"
|
30
30
|
optional :kubernetes_metadata, :message, 2, "google.cloud.gkehub.v1.KubernetesMetadata"
|
31
|
+
optional :kubernetes_resource, :message, 3, "google.cloud.gkehub.v1.KubernetesResource"
|
32
|
+
end
|
33
|
+
add_message "google.cloud.gkehub.v1.KubernetesResource" do
|
34
|
+
optional :membership_cr_manifest, :string, 1
|
35
|
+
repeated :membership_resources, :message, 2, "google.cloud.gkehub.v1.ResourceManifest"
|
36
|
+
repeated :connect_resources, :message, 3, "google.cloud.gkehub.v1.ResourceManifest"
|
37
|
+
optional :resource_options, :message, 4, "google.cloud.gkehub.v1.ResourceOptions"
|
38
|
+
end
|
39
|
+
add_message "google.cloud.gkehub.v1.ResourceOptions" do
|
40
|
+
optional :connect_version, :string, 1
|
41
|
+
optional :v1beta1_crd, :bool, 2
|
42
|
+
optional :k8s_version, :string, 3
|
43
|
+
end
|
44
|
+
add_message "google.cloud.gkehub.v1.ResourceManifest" do
|
45
|
+
optional :manifest, :string, 1
|
46
|
+
optional :cluster_scoped, :bool, 2
|
31
47
|
end
|
32
48
|
add_message "google.cloud.gkehub.v1.GkeCluster" do
|
33
49
|
optional :resource_link, :string, 1
|
@@ -66,6 +82,9 @@ module Google
|
|
66
82
|
module V1
|
67
83
|
Membership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.Membership").msgclass
|
68
84
|
MembershipEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.MembershipEndpoint").msgclass
|
85
|
+
KubernetesResource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.KubernetesResource").msgclass
|
86
|
+
ResourceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.ResourceOptions").msgclass
|
87
|
+
ResourceManifest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.ResourceManifest").msgclass
|
69
88
|
GkeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.GkeCluster").msgclass
|
70
89
|
KubernetesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.KubernetesMetadata").msgclass
|
71
90
|
MembershipState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1.MembershipState").msgclass
|
@@ -8,6 +8,7 @@ require 'google/api/resource_pb'
|
|
8
8
|
require 'google/cloud/gkehub/v1/feature_pb'
|
9
9
|
require 'google/cloud/gkehub/v1/membership_pb'
|
10
10
|
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
11
12
|
require 'google/protobuf/field_mask_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
14
|
require 'google/protobuf'
|
@@ -106,17 +106,105 @@ module Google
|
|
106
106
|
# @!attribute [r] kubernetes_metadata
|
107
107
|
# @return [::Google::Cloud::GkeHub::V1::KubernetesMetadata]
|
108
108
|
# Output only. Useful Kubernetes-specific metadata.
|
109
|
+
# @!attribute [rw] kubernetes_resource
|
110
|
+
# @return [::Google::Cloud::GkeHub::V1::KubernetesResource]
|
111
|
+
# Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
|
112
|
+
# registered cluster, in the steady state. These resources:
|
113
|
+
#
|
114
|
+
# * Ensure that the cluster is exclusively registered to one and only one
|
115
|
+
# Hub Membership.
|
116
|
+
# * Propagate Workload Pool Information available in the Membership
|
117
|
+
# Authority field.
|
118
|
+
# * Ensure proper initial configuration of default Hub Features.
|
109
119
|
class MembershipEndpoint
|
110
120
|
include ::Google::Protobuf::MessageExts
|
111
121
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
112
122
|
end
|
113
123
|
|
124
|
+
# KubernetesResource contains the YAML manifests and configuration for
|
125
|
+
# Membership Kubernetes resources in the cluster. After CreateMembership or
|
126
|
+
# UpdateMembership, these resources should be re-applied in the cluster.
|
127
|
+
# @!attribute [rw] membership_cr_manifest
|
128
|
+
# @return [::String]
|
129
|
+
# Input only. The YAML representation of the Membership CR. This field is ignored for GKE
|
130
|
+
# clusters where Hub can read the CR directly.
|
131
|
+
#
|
132
|
+
# Callers should provide the CR that is currently present in the cluster
|
133
|
+
# during CreateMembership or UpdateMembership, or leave this field empty if
|
134
|
+
# none exists. The CR manifest is used to validate the cluster has not been
|
135
|
+
# registered with another Membership.
|
136
|
+
# @!attribute [r] membership_resources
|
137
|
+
# @return [::Array<::Google::Cloud::GkeHub::V1::ResourceManifest>]
|
138
|
+
# Output only. Additional Kubernetes resources that need to be applied to the cluster
|
139
|
+
# after Membership creation, and after every update.
|
140
|
+
#
|
141
|
+
# This field is only populated in the Membership returned from a successful
|
142
|
+
# long-running operation from CreateMembership or UpdateMembership. It is not
|
143
|
+
# populated during normal GetMembership or ListMemberships requests. To get
|
144
|
+
# the resource manifest after the initial registration, the caller should
|
145
|
+
# make a UpdateMembership call with an empty field mask.
|
146
|
+
# @!attribute [r] connect_resources
|
147
|
+
# @return [::Array<::Google::Cloud::GkeHub::V1::ResourceManifest>]
|
148
|
+
# Output only. The Kubernetes resources for installing the GKE Connect agent
|
149
|
+
#
|
150
|
+
# This field is only populated in the Membership returned from a successful
|
151
|
+
# long-running operation from CreateMembership or UpdateMembership. It is not
|
152
|
+
# populated during normal GetMembership or ListMemberships requests. To get
|
153
|
+
# the resource manifest after the initial registration, the caller should
|
154
|
+
# make a UpdateMembership call with an empty field mask.
|
155
|
+
# @!attribute [rw] resource_options
|
156
|
+
# @return [::Google::Cloud::GkeHub::V1::ResourceOptions]
|
157
|
+
# Optional. Options for Kubernetes resource generation.
|
158
|
+
class KubernetesResource
|
159
|
+
include ::Google::Protobuf::MessageExts
|
160
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
|
163
|
+
# ResourceOptions represent options for Kubernetes resource generation.
|
164
|
+
# @!attribute [rw] connect_version
|
165
|
+
# @return [::String]
|
166
|
+
# Optional. The Connect agent version to use for connect_resources. Defaults to the
|
167
|
+
# latest GKE Connect version. The version must be a currently supported
|
168
|
+
# version, obsolete versions will be rejected.
|
169
|
+
# @!attribute [rw] v1beta1_crd
|
170
|
+
# @return [::Boolean]
|
171
|
+
# Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
|
172
|
+
# CustomResourceDefinition resources.
|
173
|
+
# This option should be set for clusters with Kubernetes apiserver versions
|
174
|
+
# <1.16.
|
175
|
+
# @!attribute [rw] k8s_version
|
176
|
+
# @return [::String]
|
177
|
+
# Optional. Major version of the Kubernetes cluster. This is only used to determine
|
178
|
+
# which version to use for the CustomResourceDefinition resources,
|
179
|
+
# `apiextensions/v1beta1` or`apiextensions/v1`.
|
180
|
+
class ResourceOptions
|
181
|
+
include ::Google::Protobuf::MessageExts
|
182
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
183
|
+
end
|
184
|
+
|
185
|
+
# ResourceManifest represents a single Kubernetes resource to be applied to
|
186
|
+
# the cluster.
|
187
|
+
# @!attribute [rw] manifest
|
188
|
+
# @return [::String]
|
189
|
+
# YAML manifest of the resource.
|
190
|
+
# @!attribute [rw] cluster_scoped
|
191
|
+
# @return [::Boolean]
|
192
|
+
# Whether the resource provided in the manifest is `cluster_scoped`.
|
193
|
+
# If unset, the manifest is assumed to be namespace scoped.
|
194
|
+
#
|
195
|
+
# This field is used for REST mapping when applying the resource in a
|
196
|
+
# cluster.
|
197
|
+
class ResourceManifest
|
198
|
+
include ::Google::Protobuf::MessageExts
|
199
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
end
|
201
|
+
|
114
202
|
# GkeCluster contains information specific to GKE clusters.
|
115
203
|
# @!attribute [rw] resource_link
|
116
204
|
# @return [::String]
|
117
205
|
# Immutable. Self-link of the GCP resource for the GKE cluster. For example:
|
118
206
|
#
|
119
|
-
#
|
207
|
+
# //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
|
120
208
|
#
|
121
209
|
# Zonal clusters are also supported.
|
122
210
|
class GkeCluster
|
@@ -276,7 +276,7 @@ module Google
|
|
276
276
|
# Request message for `GkeHub.ListFeatures` method.
|
277
277
|
# @!attribute [rw] parent
|
278
278
|
# @return [::String]
|
279
|
-
# The parent (project and location) where the Features will be listed.
|
279
|
+
# Required. The parent (project and location) where the Features will be listed.
|
280
280
|
# Specified in the format `projects/*/locations/*`.
|
281
281
|
# @!attribute [rw] page_size
|
282
282
|
# @return [::Integer]
|
@@ -332,7 +332,7 @@ module Google
|
|
332
332
|
# Request message for `GkeHub.GetFeature` method.
|
333
333
|
# @!attribute [rw] name
|
334
334
|
# @return [::String]
|
335
|
-
# The Feature resource name in the format
|
335
|
+
# Required. The Feature resource name in the format
|
336
336
|
# `projects/*/locations/*/features/*`
|
337
337
|
class GetFeatureRequest
|
338
338
|
include ::Google::Protobuf::MessageExts
|
@@ -342,7 +342,7 @@ module Google
|
|
342
342
|
# Request message for the `GkeHub.CreateFeature` method.
|
343
343
|
# @!attribute [rw] parent
|
344
344
|
# @return [::String]
|
345
|
-
# The parent (project and location) where the Feature will be created.
|
345
|
+
# Required. The parent (project and location) where the Feature will be created.
|
346
346
|
# Specified in the format `projects/*/locations/*`.
|
347
347
|
# @!attribute [rw] feature_id
|
348
348
|
# @return [::String]
|
@@ -373,7 +373,7 @@ module Google
|
|
373
373
|
# Request message for `GkeHub.DeleteFeature` method.
|
374
374
|
# @!attribute [rw] name
|
375
375
|
# @return [::String]
|
376
|
-
# The Feature resource name in the format
|
376
|
+
# Required. The Feature resource name in the format
|
377
377
|
# `projects/*/locations/*/features/*`.
|
378
378
|
# @!attribute [rw] force
|
379
379
|
# @return [::Boolean]
|
@@ -403,7 +403,7 @@ module Google
|
|
403
403
|
# Request message for `GkeHub.UpdateFeature` method.
|
404
404
|
# @!attribute [rw] name
|
405
405
|
# @return [::String]
|
406
|
-
# The Feature resource name in the format
|
406
|
+
# Required. The Feature resource name in the format
|
407
407
|
# `projects/*/locations/*/features/*`.
|
408
408
|
# @!attribute [rw] update_mask
|
409
409
|
# @return [::Google::Protobuf::FieldMask]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-gke_hub-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.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-
|
11
|
+
date: 2022-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.3.
|
221
|
+
rubygems_version: 3.3.5
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: API Client library for the GKE Hub V1 API
|