google-cloud-location_finder-v1 0.1.0 → 0.2.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: 18abda5d72a6e23f80552bdcead5a9922e7ea4fe763f5b13558d655623ce15cb
4
- data.tar.gz: 738f950e8ffee46bd946cd14dd4dba5de6f6f4acc973ff977d8b37a986b8d0ea
3
+ metadata.gz: f5b665480937de6c0e903caac6d5875368afd2e91645c15096eef73f8b38e686
4
+ data.tar.gz: 975e9da46165428c95cf267985aa74087d0ce57f035c4f62fc578e99ea9b7dda
5
5
  SHA512:
6
- metadata.gz: 2c58dcebe57e71edb40228e7ca031f5757385b8794ad32b645a5ce4c43838a86116b20a4e1072d58b1313accdcbf51347e3767057a6f7c8c04f6f43f4b149aef
7
- data.tar.gz: b497717f8ed9f0e3bad831e4a27b3a95edc61b15573340b038f70b2897951709e524ccaba692788977a195aabf4e82876374c743613f8bb4623334197cddffc1
6
+ metadata.gz: ca3f8fe3448541d05f6f38db251b9bd0fae8be1c16ae838ec7ac163124cd103b8e767f3d9bdffdef6543e2323b894476f46fd9d20c1ffa67e11da18b8f868948
7
+ data.tar.gz: 6d57e5c21f59df1f5d09d8946f3323935aa1d2f7069e6f8fbd01c67880c44afe9e72870f7535770ac7ed692ad9b0f07e5de79e6975c6b7b059cd3b1b000cadea
@@ -554,8 +554,6 @@ module Google
554
554
  # @return [::String,nil]
555
555
  # @!attribute [rw] credentials
556
556
  # Credentials to send with calls. You may provide any of the following types:
557
- # * (`String`) The path to a service account key file in JSON format
558
- # * (`Hash`) A service account key as a Hash
559
557
  # * (`Google::Auth::Credentials`) A googleauth credentials object
560
558
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
561
559
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -564,7 +562,26 @@ module Google
564
562
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
565
563
  # * (`nil`) indicating no credentials
566
564
  #
567
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
565
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
566
+ # is deprecated. Providing an unvalidated credential configuration to
567
+ # Google APIs can compromise the security of your systems and data.
568
+ #
569
+ # @example
570
+ #
571
+ # # The recommended way to provide credentials is to use the `make_creds` method
572
+ # # on the appropriate credentials class for your environment.
573
+ #
574
+ # require "googleauth"
575
+ #
576
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
577
+ # json_key_io: ::File.open("/path/to/keyfile.json")
578
+ # )
579
+ #
580
+ # client = ::Google::Cloud::LocationFinder::V1::CloudLocationFinder::Client.new do |config|
581
+ # config.credentials = credentials
582
+ # end
583
+ #
584
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
568
585
  # external source for authentication to Google Cloud, you must validate it before
569
586
  # providing it to a Google API client library. Providing an unvalidated credential
570
587
  # 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 LocationFinder
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -10,29 +10,8 @@ require 'google/api/resource_pb'
10
10
 
11
11
  descriptor_data = "\n3google/cloud/locationfinder/v1/cloud_location.proto\x12\x1egoogle.cloud.locationfinder.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc2\x07\n\rCloudLocation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12[\n\x19\x63ontaining_cloud_location\x18\x02 \x01(\tB8\xe0\x41\x03\xfa\x41\x32\n0cloudlocationfinder.googleapis.com/CloudLocation\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12X\n\x0e\x63loud_provider\x18\x04 \x01(\x0e\x32;.google.cloud.locationfinder.v1.CloudLocation.CloudProviderB\x03\xe0\x41\x01\x12\x1b\n\x0eterritory_code\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x13\x63loud_location_type\x18\x06 \x01(\x0e\x32?.google.cloud.locationfinder.v1.CloudLocation.CloudLocationTypeB\x03\xe0\x41\x01\x12/\n\x1d\x63\x61rbon_free_energy_percentage\x18\x07 \x01(\x02\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\"\x91\x01\n\rCloudProvider\x12\x1e\n\x1a\x43LOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43LOUD_PROVIDER_GCP\x10\x01\x12\x16\n\x12\x43LOUD_PROVIDER_AWS\x10\x02\x12\x18\n\x14\x43LOUD_PROVIDER_AZURE\x10\x03\x12\x16\n\x12\x43LOUD_PROVIDER_OCI\x10\x04\"\xc3\x01\n\x11\x43loudLocationType\x12#\n\x1f\x43LOUD_LOCATION_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43LOUD_LOCATION_TYPE_REGION\x10\x01\x12\x1c\n\x18\x43LOUD_LOCATION_TYPE_ZONE\x10\x02\x12(\n$CLOUD_LOCATION_TYPE_REGION_EXTENSION\x10\x03\x12!\n\x1d\x43LOUD_LOCATION_TYPE_GDCC_ZONE\x10\x04:\x9e\x01\xea\x41\x9a\x01\n0cloudlocationfinder.googleapis.com/CloudLocation\x12Gprojects/{project}/locations/{location}/cloudLocations/{cloud_location}*\x0e\x63loudLocations2\rcloudLocationB \n\x1e_carbon_free_energy_percentage\"\xab\x01\n\x19ListCloudLocationsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudlocationfinder.googleapis.com/CloudLocation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x87\x01\n\x1aListCloudLocationsResponse\x12K\n\x0f\x63loud_locations\x18\x01 \x03(\x0b\x32-.google.cloud.locationfinder.v1.CloudLocationB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"a\n\x17GetCloudLocationRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudlocationfinder.googleapis.com/CloudLocation\"\x85\x02\n\x1bSearchCloudLocationsRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudlocationfinder.googleapis.com/CloudLocation\x12W\n\x15source_cloud_location\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudlocationfinder.googleapis.com/CloudLocation\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05query\x18\x06 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x1cSearchCloudLocationsResponse\x12K\n\x0f\x63loud_locations\x18\x01 \x03(\x0b\x32-.google.cloud.locationfinder.v1.CloudLocationB\x03\xe0\x41\x03\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\xec\x01\n\"com.google.cloud.locationfinder.v1B\x12\x43loudLocationProtoP\x01ZJcloud.google.com/go/locationfinder/apiv1/locationfinderpb;locationfinderpb\xaa\x02\x1eGoogle.Cloud.LocationFinder.V1\xca\x02\x1eGoogle\\Cloud\\LocationFinder\\V1\xea\x02!Google::Cloud::LocationFinder::V1b\x06proto3"
12
12
 
13
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
36
15
 
37
16
  module Google
38
17
  module Cloud
@@ -11,29 +11,8 @@ require 'google/cloud/locationfinder/v1/cloud_location_pb'
11
11
 
12
12
  descriptor_data = "\n,google/cloud/locationfinder/v1/service.proto\x12\x1egoogle.cloud.locationfinder.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x33google/cloud/locationfinder/v1/cloud_location.proto2\xfc\x05\n\x13\x43loudLocationFinder\x12\xd0\x01\n\x12ListCloudLocations\x12\x39.google.cloud.locationfinder.v1.ListCloudLocationsRequest\x1a:.google.cloud.locationfinder.v1.ListCloudLocationsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/cloudLocations\x12\xbd\x01\n\x10GetCloudLocation\x12\x37.google.cloud.locationfinder.v1.GetCloudLocationRequest\x1a-.google.cloud.locationfinder.v1.CloudLocation\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/cloudLocations/*}\x12\xf9\x01\n\x14SearchCloudLocations\x12;.google.cloud.locationfinder.v1.SearchCloudLocationsRequest\x1a<.google.cloud.locationfinder.v1.SearchCloudLocationsResponse\"f\xda\x41\"parent,source_cloud_location,query\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/cloudLocations:search\x1aV\xca\x41\"cloudlocationfinder.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe6\x01\n\"com.google.cloud.locationfinder.v1B\x0cServiceProtoP\x01ZJcloud.google.com/go/locationfinder/apiv1/locationfinderpb;locationfinderpb\xaa\x02\x1eGoogle.Cloud.LocationFinder.V1\xca\x02\x1eGoogle\\Cloud\\LocationFinder\\V1\xea\x02!Google::Cloud::LocationFinder::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
- ]
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
14
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
15
+ pool.add_serialized_file(descriptor_data)
37
16
 
38
17
  module Google
39
18
  module Cloud
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-location_finder-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: '3.1'
99
+ version: '3.2'
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="