google-cloud-gke_hub-v1beta1 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 +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +6 -1
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/client.rb +216 -24
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/operations.rb +115 -12
- data/lib/google/cloud/gke_hub/v1beta1/gke_hub_membership_service/paths.rb +17 -0
- data/lib/google/cloud/gke_hub/v1beta1/version.rb +1 -1
- data/lib/google/cloud/gke_hub/v1beta1.rb +2 -0
- data/lib/google/cloud/gkehub/v1beta1/membership_pb.rb +12 -0
- data/lib/google/cloud/gkehub/v1beta1/membership_services_pb.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/gkehub/v1beta1/membership.rb +39 -1
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +418 -0
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +47 -3
@@ -11,6 +11,7 @@ require 'google/longrunning/operations_pb'
|
|
11
11
|
require 'google/protobuf/field_mask_pb'
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
13
13
|
require 'google/rpc/status_pb'
|
14
|
+
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
16
|
add_file("google/cloud/gkehub/v1beta1/membership.proto", :syntax => :proto3) do
|
16
17
|
add_message "google.cloud.gkehub.v1beta1.Membership" do
|
@@ -42,6 +43,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
43
|
optional :gke_cluster, :message, 4, "google.cloud.gkehub.v1beta1.GkeCluster"
|
43
44
|
optional :on_prem_cluster, :message, 7, "google.cloud.gkehub.v1beta1.OnPremCluster"
|
44
45
|
optional :multi_cloud_cluster, :message, 8, "google.cloud.gkehub.v1beta1.MultiCloudCluster"
|
46
|
+
optional :edge_cluster, :message, 9, "google.cloud.gkehub.v1beta1.EdgeCluster"
|
47
|
+
optional :appliance_cluster, :message, 10, "google.cloud.gkehub.v1beta1.ApplianceCluster"
|
45
48
|
end
|
46
49
|
end
|
47
50
|
add_message "google.cloud.gkehub.v1beta1.KubernetesResource" do
|
@@ -53,6 +56,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
53
56
|
add_message "google.cloud.gkehub.v1beta1.ResourceOptions" do
|
54
57
|
optional :connect_version, :string, 1
|
55
58
|
optional :v1beta1_crd, :bool, 2
|
59
|
+
optional :k8s_version, :string, 3
|
56
60
|
end
|
57
61
|
add_message "google.cloud.gkehub.v1beta1.ResourceManifest" do
|
58
62
|
optional :manifest, :string, 1
|
@@ -71,6 +75,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
71
75
|
optional :resource_link, :string, 1
|
72
76
|
optional :cluster_missing, :bool, 2
|
73
77
|
end
|
78
|
+
add_message "google.cloud.gkehub.v1beta1.EdgeCluster" do
|
79
|
+
optional :resource_link, :string, 1
|
80
|
+
end
|
81
|
+
add_message "google.cloud.gkehub.v1beta1.ApplianceCluster" do
|
82
|
+
optional :resource_link, :string, 1
|
83
|
+
end
|
74
84
|
add_message "google.cloud.gkehub.v1beta1.KubernetesMetadata" do
|
75
85
|
optional :kubernetes_api_server_version, :string, 1
|
76
86
|
optional :node_provider_id, :string, 2
|
@@ -195,6 +205,8 @@ module Google
|
|
195
205
|
GkeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.GkeCluster").msgclass
|
196
206
|
OnPremCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.OnPremCluster").msgclass
|
197
207
|
MultiCloudCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.MultiCloudCluster").msgclass
|
208
|
+
EdgeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.EdgeCluster").msgclass
|
209
|
+
ApplianceCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.ApplianceCluster").msgclass
|
198
210
|
KubernetesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.KubernetesMetadata").msgclass
|
199
211
|
Authority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.Authority").msgclass
|
200
212
|
MembershipState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkehub.v1beta1.MembershipState").msgclass
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -126,10 +126,18 @@ module Google
|
|
126
126
|
# Optional. Specific information for a GKE-on-GCP cluster.
|
127
127
|
# @!attribute [rw] on_prem_cluster
|
128
128
|
# @return [::Google::Cloud::GkeHub::V1beta1::OnPremCluster]
|
129
|
-
# Optional. Specific information for a GKE On-Prem cluster.
|
129
|
+
# Optional. Specific information for a GKE On-Prem cluster. An onprem user-cluster
|
130
|
+
# who has no resourceLink is not allowed to use this field, it should have
|
131
|
+
# a nil "type" instead.
|
130
132
|
# @!attribute [rw] multi_cloud_cluster
|
131
133
|
# @return [::Google::Cloud::GkeHub::V1beta1::MultiCloudCluster]
|
132
134
|
# Optional. Specific information for a GKE Multi-Cloud cluster.
|
135
|
+
# @!attribute [rw] edge_cluster
|
136
|
+
# @return [::Google::Cloud::GkeHub::V1beta1::EdgeCluster]
|
137
|
+
# Optional. Specific information for a Google Edge cluster.
|
138
|
+
# @!attribute [rw] appliance_cluster
|
139
|
+
# @return [::Google::Cloud::GkeHub::V1beta1::ApplianceCluster]
|
140
|
+
# Optional. Specific information for a GDC Edge Appliance cluster.
|
133
141
|
# @!attribute [r] kubernetes_metadata
|
134
142
|
# @return [::Google::Cloud::GkeHub::V1beta1::KubernetesMetadata]
|
135
143
|
# Output only. Useful Kubernetes-specific metadata.
|
@@ -199,6 +207,11 @@ module Google
|
|
199
207
|
# CustomResourceDefinition resources.
|
200
208
|
# This option should be set for clusters with Kubernetes apiserver versions
|
201
209
|
# <1.16.
|
210
|
+
# @!attribute [rw] k8s_version
|
211
|
+
# @return [::String]
|
212
|
+
# Optional. Major version of the Kubernetes cluster. This is only used to determine
|
213
|
+
# which version to use for the CustomResourceDefinition resources,
|
214
|
+
# `apiextensions/v1beta1` or`apiextensions/v1`.
|
202
215
|
class ResourceOptions
|
203
216
|
include ::Google::Protobuf::MessageExts
|
204
217
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -276,6 +289,31 @@ module Google
|
|
276
289
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
277
290
|
end
|
278
291
|
|
292
|
+
# EdgeCluster contains information specific to Google Edge Clusters.
|
293
|
+
# @!attribute [rw] resource_link
|
294
|
+
# @return [::String]
|
295
|
+
# Immutable. Self-link of the GCP resource for the Edge Cluster. For
|
296
|
+
# example:
|
297
|
+
#
|
298
|
+
# //edgecontainer.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
|
299
|
+
class EdgeCluster
|
300
|
+
include ::Google::Protobuf::MessageExts
|
301
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
302
|
+
end
|
303
|
+
|
304
|
+
# ApplianceCluster contains information specific to GDC Edge Appliance
|
305
|
+
# Clusters.
|
306
|
+
# @!attribute [rw] resource_link
|
307
|
+
# @return [::String]
|
308
|
+
# Immutable. Self-link of the GCP resource for the Appliance Cluster. For
|
309
|
+
# example:
|
310
|
+
#
|
311
|
+
# //transferappliance.googleapis.com/projects/my-project/locations/us-west1-a/appliances/my-appliance
|
312
|
+
class ApplianceCluster
|
313
|
+
include ::Google::Protobuf::MessageExts
|
314
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
315
|
+
end
|
316
|
+
|
279
317
|
# KubernetesMetadata provides informational metadata for Memberships
|
280
318
|
# representing Kubernetes clusters.
|
281
319
|
# @!attribute [r] kubernetes_api_server_version
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Iam
|
22
|
+
module V1
|
23
|
+
# Request message for `SetIamPolicy` method.
|
24
|
+
# @!attribute [rw] resource
|
25
|
+
# @return [::String]
|
26
|
+
# REQUIRED: The resource for which the policy is being specified.
|
27
|
+
# See the operation documentation for the appropriate value for this field.
|
28
|
+
# @!attribute [rw] policy
|
29
|
+
# @return [::Google::Iam::V1::Policy]
|
30
|
+
# REQUIRED: The complete policy to be applied to the `resource`. The size of
|
31
|
+
# the policy is limited to a few 10s of KB. An empty policy is a
|
32
|
+
# valid policy but certain Cloud Platform services (such as Projects)
|
33
|
+
# might reject them.
|
34
|
+
# @!attribute [rw] update_mask
|
35
|
+
# @return [::Google::Protobuf::FieldMask]
|
36
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
37
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
38
|
+
# following default mask is used:
|
39
|
+
#
|
40
|
+
# `paths: "bindings, etag"`
|
41
|
+
class SetIamPolicyRequest
|
42
|
+
include ::Google::Protobuf::MessageExts
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
|
+
end
|
45
|
+
|
46
|
+
# Request message for `GetIamPolicy` method.
|
47
|
+
# @!attribute [rw] resource
|
48
|
+
# @return [::String]
|
49
|
+
# REQUIRED: The resource for which the policy is being requested.
|
50
|
+
# See the operation documentation for the appropriate value for this field.
|
51
|
+
# @!attribute [rw] options
|
52
|
+
# @return [::Google::Iam::V1::GetPolicyOptions]
|
53
|
+
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
54
|
+
# `GetIamPolicy`.
|
55
|
+
class GetIamPolicyRequest
|
56
|
+
include ::Google::Protobuf::MessageExts
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
58
|
+
end
|
59
|
+
|
60
|
+
# Request message for `TestIamPermissions` method.
|
61
|
+
# @!attribute [rw] resource
|
62
|
+
# @return [::String]
|
63
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
64
|
+
# See the operation documentation for the appropriate value for this field.
|
65
|
+
# @!attribute [rw] permissions
|
66
|
+
# @return [::Array<::String>]
|
67
|
+
# The set of permissions to check for the `resource`. Permissions with
|
68
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
69
|
+
# information see
|
70
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
71
|
+
class TestIamPermissionsRequest
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
end
|
75
|
+
|
76
|
+
# Response message for `TestIamPermissions` method.
|
77
|
+
# @!attribute [rw] permissions
|
78
|
+
# @return [::Array<::String>]
|
79
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
80
|
+
# allowed.
|
81
|
+
class TestIamPermissionsResponse
|
82
|
+
include ::Google::Protobuf::MessageExts
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Iam
|
22
|
+
module V1
|
23
|
+
# Encapsulates settings provided to GetIamPolicy.
|
24
|
+
# @!attribute [rw] requested_policy_version
|
25
|
+
# @return [::Integer]
|
26
|
+
# Optional. The maximum policy version that will be used to format the
|
27
|
+
# policy.
|
28
|
+
#
|
29
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
30
|
+
# rejected.
|
31
|
+
#
|
32
|
+
# Requests for policies with any conditional role bindings must specify
|
33
|
+
# version 3. Policies with no conditional role bindings may specify any valid
|
34
|
+
# value or leave the field unset.
|
35
|
+
#
|
36
|
+
# The policy in the response might use the policy version that you specified,
|
37
|
+
# or it might use a lower policy version. For example, if you specify version
|
38
|
+
# 3, but the policy has no conditional role bindings, the response uses
|
39
|
+
# version 1.
|
40
|
+
#
|
41
|
+
# To learn which resources support conditions in their IAM policies, see the
|
42
|
+
# [IAM
|
43
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
44
|
+
class GetPolicyOptions
|
45
|
+
include ::Google::Protobuf::MessageExts
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|