google-cloud-gke_multi_cloud-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +144 -0
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/client.rb +1729 -0
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/credentials.rb +47 -0
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/operations.rb +767 -0
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters/paths.rb +107 -0
- data/lib/google/cloud/gke_multi_cloud/v1/aws_clusters.rb +51 -0
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/client.rb +2184 -0
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/credentials.rb +47 -0
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/operations.rb +767 -0
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters/paths.rb +126 -0
- data/lib/google/cloud/gke_multi_cloud/v1/azure_clusters.rb +51 -0
- data/lib/google/cloud/gke_multi_cloud/v1/version.rb +28 -0
- data/lib/google/cloud/gke_multi_cloud/v1.rb +41 -0
- data/lib/google/cloud/gkemulticloud/v1/aws_resources_pb.rb +187 -0
- data/lib/google/cloud/gkemulticloud/v1/aws_service_pb.rb +110 -0
- data/lib/google/cloud/gkemulticloud/v1/aws_service_services_pb.rb +90 -0
- data/lib/google/cloud/gkemulticloud/v1/azure_resources_pb.rb +183 -0
- data/lib/google/cloud/gkemulticloud/v1/azure_service_pb.rb +138 -0
- data/lib/google/cloud/gkemulticloud/v1/azure_service_services_pb.rb +115 -0
- data/lib/google/cloud/gkemulticloud/v1/common_resources_pb.rb +71 -0
- data/lib/google-cloud-gke_multi_cloud-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/aws_resources.rb +633 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/aws_service.rb +383 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/azure_resources.rb +716 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/azure_service.rb +473 -0
- data/proto_docs/google/cloud/gkemulticloud/v1/common_resources.rb +164 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +232 -0
@@ -0,0 +1,126 @@
|
|
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 Cloud
|
22
|
+
module GkeMultiCloud
|
23
|
+
module V1
|
24
|
+
module AzureClusters
|
25
|
+
# Path helper methods for the AzureClusters API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified AzureClient resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/azureClients/{azure_client}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param azure_client [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def azure_client_path project:, location:, azure_client:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/azureClients/#{azure_client}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified AzureCluster resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/azureClusters/{azure_cluster}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param azure_cluster [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def azure_cluster_path project:, location:, azure_cluster:
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
61
|
+
|
62
|
+
"projects/#{project}/locations/#{location}/azureClusters/#{azure_cluster}"
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Create a fully-qualified AzureNodePool resource string.
|
67
|
+
#
|
68
|
+
# The resource will be in the following format:
|
69
|
+
#
|
70
|
+
# `projects/{project}/locations/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool}`
|
71
|
+
#
|
72
|
+
# @param project [String]
|
73
|
+
# @param location [String]
|
74
|
+
# @param azure_cluster [String]
|
75
|
+
# @param azure_node_pool [String]
|
76
|
+
#
|
77
|
+
# @return [::String]
|
78
|
+
def azure_node_pool_path project:, location:, azure_cluster:, azure_node_pool:
|
79
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
80
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
81
|
+
raise ::ArgumentError, "azure_cluster cannot contain /" if azure_cluster.to_s.include? "/"
|
82
|
+
|
83
|
+
"projects/#{project}/locations/#{location}/azureClusters/#{azure_cluster}/azureNodePools/#{azure_node_pool}"
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Create a fully-qualified AzureServerConfig resource string.
|
88
|
+
#
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/locations/{location}/azureServerConfig`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param location [String]
|
95
|
+
#
|
96
|
+
# @return [::String]
|
97
|
+
def azure_server_config_path project:, location:
|
98
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
99
|
+
|
100
|
+
"projects/#{project}/locations/#{location}/azureServerConfig"
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# Create a fully-qualified Location resource string.
|
105
|
+
#
|
106
|
+
# The resource will be in the following format:
|
107
|
+
#
|
108
|
+
# `projects/{project}/locations/{location}`
|
109
|
+
#
|
110
|
+
# @param project [String]
|
111
|
+
# @param location [String]
|
112
|
+
#
|
113
|
+
# @return [::String]
|
114
|
+
def location_path project:, location:
|
115
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
116
|
+
|
117
|
+
"projects/#{project}/locations/#{location}"
|
118
|
+
end
|
119
|
+
|
120
|
+
extend self
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,51 @@
|
|
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
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/gke_multi_cloud/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/gke_multi_cloud/v1/azure_clusters/credentials"
|
26
|
+
require "google/cloud/gke_multi_cloud/v1/azure_clusters/paths"
|
27
|
+
require "google/cloud/gke_multi_cloud/v1/azure_clusters/operations"
|
28
|
+
require "google/cloud/gke_multi_cloud/v1/azure_clusters/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module GkeMultiCloud
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# The AzureClusters API provides a single centrally managed service
|
36
|
+
# to create and manage Anthos clusters that run on Azure infrastructure.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a client:
|
39
|
+
#
|
40
|
+
# require "google/cloud/gke_multi_cloud/v1/azure_clusters"
|
41
|
+
# client = ::Google::Cloud::GkeMultiCloud::V1::AzureClusters::Client.new
|
42
|
+
#
|
43
|
+
module AzureClusters
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "azure_clusters", "helpers.rb"
|
51
|
+
require "google/cloud/gke_multi_cloud/v1/azure_clusters/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,28 @@
|
|
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 Cloud
|
22
|
+
module GkeMultiCloud
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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
|
+
require "google/cloud/gke_multi_cloud/v1/aws_clusters"
|
20
|
+
require "google/cloud/gke_multi_cloud/v1/azure_clusters"
|
21
|
+
require "google/cloud/gke_multi_cloud/v1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module GkeMultiCloud
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/gke_multi_cloud/v1"
|
32
|
+
# client = ::Google::Cloud::GkeMultiCloud::V1::AwsClusters::Client.new
|
33
|
+
#
|
34
|
+
module V1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
helper_path = ::File.join __dir__, "v1", "_helpers.rb"
|
41
|
+
require "google/cloud/gke_multi_cloud/v1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,187 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/gkemulticloud/v1/aws_resources.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/gkemulticloud/v1/common_resources_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/gkemulticloud/v1/aws_resources.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.gkemulticloud.v1.AwsCluster" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :description, :string, 2
|
16
|
+
optional :networking, :message, 3, "google.cloud.gkemulticloud.v1.AwsClusterNetworking"
|
17
|
+
optional :aws_region, :string, 4
|
18
|
+
optional :control_plane, :message, 5, "google.cloud.gkemulticloud.v1.AwsControlPlane"
|
19
|
+
optional :authorization, :message, 15, "google.cloud.gkemulticloud.v1.AwsAuthorization"
|
20
|
+
optional :state, :enum, 7, "google.cloud.gkemulticloud.v1.AwsCluster.State"
|
21
|
+
optional :endpoint, :string, 8
|
22
|
+
optional :uid, :string, 9
|
23
|
+
optional :reconciling, :bool, 10
|
24
|
+
optional :create_time, :message, 11, "google.protobuf.Timestamp"
|
25
|
+
optional :update_time, :message, 12, "google.protobuf.Timestamp"
|
26
|
+
optional :etag, :string, 13
|
27
|
+
map :annotations, :string, :string, 14
|
28
|
+
optional :workload_identity_config, :message, 16, "google.cloud.gkemulticloud.v1.WorkloadIdentityConfig"
|
29
|
+
optional :cluster_ca_certificate, :string, 17
|
30
|
+
optional :fleet, :message, 18, "google.cloud.gkemulticloud.v1.Fleet"
|
31
|
+
optional :logging_config, :message, 19, "google.cloud.gkemulticloud.v1.LoggingConfig"
|
32
|
+
end
|
33
|
+
add_enum "google.cloud.gkemulticloud.v1.AwsCluster.State" do
|
34
|
+
value :STATE_UNSPECIFIED, 0
|
35
|
+
value :PROVISIONING, 1
|
36
|
+
value :RUNNING, 2
|
37
|
+
value :RECONCILING, 3
|
38
|
+
value :STOPPING, 4
|
39
|
+
value :ERROR, 5
|
40
|
+
value :DEGRADED, 6
|
41
|
+
end
|
42
|
+
add_message "google.cloud.gkemulticloud.v1.AwsControlPlane" do
|
43
|
+
optional :version, :string, 1
|
44
|
+
optional :instance_type, :string, 2
|
45
|
+
optional :ssh_config, :message, 14, "google.cloud.gkemulticloud.v1.AwsSshConfig"
|
46
|
+
repeated :subnet_ids, :string, 4
|
47
|
+
repeated :security_group_ids, :string, 5
|
48
|
+
optional :iam_instance_profile, :string, 7
|
49
|
+
optional :root_volume, :message, 8, "google.cloud.gkemulticloud.v1.AwsVolumeTemplate"
|
50
|
+
optional :main_volume, :message, 9, "google.cloud.gkemulticloud.v1.AwsVolumeTemplate"
|
51
|
+
optional :database_encryption, :message, 10, "google.cloud.gkemulticloud.v1.AwsDatabaseEncryption"
|
52
|
+
map :tags, :string, :string, 11
|
53
|
+
optional :aws_services_authentication, :message, 12, "google.cloud.gkemulticloud.v1.AwsServicesAuthentication"
|
54
|
+
optional :proxy_config, :message, 16, "google.cloud.gkemulticloud.v1.AwsProxyConfig"
|
55
|
+
optional :config_encryption, :message, 17, "google.cloud.gkemulticloud.v1.AwsConfigEncryption"
|
56
|
+
optional :instance_placement, :message, 18, "google.cloud.gkemulticloud.v1.AwsInstancePlacement"
|
57
|
+
end
|
58
|
+
add_message "google.cloud.gkemulticloud.v1.AwsServicesAuthentication" do
|
59
|
+
optional :role_arn, :string, 1
|
60
|
+
optional :role_session_name, :string, 2
|
61
|
+
end
|
62
|
+
add_message "google.cloud.gkemulticloud.v1.AwsAuthorization" do
|
63
|
+
repeated :admin_users, :message, 1, "google.cloud.gkemulticloud.v1.AwsClusterUser"
|
64
|
+
end
|
65
|
+
add_message "google.cloud.gkemulticloud.v1.AwsClusterUser" do
|
66
|
+
optional :username, :string, 1
|
67
|
+
end
|
68
|
+
add_message "google.cloud.gkemulticloud.v1.AwsDatabaseEncryption" do
|
69
|
+
optional :kms_key_arn, :string, 1
|
70
|
+
end
|
71
|
+
add_message "google.cloud.gkemulticloud.v1.AwsVolumeTemplate" do
|
72
|
+
optional :size_gib, :int32, 1
|
73
|
+
optional :volume_type, :enum, 2, "google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType"
|
74
|
+
optional :iops, :int32, 3
|
75
|
+
optional :kms_key_arn, :string, 4
|
76
|
+
end
|
77
|
+
add_enum "google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType" do
|
78
|
+
value :VOLUME_TYPE_UNSPECIFIED, 0
|
79
|
+
value :GP2, 1
|
80
|
+
value :GP3, 2
|
81
|
+
end
|
82
|
+
add_message "google.cloud.gkemulticloud.v1.AwsClusterNetworking" do
|
83
|
+
optional :vpc_id, :string, 1
|
84
|
+
repeated :pod_address_cidr_blocks, :string, 2
|
85
|
+
repeated :service_address_cidr_blocks, :string, 3
|
86
|
+
end
|
87
|
+
add_message "google.cloud.gkemulticloud.v1.AwsNodePool" do
|
88
|
+
optional :name, :string, 1
|
89
|
+
optional :version, :string, 3
|
90
|
+
optional :config, :message, 28, "google.cloud.gkemulticloud.v1.AwsNodeConfig"
|
91
|
+
optional :autoscaling, :message, 25, "google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling"
|
92
|
+
optional :subnet_id, :string, 6
|
93
|
+
optional :state, :enum, 16, "google.cloud.gkemulticloud.v1.AwsNodePool.State"
|
94
|
+
optional :uid, :string, 17
|
95
|
+
optional :reconciling, :bool, 18
|
96
|
+
optional :create_time, :message, 19, "google.protobuf.Timestamp"
|
97
|
+
optional :update_time, :message, 20, "google.protobuf.Timestamp"
|
98
|
+
optional :etag, :string, 21
|
99
|
+
map :annotations, :string, :string, 22
|
100
|
+
optional :max_pods_constraint, :message, 27, "google.cloud.gkemulticloud.v1.MaxPodsConstraint"
|
101
|
+
end
|
102
|
+
add_enum "google.cloud.gkemulticloud.v1.AwsNodePool.State" do
|
103
|
+
value :STATE_UNSPECIFIED, 0
|
104
|
+
value :PROVISIONING, 1
|
105
|
+
value :RUNNING, 2
|
106
|
+
value :RECONCILING, 3
|
107
|
+
value :STOPPING, 4
|
108
|
+
value :ERROR, 5
|
109
|
+
value :DEGRADED, 6
|
110
|
+
end
|
111
|
+
add_message "google.cloud.gkemulticloud.v1.AwsNodeConfig" do
|
112
|
+
optional :instance_type, :string, 1
|
113
|
+
optional :root_volume, :message, 2, "google.cloud.gkemulticloud.v1.AwsVolumeTemplate"
|
114
|
+
repeated :taints, :message, 3, "google.cloud.gkemulticloud.v1.NodeTaint"
|
115
|
+
map :labels, :string, :string, 4
|
116
|
+
map :tags, :string, :string, 5
|
117
|
+
optional :iam_instance_profile, :string, 6
|
118
|
+
optional :image_type, :string, 11
|
119
|
+
optional :ssh_config, :message, 9, "google.cloud.gkemulticloud.v1.AwsSshConfig"
|
120
|
+
repeated :security_group_ids, :string, 10
|
121
|
+
optional :proxy_config, :message, 12, "google.cloud.gkemulticloud.v1.AwsProxyConfig"
|
122
|
+
optional :config_encryption, :message, 13, "google.cloud.gkemulticloud.v1.AwsConfigEncryption"
|
123
|
+
optional :instance_placement, :message, 14, "google.cloud.gkemulticloud.v1.AwsInstancePlacement"
|
124
|
+
end
|
125
|
+
add_message "google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling" do
|
126
|
+
optional :min_node_count, :int32, 1
|
127
|
+
optional :max_node_count, :int32, 2
|
128
|
+
end
|
129
|
+
add_message "google.cloud.gkemulticloud.v1.AwsServerConfig" do
|
130
|
+
optional :name, :string, 1
|
131
|
+
repeated :valid_versions, :message, 2, "google.cloud.gkemulticloud.v1.AwsK8sVersionInfo"
|
132
|
+
repeated :supported_aws_regions, :string, 3
|
133
|
+
end
|
134
|
+
add_message "google.cloud.gkemulticloud.v1.AwsK8sVersionInfo" do
|
135
|
+
optional :version, :string, 1
|
136
|
+
end
|
137
|
+
add_message "google.cloud.gkemulticloud.v1.AwsSshConfig" do
|
138
|
+
optional :ec2_key_pair, :string, 1
|
139
|
+
end
|
140
|
+
add_message "google.cloud.gkemulticloud.v1.AwsProxyConfig" do
|
141
|
+
optional :secret_arn, :string, 1
|
142
|
+
optional :secret_version, :string, 2
|
143
|
+
end
|
144
|
+
add_message "google.cloud.gkemulticloud.v1.AwsConfigEncryption" do
|
145
|
+
optional :kms_key_arn, :string, 1
|
146
|
+
end
|
147
|
+
add_message "google.cloud.gkemulticloud.v1.AwsInstancePlacement" do
|
148
|
+
optional :tenancy, :enum, 1, "google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy"
|
149
|
+
end
|
150
|
+
add_enum "google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy" do
|
151
|
+
value :TENANCY_UNSPECIFIED, 0
|
152
|
+
value :DEFAULT, 1
|
153
|
+
value :DEDICATED, 2
|
154
|
+
value :HOST, 3
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
module Google
|
160
|
+
module Cloud
|
161
|
+
module GkeMultiCloud
|
162
|
+
module V1
|
163
|
+
AwsCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsCluster").msgclass
|
164
|
+
AwsCluster::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsCluster.State").enummodule
|
165
|
+
AwsControlPlane = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsControlPlane").msgclass
|
166
|
+
AwsServicesAuthentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsServicesAuthentication").msgclass
|
167
|
+
AwsAuthorization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsAuthorization").msgclass
|
168
|
+
AwsClusterUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsClusterUser").msgclass
|
169
|
+
AwsDatabaseEncryption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsDatabaseEncryption").msgclass
|
170
|
+
AwsVolumeTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsVolumeTemplate").msgclass
|
171
|
+
AwsVolumeTemplate::VolumeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeType").enummodule
|
172
|
+
AwsClusterNetworking = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsClusterNetworking").msgclass
|
173
|
+
AwsNodePool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsNodePool").msgclass
|
174
|
+
AwsNodePool::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsNodePool.State").enummodule
|
175
|
+
AwsNodeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsNodeConfig").msgclass
|
176
|
+
AwsNodePoolAutoscaling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling").msgclass
|
177
|
+
AwsServerConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsServerConfig").msgclass
|
178
|
+
AwsK8sVersionInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsK8sVersionInfo").msgclass
|
179
|
+
AwsSshConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsSshConfig").msgclass
|
180
|
+
AwsProxyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsProxyConfig").msgclass
|
181
|
+
AwsConfigEncryption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsConfigEncryption").msgclass
|
182
|
+
AwsInstancePlacement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsInstancePlacement").msgclass
|
183
|
+
AwsInstancePlacement::Tenancy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.AwsInstancePlacement.Tenancy").enummodule
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/gkemulticloud/v1/aws_service.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/gkemulticloud/v1/aws_resources_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf/timestamp_pb'
|
14
|
+
|
15
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
|
+
add_file("google/cloud/gkemulticloud/v1/aws_service.proto", :syntax => :proto3) do
|
17
|
+
add_message "google.cloud.gkemulticloud.v1.CreateAwsClusterRequest" do
|
18
|
+
optional :parent, :string, 1
|
19
|
+
optional :aws_cluster, :message, 2, "google.cloud.gkemulticloud.v1.AwsCluster"
|
20
|
+
optional :aws_cluster_id, :string, 3
|
21
|
+
optional :validate_only, :bool, 4
|
22
|
+
end
|
23
|
+
add_message "google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest" do
|
24
|
+
optional :aws_cluster, :message, 1, "google.cloud.gkemulticloud.v1.AwsCluster"
|
25
|
+
optional :validate_only, :bool, 2
|
26
|
+
optional :update_mask, :message, 4, "google.protobuf.FieldMask"
|
27
|
+
end
|
28
|
+
add_message "google.cloud.gkemulticloud.v1.GetAwsClusterRequest" do
|
29
|
+
optional :name, :string, 1
|
30
|
+
end
|
31
|
+
add_message "google.cloud.gkemulticloud.v1.ListAwsClustersRequest" do
|
32
|
+
optional :parent, :string, 1
|
33
|
+
optional :page_size, :int32, 2
|
34
|
+
optional :page_token, :string, 3
|
35
|
+
end
|
36
|
+
add_message "google.cloud.gkemulticloud.v1.ListAwsClustersResponse" do
|
37
|
+
repeated :aws_clusters, :message, 1, "google.cloud.gkemulticloud.v1.AwsCluster"
|
38
|
+
optional :next_page_token, :string, 2
|
39
|
+
end
|
40
|
+
add_message "google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest" do
|
41
|
+
optional :name, :string, 1
|
42
|
+
optional :validate_only, :bool, 2
|
43
|
+
optional :allow_missing, :bool, 3
|
44
|
+
optional :etag, :string, 4
|
45
|
+
end
|
46
|
+
add_message "google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest" do
|
47
|
+
optional :parent, :string, 1
|
48
|
+
optional :aws_node_pool, :message, 2, "google.cloud.gkemulticloud.v1.AwsNodePool"
|
49
|
+
optional :aws_node_pool_id, :string, 3
|
50
|
+
optional :validate_only, :bool, 4
|
51
|
+
end
|
52
|
+
add_message "google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest" do
|
53
|
+
optional :aws_node_pool, :message, 1, "google.cloud.gkemulticloud.v1.AwsNodePool"
|
54
|
+
optional :validate_only, :bool, 2
|
55
|
+
optional :update_mask, :message, 3, "google.protobuf.FieldMask"
|
56
|
+
end
|
57
|
+
add_message "google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest" do
|
58
|
+
optional :name, :string, 1
|
59
|
+
end
|
60
|
+
add_message "google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest" do
|
61
|
+
optional :parent, :string, 1
|
62
|
+
optional :page_size, :int32, 2
|
63
|
+
optional :page_token, :string, 3
|
64
|
+
end
|
65
|
+
add_message "google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse" do
|
66
|
+
repeated :aws_node_pools, :message, 1, "google.cloud.gkemulticloud.v1.AwsNodePool"
|
67
|
+
optional :next_page_token, :string, 2
|
68
|
+
end
|
69
|
+
add_message "google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest" do
|
70
|
+
optional :name, :string, 1
|
71
|
+
optional :validate_only, :bool, 2
|
72
|
+
optional :allow_missing, :bool, 3
|
73
|
+
optional :etag, :string, 4
|
74
|
+
end
|
75
|
+
add_message "google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest" do
|
76
|
+
optional :name, :string, 1
|
77
|
+
end
|
78
|
+
add_message "google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest" do
|
79
|
+
optional :aws_cluster, :string, 1
|
80
|
+
end
|
81
|
+
add_message "google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse" do
|
82
|
+
optional :access_token, :string, 1
|
83
|
+
optional :expiration_time, :message, 2, "google.protobuf.Timestamp"
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
module Google
|
89
|
+
module Cloud
|
90
|
+
module GkeMultiCloud
|
91
|
+
module V1
|
92
|
+
CreateAwsClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.CreateAwsClusterRequest").msgclass
|
93
|
+
UpdateAwsClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest").msgclass
|
94
|
+
GetAwsClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.GetAwsClusterRequest").msgclass
|
95
|
+
ListAwsClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.ListAwsClustersRequest").msgclass
|
96
|
+
ListAwsClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.ListAwsClustersResponse").msgclass
|
97
|
+
DeleteAwsClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest").msgclass
|
98
|
+
CreateAwsNodePoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest").msgclass
|
99
|
+
UpdateAwsNodePoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest").msgclass
|
100
|
+
GetAwsNodePoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest").msgclass
|
101
|
+
ListAwsNodePoolsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest").msgclass
|
102
|
+
ListAwsNodePoolsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse").msgclass
|
103
|
+
DeleteAwsNodePoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest").msgclass
|
104
|
+
GetAwsServerConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest").msgclass
|
105
|
+
GenerateAwsAccessTokenRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest").msgclass
|
106
|
+
GenerateAwsAccessTokenResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse").msgclass
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/gkemulticloud/v1/aws_service.proto for package 'Google.Cloud.GkeMultiCloud.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/gkemulticloud/v1/aws_service_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module GkeMultiCloud
|
25
|
+
module V1
|
26
|
+
module AwsClusters
|
27
|
+
# The AwsClusters API provides a single centrally managed service
|
28
|
+
# to create and manage Anthos clusters that run on AWS infrastructure.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.gkemulticloud.v1.AwsClusters'
|
36
|
+
|
37
|
+
# Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given GCP project and region.
|
38
|
+
#
|
39
|
+
# If successful, the response contains a newly created
|
40
|
+
# [Operation][google.longrunning.Operation] resource that can be
|
41
|
+
# described to track the status of the operation.
|
42
|
+
rpc :CreateAwsCluster, ::Google::Cloud::GkeMultiCloud::V1::CreateAwsClusterRequest, ::Google::Longrunning::Operation
|
43
|
+
# Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
|
44
|
+
rpc :UpdateAwsCluster, ::Google::Cloud::GkeMultiCloud::V1::UpdateAwsClusterRequest, ::Google::Longrunning::Operation
|
45
|
+
# Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
|
46
|
+
rpc :GetAwsCluster, ::Google::Cloud::GkeMultiCloud::V1::GetAwsClusterRequest, ::Google::Cloud::GkeMultiCloud::V1::AwsCluster
|
47
|
+
# Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and
|
48
|
+
# region.
|
49
|
+
rpc :ListAwsClusters, ::Google::Cloud::GkeMultiCloud::V1::ListAwsClustersRequest, ::Google::Cloud::GkeMultiCloud::V1::ListAwsClustersResponse
|
50
|
+
# Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
|
51
|
+
#
|
52
|
+
# Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]
|
53
|
+
# resources.
|
54
|
+
#
|
55
|
+
# If successful, the response contains a newly created
|
56
|
+
# [Operation][google.longrunning.Operation] resource that can be
|
57
|
+
# described to track the status of the operation.
|
58
|
+
rpc :DeleteAwsCluster, ::Google::Cloud::GkeMultiCloud::V1::DeleteAwsClusterRequest, ::Google::Longrunning::Operation
|
59
|
+
# Generates a short-lived access token to authenticate to a given
|
60
|
+
# [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.
|
61
|
+
rpc :GenerateAwsAccessToken, ::Google::Cloud::GkeMultiCloud::V1::GenerateAwsAccessTokenRequest, ::Google::Cloud::GkeMultiCloud::V1::GenerateAwsAccessTokenResponse
|
62
|
+
# Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
|
63
|
+
#
|
64
|
+
# If successful, the response contains a newly created
|
65
|
+
# [Operation][google.longrunning.Operation] resource that can be
|
66
|
+
# described to track the status of the operation.
|
67
|
+
rpc :CreateAwsNodePool, ::Google::Cloud::GkeMultiCloud::V1::CreateAwsNodePoolRequest, ::Google::Longrunning::Operation
|
68
|
+
# Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].
|
69
|
+
rpc :UpdateAwsNodePool, ::Google::Cloud::GkeMultiCloud::V1::UpdateAwsNodePoolRequest, ::Google::Longrunning::Operation
|
70
|
+
# Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
|
71
|
+
rpc :GetAwsNodePool, ::Google::Cloud::GkeMultiCloud::V1::GetAwsNodePoolRequest, ::Google::Cloud::GkeMultiCloud::V1::AwsNodePool
|
72
|
+
# Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].
|
73
|
+
rpc :ListAwsNodePools, ::Google::Cloud::GkeMultiCloud::V1::ListAwsNodePoolsRequest, ::Google::Cloud::GkeMultiCloud::V1::ListAwsNodePoolsResponse
|
74
|
+
# Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.
|
75
|
+
#
|
76
|
+
# If successful, the response contains a newly created
|
77
|
+
# [Operation][google.longrunning.Operation] resource that can be
|
78
|
+
# described to track the status of the operation.
|
79
|
+
rpc :DeleteAwsNodePool, ::Google::Cloud::GkeMultiCloud::V1::DeleteAwsNodePoolRequest, ::Google::Longrunning::Operation
|
80
|
+
# Returns information, such as supported AWS regions and Kubernetes
|
81
|
+
# versions, on a given Google Cloud location.
|
82
|
+
rpc :GetAwsServerConfig, ::Google::Cloud::GkeMultiCloud::V1::GetAwsServerConfigRequest, ::Google::Cloud::GkeMultiCloud::V1::AwsServerConfig
|
83
|
+
end
|
84
|
+
|
85
|
+
Stub = Service.rpc_stub_class
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|