google-cloud-apigee_connect-v1 1.4.0 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8504b6a543aa3c94952b348315cb22677eca2722411e6e5498a66c72d623f8e0
4
- data.tar.gz: 3729574b30faea36ff66018e11397fad60c2a5588869706254bb843168367a1a
3
+ metadata.gz: 9c55c37de63a39574785f488c334c0eb42bfae818391afbf1e3e0ad12ee66435
4
+ data.tar.gz: 71f75bb105dc6e4cde1a05b5ad907e2db4e1a5a32f4db74af1e93e71105e7b00
5
5
  SHA512:
6
- metadata.gz: 36638a81a53c8c721edc924d276288174707c318f2b99931d527e779b4f53e6894ada5c8144feb8c07b0dc5508d6676073d8d13825fa2c373b1a49764deea0ce
7
- data.tar.gz: 5aa0f7e58547aad35cdc17b39c529a93ccbaa6edc6c937ed25b42a265409f6304b2cb2484e05d2e1d771c14acf08f63854c126e3a73d9bde6b5f9f2c2410808d
6
+ metadata.gz: 974e2b4540b70fa2acdfff903124f4ee6d0fa60e3aba44f83a6c0d6885727ea0e61a87448c2054438ed2b320ce882e349aeb89ff31ac8e47e78866adef039561
7
+ data.tar.gz: b7b7e6f2407ee704694a87621e7590c467de8bc50b9e00920b05724ca0cde969f061f87f91cde4af97a09f4fa118cc984b66b3a0aafbf697fe441cc750e721c1
@@ -326,8 +326,6 @@ module Google
326
326
  # @return [::String,nil]
327
327
  # @!attribute [rw] credentials
328
328
  # Credentials to send with calls. You may provide any of the following types:
329
- # * (`String`) The path to a service account key file in JSON format
330
- # * (`Hash`) A service account key as a Hash
331
329
  # * (`Google::Auth::Credentials`) A googleauth credentials object
332
330
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
333
331
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -336,7 +334,26 @@ module Google
336
334
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
337
335
  # * (`nil`) indicating no credentials
338
336
  #
339
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
337
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
338
+ # is deprecated. Providing an unvalidated credential configuration to
339
+ # Google APIs can compromise the security of your systems and data.
340
+ #
341
+ # @example
342
+ #
343
+ # # The recommended way to provide credentials is to use the `make_creds` method
344
+ # # on the appropriate credentials class for your environment.
345
+ #
346
+ # require "googleauth"
347
+ #
348
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
349
+ # json_key_io: ::File.open("/path/to/keyfile.json")
350
+ # )
351
+ #
352
+ # client = ::Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new do |config|
353
+ # config.credentials = credentials
354
+ # end
355
+ #
356
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
340
357
  # external source for authentication to Google Cloud, you must validate it before
341
358
  # providing it to a Google API client library. Providing an unvalidated credential
342
359
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -302,8 +302,6 @@ module Google
302
302
  # @return [::String,nil]
303
303
  # @!attribute [rw] credentials
304
304
  # Credentials to send with calls. You may provide any of the following types:
305
- # * (`String`) The path to a service account key file in JSON format
306
- # * (`Hash`) A service account key as a Hash
307
305
  # * (`Google::Auth::Credentials`) A googleauth credentials object
308
306
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
309
307
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -312,7 +310,26 @@ module Google
312
310
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
313
311
  # * (`nil`) indicating no credentials
314
312
  #
315
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
313
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
314
+ # is deprecated. Providing an unvalidated credential configuration to
315
+ # Google APIs can compromise the security of your systems and data.
316
+ #
317
+ # @example
318
+ #
319
+ # # The recommended way to provide credentials is to use the `make_creds` method
320
+ # # on the appropriate credentials class for your environment.
321
+ #
322
+ # require "googleauth"
323
+ #
324
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
325
+ # json_key_io: ::File.open("/path/to/keyfile.json")
326
+ # )
327
+ #
328
+ # client = ::Google::Cloud::ApigeeConnect::V1::Tether::Client.new do |config|
329
+ # config.credentials = credentials
330
+ # end
331
+ #
332
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
316
333
  # external source for authentication to Google Cloud, you must validate it before
317
334
  # providing it to a Google API client library. Providing an unvalidated credential
318
335
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApigeeConnect
23
23
  module V1
24
- VERSION = "1.4.0"
24
+ VERSION = "1.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -12,29 +12,8 @@ require 'google/api/resource_pb'
12
12
 
13
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\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/endpoints/*}/connections\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
14
 
15
- pool = Google::Protobuf::DescriptorPool.generated_pool
16
-
17
- begin
18
- pool.add_serialized_file(descriptor_data)
19
- rescue TypeError
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}"
33
- end
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."
37
- end
15
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
16
+ pool.add_serialized_file(descriptor_data)
38
17
 
39
18
  module Google
40
19
  module Cloud
@@ -11,31 +11,8 @@ require 'google/api/client_pb'
11
11
 
12
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
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
- ["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}"
34
- end
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."
38
- end
14
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
15
+ pool.add_serialized_file(descriptor_data)
39
16
 
40
17
  module Google
41
18
  module Cloud
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-apigee_connect-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - ">="
94
94
  - !ruby/object:Gem::Version
95
- version: '3.1'
95
+ version: '3.2'
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="