google-cloud-gke_connect-gateway-v1beta1 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/gke_connect/gateway/v1beta1/gateway_control/client.rb +450 -0
- data/lib/google/cloud/gke_connect/gateway/v1beta1/{gateway_service → gateway_control}/credentials.rb +3 -3
- data/lib/google/cloud/gke_connect/gateway/v1beta1/gateway_control/rest/client.rb +417 -0
- data/lib/google/cloud/gke_connect/gateway/v1beta1/gateway_control/rest/service_stub.rb +130 -0
- data/lib/google/cloud/gke_connect/gateway/v1beta1/gateway_control/rest.rb +53 -0
- data/lib/google/cloud/gke_connect/gateway/v1beta1/{gateway_service.rb → gateway_control.rb} +15 -13
- data/lib/google/cloud/gke_connect/gateway/v1beta1/rest.rb +39 -0
- data/lib/google/cloud/gke_connect/gateway/v1beta1/version.rb +1 -1
- data/lib/google/cloud/gke_connect/gateway/v1beta1.rb +7 -2
- data/lib/google/cloud/gkeconnect/gateway/v1beta1/control_pb.rb +50 -0
- data/lib/google/cloud/gkeconnect/gateway/v1beta1/control_services_pb.rb +48 -0
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/gkeconnect/gateway/v1beta1/control.rb +84 -0
- metadata +13 -9
- data/lib/google/cloud/gke_connect/gateway/v1beta1/gateway_service/client.rb +0 -778
- data/lib/google/cloud/gkeconnect/gateway/v1beta1/gateway_pb.rb +0 -47
- data/lib/google/cloud/gkeconnect/gateway/v1beta1/gateway_services_pb.rb +0 -59
- data/proto_docs/google/api/httpbody.rb +0 -80
- data/proto_docs/google/protobuf/any.rb +0 -145
@@ -1,47 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# source: google/cloud/gkeconnect/gateway/v1beta1/gateway.proto
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/httpbody_pb'
|
10
|
-
|
11
|
-
|
12
|
-
descriptor_data = "\n5google/cloud/gkeconnect/gateway/v1beta1/gateway.proto\x12\'google.cloud.gkeconnect.gateway.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19google/api/httpbody.proto2\xf9\x03\n\x0eGatewayService\x12N\n\x0bGetResource\x12\x14.google.api.HttpBody\x1a\x14.google.api.HttpBody\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/v1beta1/**\x12O\n\x0cPostResource\x12\x14.google.api.HttpBody\x1a\x14.google.api.HttpBody\"\x13\x82\xd3\xe4\x93\x02\r\"\x0b/v1beta1/**\x12Q\n\x0e\x44\x65leteResource\x12\x14.google.api.HttpBody\x1a\x14.google.api.HttpBody\"\x13\x82\xd3\xe4\x93\x02\r*\x0b/v1beta1/**\x12N\n\x0bPutResource\x12\x14.google.api.HttpBody\x1a\x14.google.api.HttpBody\"\x13\x82\xd3\xe4\x93\x02\r\x1a\x0b/v1beta1/**\x12P\n\rPatchResource\x12\x14.google.api.HttpBody\x1a\x14.google.api.HttpBody\"\x13\x82\xd3\xe4\x93\x02\r2\x0b/v1beta1/**\x1aQ\xca\x41\x1d\x63onnectgateway.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x86\x02\n+com.google.cloud.gkeconnect.gateway.v1beta1B\x0cGatewayProtoP\x01ZEcloud.google.com/go/gkeconnect/gateway/apiv1beta1/gatewaypb;gatewaypb\xaa\x02\'Google.Cloud.GkeConnect.Gateway.V1Beta1\xca\x02\'Google\\Cloud\\GkeConnect\\Gateway\\V1beta1\xea\x02+Google::Cloud::GkeConnect::Gateway::V1beta1b\x06proto3"
|
13
|
-
|
14
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
-
|
16
|
-
begin
|
17
|
-
pool.add_serialized_file(descriptor_data)
|
18
|
-
rescue TypeError
|
19
|
-
# Compatibility code: will be removed in the next major version.
|
20
|
-
require 'google/protobuf/descriptor_pb'
|
21
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
-
parsed.clear_dependency
|
23
|
-
serialized = parsed.class.encode(parsed)
|
24
|
-
file = pool.add_serialized_file(serialized)
|
25
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
-
imports = [
|
27
|
-
]
|
28
|
-
imports.each do |type_name, expected_filename|
|
29
|
-
import_file = pool.lookup(type_name).file_descriptor
|
30
|
-
if import_file.name != expected_filename
|
31
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
-
end
|
33
|
-
end
|
34
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
-
warn "This will become an error in the next major version."
|
36
|
-
end
|
37
|
-
|
38
|
-
module Google
|
39
|
-
module Cloud
|
40
|
-
module GkeConnect
|
41
|
-
module Gateway
|
42
|
-
module V1beta1
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/gkeconnect/gateway/v1beta1/gateway.proto for package 'Google.Cloud.GkeConnect.Gateway.V1beta1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2021 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/gkeconnect/gateway/v1beta1/gateway_pb'
|
21
|
-
|
22
|
-
module Google
|
23
|
-
module Cloud
|
24
|
-
module GkeConnect
|
25
|
-
module Gateway
|
26
|
-
module V1beta1
|
27
|
-
module GatewayService
|
28
|
-
# Gateway service is a public API which works as a Kubernetes resource model
|
29
|
-
# proxy between end users and registered Kubernetes clusters. Each RPC in this
|
30
|
-
# service matches with an HTTP verb. End user will initiate kubectl commands
|
31
|
-
# against the Gateway service, and Gateway service will forward user requests
|
32
|
-
# to clusters.
|
33
|
-
class Service
|
34
|
-
|
35
|
-
include ::GRPC::GenericService
|
36
|
-
|
37
|
-
self.marshal_class_method = :encode
|
38
|
-
self.unmarshal_class_method = :decode
|
39
|
-
self.service_name = 'google.cloud.gkeconnect.gateway.v1beta1.GatewayService'
|
40
|
-
|
41
|
-
# GetResource performs an HTTP GET request on the Kubernetes API Server.
|
42
|
-
rpc :GetResource, ::Google::Api::HttpBody, ::Google::Api::HttpBody
|
43
|
-
# PostResource performs an HTTP POST on the Kubernetes API Server.
|
44
|
-
rpc :PostResource, ::Google::Api::HttpBody, ::Google::Api::HttpBody
|
45
|
-
# DeleteResource performs an HTTP DELETE on the Kubernetes API Server.
|
46
|
-
rpc :DeleteResource, ::Google::Api::HttpBody, ::Google::Api::HttpBody
|
47
|
-
# PutResource performs an HTTP PUT on the Kubernetes API Server.
|
48
|
-
rpc :PutResource, ::Google::Api::HttpBody, ::Google::Api::HttpBody
|
49
|
-
# PatchResource performs an HTTP PATCH on the Kubernetes API Server.
|
50
|
-
rpc :PatchResource, ::Google::Api::HttpBody, ::Google::Api::HttpBody
|
51
|
-
end
|
52
|
-
|
53
|
-
Stub = Service.rpc_stub_class
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2021 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 Api
|
22
|
-
# Message that represents an arbitrary HTTP body. It should only be used for
|
23
|
-
# payload formats that can't be represented as JSON, such as raw binary or
|
24
|
-
# an HTML page.
|
25
|
-
#
|
26
|
-
#
|
27
|
-
# This message can be used both in streaming and non-streaming API methods in
|
28
|
-
# the request as well as the response.
|
29
|
-
#
|
30
|
-
# It can be used as a top-level request field, which is convenient if one
|
31
|
-
# wants to extract parameters from either the URL or HTTP template into the
|
32
|
-
# request fields and also want access to the raw HTTP body.
|
33
|
-
#
|
34
|
-
# Example:
|
35
|
-
#
|
36
|
-
# message GetResourceRequest {
|
37
|
-
# // A unique request id.
|
38
|
-
# string request_id = 1;
|
39
|
-
#
|
40
|
-
# // The raw HTTP body is bound to this field.
|
41
|
-
# google.api.HttpBody http_body = 2;
|
42
|
-
#
|
43
|
-
# }
|
44
|
-
#
|
45
|
-
# service ResourceService {
|
46
|
-
# rpc GetResource(GetResourceRequest)
|
47
|
-
# returns (google.api.HttpBody);
|
48
|
-
# rpc UpdateResource(google.api.HttpBody)
|
49
|
-
# returns (google.protobuf.Empty);
|
50
|
-
#
|
51
|
-
# }
|
52
|
-
#
|
53
|
-
# Example with streaming methods:
|
54
|
-
#
|
55
|
-
# service CaldavService {
|
56
|
-
# rpc GetCalendar(stream google.api.HttpBody)
|
57
|
-
# returns (stream google.api.HttpBody);
|
58
|
-
# rpc UpdateCalendar(stream google.api.HttpBody)
|
59
|
-
# returns (stream google.api.HttpBody);
|
60
|
-
#
|
61
|
-
# }
|
62
|
-
#
|
63
|
-
# Use of this type only changes how the request and response bodies are
|
64
|
-
# handled, all other features will continue to work unchanged.
|
65
|
-
# @!attribute [rw] content_type
|
66
|
-
# @return [::String]
|
67
|
-
# The HTTP Content-Type header value specifying the content type of the body.
|
68
|
-
# @!attribute [rw] data
|
69
|
-
# @return [::String]
|
70
|
-
# The HTTP request/response body as raw binary.
|
71
|
-
# @!attribute [rw] extensions
|
72
|
-
# @return [::Array<::Google::Protobuf::Any>]
|
73
|
-
# Application specific response metadata. Must be set in the first response
|
74
|
-
# for streaming APIs.
|
75
|
-
class HttpBody
|
76
|
-
include ::Google::Protobuf::MessageExts
|
77
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
@@ -1,145 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Copyright 2021 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 Protobuf
|
22
|
-
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
23
|
-
# URL that describes the type of the serialized message.
|
24
|
-
#
|
25
|
-
# Protobuf library provides support to pack/unpack Any values in the form
|
26
|
-
# of utility functions or additional generated methods of the Any type.
|
27
|
-
#
|
28
|
-
# Example 1: Pack and unpack a message in C++.
|
29
|
-
#
|
30
|
-
# Foo foo = ...;
|
31
|
-
# Any any;
|
32
|
-
# any.PackFrom(foo);
|
33
|
-
# ...
|
34
|
-
# if (any.UnpackTo(&foo)) {
|
35
|
-
# ...
|
36
|
-
# }
|
37
|
-
#
|
38
|
-
# Example 2: Pack and unpack a message in Java.
|
39
|
-
#
|
40
|
-
# Foo foo = ...;
|
41
|
-
# Any any = Any.pack(foo);
|
42
|
-
# ...
|
43
|
-
# if (any.is(Foo.class)) {
|
44
|
-
# foo = any.unpack(Foo.class);
|
45
|
-
# }
|
46
|
-
# // or ...
|
47
|
-
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
-
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
-
# }
|
50
|
-
#
|
51
|
-
# Example 3: Pack and unpack a message in Python.
|
52
|
-
#
|
53
|
-
# foo = Foo(...)
|
54
|
-
# any = Any()
|
55
|
-
# any.Pack(foo)
|
56
|
-
# ...
|
57
|
-
# if any.Is(Foo.DESCRIPTOR):
|
58
|
-
# any.Unpack(foo)
|
59
|
-
# ...
|
60
|
-
#
|
61
|
-
# Example 4: Pack and unpack a message in Go
|
62
|
-
#
|
63
|
-
# foo := &pb.Foo{...}
|
64
|
-
# any, err := anypb.New(foo)
|
65
|
-
# if err != nil {
|
66
|
-
# ...
|
67
|
-
# }
|
68
|
-
# ...
|
69
|
-
# foo := &pb.Foo{}
|
70
|
-
# if err := any.UnmarshalTo(foo); err != nil {
|
71
|
-
# ...
|
72
|
-
# }
|
73
|
-
#
|
74
|
-
# The pack methods provided by protobuf library will by default use
|
75
|
-
# 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
76
|
-
# methods only use the fully qualified type name after the last '/'
|
77
|
-
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
78
|
-
# name "y.z".
|
79
|
-
#
|
80
|
-
# JSON
|
81
|
-
# ====
|
82
|
-
# The JSON representation of an `Any` value uses the regular
|
83
|
-
# representation of the deserialized, embedded message, with an
|
84
|
-
# additional field `@type` which contains the type URL. Example:
|
85
|
-
#
|
86
|
-
# package google.profile;
|
87
|
-
# message Person {
|
88
|
-
# string first_name = 1;
|
89
|
-
# string last_name = 2;
|
90
|
-
# }
|
91
|
-
#
|
92
|
-
# {
|
93
|
-
# "@type": "type.googleapis.com/google.profile.Person",
|
94
|
-
# "firstName": <string>,
|
95
|
-
# "lastName": <string>
|
96
|
-
# }
|
97
|
-
#
|
98
|
-
# If the embedded message type is well-known and has a custom JSON
|
99
|
-
# representation, that representation will be embedded adding a field
|
100
|
-
# `value` which holds the custom JSON in addition to the `@type`
|
101
|
-
# field. Example (for message [google.protobuf.Duration][]):
|
102
|
-
#
|
103
|
-
# {
|
104
|
-
# "@type": "type.googleapis.com/google.protobuf.Duration",
|
105
|
-
# "value": "1.212s"
|
106
|
-
# }
|
107
|
-
# @!attribute [rw] type_url
|
108
|
-
# @return [::String]
|
109
|
-
# A URL/resource name that uniquely identifies the type of the serialized
|
110
|
-
# protocol buffer message. This string must contain at least
|
111
|
-
# one "/" character. The last segment of the URL's path must represent
|
112
|
-
# the fully qualified name of the type (as in
|
113
|
-
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
114
|
-
# (e.g., leading "." is not accepted).
|
115
|
-
#
|
116
|
-
# In practice, teams usually precompile into the binary all types that they
|
117
|
-
# expect it to use in the context of Any. However, for URLs which use the
|
118
|
-
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
119
|
-
# server that maps type URLs to message definitions as follows:
|
120
|
-
#
|
121
|
-
# * If no scheme is provided, `https` is assumed.
|
122
|
-
# * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
123
|
-
# value in binary format, or produce an error.
|
124
|
-
# * Applications are allowed to cache lookup results based on the
|
125
|
-
# URL, or have them precompiled into a binary to avoid any
|
126
|
-
# lookup. Therefore, binary compatibility needs to be preserved
|
127
|
-
# on changes to types. (Use versioned type names to manage
|
128
|
-
# breaking changes.)
|
129
|
-
#
|
130
|
-
# Note: this functionality is not currently available in the official
|
131
|
-
# protobuf release, and it is not used for type URLs beginning with
|
132
|
-
# type.googleapis.com. As of May 2023, there are no widely used type server
|
133
|
-
# implementations and no plans to implement one.
|
134
|
-
#
|
135
|
-
# Schemes other than `http`, `https` (or the empty scheme) might be
|
136
|
-
# used with implementation specific semantics.
|
137
|
-
# @!attribute [rw] value
|
138
|
-
# @return [::String]
|
139
|
-
# Must be a valid serialized protocol buffer of the above specified type.
|
140
|
-
class Any
|
141
|
-
include ::Google::Protobuf::MessageExts
|
142
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|