google-cloud-os_login 0.2.1 → 0.2.2
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.rb +6 -0
- data/lib/google/cloud/os_login/v1.rb +6 -0
- data/lib/google/cloud/os_login/v1/credentials.rb +1 -0
- data/lib/google/cloud/os_login/v1/doc/google/cloud/oslogin/common/common.rb +1 -0
- data/lib/google/cloud/os_login/v1/doc/google/cloud/oslogin/v1/oslogin.rb +7 -6
- data/lib/google/cloud/os_login/v1/doc/google/protobuf/empty.rb +1 -0
- data/lib/google/cloud/os_login/v1/doc/google/protobuf/field_mask.rb +7 -0
- data/lib/google/cloud/os_login/v1/doc/overview.rb +1 -0
- data/lib/google/cloud/os_login/v1/os_login_service_client.rb +8 -6
- data/lib/google/cloud/os_login/v1beta.rb +6 -0
- data/lib/google/cloud/os_login/v1beta/credentials.rb +1 -0
- data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/common.rb +1 -0
- data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/common/common.rb +1 -0
- data/lib/google/cloud/os_login/v1beta/doc/google/cloud/oslogin/v1beta/oslogin.rb +7 -6
- data/lib/google/cloud/os_login/v1beta/doc/google/protobuf/empty.rb +1 -0
- data/lib/google/cloud/os_login/v1beta/doc/google/protobuf/field_mask.rb +7 -0
- data/lib/google/cloud/os_login/v1beta/doc/overview.rb +1 -0
- data/lib/google/cloud/os_login/v1beta/os_login_service_client.rb +8 -6
- data/lib/google/cloud/oslogin/common/common_pb.rb +1 -0
- data/lib/google/cloud/oslogin/v1/oslogin_pb.rb +1 -0
- data/lib/google/cloud/oslogin/v1/oslogin_services_pb.rb +1 -0
- data/lib/google/cloud/oslogin/v1beta/oslogin_pb.rb +1 -0
- data/lib/google/cloud/oslogin/v1beta/oslogin_services_pb.rb +1 -0
- 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: 8f221dfa7b1d6aff9bd30622b4b1bb36f969f57304b8f10e74f9aa7588991ade
|
4
|
+
data.tar.gz: 0327033cb750a156b96961591f180e06b228021f5264f065c0c7a471458f1d45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90435dfd3806856f5d06a7c4cfc0aaa05be895370d178f8d3a4401d9be962f3388fa7282ffae2c5e68823e93a233e75aeb995a2fd945912161dd10a6c6b14168
|
7
|
+
data.tar.gz: 401db4bc0240d817229444df077b36f73f5e85df263b4a1833aae2171dad3a6451aff6e919e8ba0121e005d6c1ac2abb259349c3edf573befd1be3ad2fcc25fd
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/gax"
|
16
17
|
require "pathname"
|
17
18
|
|
@@ -35,6 +36,11 @@ module Google
|
|
35
36
|
# 3. [Enable the Google Cloud OS Login API.](https://console.cloud.google.com/apis/library/oslogin.googleapis.com)
|
36
37
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
37
38
|
#
|
39
|
+
# ### Installation
|
40
|
+
# ```
|
41
|
+
# $ gem install google-cloud-os_login
|
42
|
+
# ```
|
43
|
+
#
|
38
44
|
# ### Next Steps
|
39
45
|
# - Read the [Google Cloud OS Login API Product documentation][Product Documentation]
|
40
46
|
# to learn more about the product and see How-to Guides.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/cloud/os_login/v1/os_login_service_client"
|
16
17
|
|
17
18
|
module Google
|
@@ -35,6 +36,11 @@ module Google
|
|
35
36
|
# 3. [Enable the Google Cloud OS Login API.](https://console.cloud.google.com/apis/library/oslogin.googleapis.com)
|
36
37
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
37
38
|
#
|
39
|
+
# ### Installation
|
40
|
+
# ```
|
41
|
+
# $ gem install google-cloud-os_login
|
42
|
+
# ```
|
43
|
+
#
|
38
44
|
# ### Next Steps
|
39
45
|
# - Read the [Google Cloud OS Login API Product documentation][Product Documentation]
|
40
46
|
# to learn more about the product and see How-to Guides.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Cloud
|
17
18
|
module Oslogin
|
@@ -38,7 +39,7 @@ module Google
|
|
38
39
|
# @return [String]
|
39
40
|
# A reference to the POSIX account to update. POSIX accounts are identified
|
40
41
|
# by the project ID they are associated with. A reference to the POSIX
|
41
|
-
# account is in format +users
|
42
|
+
# account is in format +users/\\{user}/projects/\\{project}+.
|
42
43
|
class DeletePosixAccountRequest; end
|
43
44
|
|
44
45
|
# A request message for deleting an SSH public key.
|
@@ -46,13 +47,13 @@ module Google
|
|
46
47
|
# @return [String]
|
47
48
|
# The fingerprint of the public key to update. Public keys are identified by
|
48
49
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
49
|
-
# +users
|
50
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
50
51
|
class DeleteSshPublicKeyRequest; end
|
51
52
|
|
52
53
|
# A request message for retrieving the login profile information for a user.
|
53
54
|
# @!attribute [rw] name
|
54
55
|
# @return [String]
|
55
|
-
# The unique ID for the user in format +users
|
56
|
+
# The unique ID for the user in format +users/\\{user}+.
|
56
57
|
class GetLoginProfileRequest; end
|
57
58
|
|
58
59
|
# A request message for retrieving an SSH public key.
|
@@ -60,13 +61,13 @@ module Google
|
|
60
61
|
# @return [String]
|
61
62
|
# The fingerprint of the public key to retrieve. Public keys are identified
|
62
63
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
63
|
-
# format +users
|
64
|
+
# format +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
64
65
|
class GetSshPublicKeyRequest; end
|
65
66
|
|
66
67
|
# A request message for importing an SSH public key.
|
67
68
|
# @!attribute [rw] parent
|
68
69
|
# @return [String]
|
69
|
-
# The unique ID for the user in format +users
|
70
|
+
# The unique ID for the user in format +users/\\{user}+.
|
70
71
|
# @!attribute [rw] ssh_public_key
|
71
72
|
# @return [Google::Cloud::Oslogin::Common::SshPublicKey]
|
72
73
|
# The SSH public key and expiration time.
|
@@ -86,7 +87,7 @@ module Google
|
|
86
87
|
# @return [String]
|
87
88
|
# The fingerprint of the public key to update. Public keys are identified by
|
88
89
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
89
|
-
# +users
|
90
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
90
91
|
# @!attribute [rw] ssh_public_key
|
91
92
|
# @return [Google::Cloud::Oslogin::Common::SshPublicKey]
|
92
93
|
# The SSH public key and expiration time.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +FieldMask+ represents a set of symbolic field paths, for example:
|
@@ -215,6 +216,12 @@ module Google
|
|
215
216
|
#
|
216
217
|
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
217
218
|
# paths.
|
219
|
+
#
|
220
|
+
# == Field Mask Verification
|
221
|
+
#
|
222
|
+
# The implementation of any API method which has a FieldMask type field in the
|
223
|
+
# request should verify the included field paths, and return an
|
224
|
+
# +INVALID_ARGUMENT+ error if any path is duplicated or unmappable.
|
218
225
|
# @!attribute [rw] paths
|
219
226
|
# @return [Array<String>]
|
220
227
|
# The set of field mask paths.
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -39,6 +40,7 @@ module Google
|
|
39
40
|
# @!attribute [r] os_login_service_stub
|
40
41
|
# @return [Google::Cloud::Oslogin::V1::OsLoginService::Stub]
|
41
42
|
class OsLoginServiceClient
|
43
|
+
# @private
|
42
44
|
attr_reader :os_login_service_stub
|
43
45
|
|
44
46
|
# The default address of the service.
|
@@ -252,7 +254,7 @@ module Google
|
|
252
254
|
# @param name [String]
|
253
255
|
# A reference to the POSIX account to update. POSIX accounts are identified
|
254
256
|
# by the project ID they are associated with. A reference to the POSIX
|
255
|
-
# account is in format +users
|
257
|
+
# account is in format +users/\\{user}/projects/\\{project}+.
|
256
258
|
# @param options [Google::Gax::CallOptions]
|
257
259
|
# Overrides the default settings for this call, e.g, timeout,
|
258
260
|
# retries, etc.
|
@@ -284,7 +286,7 @@ module Google
|
|
284
286
|
# @param name [String]
|
285
287
|
# The fingerprint of the public key to update. Public keys are identified by
|
286
288
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
287
|
-
# +users
|
289
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
288
290
|
# @param options [Google::Gax::CallOptions]
|
289
291
|
# Overrides the default settings for this call, e.g, timeout,
|
290
292
|
# retries, etc.
|
@@ -315,7 +317,7 @@ module Google
|
|
315
317
|
# on Google Compute Engine.
|
316
318
|
#
|
317
319
|
# @param name [String]
|
318
|
-
# The unique ID for the user in format +users
|
320
|
+
# The unique ID for the user in format +users/\\{user}+.
|
319
321
|
# @param options [Google::Gax::CallOptions]
|
320
322
|
# Overrides the default settings for this call, e.g, timeout,
|
321
323
|
# retries, etc.
|
@@ -347,7 +349,7 @@ module Google
|
|
347
349
|
# @param name [String]
|
348
350
|
# The fingerprint of the public key to retrieve. Public keys are identified
|
349
351
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
350
|
-
# format +users
|
352
|
+
# format +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
351
353
|
# @param options [Google::Gax::CallOptions]
|
352
354
|
# Overrides the default settings for this call, e.g, timeout,
|
353
355
|
# retries, etc.
|
@@ -379,7 +381,7 @@ module Google
|
|
379
381
|
# login profile.
|
380
382
|
#
|
381
383
|
# @param parent [String]
|
382
|
-
# The unique ID for the user in format +users
|
384
|
+
# The unique ID for the user in format +users/\\{user}+.
|
383
385
|
# @param ssh_public_key [Google::Cloud::Oslogin::Common::SshPublicKey | Hash]
|
384
386
|
# The SSH public key and expiration time.
|
385
387
|
# A hash of the same form as `Google::Cloud::Oslogin::Common::SshPublicKey`
|
@@ -425,7 +427,7 @@ module Google
|
|
425
427
|
# @param name [String]
|
426
428
|
# The fingerprint of the public key to update. Public keys are identified by
|
427
429
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
428
|
-
# +users
|
430
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
429
431
|
# @param ssh_public_key [Google::Cloud::Oslogin::Common::SshPublicKey | Hash]
|
430
432
|
# The SSH public key and expiration time.
|
431
433
|
# A hash of the same form as `Google::Cloud::Oslogin::Common::SshPublicKey`
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
require "google/cloud/os_login/v1beta/os_login_service_client"
|
16
17
|
|
17
18
|
module Google
|
@@ -35,6 +36,11 @@ module Google
|
|
35
36
|
# 3. [Enable the Google Cloud OS Login API.](https://console.cloud.google.com/apis/library/oslogin.googleapis.com)
|
36
37
|
# 4. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/master/guides/authentication)
|
37
38
|
#
|
39
|
+
# ### Installation
|
40
|
+
# ```
|
41
|
+
# $ gem install google-cloud-os_login
|
42
|
+
# ```
|
43
|
+
#
|
38
44
|
# ### Next Steps
|
39
45
|
# - Read the [Google Cloud OS Login API Product documentation][Product Documentation]
|
40
46
|
# to learn more about the product and see How-to Guides.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Cloud
|
17
18
|
module Oslogin
|
@@ -38,7 +39,7 @@ module Google
|
|
38
39
|
# @return [String]
|
39
40
|
# A reference to the POSIX account to update. POSIX accounts are identified
|
40
41
|
# by the project ID they are associated with. A reference to the POSIX
|
41
|
-
# account is in format +users
|
42
|
+
# account is in format +users/\\{user}/projects/\\{project}+.
|
42
43
|
class DeletePosixAccountRequest; end
|
43
44
|
|
44
45
|
# A request message for deleting an SSH public key.
|
@@ -46,13 +47,13 @@ module Google
|
|
46
47
|
# @return [String]
|
47
48
|
# The fingerprint of the public key to update. Public keys are identified by
|
48
49
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
49
|
-
# +users
|
50
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
50
51
|
class DeleteSshPublicKeyRequest; end
|
51
52
|
|
52
53
|
# A request message for retrieving the login profile information for a user.
|
53
54
|
# @!attribute [rw] name
|
54
55
|
# @return [String]
|
55
|
-
# The unique ID for the user in format +users
|
56
|
+
# The unique ID for the user in format +users/\\{user}+.
|
56
57
|
class GetLoginProfileRequest; end
|
57
58
|
|
58
59
|
# A request message for retrieving an SSH public key.
|
@@ -60,13 +61,13 @@ module Google
|
|
60
61
|
# @return [String]
|
61
62
|
# The fingerprint of the public key to retrieve. Public keys are identified
|
62
63
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
63
|
-
# format +users
|
64
|
+
# format +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
64
65
|
class GetSshPublicKeyRequest; end
|
65
66
|
|
66
67
|
# A request message for importing an SSH public key.
|
67
68
|
# @!attribute [rw] parent
|
68
69
|
# @return [String]
|
69
|
-
# The unique ID for the user in format +users
|
70
|
+
# The unique ID for the user in format +users/\\{user}+.
|
70
71
|
# @!attribute [rw] ssh_public_key
|
71
72
|
# @return [Google::Cloud::Oslogin::Common::SshPublicKey]
|
72
73
|
# The SSH public key and expiration time.
|
@@ -86,7 +87,7 @@ module Google
|
|
86
87
|
# @return [String]
|
87
88
|
# The fingerprint of the public key to update. Public keys are identified by
|
88
89
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
89
|
-
# +users
|
90
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
90
91
|
# @!attribute [rw] ssh_public_key
|
91
92
|
# @return [Google::Cloud::Oslogin::Common::SshPublicKey]
|
92
93
|
# The SSH public key and expiration time.
|
@@ -12,6 +12,7 @@
|
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
|
+
|
15
16
|
module Google
|
16
17
|
module Protobuf
|
17
18
|
# +FieldMask+ represents a set of symbolic field paths, for example:
|
@@ -215,6 +216,12 @@ module Google
|
|
215
216
|
#
|
216
217
|
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
217
218
|
# paths.
|
219
|
+
#
|
220
|
+
# == Field Mask Verification
|
221
|
+
#
|
222
|
+
# The implementation of any API method which has a FieldMask type field in the
|
223
|
+
# request should verify the included field paths, and return an
|
224
|
+
# +INVALID_ARGUMENT+ error if any path is duplicated or unmappable.
|
218
225
|
# @!attribute [rw] paths
|
219
226
|
# @return [Array<String>]
|
220
227
|
# The set of field mask paths.
|
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -39,6 +40,7 @@ module Google
|
|
39
40
|
# @!attribute [r] os_login_service_stub
|
40
41
|
# @return [Google::Cloud::Oslogin::V1beta::OsLoginService::Stub]
|
41
42
|
class OsLoginServiceClient
|
43
|
+
# @private
|
42
44
|
attr_reader :os_login_service_stub
|
43
45
|
|
44
46
|
# The default address of the service.
|
@@ -252,7 +254,7 @@ module Google
|
|
252
254
|
# @param name [String]
|
253
255
|
# A reference to the POSIX account to update. POSIX accounts are identified
|
254
256
|
# by the project ID they are associated with. A reference to the POSIX
|
255
|
-
# account is in format +users
|
257
|
+
# account is in format +users/\\{user}/projects/\\{project}+.
|
256
258
|
# @param options [Google::Gax::CallOptions]
|
257
259
|
# Overrides the default settings for this call, e.g, timeout,
|
258
260
|
# retries, etc.
|
@@ -284,7 +286,7 @@ module Google
|
|
284
286
|
# @param name [String]
|
285
287
|
# The fingerprint of the public key to update. Public keys are identified by
|
286
288
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
287
|
-
# +users
|
289
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
288
290
|
# @param options [Google::Gax::CallOptions]
|
289
291
|
# Overrides the default settings for this call, e.g, timeout,
|
290
292
|
# retries, etc.
|
@@ -315,7 +317,7 @@ module Google
|
|
315
317
|
# on Google Compute Engine.
|
316
318
|
#
|
317
319
|
# @param name [String]
|
318
|
-
# The unique ID for the user in format +users
|
320
|
+
# The unique ID for the user in format +users/\\{user}+.
|
319
321
|
# @param options [Google::Gax::CallOptions]
|
320
322
|
# Overrides the default settings for this call, e.g, timeout,
|
321
323
|
# retries, etc.
|
@@ -347,7 +349,7 @@ module Google
|
|
347
349
|
# @param name [String]
|
348
350
|
# The fingerprint of the public key to retrieve. Public keys are identified
|
349
351
|
# by their SHA-256 fingerprint. The fingerprint of the public key is in
|
350
|
-
# format +users
|
352
|
+
# format +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
351
353
|
# @param options [Google::Gax::CallOptions]
|
352
354
|
# Overrides the default settings for this call, e.g, timeout,
|
353
355
|
# retries, etc.
|
@@ -379,7 +381,7 @@ module Google
|
|
379
381
|
# login profile.
|
380
382
|
#
|
381
383
|
# @param parent [String]
|
382
|
-
# The unique ID for the user in format +users
|
384
|
+
# The unique ID for the user in format +users/\\{user}+.
|
383
385
|
# @param ssh_public_key [Google::Cloud::Oslogin::Common::SshPublicKey | Hash]
|
384
386
|
# The SSH public key and expiration time.
|
385
387
|
# A hash of the same form as `Google::Cloud::Oslogin::Common::SshPublicKey`
|
@@ -425,7 +427,7 @@ module Google
|
|
425
427
|
# @param name [String]
|
426
428
|
# The fingerprint of the public key to update. Public keys are identified by
|
427
429
|
# their SHA-256 fingerprint. The fingerprint of the public key is in format
|
428
|
-
# +users
|
430
|
+
# +users/\\{user}/sshPublicKeys/\\{fingerprint}+.
|
429
431
|
# @param ssh_public_key [Google::Cloud::Oslogin::Common::SshPublicKey | Hash]
|
430
432
|
# The SSH public key and expiration time.
|
431
433
|
# A hash of the same form as `Google::Cloud::Oslogin::Common::SshPublicKey`
|
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.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|