google-cloud-os_login 0.5.3 → 0.6.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: 582fbfdee90f583072702a9b8df294e92800f00a13f37e4ed7422541f159d875
4
- data.tar.gz: 4620de777a34c159cbb3cddb57c9142b779a06f1de455d73d1fbf6c13d2c4e94
3
+ metadata.gz: 1025399572b77e3d8371acb0661515e49a5008d69377e3150a733292bf572e19
4
+ data.tar.gz: 6554dd83c3ff16916e09b444b1d42ee0f42f6242b864e3d6a2f30b129fb31e0d
5
5
  SHA512:
6
- metadata.gz: 430f5da3e28c5376fa583f7c45ffe2371e3df9e4cb048051f2f3c8f3cdc845463df4ddbd776284d19273eede6d55a48d477242f19d290cae9fa49ea67b4413e8
7
- data.tar.gz: 4a10ede5378d914aaf99aadcc20d2040df7f1339248f2e19af14a1ede82dd1af6f9220fd589ca07698a64e8834eba64931882acde1e9dc9a86919294390cfd5b
6
+ metadata.gz: b1ada1fb95b8ae67f51520d2b26f83459de7e93b90acb9ad5c59a216be0c1051313642e90377bb427a46df7f66bc3456c77f13533642add9eb5beab03a616830
7
+ data.tar.gz: dafa8a5813dc77a38d901d707d4258f6223c24695f92b4dbe18a3f953829845df446e84f272fea2b80892fdaafe14b9a607629b11ca645a1c6cd5954a54ef737
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Cloud OS Login API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Cloud OS Login API
2
2
 
3
3
  [Cloud OS Login API][Product Documentation]:
4
4
  You can use OS Login to manage access to your VM instances using IAM roles.
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud OS Login API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Cloud OS Login API
25
25
  #
26
26
  # [Cloud OS Login API][Product Documentation]:
27
27
  # You can use OS Login to manage access to your VM instances using IAM roles.
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud OS Login API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Cloud OS Login API
25
25
  #
26
26
  # [Cloud OS Login API][Product Documentation]:
27
27
  # You can use OS Login to manage access to your VM instances using IAM roles.
@@ -189,6 +189,9 @@ module Google
189
189
  google_api_client.freeze
190
190
 
191
191
  headers = { :"x-goog-api-client" => google_api_client }
192
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
193
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
194
+ end
192
195
  headers.merge!(metadata) unless metadata.nil?
193
196
  client_config_file = Pathname.new(__dir__).join(
194
197
  "os_login_service_client_config.json"
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Google Cloud OS Login API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Google Cloud OS Login API
25
25
  #
26
26
  # [Google Cloud OS Login API][Product Documentation]:
27
27
  # Manages OS login configuration for Google account users.
@@ -191,6 +191,9 @@ module Google
191
191
  google_api_client.freeze
192
192
 
193
193
  headers = { :"x-goog-api-client" => google_api_client }
194
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
195
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
196
+ end
194
197
  headers.merge!(metadata) unless metadata.nil?
195
198
  client_config_file = Pathname.new(__dir__).join(
196
199
  "os_login_service_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module OsLogin
19
- VERSION = "0.5.3".freeze
19
+ VERSION = "0.6.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-os_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax