google-cloud-gke_hub-v1 0.1.1 → 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 +11 -6
- data/lib/google/cloud/gke_hub/v1/gke_hub/client.rb +6 -5
- data/lib/google/cloud/gke_hub/v1/gke_hub/operations.rb +3 -0
- 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/configmanagement/configmanagement_pb.rb +2 -2
- data/lib/google/cloud/gkehub/v1/feature_pb.rb +2 -2
- data/lib/google/cloud/gkehub/v1/membership_pb.rb +21 -2
- data/lib/google/cloud/gkehub/v1/multiclusteringress/multiclusteringress_pb.rb +0 -1
- data/lib/google/cloud/gkehub/v1/service_pb.rb +2 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/gkehub/v1/membership.rb +89 -1
- data/proto_docs/google/cloud/gkehub/v1/service.rb +5 -5
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a578c6b601802cbf6f745ea8440d6757c32d203c66d7aac7d3528ba47e600f4
|
4
|
+
data.tar.gz: 567bd796308fee786e085765e6bd61f2d4df76beec091190f106025dd648c1dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72db5aed16cf963921e5f38dee7c08281ebcacc3cff18e0f1f05d7895e414f3de8f8856fd2ccc88600df386352094b2db10757d91db2bcf5b72d9b0d9ee8e7c5
|
7
|
+
data.tar.gz: 625009957e4c360ae738b7f581dff14b8cd93cfbc710621f259734deee890509277ffafa38f762707ba0a7bb8b3d9037cf6f1d4933711ee385b717ea77cd1bbd
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
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)
|
@@ -69,16 +69,21 @@ module GRPC
|
|
69
69
|
end
|
70
70
|
```
|
71
71
|
|
72
|
+
|
73
|
+
## Google Cloud Samples
|
74
|
+
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
76
|
+
|
72
77
|
## Supported Ruby Versions
|
73
78
|
|
74
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.6+.
|
75
80
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
78
|
-
in security maintenance, and not end of life.
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
84
|
+
still work, but are unsupported and not recommended. See
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
86
|
+
support schedule.
|
82
87
|
|
83
88
|
## Which client should I use?
|
84
89
|
|
@@ -153,6 +153,7 @@ module Google
|
|
153
153
|
|
154
154
|
@operations_client = Operations.new do |config|
|
155
155
|
config.credentials = credentials
|
156
|
+
config.quota_project = @quota_project_id
|
156
157
|
config.endpoint = @config.endpoint
|
157
158
|
end
|
158
159
|
|
@@ -318,7 +319,7 @@ module Google
|
|
318
319
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
319
320
|
#
|
320
321
|
# @param parent [::String]
|
321
|
-
# The parent (project and location) where the Features will be listed.
|
322
|
+
# Required. The parent (project and location) where the Features will be listed.
|
322
323
|
# Specified in the format `projects/*/locations/*`.
|
323
324
|
# @param page_size [::Integer]
|
324
325
|
# When requesting a 'page' of resources, `page_size` specifies number of
|
@@ -525,7 +526,7 @@ module Google
|
|
525
526
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
526
527
|
#
|
527
528
|
# @param name [::String]
|
528
|
-
# The Feature resource name in the format
|
529
|
+
# Required. The Feature resource name in the format
|
529
530
|
# `projects/*/locations/*/features/*`
|
530
531
|
#
|
531
532
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -735,7 +736,7 @@ module Google
|
|
735
736
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
736
737
|
#
|
737
738
|
# @param parent [::String]
|
738
|
-
# The parent (project and location) where the Feature will be created.
|
739
|
+
# Required. The parent (project and location) where the Feature will be created.
|
739
740
|
# Specified in the format `projects/*/locations/*`.
|
740
741
|
# @param feature_id [::String]
|
741
742
|
# The ID of the feature to create.
|
@@ -959,7 +960,7 @@ module Google
|
|
959
960
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
960
961
|
#
|
961
962
|
# @param name [::String]
|
962
|
-
# The Feature resource name in the format
|
963
|
+
# Required. The Feature resource name in the format
|
963
964
|
# `projects/*/locations/*/features/*`.
|
964
965
|
# @param force [::Boolean]
|
965
966
|
# If set to true, the delete will ignore any outstanding resources for
|
@@ -1190,7 +1191,7 @@ module Google
|
|
1190
1191
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
1191
1192
|
#
|
1192
1193
|
# @param name [::String]
|
1193
|
-
# The Feature resource name in the format
|
1194
|
+
# Required. The Feature resource name in the format
|
1194
1195
|
# `projects/*/locations/*/features/*`.
|
1195
1196
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1196
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/configmanagement/configmanagement.proto
|
3
3
|
|
4
|
-
require 'google/protobuf/timestamp_pb'
|
5
|
-
require 'google/api/annotations_pb'
|
6
4
|
require 'google/protobuf'
|
7
5
|
|
6
|
+
require 'google/protobuf/timestamp_pb'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/gkehub/v1/configmanagement/configmanagement.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.gkehub.configmanagement.v1.MembershipState" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/feature.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/cloud/gkehub/v1/configmanagement/configmanagement_pb'
|
7
9
|
require 'google/cloud/gkehub/v1/multiclusteringress/multiclusteringress_pb'
|
8
10
|
require 'google/protobuf/timestamp_pb'
|
9
|
-
require 'google/api/annotations_pb'
|
10
|
-
require 'google/protobuf'
|
11
11
|
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/gkehub/v1/feature.proto", :syntax => :proto3) do
|
@@ -1,11 +1,11 @@
|
|
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/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/field_behavior_pb'
|
5
7
|
require 'google/api/resource_pb'
|
6
8
|
require 'google/protobuf/timestamp_pb'
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/protobuf'
|
9
9
|
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/gkehub/v1/membership.proto", :syntax => :proto3) 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
|
@@ -1,6 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/gkehub/v1/service.proto
|
3
3
|
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
4
6
|
require 'google/api/annotations_pb'
|
5
7
|
require 'google/api/client_pb'
|
6
8
|
require 'google/api/field_behavior_pb'
|
@@ -10,7 +12,6 @@ require 'google/cloud/gkehub/v1/membership_pb'
|
|
10
12
|
require 'google/longrunning/operations_pb'
|
11
13
|
require 'google/protobuf/field_mask_pb'
|
12
14
|
require 'google/protobuf/timestamp_pb'
|
13
|
-
require 'google/protobuf'
|
14
15
|
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/gkehub/v1/service.proto", :syntax => :proto3) do
|
@@ -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
|
@@ -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]
|
@@ -44,7 +44,7 @@ module Google
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# Example 3: Pack and unpack a message in Python.
|
48
48
|
#
|
49
49
|
# foo = Foo(...)
|
50
50
|
# any = Any()
|
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# any.Unpack(foo)
|
55
55
|
# ...
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
60
|
# any, err := anypb.New(foo)
|
@@ -75,7 +75,7 @@ module Google
|
|
75
75
|
#
|
76
76
|
#
|
77
77
|
# JSON
|
78
|
-
#
|
78
|
+
#
|
79
79
|
# The JSON representation of an `Any` value uses the regular
|
80
80
|
# representation of the deserialized, embedded message, with an
|
81
81
|
# additional field `@type` which contains the type URL. Example:
|
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.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:
|
11
|
+
date: 2022-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.10'
|
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.
|
29
|
+
version: '0.10'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,28 +50,28 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.26.1
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.26.1
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '5.
|
67
|
+
version: '5.16'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '5.
|
74
|
+
version: '5.16'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: minitest-focus
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,14 +106,14 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ">="
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '13.0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '13.0'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
118
|
name: redcarpet
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,14 +211,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
211
|
requirements:
|
212
212
|
- - ">="
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '2.
|
214
|
+
version: '2.6'
|
215
215
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
216
|
requirements:
|
217
217
|
- - ">="
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
rubygems_version: 3.
|
221
|
+
rubygems_version: 3.3.14
|
222
222
|
signing_key:
|
223
223
|
specification_version: 4
|
224
224
|
summary: API Client library for the GKE Hub V1 API
|