google-cloud-os_login 0.4.0 → 0.5.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 +4 -4
- data/AUTHENTICATION.md +6 -28
- data/README.md +2 -2
- data/lib/google/cloud/os_login/v1/doc/google/cloud/oslogin/v1/oslogin.rb +1 -5
- data/lib/google/cloud/os_login/v1/os_login_service_client.rb +23 -26
- data/lib/google/cloud/os_login/v1/os_login_service_client_config.json +12 -12
- data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/v1beta/oslogin.rb +14 -12
- data/lib/google/cloud/os_login/v1beta/os_login_service_client.rb +16 -8
- data/lib/google/cloud/os_login/version.rb +1 -1
- data/lib/google/cloud/oslogin/v1/oslogin_pb.rb +0 -1
- data/lib/google/cloud/oslogin/v1/oslogin_services_pb.rb +1 -0
- data/lib/google/cloud/oslogin/v1beta/oslogin_pb.rb +5 -1
- data/lib/google/cloud/oslogin/v1beta/oslogin_services_pb.rb +2 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37178dba6da304a139f2bf30809b25c9b36483b352ba1c583a831f0fdbe70e12
|
|
4
|
+
data.tar.gz: e97bb4d6c76a4492ed2c4025240a55e8151ce14cccf49c65b5b54bc095d58350
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6838b719e70f7c734de031671ca9055b3deb593a4b1d118a304d39478ca8b2d2f48c412fe0d0009ed973291ff45d784fef4d39e22e63c002813d9a4978309cf1
|
|
7
|
+
data.tar.gz: ff3503c39b57c5fb49c6ca42108b14d737838fb0d54e9994111240022525ab82845f36d3be2d93476baaa849788ec0502ce8d307cdd0a86739154bbb47c5929d
|
data/AUTHENTICATION.md
CHANGED
|
@@ -41,7 +41,7 @@ code.
|
|
|
41
41
|
1. Specify project ID in method arguments
|
|
42
42
|
2. Specify project ID in configuration
|
|
43
43
|
3. Discover project ID in environment variables
|
|
44
|
-
4. Discover
|
|
44
|
+
4. Discover GCP project ID
|
|
45
45
|
5. Discover project ID in credentials JSON
|
|
46
46
|
|
|
47
47
|
**Credentials** are discovered in the following order:
|
|
@@ -51,36 +51,14 @@ code.
|
|
|
51
51
|
3. Discover credentials path in environment variables
|
|
52
52
|
4. Discover credentials JSON in environment variables
|
|
53
53
|
5. Discover credentials file in the Cloud SDK's path
|
|
54
|
-
6. Discover
|
|
54
|
+
6. Discover GCP credentials
|
|
55
55
|
|
|
56
56
|
### Google Cloud Platform environments
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
should be written as if already authenticated.
|
|
62
|
-
GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
|
|
63
|
-
access. For example:
|
|
64
|
-
|
|
65
|
-
* **All APIs**
|
|
66
|
-
* `https://www.googleapis.com/auth/cloud-platform`
|
|
67
|
-
* `https://www.googleapis.com/auth/cloud-platform.read-only`
|
|
68
|
-
* **BigQuery**
|
|
69
|
-
* `https://www.googleapis.com/auth/bigquery`
|
|
70
|
-
* `https://www.googleapis.com/auth/bigquery.insertdata`
|
|
71
|
-
* **Compute Engine**
|
|
72
|
-
* `https://www.googleapis.com/auth/compute`
|
|
73
|
-
* **Datastore**
|
|
74
|
-
* `https://www.googleapis.com/auth/datastore`
|
|
75
|
-
* `https://www.googleapis.com/auth/userinfo.email`
|
|
76
|
-
* **DNS**
|
|
77
|
-
* `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
|
|
78
|
-
* **Pub/Sub**
|
|
79
|
-
* `https://www.googleapis.com/auth/pubsub`
|
|
80
|
-
* **Storage**
|
|
81
|
-
* `https://www.googleapis.com/auth/devstorage.full_control`
|
|
82
|
-
* `https://www.googleapis.com/auth/devstorage.read_only`
|
|
83
|
-
* `https://www.googleapis.com/auth/devstorage.read_write`
|
|
58
|
+
When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
|
|
59
|
+
Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
|
|
60
|
+
(GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
|
|
61
|
+
automatically. Code should be written as if already authenticated.
|
|
84
62
|
|
|
85
63
|
### Environment Variables
|
|
86
64
|
|
data/README.md
CHANGED
|
@@ -59,11 +59,11 @@ end
|
|
|
59
59
|
|
|
60
60
|
## Supported Ruby Versions
|
|
61
61
|
|
|
62
|
-
This library is supported on Ruby 2.
|
|
62
|
+
This library is supported on Ruby 2.4+.
|
|
63
63
|
|
|
64
64
|
Google provides official support for Ruby versions that are actively supported
|
|
65
65
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
66
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
|
66
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.4
|
|
67
67
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
|
68
68
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
|
69
69
|
about the Ruby support schedule.
|
|
@@ -28,10 +28,6 @@ module Google
|
|
|
28
28
|
# @!attribute [rw] ssh_public_keys
|
|
29
29
|
# @return [Hash{String => Google::Cloud::Oslogin::Common::SshPublicKey}]
|
|
30
30
|
# A map from SSH public key fingerprint to the associated key object.
|
|
31
|
-
# @!attribute [rw] suspended
|
|
32
|
-
# @return [true, false]
|
|
33
|
-
# Indicates if the user is suspended. A suspended user cannot log in but
|
|
34
|
-
# their profile information is retained.
|
|
35
31
|
class LoginProfile; end
|
|
36
32
|
|
|
37
33
|
# A request message for deleting a POSIX account entry.
|
|
@@ -65,7 +61,7 @@ module Google
|
|
|
65
61
|
# A request message for retrieving an SSH public key.
|
|
66
62
|
# @!attribute [rw] name
|
|
67
63
|
# @return [String]
|
|
68
|
-
# The fingerprint of the public key to retrieve. Public keys are identified
|
|
64
|
+
# Required. The fingerprint of the public key to retrieve. Public keys are identified
|
|
69
65
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
|
70
66
|
# format `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
71
67
|
class GetSshPublicKeyRequest; end
|
|
@@ -63,17 +63,17 @@ module Google
|
|
|
63
63
|
].freeze
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
"users/{user}/
|
|
66
|
+
POSIX_ACCOUNT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
67
|
+
"users/{user}/projects/{project}"
|
|
68
68
|
)
|
|
69
69
|
|
|
70
|
-
private_constant :
|
|
70
|
+
private_constant :POSIX_ACCOUNT_PATH_TEMPLATE
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
"users/{user}/
|
|
72
|
+
SSH_PUBLIC_KEY_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
73
|
+
"users/{user}/sshPublicKeys/{fingerprint}"
|
|
74
74
|
)
|
|
75
75
|
|
|
76
|
-
private_constant :
|
|
76
|
+
private_constant :SSH_PUBLIC_KEY_PATH_TEMPLATE
|
|
77
77
|
|
|
78
78
|
USER_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
|
|
79
79
|
"users/{user}"
|
|
@@ -81,25 +81,25 @@ module Google
|
|
|
81
81
|
|
|
82
82
|
private_constant :USER_PATH_TEMPLATE
|
|
83
83
|
|
|
84
|
-
# Returns a fully-qualified
|
|
84
|
+
# Returns a fully-qualified posix_account resource name string.
|
|
85
85
|
# @param user [String]
|
|
86
|
-
# @param
|
|
86
|
+
# @param project [String]
|
|
87
87
|
# @return [String]
|
|
88
|
-
def self.
|
|
89
|
-
|
|
88
|
+
def self.posix_account_path user, project
|
|
89
|
+
POSIX_ACCOUNT_PATH_TEMPLATE.render(
|
|
90
90
|
:"user" => user,
|
|
91
|
-
:"
|
|
91
|
+
:"project" => project
|
|
92
92
|
)
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
-
# Returns a fully-qualified
|
|
95
|
+
# Returns a fully-qualified ssh_public_key resource name string.
|
|
96
96
|
# @param user [String]
|
|
97
|
-
# @param
|
|
97
|
+
# @param fingerprint [String]
|
|
98
98
|
# @return [String]
|
|
99
|
-
def self.
|
|
100
|
-
|
|
99
|
+
def self.ssh_public_key_path user, fingerprint
|
|
100
|
+
SSH_PUBLIC_KEY_PATH_TEMPLATE.render(
|
|
101
101
|
:"user" => user,
|
|
102
|
-
:"
|
|
102
|
+
:"fingerprint" => fingerprint
|
|
103
103
|
)
|
|
104
104
|
end
|
|
105
105
|
|
|
@@ -289,7 +289,7 @@ module Google
|
|
|
289
289
|
# require "google/cloud/os_login"
|
|
290
290
|
#
|
|
291
291
|
# os_login_client = Google::Cloud::OsLogin.new(version: :v1)
|
|
292
|
-
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.
|
|
292
|
+
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.posix_account_path("[USER]", "[PROJECT]")
|
|
293
293
|
# os_login_client.delete_posix_account(formatted_name)
|
|
294
294
|
|
|
295
295
|
def delete_posix_account \
|
|
@@ -321,7 +321,7 @@ module Google
|
|
|
321
321
|
# require "google/cloud/os_login"
|
|
322
322
|
#
|
|
323
323
|
# os_login_client = Google::Cloud::OsLogin.new(version: :v1)
|
|
324
|
-
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.
|
|
324
|
+
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.ssh_public_key_path("[USER]", "[FINGERPRINT]")
|
|
325
325
|
# os_login_client.delete_ssh_public_key(formatted_name)
|
|
326
326
|
|
|
327
327
|
def delete_ssh_public_key \
|
|
@@ -378,7 +378,7 @@ module Google
|
|
|
378
378
|
# Retrieves an SSH public key.
|
|
379
379
|
#
|
|
380
380
|
# @param name [String]
|
|
381
|
-
# The fingerprint of the public key to retrieve. Public keys are identified
|
|
381
|
+
# Required. The fingerprint of the public key to retrieve. Public keys are identified
|
|
382
382
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
|
383
383
|
# format `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
384
384
|
# @param options [Google::Gax::CallOptions]
|
|
@@ -393,7 +393,7 @@ module Google
|
|
|
393
393
|
# require "google/cloud/os_login"
|
|
394
394
|
#
|
|
395
395
|
# os_login_client = Google::Cloud::OsLogin.new(version: :v1)
|
|
396
|
-
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.
|
|
396
|
+
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.ssh_public_key_path("[USER]", "[FINGERPRINT]")
|
|
397
397
|
# response = os_login_client.get_ssh_public_key(formatted_name)
|
|
398
398
|
|
|
399
399
|
def get_ssh_public_key \
|
|
@@ -432,14 +432,11 @@ module Google
|
|
|
432
432
|
#
|
|
433
433
|
# os_login_client = Google::Cloud::OsLogin.new(version: :v1)
|
|
434
434
|
# formatted_parent = Google::Cloud::OsLogin::V1::OsLoginServiceClient.user_path("[USER]")
|
|
435
|
-
#
|
|
436
|
-
# # TODO: Initialize `ssh_public_key`:
|
|
437
|
-
# ssh_public_key = {}
|
|
438
|
-
# response = os_login_client.import_ssh_public_key(formatted_parent, ssh_public_key)
|
|
435
|
+
# response = os_login_client.import_ssh_public_key(formatted_parent)
|
|
439
436
|
|
|
440
437
|
def import_ssh_public_key \
|
|
441
438
|
parent,
|
|
442
|
-
ssh_public_key,
|
|
439
|
+
ssh_public_key: nil,
|
|
443
440
|
project_id: nil,
|
|
444
441
|
options: nil,
|
|
445
442
|
&block
|
|
@@ -479,7 +476,7 @@ module Google
|
|
|
479
476
|
# require "google/cloud/os_login"
|
|
480
477
|
#
|
|
481
478
|
# os_login_client = Google::Cloud::OsLogin.new(version: :v1)
|
|
482
|
-
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.
|
|
479
|
+
# formatted_name = Google::Cloud::OsLogin::V1::OsLoginServiceClient.ssh_public_key_path("[USER]", "[FINGERPRINT]")
|
|
483
480
|
#
|
|
484
481
|
# # TODO: Initialize `ssh_public_key`:
|
|
485
482
|
# ssh_public_key = {}
|
|
@@ -13,41 +13,41 @@
|
|
|
13
13
|
"initial_retry_delay_millis": 100,
|
|
14
14
|
"retry_delay_multiplier": 1.3,
|
|
15
15
|
"max_retry_delay_millis": 60000,
|
|
16
|
-
"initial_rpc_timeout_millis":
|
|
16
|
+
"initial_rpc_timeout_millis": 20000,
|
|
17
17
|
"rpc_timeout_multiplier": 1.0,
|
|
18
|
-
"max_rpc_timeout_millis":
|
|
18
|
+
"max_rpc_timeout_millis": 20000,
|
|
19
19
|
"total_timeout_millis": 600000
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"methods": {
|
|
23
23
|
"DeletePosixAccount": {
|
|
24
|
-
"timeout_millis":
|
|
25
|
-
"retry_codes_name": "
|
|
24
|
+
"timeout_millis": 60000,
|
|
25
|
+
"retry_codes_name": "non_idempotent",
|
|
26
26
|
"retry_params_name": "default"
|
|
27
27
|
},
|
|
28
28
|
"DeleteSshPublicKey": {
|
|
29
|
-
"timeout_millis":
|
|
30
|
-
"retry_codes_name": "
|
|
29
|
+
"timeout_millis": 60000,
|
|
30
|
+
"retry_codes_name": "non_idempotent",
|
|
31
31
|
"retry_params_name": "default"
|
|
32
32
|
},
|
|
33
33
|
"GetLoginProfile": {
|
|
34
|
-
"timeout_millis":
|
|
34
|
+
"timeout_millis": 60000,
|
|
35
35
|
"retry_codes_name": "idempotent",
|
|
36
36
|
"retry_params_name": "default"
|
|
37
37
|
},
|
|
38
38
|
"GetSshPublicKey": {
|
|
39
|
-
"timeout_millis":
|
|
39
|
+
"timeout_millis": 60000,
|
|
40
40
|
"retry_codes_name": "idempotent",
|
|
41
41
|
"retry_params_name": "default"
|
|
42
42
|
},
|
|
43
43
|
"ImportSshPublicKey": {
|
|
44
|
-
"timeout_millis":
|
|
45
|
-
"retry_codes_name": "
|
|
44
|
+
"timeout_millis": 60000,
|
|
45
|
+
"retry_codes_name": "non_idempotent",
|
|
46
46
|
"retry_params_name": "default"
|
|
47
47
|
},
|
|
48
48
|
"UpdateSshPublicKey": {
|
|
49
|
-
"timeout_millis":
|
|
50
|
-
"retry_codes_name": "
|
|
49
|
+
"timeout_millis": 60000,
|
|
50
|
+
"retry_codes_name": "non_idempotent",
|
|
51
51
|
"retry_params_name": "default"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -21,23 +21,19 @@ module Google
|
|
|
21
21
|
# Google Compute Engine.
|
|
22
22
|
# @!attribute [rw] name
|
|
23
23
|
# @return [String]
|
|
24
|
-
#
|
|
24
|
+
# Required. A unique user ID.
|
|
25
25
|
# @!attribute [rw] posix_accounts
|
|
26
26
|
# @return [Array<Google::Cloud::Oslogin::Common::PosixAccount>]
|
|
27
27
|
# The list of POSIX accounts associated with the user.
|
|
28
28
|
# @!attribute [rw] ssh_public_keys
|
|
29
29
|
# @return [Hash{String => Google::Cloud::Oslogin::Common::SshPublicKey}]
|
|
30
30
|
# A map from SSH public key fingerprint to the associated key object.
|
|
31
|
-
# @!attribute [rw] suspended
|
|
32
|
-
# @return [true, false]
|
|
33
|
-
# Indicates if the user is suspended. A suspended user cannot log in but
|
|
34
|
-
# their profile information is retained.
|
|
35
31
|
class LoginProfile; end
|
|
36
32
|
|
|
37
33
|
# A request message for deleting a POSIX account entry.
|
|
38
34
|
# @!attribute [rw] name
|
|
39
35
|
# @return [String]
|
|
40
|
-
# A reference to the POSIX account to update. POSIX accounts are identified
|
|
36
|
+
# Required. A reference to the POSIX account to update. POSIX accounts are identified
|
|
41
37
|
# by the project ID they are associated with. A reference to the POSIX
|
|
42
38
|
# account is in format `users/{user}/projects/{project}`.
|
|
43
39
|
class DeletePosixAccountRequest; end
|
|
@@ -45,7 +41,7 @@ module Google
|
|
|
45
41
|
# A request message for deleting an SSH public key.
|
|
46
42
|
# @!attribute [rw] name
|
|
47
43
|
# @return [String]
|
|
48
|
-
# The fingerprint of the public key to update. Public keys are identified by
|
|
44
|
+
# Required. The fingerprint of the public key to update. Public keys are identified by
|
|
49
45
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
|
50
46
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
51
47
|
class DeleteSshPublicKeyRequest; end
|
|
@@ -53,13 +49,19 @@ module Google
|
|
|
53
49
|
# A request message for retrieving the login profile information for a user.
|
|
54
50
|
# @!attribute [rw] name
|
|
55
51
|
# @return [String]
|
|
56
|
-
# The unique ID for the user in format `users/{user}`.
|
|
52
|
+
# Required. The unique ID for the user in format `users/{user}`.
|
|
53
|
+
# @!attribute [rw] project_id
|
|
54
|
+
# @return [String]
|
|
55
|
+
# The project ID of the Google Cloud Platform project.
|
|
56
|
+
# @!attribute [rw] system_id
|
|
57
|
+
# @return [String]
|
|
58
|
+
# A system ID for filtering the results of the request.
|
|
57
59
|
class GetLoginProfileRequest; end
|
|
58
60
|
|
|
59
61
|
# A request message for retrieving an SSH public key.
|
|
60
62
|
# @!attribute [rw] name
|
|
61
63
|
# @return [String]
|
|
62
|
-
# The fingerprint of the public key to retrieve. Public keys are identified
|
|
64
|
+
# Required. The fingerprint of the public key to retrieve. Public keys are identified
|
|
63
65
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
|
64
66
|
# format `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
65
67
|
class GetSshPublicKeyRequest; end
|
|
@@ -70,7 +72,7 @@ module Google
|
|
|
70
72
|
# The unique ID for the user in format `users/{user}`.
|
|
71
73
|
# @!attribute [rw] ssh_public_key
|
|
72
74
|
# @return [Google::Cloud::Oslogin::Common::SshPublicKey]
|
|
73
|
-
# The SSH public key and expiration time.
|
|
75
|
+
# Required. The SSH public key and expiration time.
|
|
74
76
|
# @!attribute [rw] project_id
|
|
75
77
|
# @return [String]
|
|
76
78
|
# The project ID of the Google Cloud Platform project.
|
|
@@ -85,12 +87,12 @@ module Google
|
|
|
85
87
|
# A request message for updating an SSH public key.
|
|
86
88
|
# @!attribute [rw] name
|
|
87
89
|
# @return [String]
|
|
88
|
-
# The fingerprint of the public key to update. Public keys are identified by
|
|
90
|
+
# Required. The fingerprint of the public key to update. Public keys are identified by
|
|
89
91
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
|
90
92
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
91
93
|
# @!attribute [rw] ssh_public_key
|
|
92
94
|
# @return [Google::Cloud::Oslogin::Common::SshPublicKey]
|
|
93
|
-
# The SSH public key and expiration time.
|
|
95
|
+
# Required. The SSH public key and expiration time.
|
|
94
96
|
# @!attribute [rw] update_mask
|
|
95
97
|
# @return [Google::Protobuf::FieldMask]
|
|
96
98
|
# Mask to control which fields get updated. Updates all if not present.
|
|
@@ -277,7 +277,7 @@ module Google
|
|
|
277
277
|
# Deletes a POSIX account.
|
|
278
278
|
#
|
|
279
279
|
# @param name [String]
|
|
280
|
-
# A reference to the POSIX account to update. POSIX accounts are identified
|
|
280
|
+
# Required. A reference to the POSIX account to update. POSIX accounts are identified
|
|
281
281
|
# by the project ID they are associated with. A reference to the POSIX
|
|
282
282
|
# account is in format `users/{user}/projects/{project}`.
|
|
283
283
|
# @param options [Google::Gax::CallOptions]
|
|
@@ -309,7 +309,7 @@ module Google
|
|
|
309
309
|
# Deletes an SSH public key.
|
|
310
310
|
#
|
|
311
311
|
# @param name [String]
|
|
312
|
-
# The fingerprint of the public key to update. Public keys are identified by
|
|
312
|
+
# Required. The fingerprint of the public key to update. Public keys are identified by
|
|
313
313
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
|
314
314
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
315
315
|
# @param options [Google::Gax::CallOptions]
|
|
@@ -342,7 +342,11 @@ module Google
|
|
|
342
342
|
# on Google Compute Engine.
|
|
343
343
|
#
|
|
344
344
|
# @param name [String]
|
|
345
|
-
# The unique ID for the user in format `users/{user}`.
|
|
345
|
+
# Required. The unique ID for the user in format `users/{user}`.
|
|
346
|
+
# @param project_id [String]
|
|
347
|
+
# The project ID of the Google Cloud Platform project.
|
|
348
|
+
# @param system_id [String]
|
|
349
|
+
# A system ID for filtering the results of the request.
|
|
346
350
|
# @param options [Google::Gax::CallOptions]
|
|
347
351
|
# Overrides the default settings for this call, e.g, timeout,
|
|
348
352
|
# retries, etc.
|
|
@@ -360,10 +364,14 @@ module Google
|
|
|
360
364
|
|
|
361
365
|
def get_login_profile \
|
|
362
366
|
name,
|
|
367
|
+
project_id: nil,
|
|
368
|
+
system_id: nil,
|
|
363
369
|
options: nil,
|
|
364
370
|
&block
|
|
365
371
|
req = {
|
|
366
|
-
name: name
|
|
372
|
+
name: name,
|
|
373
|
+
project_id: project_id,
|
|
374
|
+
system_id: system_id
|
|
367
375
|
}.delete_if { |_, v| v.nil? }
|
|
368
376
|
req = Google::Gax::to_proto(req, Google::Cloud::Oslogin::V1beta::GetLoginProfileRequest)
|
|
369
377
|
@get_login_profile.call(req, options, &block)
|
|
@@ -372,7 +380,7 @@ module Google
|
|
|
372
380
|
# Retrieves an SSH public key.
|
|
373
381
|
#
|
|
374
382
|
# @param name [String]
|
|
375
|
-
# The fingerprint of the public key to retrieve. Public keys are identified
|
|
383
|
+
# Required. The fingerprint of the public key to retrieve. Public keys are identified
|
|
376
384
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
|
377
385
|
# format `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
378
386
|
# @param options [Google::Gax::CallOptions]
|
|
@@ -408,7 +416,7 @@ module Google
|
|
|
408
416
|
# @param parent [String]
|
|
409
417
|
# The unique ID for the user in format `users/{user}`.
|
|
410
418
|
# @param ssh_public_key [Google::Cloud::Oslogin::Common::SshPublicKey | Hash]
|
|
411
|
-
# The SSH public key and expiration time.
|
|
419
|
+
# Required. The SSH public key and expiration time.
|
|
412
420
|
# A hash of the same form as `Google::Cloud::Oslogin::Common::SshPublicKey`
|
|
413
421
|
# can also be provided.
|
|
414
422
|
# @param project_id [String]
|
|
@@ -450,11 +458,11 @@ module Google
|
|
|
450
458
|
# supports patch semantics.
|
|
451
459
|
#
|
|
452
460
|
# @param name [String]
|
|
453
|
-
# The fingerprint of the public key to update. Public keys are identified by
|
|
461
|
+
# Required. The fingerprint of the public key to update. Public keys are identified by
|
|
454
462
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
|
455
463
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
|
456
464
|
# @param ssh_public_key [Google::Cloud::Oslogin::Common::SshPublicKey | Hash]
|
|
457
|
-
# The SSH public key and expiration time.
|
|
465
|
+
# Required. The SSH public key and expiration time.
|
|
458
466
|
# A hash of the same form as `Google::Cloud::Oslogin::Common::SshPublicKey`
|
|
459
467
|
# can also be provided.
|
|
460
468
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
|
@@ -16,7 +16,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
16
16
|
optional :name, :string, 1
|
|
17
17
|
repeated :posix_accounts, :message, 2, "google.cloud.oslogin.common.PosixAccount"
|
|
18
18
|
map :ssh_public_keys, :string, :message, 3, "google.cloud.oslogin.common.SshPublicKey"
|
|
19
|
-
optional :suspended, :bool, 4
|
|
20
19
|
end
|
|
21
20
|
add_message "google.cloud.oslogin.v1.DeletePosixAccountRequest" do
|
|
22
21
|
optional :name, :string, 1
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/resource_pb'
|
|
8
11
|
require 'google/cloud/oslogin/common/common_pb'
|
|
9
12
|
require 'google/protobuf/empty_pb'
|
|
10
13
|
require 'google/protobuf/field_mask_pb'
|
|
@@ -13,7 +16,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
13
16
|
optional :name, :string, 1
|
|
14
17
|
repeated :posix_accounts, :message, 2, "google.cloud.oslogin.common.PosixAccount"
|
|
15
18
|
map :ssh_public_keys, :string, :message, 3, "google.cloud.oslogin.common.SshPublicKey"
|
|
16
|
-
optional :suspended, :bool, 4
|
|
17
19
|
end
|
|
18
20
|
add_message "google.cloud.oslogin.v1beta.DeletePosixAccountRequest" do
|
|
19
21
|
optional :name, :string, 1
|
|
@@ -23,6 +25,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
23
25
|
end
|
|
24
26
|
add_message "google.cloud.oslogin.v1beta.GetLoginProfileRequest" do
|
|
25
27
|
optional :name, :string, 1
|
|
28
|
+
optional :project_id, :string, 2
|
|
29
|
+
optional :system_id, :string, 3
|
|
26
30
|
end
|
|
27
31
|
add_message "google.cloud.oslogin.v1beta.GetSshPublicKeyRequest" do
|
|
28
32
|
optional :name, :string, 1
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# Source: google/cloud/oslogin/v1beta/oslogin.proto for package 'google.cloud.oslogin.v1beta'
|
|
3
3
|
# Original file comments:
|
|
4
|
-
# Copyright
|
|
4
|
+
# Copyright 2019 Google LLC.
|
|
5
5
|
#
|
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
7
|
# you may not use this file except in compliance with the License.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
# See the License for the specific language governing permissions and
|
|
16
16
|
# limitations under the License.
|
|
17
17
|
#
|
|
18
|
+
#
|
|
18
19
|
|
|
19
20
|
|
|
20
21
|
require 'grpc'
|
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.5.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: 2019-10-
|
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-gax
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
19
|
+
version: '1.8'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '1.
|
|
26
|
+
version: '1.8'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: minitest
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -53,19 +53,19 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.0'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
56
|
+
name: google-style
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
61
|
+
version: 1.24.0
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
68
|
+
version: 1.24.0
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: simplecov
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
140
140
|
requirements:
|
|
141
141
|
- - ">="
|
|
142
142
|
- !ruby/object:Gem::Version
|
|
143
|
-
version: 2.
|
|
143
|
+
version: '2.4'
|
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
requirements:
|
|
146
146
|
- - ">="
|