google-cloud-location 1.2.0 → 1.3.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e861d8da2b33f4d10d8535fe95b9be3c02ee1871e75b673971cb55f5479dadf3
|
|
4
|
+
data.tar.gz: 92c0858e3b552ff5f105fc6c4388c8fceae576a132e09d2bcc4b6dadcf2f9e1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4bf3c256b8001ec12098a6c7ea72c00fa4c2e108ea80b4b9e7f31c88e62aef7108a0879fa2fecacb89635c4e49f9e7df4e7571314d9b5ad1331b38ae0bb3433
|
|
7
|
+
data.tar.gz: 427b57c9f396e59f420b934dde0089c77ed04ea9068e2f1bacfb44a1c207e61b1061d880d97705cd546e5374d3655282691475dde5a448bf4b42081f21b45f1a
|
|
@@ -399,8 +399,6 @@ module Google
|
|
|
399
399
|
# @return [::String,nil]
|
|
400
400
|
# @!attribute [rw] credentials
|
|
401
401
|
# Credentials to send with calls. You may provide any of the following types:
|
|
402
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
403
|
-
# * (`Hash`) A service account key as a Hash
|
|
404
402
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
405
403
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
406
404
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -409,7 +407,26 @@ module Google
|
|
|
409
407
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
410
408
|
# * (`nil`) indicating no credentials
|
|
411
409
|
#
|
|
412
|
-
# Warning:
|
|
410
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
411
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
412
|
+
# Google APIs can compromise the security of your systems and data.
|
|
413
|
+
#
|
|
414
|
+
# @example
|
|
415
|
+
#
|
|
416
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
417
|
+
# # on the appropriate credentials class for your environment.
|
|
418
|
+
#
|
|
419
|
+
# require "googleauth"
|
|
420
|
+
#
|
|
421
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
422
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
423
|
+
# )
|
|
424
|
+
#
|
|
425
|
+
# client = ::Google::Cloud::Location::Locations::Client.new do |config|
|
|
426
|
+
# config.credentials = credentials
|
|
427
|
+
# end
|
|
428
|
+
#
|
|
429
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
413
430
|
# external source for authentication to Google Cloud, you must validate it before
|
|
414
431
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
415
432
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -11,30 +11,8 @@ require 'google/api/client_pb'
|
|
|
11
11
|
|
|
12
12
|
descriptor_data = "\n%google/cloud/location/locations.proto\x12\x15google.cloud.location\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x17google/api/client.proto\"[\n\x14ListLocationsRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"d\n\x15ListLocationsResponse\x12\x32\n\tlocations\x18\x01 \x03(\x0b\x32\x1f.google.cloud.location.Location\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\"\n\x12GetLocationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xd7\x01\n\x08Location\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0blocation_id\x18\x04 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12;\n\x06labels\x18\x02 \x03(\x0b\x32+.google.cloud.location.Location.LabelsEntry\x12&\n\x08metadata\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xa4\x03\n\tLocations\x12\xab\x01\n\rListLocations\x12+.google.cloud.location.ListLocationsRequest\x1a,.google.cloud.location.ListLocationsResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x14/v1/{name=locations}Z!\x12\x1f/v1/{name=projects/*}/locations\x12\x9e\x01\n\x0bGetLocation\x12).google.cloud.location.GetLocationRequest\x1a\x1f.google.cloud.location.Location\"C\x82\xd3\xe4\x93\x02=\x12\x16/v1/{name=locations/*}Z#\x12!/v1/{name=projects/*/locations/*}\x1aH\xca\x41\x14\x63loud.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBo\n\x19\x63om.google.cloud.locationB\x0eLocationsProtoP\x01Z=google.golang.org/genproto/googleapis/cloud/location;location\xf8\x01\x01\x62\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.Any", "google/protobuf/any.proto"],
|
|
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
|
|
14
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
38
16
|
|
|
39
17
|
module Google
|
|
40
18
|
module Cloud
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-location
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
78
78
|
requirements:
|
|
79
79
|
- - ">="
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: '3.
|
|
81
|
+
version: '3.2'
|
|
82
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
requirements:
|
|
84
84
|
- - ">="
|