google-cloud-resource_manager 0.31.1 → 0.32.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862e52635d9374cd728c916945cdd28e9019f55540391fb826982cd84c4dd477
|
4
|
+
data.tar.gz: dbcda55b6ba84c95521a9958c1ba1f70e2a3ef3e122ffcd61b76d4d1218ef028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf7c943d5219ff866320f8981b37ffc62c7d374625ae1bef0c2944b2dc5e168a0f207121d6485156ccf43b58a6ab8537eda7a1c95a85330a4aabb5ac9930aced
|
7
|
+
data.tar.gz: a61ee1455f28ed60a4568281172eb0efca3063c7be628cdea1f40b0e5f80085b007706012759a85467e73411d739355c2fd6b5316cd93b5aad03551ae96772b0
|
data/CHANGELOG.md
CHANGED
@@ -127,4 +127,5 @@ Google::Cloud.configure.add_config! :resource_manager do |config|
|
|
127
127
|
config.add_field! :scope, nil, match: [String, Array]
|
128
128
|
config.add_field! :retries, nil, match: Integer
|
129
129
|
config.add_field! :timeout, nil, match: Integer
|
130
|
+
config.add_field! :endpoint, nil, match: String
|
130
131
|
end
|
@@ -50,6 +50,8 @@ module Google
|
|
50
50
|
# @param [Integer] retries Number of times to retry requests on server
|
51
51
|
# error. The default value is `3`. Optional.
|
52
52
|
# @param [Integer] timeout Default timeout to use in requests. Optional.
|
53
|
+
# @param [String] endpoint Override of the endpoint host name. Optional.
|
54
|
+
# If the param is nil, uses the default endpoint.
|
53
55
|
# @param [String] keyfile Alias for the `credentials` argument.
|
54
56
|
# Deprecated.
|
55
57
|
#
|
@@ -64,10 +66,11 @@ module Google
|
|
64
66
|
# end
|
65
67
|
#
|
66
68
|
def self.new credentials: nil, scope: nil, retries: nil, timeout: nil,
|
67
|
-
keyfile: nil
|
69
|
+
endpoint: nil, keyfile: nil
|
68
70
|
scope ||= configure.scope
|
69
71
|
retries ||= configure.retries
|
70
72
|
timeout ||= configure.timeout
|
73
|
+
endpoint ||= configure.endpoint
|
71
74
|
credentials ||= keyfile
|
72
75
|
credentials ||= default_credentials scope: scope
|
73
76
|
unless credentials.is_a? Google::Auth::Credentials
|
@@ -77,7 +80,7 @@ module Google
|
|
77
80
|
|
78
81
|
ResourceManager::Manager.new(
|
79
82
|
ResourceManager::Service.new(
|
80
|
-
credentials, retries: retries, timeout: timeout
|
83
|
+
credentials, retries: retries, timeout: timeout, host: endpoint
|
81
84
|
)
|
82
85
|
)
|
83
86
|
end
|
@@ -33,7 +33,7 @@ module Google
|
|
33
33
|
|
34
34
|
##
|
35
35
|
# Creates a new Service instance.
|
36
|
-
def initialize credentials, retries: nil, timeout: nil
|
36
|
+
def initialize credentials, retries: nil, timeout: nil, host: nil
|
37
37
|
@credentials = credentials
|
38
38
|
@service = API::CloudResourceManagerService.new
|
39
39
|
@service.client_options.application_name = \
|
@@ -49,6 +49,7 @@ module Google
|
|
49
49
|
"gl-ruby/#{RUBY_VERSION} " \
|
50
50
|
"gccl/#{Google::Cloud::ResourceManager::VERSION}"
|
51
51
|
@service.authorization = @credentials.client
|
52
|
+
@service.root_url = host if host
|
52
53
|
end
|
53
54
|
|
54
55
|
def service
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-resource_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|