google-cloud-resource_manager 0.31.1 → 0.32.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: 26ab83655455041360b28db84f36a3a4ef2d785d52b522785a2a2cdb303deae0
4
- data.tar.gz: 36d536f95585ce3c7367874a80df009940d9469f24fe162e8f413e6849b0f812
3
+ metadata.gz: 862e52635d9374cd728c916945cdd28e9019f55540391fb826982cd84c4dd477
4
+ data.tar.gz: dbcda55b6ba84c95521a9958c1ba1f70e2a3ef3e122ffcd61b76d4d1218ef028
5
5
  SHA512:
6
- metadata.gz: 3d7f900489601308c957cfade19626b2f54f52f24e6c7d5ac9b0f6a40a55ac2394509f1571a4821abd7a893f9975951e09515c565f863eb75ec4cf9c7d324bf4
7
- data.tar.gz: 21b00b617ace5313babb39360c2e231bd0358271d60cf21206da5fefc38eccd383fd78177d3468a4a69d8ad713e81326710ea586652bee4f075ddde702f5da28
6
+ metadata.gz: cf7c943d5219ff866320f8981b37ffc62c7d374625ae1bef0c2944b2dc5e168a0f207121d6485156ccf43b58a6ab8537eda7a1c95a85330a4aabb5ac9930aced
7
+ data.tar.gz: a61ee1455f28ed60a4568281172eb0efca3063c7be628cdea1f40b0e5f80085b007706012759a85467e73411d739355c2fd6b5316cd93b5aad03551ae96772b0
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.32.0 / 2019-10-01
4
+
5
+ #### Features
6
+
7
+ * Support overriding of service endpoint
8
+
3
9
  ### 0.31.1 / 2019-08-23
4
10
 
5
11
  #### Documentation
@@ -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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ResourceManager
19
- VERSION = "0.31.1".freeze
19
+ VERSION = "0.32.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.31.1
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-08-23 00:00:00.000000000 Z
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