google-cloud-apigee_connect-v1 0.3.0 → 0.4.0
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/README.md +1 -1
- data/lib/google/cloud/apigee_connect/v1/connection_service/client.rb +6 -4
- data/lib/google/cloud/apigee_connect/v1/connection_service/rest/client.rb +6 -4
- data/lib/google/cloud/apigee_connect/v1/connection_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/apigee_connect/v1/tether/client.rb +6 -4
- data/lib/google/cloud/apigee_connect/v1/version.rb +1 -1
- data/lib/google/cloud/apigeeconnect/v1/connection_pb.rb +24 -19
- data/lib/google/cloud/apigeeconnect/v1/tether_pb.rb +26 -66
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2721a25fb57c7ca772bbc57673bbaf06779cb5be5dac68a04a7a79b1fc2f549
|
4
|
+
data.tar.gz: 061d9572c502e8122338777500336701dda348b4ff2b9d85a0e00d821165c758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f46fa2cafbfe2b30cdbc7617ce22f205194e7afa793c97dc17819d3a46b6812c2fbe5682c5192a7204917b6d8694579da8800d0d267a9985d4385fc8dd6094
|
7
|
+
data.tar.gz: 9ea2f8d4bf5ffd010c9f34ede0c156ac81d03eae94e8d2b384f7e073ac985d36093980cbad7d7b0eb41698d663b351eaee2d1c916953fce26f8df8fd2598ae28
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
credentials = @config.credentials
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -289,9 +289,9 @@ module Google
|
|
289
289
|
# * (`String`) The path to a service account key file in JSON format
|
290
290
|
# * (`Hash`) A service account key as a Hash
|
291
291
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
292
|
-
# (see the [googleauth docs](https://
|
292
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
293
293
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
294
|
-
# (see the [signet docs](https://
|
294
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
295
295
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
296
296
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
297
297
|
# * (`nil`) indicating no credentials
|
@@ -333,7 +333,9 @@ module Google
|
|
333
333
|
class Configuration
|
334
334
|
extend ::Gapic::Config
|
335
335
|
|
336
|
-
|
336
|
+
DEFAULT_ENDPOINT = "apigeeconnect.googleapis.com"
|
337
|
+
|
338
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
337
339
|
config_attr :credentials, nil do |value|
|
338
340
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
339
341
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
credentials = @config.credentials
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -253,9 +253,9 @@ module Google
|
|
253
253
|
# * (`String`) The path to a service account key file in JSON format
|
254
254
|
# * (`Hash`) A service account key as a Hash
|
255
255
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
256
|
-
# (see the [googleauth docs](https://
|
256
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
257
257
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
258
|
-
# (see the [signet docs](https://
|
258
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
259
259
|
# * (`nil`) indicating no credentials
|
260
260
|
# @return [::Object]
|
261
261
|
# @!attribute [rw] scope
|
@@ -288,7 +288,9 @@ module Google
|
|
288
288
|
class Configuration
|
289
289
|
extend ::Gapic::Config
|
290
290
|
|
291
|
-
|
291
|
+
DEFAULT_ENDPOINT = "apigeeconnect.googleapis.com"
|
292
|
+
|
293
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
292
294
|
config_attr :credentials, nil do |value|
|
293
295
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
294
296
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_connections_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -123,7 +123,7 @@ module Google
|
|
123
123
|
credentials = @config.credentials
|
124
124
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
125
125
|
# but only if the default endpoint does not have a region prefix.
|
126
|
-
enable_self_signed_jwt = @config.endpoint ==
|
126
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
127
127
|
!@config.endpoint.split(".").first.include?("-")
|
128
128
|
credentials ||= Credentials.default scope: @config.scope,
|
129
129
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -266,9 +266,9 @@ module Google
|
|
266
266
|
# * (`String`) The path to a service account key file in JSON format
|
267
267
|
# * (`Hash`) A service account key as a Hash
|
268
268
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
269
|
-
# (see the [googleauth docs](https://
|
269
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
270
270
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
271
|
-
# (see the [signet docs](https://
|
271
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
272
272
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
273
273
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
274
274
|
# * (`nil`) indicating no credentials
|
@@ -310,7 +310,9 @@ module Google
|
|
310
310
|
class Configuration
|
311
311
|
extend ::Gapic::Config
|
312
312
|
|
313
|
-
|
313
|
+
DEFAULT_ENDPOINT = "apigeeconnect.googleapis.com"
|
314
|
+
|
315
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
314
316
|
config_attr :credentials, nil do |value|
|
315
317
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
316
318
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/apigeeconnect/v1/connection.proto
|
3
4
|
|
@@ -8,27 +9,31 @@ require 'google/api/client_pb'
|
|
8
9
|
require 'google/api/field_behavior_pb'
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
12
|
+
|
13
|
+
descriptor_data = "\n.google/cloud/apigeeconnect/v1/connection.proto\x12\x1dgoogle.cloud.apigeeconnect.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"~\n\x16ListConnectionsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%apigeeconnect.googleapis.com/Endpoint\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x17ListConnectionsResponse\x12>\n\x0b\x63onnections\x18\x01 \x03(\x0b\x32).google.cloud.apigeeconnect.v1.Connection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"m\n\nConnection\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x37\n\x07\x63luster\x18\x02 \x01(\x0b\x32&.google.cloud.apigeeconnect.v1.Cluster\x12\x14\n\x0cstream_count\x18\x03 \x01(\x05\"\'\n\x07\x43luster\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t2\xaa\x02\n\x11\x43onnectionService\x12\xc2\x01\n\x0fListConnections\x12\x35.google.cloud.apigeeconnect.v1.ListConnectionsRequest\x1a\x36.google.cloud.apigeeconnect.v1.ListConnectionsResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/endpoints/*}/connections\xda\x41\x06parent\x1aP\xca\x41\x1c\x61pigeeconnect.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb5\x02\n!com.google.cloud.apigeeconnect.v1B\x0f\x43onnectionProtoP\x01ZGcloud.google.com/go/apigeeconnect/apiv1/apigeeconnectpb;apigeeconnectpb\xaa\x02\x1dGoogle.Cloud.ApigeeConnect.V1\xca\x02\x1dGoogle\\Cloud\\ApigeeConnect\\V1\xea\x02 Google::Cloud::ApigeeConnect::V1\xea\x41P\n%apigeeconnect.googleapis.com/Endpoint\x12\'projects/{project}/endpoints/{endpoint}b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
]
|
29
|
+
imports.each do |type_name, expected_filename|
|
30
|
+
import_file = pool.lookup(type_name).file_descriptor
|
31
|
+
if import_file.name != expected_filename
|
32
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
33
|
end
|
31
34
|
end
|
35
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
36
|
+
warn "This will become an error in the next major version."
|
32
37
|
end
|
33
38
|
|
34
39
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/apigeeconnect/v1/tether.proto
|
3
4
|
|
@@ -7,74 +8,33 @@ require 'google/protobuf/duration_pb'
|
|
7
8
|
require 'google/rpc/status_pb'
|
8
9
|
require 'google/api/client_pb'
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
optional :status, :message, 3, "google.rpc.Status"
|
34
|
-
optional :project, :string, 4
|
35
|
-
optional :trace_id, :string, 5
|
36
|
-
optional :endpoint, :enum, 6, "google.cloud.apigeeconnect.v1.TetherEndpoint"
|
37
|
-
optional :name, :string, 7
|
38
|
-
end
|
39
|
-
add_message "google.cloud.apigeeconnect.v1.HttpRequest" do
|
40
|
-
optional :id, :string, 1
|
41
|
-
optional :method, :string, 2
|
42
|
-
optional :url, :message, 3, "google.cloud.apigeeconnect.v1.Url"
|
43
|
-
repeated :headers, :message, 4, "google.cloud.apigeeconnect.v1.Header"
|
44
|
-
optional :body, :bytes, 5
|
45
|
-
end
|
46
|
-
add_message "google.cloud.apigeeconnect.v1.Url" do
|
47
|
-
optional :scheme, :enum, 1, "google.cloud.apigeeconnect.v1.Scheme"
|
48
|
-
optional :host, :string, 2
|
49
|
-
optional :path, :string, 3
|
50
|
-
end
|
51
|
-
add_message "google.cloud.apigeeconnect.v1.Header" do
|
52
|
-
optional :key, :string, 1
|
53
|
-
repeated :values, :string, 2
|
54
|
-
end
|
55
|
-
add_message "google.cloud.apigeeconnect.v1.HttpResponse" do
|
56
|
-
optional :id, :string, 1
|
57
|
-
optional :status, :string, 2
|
58
|
-
optional :status_code, :int32, 3
|
59
|
-
optional :body, :bytes, 4
|
60
|
-
repeated :headers, :message, 5, "google.cloud.apigeeconnect.v1.Header"
|
61
|
-
optional :content_length, :int64, 6
|
62
|
-
end
|
63
|
-
add_enum "google.cloud.apigeeconnect.v1.Action" do
|
64
|
-
value :ACTION_UNSPECIFIED, 0
|
65
|
-
value :OPEN_NEW_STREAM, 1
|
66
|
-
end
|
67
|
-
add_enum "google.cloud.apigeeconnect.v1.TetherEndpoint" do
|
68
|
-
value :TETHER_ENDPOINT_UNSPECIFIED, 0
|
69
|
-
value :APIGEE_MART, 1
|
70
|
-
value :APIGEE_RUNTIME, 2
|
71
|
-
value :APIGEE_MINT_RATING, 3
|
72
|
-
end
|
73
|
-
add_enum "google.cloud.apigeeconnect.v1.Scheme" do
|
74
|
-
value :SCHEME_UNSPECIFIED, 0
|
75
|
-
value :HTTPS, 1
|
11
|
+
|
12
|
+
descriptor_data = "\n*google/cloud/apigeeconnect/v1/tether.proto\x12\x1dgoogle.cloud.apigeeconnect.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x17google/rpc/status.proto\x1a\x17google/api/client.proto\"\xe4\x01\n\rEgressRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x37\n\x07payload\x18\x02 \x01(\x0b\x32&.google.cloud.apigeeconnect.v1.Payload\x12?\n\x08\x65ndpoint\x18\x03 \x01(\x0e\x32-.google.cloud.apigeeconnect.v1.TetherEndpoint\x12\x0f\n\x07project\x18\x04 \x01(\t\x12\x10\n\x08trace_id\x18\x05 \x01(\t\x12*\n\x07timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\"\xd0\x01\n\x07Payload\x12\x42\n\x0chttp_request\x18\x01 \x01(\x0b\x32*.google.cloud.apigeeconnect.v1.HttpRequestH\x00\x12@\n\x0bstream_info\x18\x02 \x01(\x0b\x32).google.cloud.apigeeconnect.v1.StreamInfoH\x00\x12\x37\n\x06\x61\x63tion\x18\x03 \x01(\x0e\x32%.google.cloud.apigeeconnect.v1.ActionH\x00\x42\x06\n\x04kind\"\x18\n\nStreamInfo\x12\n\n\x02id\x18\x01 \x01(\t\"\xf6\x01\n\x0e\x45gressResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\x42\n\rhttp_response\x18\x02 \x01(\x0b\x32+.google.cloud.apigeeconnect.v1.HttpResponse\x12\"\n\x06status\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12\x0f\n\x07project\x18\x04 \x01(\t\x12\x10\n\x08trace_id\x18\x05 \x01(\t\x12?\n\x08\x65ndpoint\x18\x06 \x01(\x0e\x32-.google.cloud.apigeeconnect.v1.TetherEndpoint\x12\x0c\n\x04name\x18\x07 \x01(\t\"\xa0\x01\n\x0bHttpRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x12/\n\x03url\x18\x03 \x01(\x0b\x32\".google.cloud.apigeeconnect.v1.Url\x12\x36\n\x07headers\x18\x04 \x03(\x0b\x32%.google.cloud.apigeeconnect.v1.Header\x12\x0c\n\x04\x62ody\x18\x05 \x01(\x0c\"X\n\x03Url\x12\x35\n\x06scheme\x18\x01 \x01(\x0e\x32%.google.cloud.apigeeconnect.v1.Scheme\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04path\x18\x03 \x01(\t\"%\n\x06Header\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0e\n\x06values\x18\x02 \x03(\t\"\x9d\x01\n\x0cHttpResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\x12\x13\n\x0bstatus_code\x18\x03 \x01(\x05\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\x12\x36\n\x07headers\x18\x05 \x03(\x0b\x32%.google.cloud.apigeeconnect.v1.Header\x12\x16\n\x0e\x63ontent_length\x18\x06 \x01(\x03*5\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x13\n\x0fOPEN_NEW_STREAM\x10\x01*n\n\x0eTetherEndpoint\x12\x1f\n\x1bTETHER_ENDPOINT_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41PIGEE_MART\x10\x01\x12\x12\n\x0e\x41PIGEE_RUNTIME\x10\x02\x12\x16\n\x12\x41PIGEE_MINT_RATING\x10\x03*+\n\x06Scheme\x12\x16\n\x12SCHEME_UNSPECIFIED\x10\x00\x12\t\n\x05HTTPS\x10\x01\x32\xc7\x01\n\x06Tether\x12k\n\x06\x45gress\x12-.google.cloud.apigeeconnect.v1.EgressResponse\x1a,.google.cloud.apigeeconnect.v1.EgressRequest\"\x00(\x01\x30\x01\x1aP\xca\x41\x1c\x61pigeeconnect.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xde\x01\n!com.google.cloud.apigeeconnect.v1B\x0bTetherProtoP\x01ZGcloud.google.com/go/apigeeconnect/apiv1/apigeeconnectpb;apigeeconnectpb\xaa\x02\x1dGoogle.Cloud.ApigeeConnect.V1\xca\x02\x1dGoogle\\Cloud\\ApigeeConnect\\V1\xea\x02 Google::Cloud::ApigeeConnect::V1b\x06proto3"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError => e
|
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
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
28
|
+
["google.rpc.Status", "google/rpc/status.proto"],
|
29
|
+
]
|
30
|
+
imports.each do |type_name, expected_filename|
|
31
|
+
import_file = pool.lookup(type_name).file_descriptor
|
32
|
+
if import_file.name != expected_filename
|
33
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
76
34
|
end
|
77
35
|
end
|
36
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
37
|
+
warn "This will become an error in the next major version."
|
78
38
|
end
|
79
39
|
|
80
40
|
module Google
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# 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-apigee_connect-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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: 2023-
|
11
|
+
date: 2023-06-06 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.19.1
|
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.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|