google-apis-oslogin_v1alpha 0.6.0 → 0.10.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/CHANGELOG.md +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/oslogin_v1alpha/classes.rb +82 -0
- data/lib/google/apis/oslogin_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/oslogin_v1alpha/representations.rb +46 -0
- data/lib/google/apis/oslogin_v1alpha/service.rb +33 -0
- data/lib/google/apis/oslogin_v1alpha.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862e8b6ffa566bbf59badc0e29de4f9bd2aadd5b04d865bfac267f08a242ac9a
|
4
|
+
data.tar.gz: df13c6f32ea598b1b997fc07c15dc260340a3563574f435c5d2991281139e22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeaff15640c3b845a50c8a282b0f86c4e9f67c59dd8a741f52b4d4ee3bf3e9ea14e779441d807d65f136d748c589a567b8ad60fdc40b135f729d0aaa5ffc63f0
|
7
|
+
data.tar.gz: cf5928e3c3c2d83635b0330f6a4c8ea4f4b681e7f050dc77960ddc3e587fd31ced83e3f08b088fec02fae4e2da687ec50223a56bfaf857f9bae05439558e538a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-oslogin_v1alpha
|
2
2
|
|
3
|
+
### v0.10.0 (2021-12-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211203
|
6
|
+
|
7
|
+
### v0.9.0 (2021-10-21)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211015
|
10
|
+
|
11
|
+
### v0.8.0 (2021-08-18)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210813
|
14
|
+
|
15
|
+
### v0.7.0 (2021-08-04)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210731
|
18
|
+
|
3
19
|
### v0.6.0 (2021-06-29)
|
4
20
|
|
5
21
|
* Regenerated using generator version 0.4.0
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Oslogin service in particular.)
|
67
67
|
|
@@ -80,6 +80,11 @@ module Google
|
|
80
80
|
# @return [Array<Google::Apis::OsloginV1alpha::PosixAccount>]
|
81
81
|
attr_accessor :posix_accounts
|
82
82
|
|
83
|
+
# The registered security key credentials for a user.
|
84
|
+
# Corresponds to the JSON property `securityKeys`
|
85
|
+
# @return [Array<Google::Apis::OsloginV1alpha::SecurityKey>]
|
86
|
+
attr_accessor :security_keys
|
87
|
+
|
83
88
|
# A map from SSH public key fingerprint to the associated key object.
|
84
89
|
# Corresponds to the JSON property `sshPublicKeys`
|
85
90
|
# @return [Hash<String,Google::Apis::OsloginV1alpha::SshPublicKey>]
|
@@ -93,6 +98,7 @@ module Google
|
|
93
98
|
def update!(**args)
|
94
99
|
@name = args[:name] if args.key?(:name)
|
95
100
|
@posix_accounts = args[:posix_accounts] if args.key?(:posix_accounts)
|
101
|
+
@security_keys = args[:security_keys] if args.key?(:security_keys)
|
96
102
|
@ssh_public_keys = args[:ssh_public_keys] if args.key?(:ssh_public_keys)
|
97
103
|
end
|
98
104
|
end
|
@@ -178,6 +184,44 @@ module Google
|
|
178
184
|
end
|
179
185
|
end
|
180
186
|
|
187
|
+
# The credential information for a Google registered security key.
|
188
|
+
class SecurityKey
|
189
|
+
include Google::Apis::Core::Hashable
|
190
|
+
|
191
|
+
# Hardware-backed private key text in SSH format.
|
192
|
+
# Corresponds to the JSON property `privateKey`
|
193
|
+
# @return [String]
|
194
|
+
attr_accessor :private_key
|
195
|
+
|
196
|
+
# Public key text in SSH format, defined by [RFC4253]("https://www.ietf.org/rfc/
|
197
|
+
# rfc4253.txt") section 6.6.
|
198
|
+
# Corresponds to the JSON property `publicKey`
|
199
|
+
# @return [String]
|
200
|
+
attr_accessor :public_key
|
201
|
+
|
202
|
+
# Security key information specific to the U2F protocol.
|
203
|
+
# Corresponds to the JSON property `universalTwoFactor`
|
204
|
+
# @return [Google::Apis::OsloginV1alpha::UniversalTwoFactor]
|
205
|
+
attr_accessor :universal_two_factor
|
206
|
+
|
207
|
+
# Security key information specific to the Web Authentication protocol.
|
208
|
+
# Corresponds to the JSON property `webAuthn`
|
209
|
+
# @return [Google::Apis::OsloginV1alpha::WebAuthn]
|
210
|
+
attr_accessor :web_authn
|
211
|
+
|
212
|
+
def initialize(**args)
|
213
|
+
update!(**args)
|
214
|
+
end
|
215
|
+
|
216
|
+
# Update properties of this object
|
217
|
+
def update!(**args)
|
218
|
+
@private_key = args[:private_key] if args.key?(:private_key)
|
219
|
+
@public_key = args[:public_key] if args.key?(:public_key)
|
220
|
+
@universal_two_factor = args[:universal_two_factor] if args.key?(:universal_two_factor)
|
221
|
+
@web_authn = args[:web_authn] if args.key?(:web_authn)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
181
225
|
# The SSH public key information associated with a Google account.
|
182
226
|
class SshPublicKey
|
183
227
|
include Google::Apis::Core::Hashable
|
@@ -214,6 +258,44 @@ module Google
|
|
214
258
|
@name = args[:name] if args.key?(:name)
|
215
259
|
end
|
216
260
|
end
|
261
|
+
|
262
|
+
# Security key information specific to the U2F protocol.
|
263
|
+
class UniversalTwoFactor
|
264
|
+
include Google::Apis::Core::Hashable
|
265
|
+
|
266
|
+
# Application ID for the U2F protocol.
|
267
|
+
# Corresponds to the JSON property `appId`
|
268
|
+
# @return [String]
|
269
|
+
attr_accessor :app_id
|
270
|
+
|
271
|
+
def initialize(**args)
|
272
|
+
update!(**args)
|
273
|
+
end
|
274
|
+
|
275
|
+
# Update properties of this object
|
276
|
+
def update!(**args)
|
277
|
+
@app_id = args[:app_id] if args.key?(:app_id)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# Security key information specific to the Web Authentication protocol.
|
282
|
+
class WebAuthn
|
283
|
+
include Google::Apis::Core::Hashable
|
284
|
+
|
285
|
+
# Relying party ID for Web Authentication.
|
286
|
+
# Corresponds to the JSON property `rpId`
|
287
|
+
# @return [String]
|
288
|
+
attr_accessor :rp_id
|
289
|
+
|
290
|
+
def initialize(**args)
|
291
|
+
update!(**args)
|
292
|
+
end
|
293
|
+
|
294
|
+
# Update properties of this object
|
295
|
+
def update!(**args)
|
296
|
+
@rp_id = args[:rp_id] if args.key?(:rp_id)
|
297
|
+
end
|
298
|
+
end
|
217
299
|
end
|
218
300
|
end
|
219
301
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module OsloginV1alpha
|
18
18
|
# Version of the google-apis-oslogin_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211203"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,12 +46,30 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class SecurityKey
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class SshPublicKey
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
52
58
|
include Google::Apis::Core::JsonObjectSupport
|
53
59
|
end
|
54
60
|
|
61
|
+
class UniversalTwoFactor
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class WebAuthn
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
55
73
|
class Empty
|
56
74
|
# @private
|
57
75
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -73,6 +91,8 @@ module Google
|
|
73
91
|
property :name, as: 'name'
|
74
92
|
collection :posix_accounts, as: 'posixAccounts', class: Google::Apis::OsloginV1alpha::PosixAccount, decorator: Google::Apis::OsloginV1alpha::PosixAccount::Representation
|
75
93
|
|
94
|
+
collection :security_keys, as: 'securityKeys', class: Google::Apis::OsloginV1alpha::SecurityKey, decorator: Google::Apis::OsloginV1alpha::SecurityKey::Representation
|
95
|
+
|
76
96
|
hash :ssh_public_keys, as: 'sshPublicKeys', class: Google::Apis::OsloginV1alpha::SshPublicKey, decorator: Google::Apis::OsloginV1alpha::SshPublicKey::Representation
|
77
97
|
|
78
98
|
end
|
@@ -95,6 +115,18 @@ module Google
|
|
95
115
|
end
|
96
116
|
end
|
97
117
|
|
118
|
+
class SecurityKey
|
119
|
+
# @private
|
120
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
121
|
+
property :private_key, as: 'privateKey'
|
122
|
+
property :public_key, as: 'publicKey'
|
123
|
+
property :universal_two_factor, as: 'universalTwoFactor', class: Google::Apis::OsloginV1alpha::UniversalTwoFactor, decorator: Google::Apis::OsloginV1alpha::UniversalTwoFactor::Representation
|
124
|
+
|
125
|
+
property :web_authn, as: 'webAuthn', class: Google::Apis::OsloginV1alpha::WebAuthn, decorator: Google::Apis::OsloginV1alpha::WebAuthn::Representation
|
126
|
+
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
98
130
|
class SshPublicKey
|
99
131
|
# @private
|
100
132
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -104,6 +136,20 @@ module Google
|
|
104
136
|
property :name, as: 'name'
|
105
137
|
end
|
106
138
|
end
|
139
|
+
|
140
|
+
class UniversalTwoFactor
|
141
|
+
# @private
|
142
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
143
|
+
property :app_id, as: 'appId'
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
class WebAuthn
|
148
|
+
# @private
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
150
|
+
property :rp_id, as: 'rpId'
|
151
|
+
end
|
152
|
+
end
|
107
153
|
end
|
108
154
|
end
|
109
155
|
end
|
@@ -168,6 +168,39 @@ module Google
|
|
168
168
|
execute_or_queue_command(command, &block)
|
169
169
|
end
|
170
170
|
|
171
|
+
# Create an SSH public key
|
172
|
+
# @param [String] parent
|
173
|
+
# Required. The unique ID for the user in format `users/`user``.
|
174
|
+
# @param [Google::Apis::OsloginV1alpha::SshPublicKey] ssh_public_key_object
|
175
|
+
# @param [String] fields
|
176
|
+
# Selector specifying which fields to include in a partial response.
|
177
|
+
# @param [String] quota_user
|
178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
180
|
+
# @param [Google::Apis::RequestOptions] options
|
181
|
+
# Request-specific options
|
182
|
+
#
|
183
|
+
# @yield [result, err] Result & error if block supplied
|
184
|
+
# @yieldparam result [Google::Apis::OsloginV1alpha::SshPublicKey] parsed result object
|
185
|
+
# @yieldparam err [StandardError] error object if request failed
|
186
|
+
#
|
187
|
+
# @return [Google::Apis::OsloginV1alpha::SshPublicKey]
|
188
|
+
#
|
189
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
190
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
191
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
192
|
+
def create_user_ssh_public_key(parent, ssh_public_key_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
193
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}/sshPublicKeys', options)
|
194
|
+
command.request_representation = Google::Apis::OsloginV1alpha::SshPublicKey::Representation
|
195
|
+
command.request_object = ssh_public_key_object
|
196
|
+
command.response_representation = Google::Apis::OsloginV1alpha::SshPublicKey::Representation
|
197
|
+
command.response_class = Google::Apis::OsloginV1alpha::SshPublicKey
|
198
|
+
command.params['parent'] = parent unless parent.nil?
|
199
|
+
command.query['fields'] = fields unless fields.nil?
|
200
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
201
|
+
execute_or_queue_command(command, &block)
|
202
|
+
end
|
203
|
+
|
171
204
|
# Deletes an SSH public key.
|
172
205
|
# @param [String] name
|
173
206
|
# Required. The fingerprint of the public key to update. Public keys are
|
@@ -29,10 +29,10 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1alpha'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
|
35
|
-
# View your data across Google Cloud
|
35
|
+
# View your data across Google Cloud services and see the email address of your Google Account
|
36
36
|
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
37
37
|
|
38
38
|
# View and manage your Google Compute Engine resources
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-oslogin_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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: 2021-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1alpha/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1alpha/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1alpha/v0.10.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|