google-cloud-os_login 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/os_login/v1/doc/google/cloud/oslogin/common/common.rb +2 -2
- data/lib/google/cloud/os_login/v1/doc/google/cloud/oslogin/v1/oslogin.rb +6 -6
- data/lib/google/cloud/os_login/v1/os_login_service_client.rb +20 -20
- data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/common.rb +1 -1
- data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/common/common.rb +2 -2
- data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/v1beta/oslogin.rb +6 -6
- data/lib/google/cloud/os_login/v1beta/os_login_service_client.rb +20 -20
- data/lib/google/cloud/os_login/version.rb +1 -1
- data/lib/google/cloud/oslogin/common/common_pb.rb +4 -10
- data/lib/google/cloud/oslogin/v1/oslogin_pb.rb +12 -11
- data/lib/google/cloud/oslogin/v1/oslogin_services_pb.rb +35 -34
- data/lib/google/cloud/oslogin/v1beta/oslogin_pb.rb +12 -11
- data/lib/google/cloud/oslogin/v1beta/oslogin_services_pb.rb +35 -34
- 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: 3fa766652a789f371688f8dff6c4fcee745f4946ccab3249be93de77d4362964
|
4
|
+
data.tar.gz: 1efce307185594ec84cf6f52db7f771362d055ffeeee643fea1353201345c090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4b7a85d8156e48a498c08dd27031f129af447d788f0ab788a95d9b0d2257a3f758a8cdcf76e24ec854e255e3bbb93c38c642291d819d9bfbe3c64610ccc4f5d
|
7
|
+
data.tar.gz: 9d4f26c0422929d818aed427f67f7f01c8a7bb0071f6fe4f50f59b4a046b91576303b4203d1b0d33014486b92b3b19e1ea13e3ede5e66dd89342650379154c91
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Cloud
|
18
|
-
module
|
18
|
+
module OsLogin
|
19
19
|
module Common
|
20
20
|
# The POSIX account information associated with a Google account.
|
21
21
|
# @!attribute [rw] primary
|
@@ -47,7 +47,7 @@ module Google
|
|
47
47
|
# @return [String]
|
48
48
|
# Output only. A POSIX account identifier.
|
49
49
|
# @!attribute [rw] operating_system_type
|
50
|
-
# @return [Google::Cloud::
|
50
|
+
# @return [Google::Cloud::OsLogin::Common::OperatingSystemType]
|
51
51
|
# The operating system type where this account applies.
|
52
52
|
# @!attribute [rw] name
|
53
53
|
# @return [String]
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Cloud
|
18
|
-
module
|
18
|
+
module OsLogin
|
19
19
|
module V1
|
20
20
|
# The user profile information used for logging in to a virtual machine on
|
21
21
|
# Google Compute Engine.
|
@@ -23,10 +23,10 @@ module Google
|
|
23
23
|
# @return [String]
|
24
24
|
# Required. A unique user ID.
|
25
25
|
# @!attribute [rw] posix_accounts
|
26
|
-
# @return [Array<Google::Cloud::
|
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
|
-
# @return [Hash{String => Google::Cloud::
|
29
|
+
# @return [Hash{String => Google::Cloud::OsLogin::Common::SshPublicKey}]
|
30
30
|
# A map from SSH public key fingerprint to the associated key object.
|
31
31
|
class LoginProfile; end
|
32
32
|
|
@@ -71,7 +71,7 @@ module Google
|
|
71
71
|
# @return [String]
|
72
72
|
# Required. The unique ID for the user in format `users/{user}`.
|
73
73
|
# @!attribute [rw] ssh_public_key
|
74
|
-
# @return [Google::Cloud::
|
74
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
75
75
|
# Optional. The SSH public key and expiration time.
|
76
76
|
# @!attribute [rw] project_id
|
77
77
|
# @return [String]
|
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
|
81
81
|
# A response message for importing an SSH public key.
|
82
82
|
# @!attribute [rw] login_profile
|
83
|
-
# @return [Google::Cloud::
|
83
|
+
# @return [Google::Cloud::OsLogin::V1::LoginProfile]
|
84
84
|
# The login profile information for the user.
|
85
85
|
class ImportSshPublicKeyResponse; end
|
86
86
|
|
@@ -91,7 +91,7 @@ module Google
|
|
91
91
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
92
92
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
93
93
|
# @!attribute [rw] ssh_public_key
|
94
|
-
# @return [Google::Cloud::
|
94
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
95
95
|
# Required. The SSH public key and expiration time.
|
96
96
|
# @!attribute [rw] update_mask
|
97
97
|
# @return [Google::Protobuf::FieldMask]
|
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# public keys for logging into virtual machines on Google Cloud Platform.
|
40
40
|
#
|
41
41
|
# @!attribute [r] os_login_service_stub
|
42
|
-
# @return [Google::Cloud::
|
42
|
+
# @return [Google::Cloud::OsLogin::V1::OsLoginService::Stub]
|
43
43
|
class OsLoginServiceClient
|
44
44
|
# @private
|
45
45
|
attr_reader :os_login_service_stub
|
@@ -220,7 +220,7 @@ module Google
|
|
220
220
|
updater_proc: updater_proc,
|
221
221
|
scopes: scopes,
|
222
222
|
interceptors: interceptors,
|
223
|
-
&Google::Cloud::
|
223
|
+
&Google::Cloud::OsLogin::V1::OsLoginService::Stub.method(:new)
|
224
224
|
)
|
225
225
|
|
226
226
|
@delete_posix_account = Google::Gax.create_api_call(
|
@@ -302,7 +302,7 @@ module Google
|
|
302
302
|
req = {
|
303
303
|
name: name
|
304
304
|
}.delete_if { |_, v| v.nil? }
|
305
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
305
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1::DeletePosixAccountRequest)
|
306
306
|
@delete_posix_account.call(req, options, &block)
|
307
307
|
nil
|
308
308
|
end
|
@@ -334,7 +334,7 @@ module Google
|
|
334
334
|
req = {
|
335
335
|
name: name
|
336
336
|
}.delete_if { |_, v| v.nil? }
|
337
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
337
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1::DeleteSshPublicKeyRequest)
|
338
338
|
@delete_ssh_public_key.call(req, options, &block)
|
339
339
|
nil
|
340
340
|
end
|
@@ -352,9 +352,9 @@ module Google
|
|
352
352
|
# Overrides the default settings for this call, e.g, timeout,
|
353
353
|
# retries, etc.
|
354
354
|
# @yield [result, operation] Access the result along with the RPC operation
|
355
|
-
# @yieldparam result [Google::Cloud::
|
355
|
+
# @yieldparam result [Google::Cloud::OsLogin::V1::LoginProfile]
|
356
356
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
357
|
-
# @return [Google::Cloud::
|
357
|
+
# @return [Google::Cloud::OsLogin::V1::LoginProfile]
|
358
358
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
359
359
|
# @example
|
360
360
|
# require "google/cloud/os_login"
|
@@ -374,7 +374,7 @@ module Google
|
|
374
374
|
project_id: project_id,
|
375
375
|
system_id: system_id
|
376
376
|
}.delete_if { |_, v| v.nil? }
|
377
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
377
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1::GetLoginProfileRequest)
|
378
378
|
@get_login_profile.call(req, options, &block)
|
379
379
|
end
|
380
380
|
|
@@ -388,9 +388,9 @@ module Google
|
|
388
388
|
# Overrides the default settings for this call, e.g, timeout,
|
389
389
|
# retries, etc.
|
390
390
|
# @yield [result, operation] Access the result along with the RPC operation
|
391
|
-
# @yieldparam result [Google::Cloud::
|
391
|
+
# @yieldparam result [Google::Cloud::OsLogin::Common::SshPublicKey]
|
392
392
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
393
|
-
# @return [Google::Cloud::
|
393
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
394
394
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
395
395
|
# @example
|
396
396
|
# require "google/cloud/os_login"
|
@@ -406,7 +406,7 @@ module Google
|
|
406
406
|
req = {
|
407
407
|
name: name
|
408
408
|
}.delete_if { |_, v| v.nil? }
|
409
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
409
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1::GetSshPublicKeyRequest)
|
410
410
|
@get_ssh_public_key.call(req, options, &block)
|
411
411
|
end
|
412
412
|
|
@@ -416,9 +416,9 @@ module Google
|
|
416
416
|
#
|
417
417
|
# @param parent [String]
|
418
418
|
# Required. The unique ID for the user in format `users/{user}`.
|
419
|
-
# @param ssh_public_key [Google::Cloud::
|
419
|
+
# @param ssh_public_key [Google::Cloud::OsLogin::Common::SshPublicKey | Hash]
|
420
420
|
# Optional. The SSH public key and expiration time.
|
421
|
-
# A hash of the same form as `Google::Cloud::
|
421
|
+
# A hash of the same form as `Google::Cloud::OsLogin::Common::SshPublicKey`
|
422
422
|
# can also be provided.
|
423
423
|
# @param project_id [String]
|
424
424
|
# The project ID of the Google Cloud Platform project.
|
@@ -426,9 +426,9 @@ module Google
|
|
426
426
|
# Overrides the default settings for this call, e.g, timeout,
|
427
427
|
# retries, etc.
|
428
428
|
# @yield [result, operation] Access the result along with the RPC operation
|
429
|
-
# @yieldparam result [Google::Cloud::
|
429
|
+
# @yieldparam result [Google::Cloud::OsLogin::V1::ImportSshPublicKeyResponse]
|
430
430
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
431
|
-
# @return [Google::Cloud::
|
431
|
+
# @return [Google::Cloud::OsLogin::V1::ImportSshPublicKeyResponse]
|
432
432
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
433
433
|
# @example
|
434
434
|
# require "google/cloud/os_login"
|
@@ -448,7 +448,7 @@ module Google
|
|
448
448
|
ssh_public_key: ssh_public_key,
|
449
449
|
project_id: project_id
|
450
450
|
}.delete_if { |_, v| v.nil? }
|
451
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
451
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1::ImportSshPublicKeyRequest)
|
452
452
|
@import_ssh_public_key.call(req, options, &block)
|
453
453
|
end
|
454
454
|
|
@@ -459,9 +459,9 @@ module Google
|
|
459
459
|
# Required. The fingerprint of the public key to update. Public keys are identified by
|
460
460
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
461
461
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
462
|
-
# @param ssh_public_key [Google::Cloud::
|
462
|
+
# @param ssh_public_key [Google::Cloud::OsLogin::Common::SshPublicKey | Hash]
|
463
463
|
# Required. The SSH public key and expiration time.
|
464
|
-
# A hash of the same form as `Google::Cloud::
|
464
|
+
# A hash of the same form as `Google::Cloud::OsLogin::Common::SshPublicKey`
|
465
465
|
# can also be provided.
|
466
466
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
467
467
|
# Mask to control which fields get updated. Updates all if not present.
|
@@ -471,9 +471,9 @@ module Google
|
|
471
471
|
# Overrides the default settings for this call, e.g, timeout,
|
472
472
|
# retries, etc.
|
473
473
|
# @yield [result, operation] Access the result along with the RPC operation
|
474
|
-
# @yieldparam result [Google::Cloud::
|
474
|
+
# @yieldparam result [Google::Cloud::OsLogin::Common::SshPublicKey]
|
475
475
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
476
|
-
# @return [Google::Cloud::
|
476
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
477
477
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
478
478
|
# @example
|
479
479
|
# require "google/cloud/os_login"
|
@@ -496,7 +496,7 @@ module Google
|
|
496
496
|
ssh_public_key: ssh_public_key,
|
497
497
|
update_mask: update_mask
|
498
498
|
}.delete_if { |_, v| v.nil? }
|
499
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
499
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1::UpdateSshPublicKeyRequest)
|
500
500
|
@update_ssh_public_key.call(req, options, &block)
|
501
501
|
end
|
502
502
|
end
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Cloud
|
18
|
-
module
|
18
|
+
module OsLogin
|
19
19
|
module Common
|
20
20
|
# The POSIX account information associated with a Google account.
|
21
21
|
# @!attribute [rw] primary
|
@@ -47,7 +47,7 @@ module Google
|
|
47
47
|
# @return [String]
|
48
48
|
# Output only. A POSIX account identifier.
|
49
49
|
# @!attribute [rw] operating_system_type
|
50
|
-
# @return [Google::Cloud::
|
50
|
+
# @return [Google::Cloud::OsLogin::Common::OperatingSystemType]
|
51
51
|
# The operating system type where this account applies.
|
52
52
|
# @!attribute [rw] name
|
53
53
|
# @return [String]
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
module Google
|
17
17
|
module Cloud
|
18
|
-
module
|
18
|
+
module OsLogin
|
19
19
|
module V1beta
|
20
20
|
# The user profile information used for logging in to a virtual machine on
|
21
21
|
# Google Compute Engine.
|
@@ -23,10 +23,10 @@ module Google
|
|
23
23
|
# @return [String]
|
24
24
|
# Required. A unique user ID.
|
25
25
|
# @!attribute [rw] posix_accounts
|
26
|
-
# @return [Array<Google::Cloud::
|
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
|
-
# @return [Hash{String => Google::Cloud::
|
29
|
+
# @return [Hash{String => Google::Cloud::OsLogin::Common::SshPublicKey}]
|
30
30
|
# A map from SSH public key fingerprint to the associated key object.
|
31
31
|
class LoginProfile; end
|
32
32
|
|
@@ -71,7 +71,7 @@ module Google
|
|
71
71
|
# @return [String]
|
72
72
|
# The unique ID for the user in format `users/{user}`.
|
73
73
|
# @!attribute [rw] ssh_public_key
|
74
|
-
# @return [Google::Cloud::
|
74
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
75
75
|
# Required. The SSH public key and expiration time.
|
76
76
|
# @!attribute [rw] project_id
|
77
77
|
# @return [String]
|
@@ -80,7 +80,7 @@ module Google
|
|
80
80
|
|
81
81
|
# A response message for importing an SSH public key.
|
82
82
|
# @!attribute [rw] login_profile
|
83
|
-
# @return [Google::Cloud::
|
83
|
+
# @return [Google::Cloud::OsLogin::V1beta::LoginProfile]
|
84
84
|
# The login profile information for the user.
|
85
85
|
class ImportSshPublicKeyResponse; end
|
86
86
|
|
@@ -91,7 +91,7 @@ module Google
|
|
91
91
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
92
92
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
93
93
|
# @!attribute [rw] ssh_public_key
|
94
|
-
# @return [Google::Cloud::
|
94
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
95
95
|
# Required. The SSH public key and expiration time.
|
96
96
|
# @!attribute [rw] update_mask
|
97
97
|
# @return [Google::Protobuf::FieldMask]
|
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# public keys for logging into virtual machines on Google Cloud Platform.
|
40
40
|
#
|
41
41
|
# @!attribute [r] os_login_service_stub
|
42
|
-
# @return [Google::Cloud::
|
42
|
+
# @return [Google::Cloud::OsLogin::V1beta::OsLoginService::Stub]
|
43
43
|
class OsLoginServiceClient
|
44
44
|
# @private
|
45
45
|
attr_reader :os_login_service_stub
|
@@ -222,7 +222,7 @@ module Google
|
|
222
222
|
updater_proc: updater_proc,
|
223
223
|
scopes: scopes,
|
224
224
|
interceptors: interceptors,
|
225
|
-
&Google::Cloud::
|
225
|
+
&Google::Cloud::OsLogin::V1beta::OsLoginService::Stub.method(:new)
|
226
226
|
)
|
227
227
|
|
228
228
|
@delete_posix_account = Google::Gax.create_api_call(
|
@@ -304,7 +304,7 @@ module Google
|
|
304
304
|
req = {
|
305
305
|
name: name
|
306
306
|
}.delete_if { |_, v| v.nil? }
|
307
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
307
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1beta::DeletePosixAccountRequest)
|
308
308
|
@delete_posix_account.call(req, options, &block)
|
309
309
|
nil
|
310
310
|
end
|
@@ -336,7 +336,7 @@ module Google
|
|
336
336
|
req = {
|
337
337
|
name: name
|
338
338
|
}.delete_if { |_, v| v.nil? }
|
339
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
339
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1beta::DeleteSshPublicKeyRequest)
|
340
340
|
@delete_ssh_public_key.call(req, options, &block)
|
341
341
|
nil
|
342
342
|
end
|
@@ -354,9 +354,9 @@ module Google
|
|
354
354
|
# Overrides the default settings for this call, e.g, timeout,
|
355
355
|
# retries, etc.
|
356
356
|
# @yield [result, operation] Access the result along with the RPC operation
|
357
|
-
# @yieldparam result [Google::Cloud::
|
357
|
+
# @yieldparam result [Google::Cloud::OsLogin::V1beta::LoginProfile]
|
358
358
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
359
|
-
# @return [Google::Cloud::
|
359
|
+
# @return [Google::Cloud::OsLogin::V1beta::LoginProfile]
|
360
360
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
361
361
|
# @example
|
362
362
|
# require "google/cloud/os_login"
|
@@ -376,7 +376,7 @@ module Google
|
|
376
376
|
project_id: project_id,
|
377
377
|
system_id: system_id
|
378
378
|
}.delete_if { |_, v| v.nil? }
|
379
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
379
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1beta::GetLoginProfileRequest)
|
380
380
|
@get_login_profile.call(req, options, &block)
|
381
381
|
end
|
382
382
|
|
@@ -390,9 +390,9 @@ module Google
|
|
390
390
|
# Overrides the default settings for this call, e.g, timeout,
|
391
391
|
# retries, etc.
|
392
392
|
# @yield [result, operation] Access the result along with the RPC operation
|
393
|
-
# @yieldparam result [Google::Cloud::
|
393
|
+
# @yieldparam result [Google::Cloud::OsLogin::Common::SshPublicKey]
|
394
394
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
395
|
-
# @return [Google::Cloud::
|
395
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
396
396
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
397
397
|
# @example
|
398
398
|
# require "google/cloud/os_login"
|
@@ -408,7 +408,7 @@ module Google
|
|
408
408
|
req = {
|
409
409
|
name: name
|
410
410
|
}.delete_if { |_, v| v.nil? }
|
411
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
411
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1beta::GetSshPublicKeyRequest)
|
412
412
|
@get_ssh_public_key.call(req, options, &block)
|
413
413
|
end
|
414
414
|
|
@@ -418,9 +418,9 @@ module Google
|
|
418
418
|
#
|
419
419
|
# @param parent [String]
|
420
420
|
# The unique ID for the user in format `users/{user}`.
|
421
|
-
# @param ssh_public_key [Google::Cloud::
|
421
|
+
# @param ssh_public_key [Google::Cloud::OsLogin::Common::SshPublicKey | Hash]
|
422
422
|
# Required. The SSH public key and expiration time.
|
423
|
-
# A hash of the same form as `Google::Cloud::
|
423
|
+
# A hash of the same form as `Google::Cloud::OsLogin::Common::SshPublicKey`
|
424
424
|
# can also be provided.
|
425
425
|
# @param project_id [String]
|
426
426
|
# The project ID of the Google Cloud Platform project.
|
@@ -428,9 +428,9 @@ module Google
|
|
428
428
|
# Overrides the default settings for this call, e.g, timeout,
|
429
429
|
# retries, etc.
|
430
430
|
# @yield [result, operation] Access the result along with the RPC operation
|
431
|
-
# @yieldparam result [Google::Cloud::
|
431
|
+
# @yieldparam result [Google::Cloud::OsLogin::V1beta::ImportSshPublicKeyResponse]
|
432
432
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
433
|
-
# @return [Google::Cloud::
|
433
|
+
# @return [Google::Cloud::OsLogin::V1beta::ImportSshPublicKeyResponse]
|
434
434
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
435
435
|
# @example
|
436
436
|
# require "google/cloud/os_login"
|
@@ -453,7 +453,7 @@ module Google
|
|
453
453
|
ssh_public_key: ssh_public_key,
|
454
454
|
project_id: project_id
|
455
455
|
}.delete_if { |_, v| v.nil? }
|
456
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
456
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1beta::ImportSshPublicKeyRequest)
|
457
457
|
@import_ssh_public_key.call(req, options, &block)
|
458
458
|
end
|
459
459
|
|
@@ -464,9 +464,9 @@ module Google
|
|
464
464
|
# Required. The fingerprint of the public key to update. Public keys are identified by
|
465
465
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
466
466
|
# `users/{user}/sshPublicKeys/{fingerprint}`.
|
467
|
-
# @param ssh_public_key [Google::Cloud::
|
467
|
+
# @param ssh_public_key [Google::Cloud::OsLogin::Common::SshPublicKey | Hash]
|
468
468
|
# Required. The SSH public key and expiration time.
|
469
|
-
# A hash of the same form as `Google::Cloud::
|
469
|
+
# A hash of the same form as `Google::Cloud::OsLogin::Common::SshPublicKey`
|
470
470
|
# can also be provided.
|
471
471
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
472
472
|
# Mask to control which fields get updated. Updates all if not present.
|
@@ -476,9 +476,9 @@ module Google
|
|
476
476
|
# Overrides the default settings for this call, e.g, timeout,
|
477
477
|
# retries, etc.
|
478
478
|
# @yield [result, operation] Access the result along with the RPC operation
|
479
|
-
# @yieldparam result [Google::Cloud::
|
479
|
+
# @yieldparam result [Google::Cloud::OsLogin::Common::SshPublicKey]
|
480
480
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
481
|
-
# @return [Google::Cloud::
|
481
|
+
# @return [Google::Cloud::OsLogin::Common::SshPublicKey]
|
482
482
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
483
483
|
# @example
|
484
484
|
# require "google/cloud/os_login"
|
@@ -501,7 +501,7 @@ module Google
|
|
501
501
|
ssh_public_key: ssh_public_key,
|
502
502
|
update_mask: update_mask
|
503
503
|
}.delete_if { |_, v| v.nil? }
|
504
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
504
|
+
req = Google::Gax::to_proto(req, Google::Cloud::OsLogin::V1beta::UpdateSshPublicKeyRequest)
|
505
505
|
@update_ssh_public_key.call(req, options, &block)
|
506
506
|
end
|
507
507
|
end
|
@@ -33,14 +33,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
-
module Google
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
PosixAccount = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.PosixAccount").msgclass
|
41
|
-
SshPublicKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.SshPublicKey").msgclass
|
42
|
-
OperatingSystemType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.OperatingSystemType").enummodule
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
36
|
+
module Google::Cloud::OsLogin::Common
|
37
|
+
PosixAccount = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.PosixAccount").msgclass
|
38
|
+
SshPublicKey = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.SshPublicKey").msgclass
|
39
|
+
OperatingSystemType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.common.OperatingSystemType").enummodule
|
46
40
|
end
|
@@ -48,17 +48,18 @@ end
|
|
48
48
|
|
49
49
|
module Google
|
50
50
|
module Cloud
|
51
|
-
module
|
52
|
-
module V1
|
53
|
-
LoginProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.LoginProfile").msgclass
|
54
|
-
DeletePosixAccountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.DeletePosixAccountRequest").msgclass
|
55
|
-
DeleteSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.DeleteSshPublicKeyRequest").msgclass
|
56
|
-
GetLoginProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.GetLoginProfileRequest").msgclass
|
57
|
-
GetSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.GetSshPublicKeyRequest").msgclass
|
58
|
-
ImportSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.ImportSshPublicKeyRequest").msgclass
|
59
|
-
ImportSshPublicKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.ImportSshPublicKeyResponse").msgclass
|
60
|
-
UpdateSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.UpdateSshPublicKeyRequest").msgclass
|
61
|
-
end
|
51
|
+
module OsLogin
|
62
52
|
end
|
53
|
+
Oslogin = OsLogin unless const_defined? :Oslogin
|
63
54
|
end
|
64
55
|
end
|
56
|
+
module Google::Cloud::OsLogin::V1
|
57
|
+
LoginProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.LoginProfile").msgclass
|
58
|
+
DeletePosixAccountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.DeletePosixAccountRequest").msgclass
|
59
|
+
DeleteSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.DeleteSshPublicKeyRequest").msgclass
|
60
|
+
GetLoginProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.GetLoginProfileRequest").msgclass
|
61
|
+
GetSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.GetSshPublicKeyRequest").msgclass
|
62
|
+
ImportSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.ImportSshPublicKeyRequest").msgclass
|
63
|
+
ImportSshPublicKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.ImportSshPublicKeyResponse").msgclass
|
64
|
+
UpdateSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1.UpdateSshPublicKeyRequest").msgclass
|
65
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/oslogin/v1/oslogin.proto for package '
|
2
|
+
# Source: google/cloud/oslogin/v1/oslogin.proto for package 'Google::Cloud::OsLogin::V1'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2019 Google LLC.
|
5
5
|
#
|
@@ -23,42 +23,43 @@ require 'google/cloud/oslogin/v1/oslogin_pb'
|
|
23
23
|
|
24
24
|
module Google
|
25
25
|
module Cloud
|
26
|
-
module
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
26
|
+
module OsLogin
|
27
|
+
end
|
28
|
+
Oslogin = OsLogin unless const_defined? :Oslogin
|
29
|
+
end
|
30
|
+
end
|
31
|
+
module Google::Cloud::OsLogin::V1
|
32
|
+
module OsLoginService
|
33
|
+
# Cloud OS Login API
|
34
|
+
#
|
35
|
+
# The Cloud OS Login API allows you to manage users and their associated SSH
|
36
|
+
# public keys for logging into virtual machines on Google Cloud Platform.
|
37
|
+
class Service
|
36
38
|
|
37
|
-
|
38
|
-
self.unmarshal_class_method = :decode
|
39
|
-
self.service_name = 'google.cloud.oslogin.v1.OsLoginService'
|
39
|
+
include GRPC::GenericService
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
rpc :DeleteSshPublicKey, DeleteSshPublicKeyRequest, Google::Protobuf::Empty
|
45
|
-
# Retrieves the profile information used for logging in to a virtual machine
|
46
|
-
# on Google Compute Engine.
|
47
|
-
rpc :GetLoginProfile, GetLoginProfileRequest, LoginProfile
|
48
|
-
# Retrieves an SSH public key.
|
49
|
-
rpc :GetSshPublicKey, GetSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
50
|
-
# Adds an SSH public key and returns the profile information. Default POSIX
|
51
|
-
# account information is set when no username and UID exist as part of the
|
52
|
-
# login profile.
|
53
|
-
rpc :ImportSshPublicKey, ImportSshPublicKeyRequest, ImportSshPublicKeyResponse
|
54
|
-
# Updates an SSH public key and returns the profile information. This method
|
55
|
-
# supports patch semantics.
|
56
|
-
rpc :UpdateSshPublicKey, UpdateSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
57
|
-
end
|
41
|
+
self.marshal_class_method = :encode
|
42
|
+
self.unmarshal_class_method = :decode
|
43
|
+
self.service_name = 'google.cloud.oslogin.v1.OsLoginService'
|
58
44
|
|
59
|
-
|
60
|
-
|
61
|
-
|
45
|
+
# Deletes a POSIX account.
|
46
|
+
rpc :DeletePosixAccount, DeletePosixAccountRequest, Google::Protobuf::Empty
|
47
|
+
# Deletes an SSH public key.
|
48
|
+
rpc :DeleteSshPublicKey, DeleteSshPublicKeyRequest, Google::Protobuf::Empty
|
49
|
+
# Retrieves the profile information used for logging in to a virtual machine
|
50
|
+
# on Google Compute Engine.
|
51
|
+
rpc :GetLoginProfile, GetLoginProfileRequest, LoginProfile
|
52
|
+
# Retrieves an SSH public key.
|
53
|
+
rpc :GetSshPublicKey, GetSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
54
|
+
# Adds an SSH public key and returns the profile information. Default POSIX
|
55
|
+
# account information is set when no username and UID exist as part of the
|
56
|
+
# login profile.
|
57
|
+
rpc :ImportSshPublicKey, ImportSshPublicKeyRequest, ImportSshPublicKeyResponse
|
58
|
+
# Updates an SSH public key and returns the profile information. This method
|
59
|
+
# supports patch semantics.
|
60
|
+
rpc :UpdateSshPublicKey, UpdateSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
62
61
|
end
|
62
|
+
|
63
|
+
Stub = Service.rpc_stub_class
|
63
64
|
end
|
64
65
|
end
|
@@ -48,17 +48,18 @@ end
|
|
48
48
|
|
49
49
|
module Google
|
50
50
|
module Cloud
|
51
|
-
module
|
52
|
-
module V1beta
|
53
|
-
LoginProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.LoginProfile").msgclass
|
54
|
-
DeletePosixAccountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.DeletePosixAccountRequest").msgclass
|
55
|
-
DeleteSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.DeleteSshPublicKeyRequest").msgclass
|
56
|
-
GetLoginProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.GetLoginProfileRequest").msgclass
|
57
|
-
GetSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.GetSshPublicKeyRequest").msgclass
|
58
|
-
ImportSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest").msgclass
|
59
|
-
ImportSshPublicKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse").msgclass
|
60
|
-
UpdateSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.UpdateSshPublicKeyRequest").msgclass
|
61
|
-
end
|
51
|
+
module OsLogin
|
62
52
|
end
|
53
|
+
Oslogin = OsLogin unless const_defined? :Oslogin
|
63
54
|
end
|
64
55
|
end
|
56
|
+
module Google::Cloud::OsLogin::V1beta
|
57
|
+
LoginProfile = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.LoginProfile").msgclass
|
58
|
+
DeletePosixAccountRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.DeletePosixAccountRequest").msgclass
|
59
|
+
DeleteSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.DeleteSshPublicKeyRequest").msgclass
|
60
|
+
GetLoginProfileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.GetLoginProfileRequest").msgclass
|
61
|
+
GetSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.GetSshPublicKeyRequest").msgclass
|
62
|
+
ImportSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.ImportSshPublicKeyRequest").msgclass
|
63
|
+
ImportSshPublicKeyResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse").msgclass
|
64
|
+
UpdateSshPublicKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oslogin.v1beta.UpdateSshPublicKeyRequest").msgclass
|
65
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/oslogin/v1beta/oslogin.proto for package '
|
2
|
+
# Source: google/cloud/oslogin/v1beta/oslogin.proto for package 'Google::Cloud::OsLogin::V1beta'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2019 Google LLC.
|
5
5
|
#
|
@@ -23,42 +23,43 @@ require 'google/cloud/oslogin/v1beta/oslogin_pb'
|
|
23
23
|
|
24
24
|
module Google
|
25
25
|
module Cloud
|
26
|
-
module
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
26
|
+
module OsLogin
|
27
|
+
end
|
28
|
+
Oslogin = OsLogin unless const_defined? :Oslogin
|
29
|
+
end
|
30
|
+
end
|
31
|
+
module Google::Cloud::OsLogin::V1beta
|
32
|
+
module OsLoginService
|
33
|
+
# Cloud OS Login API
|
34
|
+
#
|
35
|
+
# The Cloud OS Login API allows you to manage users and their associated SSH
|
36
|
+
# public keys for logging into virtual machines on Google Cloud Platform.
|
37
|
+
class Service
|
36
38
|
|
37
|
-
|
38
|
-
self.unmarshal_class_method = :decode
|
39
|
-
self.service_name = 'google.cloud.oslogin.v1beta.OsLoginService'
|
39
|
+
include GRPC::GenericService
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
rpc :DeleteSshPublicKey, DeleteSshPublicKeyRequest, Google::Protobuf::Empty
|
45
|
-
# Retrieves the profile information used for logging in to a virtual machine
|
46
|
-
# on Google Compute Engine.
|
47
|
-
rpc :GetLoginProfile, GetLoginProfileRequest, LoginProfile
|
48
|
-
# Retrieves an SSH public key.
|
49
|
-
rpc :GetSshPublicKey, GetSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
50
|
-
# Adds an SSH public key and returns the profile information. Default POSIX
|
51
|
-
# account information is set when no username and UID exist as part of the
|
52
|
-
# login profile.
|
53
|
-
rpc :ImportSshPublicKey, ImportSshPublicKeyRequest, ImportSshPublicKeyResponse
|
54
|
-
# Updates an SSH public key and returns the profile information. This method
|
55
|
-
# supports patch semantics.
|
56
|
-
rpc :UpdateSshPublicKey, UpdateSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
57
|
-
end
|
41
|
+
self.marshal_class_method = :encode
|
42
|
+
self.unmarshal_class_method = :decode
|
43
|
+
self.service_name = 'google.cloud.oslogin.v1beta.OsLoginService'
|
58
44
|
|
59
|
-
|
60
|
-
|
61
|
-
|
45
|
+
# Deletes a POSIX account.
|
46
|
+
rpc :DeletePosixAccount, DeletePosixAccountRequest, Google::Protobuf::Empty
|
47
|
+
# Deletes an SSH public key.
|
48
|
+
rpc :DeleteSshPublicKey, DeleteSshPublicKeyRequest, Google::Protobuf::Empty
|
49
|
+
# Retrieves the profile information used for logging in to a virtual machine
|
50
|
+
# on Google Compute Engine.
|
51
|
+
rpc :GetLoginProfile, GetLoginProfileRequest, LoginProfile
|
52
|
+
# Retrieves an SSH public key.
|
53
|
+
rpc :GetSshPublicKey, GetSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
54
|
+
# Adds an SSH public key and returns the profile information. Default POSIX
|
55
|
+
# account information is set when no username and UID exist as part of the
|
56
|
+
# login profile.
|
57
|
+
rpc :ImportSshPublicKey, ImportSshPublicKeyRequest, ImportSshPublicKeyResponse
|
58
|
+
# Updates an SSH public key and returns the profile information. This method
|
59
|
+
# supports patch semantics.
|
60
|
+
rpc :UpdateSshPublicKey, UpdateSshPublicKeyRequest, Google::Cloud::Oslogin::Common::SshPublicKey
|
62
61
|
end
|
62
|
+
|
63
|
+
Stub = Service.rpc_stub_class
|
63
64
|
end
|
64
65
|
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.
|
4
|
+
version: 0.7.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-04-
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|