google-cloud-resource_manager 0.33.3 → 0.34.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: 3cded17ed9c4e33404c747dc2b06e1aa276cd438573b93fa9bf891c1f3702f61
4
- data.tar.gz: 6b181b8cc4c214003bc8bffb58f613b5dd7f95521a922eb7d0d8430890bde1aa
3
+ metadata.gz: c4b9c3bb322fdb1c921545da8c4954e590c0173bec1b540602b10113c47e2971
4
+ data.tar.gz: a26d185bf6f7d1960826c4fedfdac8aea0996c66e794a2d8dc7f22d48e32f93c
5
5
  SHA512:
6
- metadata.gz: cd9f37757d670deceb12d72c74ee613bb011936bf39792d2c731b59a662914ab426e737bc1454a560b2d5273e389457fba4f5bd4b9e76db2b83d723032850f87
7
- data.tar.gz: 1de0a5a362844c4531ff4c119f32baea147994febfdf65b89125c927089acdd51fd1c37e61c30d5ac51574c34f39a895c185d1a87b431dc3f1c1e797b7890e45
6
+ metadata.gz: c6cdae2bbb42fe40ebe2655a735ffebc0d9ab4197f622c7e82de947145606159f5641dccdd1c33478fe55c8fb1edbb088f3ae6bd13a264cfa1c8b7759f74dd23
7
+ data.tar.gz: 10f072fb29ac026d4e144130bdeb2d30dadf833af91895faf55847d3151f1e8d1583474da0617c8439d83aa1d0756ea1fba547e48d425422b6214067ebf75581
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.34.0 / 2020-09-16
4
+
5
+ #### Features
6
+
7
+ * quota_project can be set via library configuration
8
+
3
9
  ### 0.33.3 / 2020-05-28
4
10
 
5
11
  #### Documentation
@@ -125,6 +125,7 @@ Google::Cloud.configure.add_config! :resource_manager do |config|
125
125
  allow_nil: true
126
126
  config.add_alias! :keyfile, :credentials
127
127
  config.add_field! :scope, nil, match: [String, Array]
128
+ config.add_field! :quota_project, nil, match: String
128
129
  config.add_field! :retries, nil, match: Integer
129
130
  config.add_field! :timeout, nil, match: Integer
130
131
  config.add_field! :endpoint, nil, match: String
@@ -80,7 +80,7 @@ module Google
80
80
 
81
81
  ResourceManager::Manager.new(
82
82
  ResourceManager::Service.new(
83
- credentials, retries: retries, timeout: timeout, host: endpoint
83
+ credentials, retries: retries, timeout: timeout, host: endpoint, quota_project: configure.quota_project
84
84
  )
85
85
  )
86
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, host: nil
36
+ def initialize credentials, retries: nil, timeout: nil, host: nil, quota_project: nil
37
37
  @credentials = credentials
38
38
  @service = API::CloudResourceManagerService.new
39
39
  @service.client_options.application_name = \
@@ -48,6 +48,7 @@ module Google
48
48
  @service.request_options.header["x-goog-api-client"] = \
49
49
  "gl-ruby/#{RUBY_VERSION} " \
50
50
  "gccl/#{Google::Cloud::ResourceManager::VERSION}"
51
+ @service.request_options.quota_project = quota_project if quota_project
51
52
  @service.authorization = @credentials.client
52
53
  @service.root_url = host if host
53
54
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ResourceManager
19
- VERSION = "0.33.3".freeze
19
+ VERSION = "0.34.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.33.3
4
+ version: 0.34.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: 2020-05-28 00:00:00.000000000 Z
12
+ date: 2020-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  - !ruby/object:Gem::Version
242
242
  version: '0'
243
243
  requirements: []
244
- rubygems_version: 3.0.6
244
+ rubygems_version: 3.1.4
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: API Client library for Google Cloud Resource Manager