google-cloud-apigee_connect-v1 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a6632e236ced213c8a4e347a1767219122a9a21d1bf0c24ed2cd1a6f9736116
4
- data.tar.gz: 0cd533ed1f025f4b462228478177c71541ab4671daec5a7d3b1e718d6e77a165
3
+ metadata.gz: bf0d4878b2e53a589fc2db561a5d73f7db8d8b504d57b0aa96c23aba1ad20676
4
+ data.tar.gz: 433e7a4687ccd7b7d0f37968864237c2494e41ef58eec020bd5db0a4707a4503
5
5
  SHA512:
6
- metadata.gz: 61f86d2cd138c12dd974be9bd83beb99d92eb370e02dbe800e99dae950c9122f697d0fb65709fa72e64f6702b2d88e7c0475231c010d97b7f798286817f2ed3a
7
- data.tar.gz: 0aa9abf142bc43af08d437840ec3616d5b2f4cd39563ef511ea1b9d9a5a8be66fc7491863b2167ca619043d82215fa762991aaaeff7b7d696eb30bd1acf72b31
6
+ metadata.gz: d2a7e292834a41d781bae870b4a5b0b69239bae267273fa668d31f1b2244c9763a8a2676941184e8c4235b3b53a3a67e880c04dfad78a3fc2b98eed7783416e9
7
+ data.tar.gz: 16c8fd2881c5f548f2ec539ad96de2a71fde85cccbb6709e73d6ccf253ff0421fc6dec1a103861baf65324e1b015fa02daf99c1bbf6b168c74ebca9b750a7fce
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://googleapis.dev/ruby/google-cloud-logging/latest)
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 == Client.configure.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
@@ -143,7 +143,8 @@ module Google
143
143
  credentials: credentials,
144
144
  endpoint: @config.endpoint,
145
145
  channel_args: @config.channel_args,
146
- interceptors: @config.interceptors
146
+ interceptors: @config.interceptors,
147
+ channel_pool_config: @config.channel_pool
147
148
  )
148
149
  end
149
150
 
@@ -289,9 +290,9 @@ module Google
289
290
  # * (`String`) The path to a service account key file in JSON format
290
291
  # * (`Hash`) A service account key as a Hash
291
292
  # * (`Google::Auth::Credentials`) A googleauth credentials object
292
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
293
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
293
294
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
294
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
295
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
295
296
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
296
297
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
297
298
  # * (`nil`) indicating no credentials
@@ -333,7 +334,9 @@ module Google
333
334
  class Configuration
334
335
  extend ::Gapic::Config
335
336
 
336
- config_attr :endpoint, "apigeeconnect.googleapis.com", ::String
337
+ DEFAULT_ENDPOINT = "apigeeconnect.googleapis.com"
338
+
339
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
337
340
  config_attr :credentials, nil do |value|
338
341
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
339
342
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -368,6 +371,14 @@ module Google
368
371
  end
369
372
  end
370
373
 
374
+ ##
375
+ # Configuration for the channel pool
376
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
377
+ #
378
+ def channel_pool
379
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
380
+ end
381
+
371
382
  ##
372
383
  # Configuration RPC class for the ConnectionService API.
373
384
  #
@@ -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 == Client.configure.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
@@ -179,6 +179,26 @@ module Google
179
179
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ApigeeConnect::V1::Connection>]
180
180
  #
181
181
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
182
+ #
183
+ # @example Basic example
184
+ # require "google/cloud/apigee_connect/v1"
185
+ #
186
+ # # Create a client object. The client can be reused for multiple calls.
187
+ # client = Google::Cloud::ApigeeConnect::V1::ConnectionService::Rest::Client.new
188
+ #
189
+ # # Create a request. To set request fields, pass in keyword arguments.
190
+ # request = Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest.new
191
+ #
192
+ # # Call the list_connections method.
193
+ # result = client.list_connections request
194
+ #
195
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
196
+ # # over elements, and API calls will be issued to fetch pages as needed.
197
+ # result.each do |item|
198
+ # # Each element is of type ::Google::Cloud::ApigeeConnect::V1::Connection.
199
+ # p item
200
+ # end
201
+ #
182
202
  def list_connections request, options = nil
183
203
  raise ::ArgumentError, "request must be provided" if request.nil?
184
204
 
@@ -253,9 +273,9 @@ module Google
253
273
  # * (`String`) The path to a service account key file in JSON format
254
274
  # * (`Hash`) A service account key as a Hash
255
275
  # * (`Google::Auth::Credentials`) A googleauth credentials object
256
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
276
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
257
277
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
258
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
278
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
259
279
  # * (`nil`) indicating no credentials
260
280
  # @return [::Object]
261
281
  # @!attribute [rw] scope
@@ -288,7 +308,9 @@ module Google
288
308
  class Configuration
289
309
  extend ::Gapic::Config
290
310
 
291
- config_attr :endpoint, "apigeeconnect.googleapis.com", ::String
311
+ DEFAULT_ENDPOINT = "apigeeconnect.googleapis.com"
312
+
313
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
292
314
  config_attr :credentials, nil do |value|
293
315
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
294
316
  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("=", 2) }
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 == Client.configure.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
@@ -138,7 +138,8 @@ module Google
138
138
  credentials: credentials,
139
139
  endpoint: @config.endpoint,
140
140
  channel_args: @config.channel_args,
141
- interceptors: @config.interceptors
141
+ interceptors: @config.interceptors,
142
+ channel_pool_config: @config.channel_pool
142
143
  )
143
144
  end
144
145
 
@@ -266,9 +267,9 @@ module Google
266
267
  # * (`String`) The path to a service account key file in JSON format
267
268
  # * (`Hash`) A service account key as a Hash
268
269
  # * (`Google::Auth::Credentials`) A googleauth credentials object
269
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
270
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
270
271
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
271
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
272
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
272
273
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
273
274
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
274
275
  # * (`nil`) indicating no credentials
@@ -310,7 +311,9 @@ module Google
310
311
  class Configuration
311
312
  extend ::Gapic::Config
312
313
 
313
- config_attr :endpoint, "apigeeconnect.googleapis.com", ::String
314
+ DEFAULT_ENDPOINT = "apigeeconnect.googleapis.com"
315
+
316
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
314
317
  config_attr :credentials, nil do |value|
315
318
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
316
319
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -345,6 +348,14 @@ module Google
345
348
  end
346
349
  end
347
350
 
351
+ ##
352
+ # Configuration for the channel pool
353
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
354
+ #
355
+ def channel_pool
356
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
357
+ end
358
+
348
359
  ##
349
360
  # Configuration RPC class for the Tether API.
350
361
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApigeeConnect
23
23
  module V1
24
- VERSION = "0.3.0"
24
+ VERSION = "0.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/apigeeconnect/v1/connection.proto", :syntax => :proto3) do
13
- add_message "google.cloud.apigeeconnect.v1.ListConnectionsRequest" do
14
- optional :parent, :string, 1
15
- optional :page_size, :int32, 2
16
- optional :page_token, :string, 3
17
- end
18
- add_message "google.cloud.apigeeconnect.v1.ListConnectionsResponse" do
19
- repeated :connections, :message, 1, "google.cloud.apigeeconnect.v1.Connection"
20
- optional :next_page_token, :string, 2
21
- end
22
- add_message "google.cloud.apigeeconnect.v1.Connection" do
23
- optional :endpoint, :string, 1
24
- optional :cluster, :message, 2, "google.cloud.apigeeconnect.v1.Cluster"
25
- optional :stream_count, :int32, 3
26
- end
27
- add_message "google.cloud.apigeeconnect.v1.Cluster" do
28
- optional :name, :string, 1
29
- optional :region, :string, 2
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
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("google/cloud/apigeeconnect/v1/tether.proto", :syntax => :proto3) do
12
- add_message "google.cloud.apigeeconnect.v1.EgressRequest" do
13
- optional :id, :string, 1
14
- optional :payload, :message, 2, "google.cloud.apigeeconnect.v1.Payload"
15
- optional :endpoint, :enum, 3, "google.cloud.apigeeconnect.v1.TetherEndpoint"
16
- optional :project, :string, 4
17
- optional :trace_id, :string, 5
18
- optional :timeout, :message, 6, "google.protobuf.Duration"
19
- end
20
- add_message "google.cloud.apigeeconnect.v1.Payload" do
21
- oneof :kind do
22
- optional :http_request, :message, 1, "google.cloud.apigeeconnect.v1.HttpRequest"
23
- optional :stream_info, :message, 2, "google.cloud.apigeeconnect.v1.StreamInfo"
24
- optional :action, :enum, 3, "google.cloud.apigeeconnect.v1.Action"
25
- end
26
- end
27
- add_message "google.cloud.apigeeconnect.v1.StreamInfo" do
28
- optional :id, :string, 1
29
- end
30
- add_message "google.cloud.apigeeconnect.v1.EgressResponse" do
31
- optional :id, :string, 1
32
- optional :http_response, :message, 2, "google.cloud.apigeeconnect.v1.HttpResponse"
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 place that API users can report issues. Example:
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
- # method_behavior:
244
- # - selector: CreateAdDomain
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?
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -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
- # Example 3: Pack and unpack a message in Python.
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
- # Example 4: Pack and unpack a message in Go
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.3.0
4
+ version: 0.5.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-03-08 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.18.0
19
+ version: 0.20.0
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.18.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  - !ruby/object:Gem::Version
220
220
  version: '0'
221
221
  requirements: []
222
- rubygems_version: 3.4.2
222
+ rubygems_version: 3.4.19
223
223
  signing_key:
224
224
  specification_version: 4
225
225
  summary: API Client library for the Apigee Connect V1 API