google-cloud-os_login 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/os_login.rb +1 -1
- data/lib/google/cloud/os_login/v1.rb +1 -1
- data/lib/google/cloud/os_login/v1/os_login_service_client.rb +3 -0
- data/lib/google/cloud/os_login/v1beta.rb +1 -1
- data/lib/google/cloud/os_login/v1beta/os_login_service_client.rb +3 -0
- data/lib/google/cloud/os_login/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1025399572b77e3d8371acb0661515e49a5008d69377e3150a733292bf572e19
|
4
|
+
data.tar.gz: 6554dd83c3ff16916e09b444b1d42ee0f42f6242b864e3d6a2f30b129fb31e0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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
|
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"
|
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.
|
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-
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|