google-apis-oslogin_v1 0.26.0 → 0.28.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e320df9c2d6d9fc2c599de7919770ab3fd05cf25251596b4f41e98a1ed93221
|
|
4
|
+
data.tar.gz: 36c8f31ac2ce0763ea45f9ebd25a704bfba47c4e01e9d02e49a813a76cf915e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3dc36b8f6796f7e6b9887b9183771b5d610f467290f9078a417ad1c6db166cbf0970f3797b6d70e63b675fab482bd2edb001c18bf688dd1aaa15e3f04591522
|
|
7
|
+
data.tar.gz: 8a4389d39efe10ddb9afa88655760201bb54d7a9738dd2450d2a40ecaa37aa43e2122d62030b999f47c8955df0c866f4d7d622ef9aa57cae45d2ed0c9147992d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-oslogin_v1
|
|
2
2
|
|
|
3
|
+
### v0.28.0 (2025-12-07)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20251202
|
|
6
|
+
|
|
7
|
+
### v0.27.0 (2025-09-28)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20250921
|
|
10
|
+
|
|
3
11
|
### v0.26.0 (2025-05-25)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20250518
|
|
@@ -177,6 +177,88 @@ module Google
|
|
|
177
177
|
end
|
|
178
178
|
end
|
|
179
179
|
|
|
180
|
+
# A request message for creating a POSIX account entry.
|
|
181
|
+
class ProvisionPosixAccountRequest
|
|
182
|
+
include Google::Apis::Core::Hashable
|
|
183
|
+
|
|
184
|
+
# Optional. The regions to wait for a POSIX account to be written to before
|
|
185
|
+
# returning a response. If unspecified, defaults to all regions. Regions are
|
|
186
|
+
# listed at https://cloud.google.com/about/locations#region.
|
|
187
|
+
# Corresponds to the JSON property `regions`
|
|
188
|
+
# @return [Array<String>]
|
|
189
|
+
attr_accessor :regions
|
|
190
|
+
|
|
191
|
+
def initialize(**args)
|
|
192
|
+
update!(**args)
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Update properties of this object
|
|
196
|
+
def update!(**args)
|
|
197
|
+
@regions = args[:regions] if args.key?(:regions)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# A request message for signing an SSH public key.
|
|
202
|
+
class SignSshPublicKeyRequest
|
|
203
|
+
include Google::Apis::Core::Hashable
|
|
204
|
+
|
|
205
|
+
# The App Engine instance to sign the SSH public key for. Expected format: apps/`
|
|
206
|
+
# app`/services/`service`/versions/`version`/instances/`instance`
|
|
207
|
+
# Corresponds to the JSON property `appEngineInstance`
|
|
208
|
+
# @return [String]
|
|
209
|
+
attr_accessor :app_engine_instance
|
|
210
|
+
|
|
211
|
+
# The Compute instance to sign the SSH public key for. Expected format: projects/
|
|
212
|
+
# `project`/zones/`zone`/instances/`numeric_instance_id`
|
|
213
|
+
# Corresponds to the JSON property `computeInstance`
|
|
214
|
+
# @return [String]
|
|
215
|
+
attr_accessor :compute_instance
|
|
216
|
+
|
|
217
|
+
# Optional. The service account for the instance. If the instance in question
|
|
218
|
+
# does not have a service account, this field should be left empty. If the wrong
|
|
219
|
+
# service account is provided, this operation will return a signed certificate
|
|
220
|
+
# that will not be accepted by the VM.
|
|
221
|
+
# Corresponds to the JSON property `serviceAccount`
|
|
222
|
+
# @return [String]
|
|
223
|
+
attr_accessor :service_account
|
|
224
|
+
|
|
225
|
+
# Required. The SSH public key to sign.
|
|
226
|
+
# Corresponds to the JSON property `sshPublicKey`
|
|
227
|
+
# @return [String]
|
|
228
|
+
attr_accessor :ssh_public_key
|
|
229
|
+
|
|
230
|
+
def initialize(**args)
|
|
231
|
+
update!(**args)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Update properties of this object
|
|
235
|
+
def update!(**args)
|
|
236
|
+
@app_engine_instance = args[:app_engine_instance] if args.key?(:app_engine_instance)
|
|
237
|
+
@compute_instance = args[:compute_instance] if args.key?(:compute_instance)
|
|
238
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
|
239
|
+
@ssh_public_key = args[:ssh_public_key] if args.key?(:ssh_public_key)
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# The response message for signing an SSH public key.
|
|
244
|
+
class SignSshPublicKeyResponse
|
|
245
|
+
include Google::Apis::Core::Hashable
|
|
246
|
+
|
|
247
|
+
# The signed SSH public key to use in the SSH handshake.
|
|
248
|
+
# Corresponds to the JSON property `signedSshPublicKey`
|
|
249
|
+
# @return [String]
|
|
250
|
+
attr_accessor :signed_ssh_public_key
|
|
251
|
+
|
|
252
|
+
def initialize(**args)
|
|
253
|
+
update!(**args)
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Update properties of this object
|
|
257
|
+
def update!(**args)
|
|
258
|
+
@signed_ssh_public_key = args[:signed_ssh_public_key] if args.key?(:signed_ssh_public_key)
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
180
262
|
# The SSH public key information associated with a Google account.
|
|
181
263
|
class SshPublicKey
|
|
182
264
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module OsloginV1
|
|
18
18
|
# Version of the google-apis-oslogin_v1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.28.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20251202"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -46,6 +46,24 @@ module Google
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
class ProvisionPosixAccountRequest
|
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
+
|
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
class SignSshPublicKeyRequest
|
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
57
|
+
|
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class SignSshPublicKeyResponse
|
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
+
|
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
+
end
|
|
66
|
+
|
|
49
67
|
class SshPublicKey
|
|
50
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
69
|
|
|
@@ -95,6 +113,30 @@ module Google
|
|
|
95
113
|
end
|
|
96
114
|
end
|
|
97
115
|
|
|
116
|
+
class ProvisionPosixAccountRequest
|
|
117
|
+
# @private
|
|
118
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
119
|
+
collection :regions, as: 'regions'
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
class SignSshPublicKeyRequest
|
|
124
|
+
# @private
|
|
125
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
126
|
+
property :app_engine_instance, as: 'appEngineInstance'
|
|
127
|
+
property :compute_instance, as: 'computeInstance'
|
|
128
|
+
property :service_account, as: 'serviceAccount'
|
|
129
|
+
property :ssh_public_key, as: 'sshPublicKey'
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class SignSshPublicKeyResponse
|
|
134
|
+
# @private
|
|
135
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
136
|
+
property :signed_ssh_public_key, as: 'signedSshPublicKey'
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
98
140
|
class SshPublicKey
|
|
99
141
|
# @private
|
|
100
142
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -51,6 +51,41 @@ module Google
|
|
|
51
51
|
@batch_path = 'batch'
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
# Signs an SSH public key for a user to authenticate to a virtual machine on
|
|
55
|
+
# Google Compute Engine.
|
|
56
|
+
# @param [String] parent
|
|
57
|
+
# Required. The parent for the signing request. Format: projects/`project`/
|
|
58
|
+
# locations/`location`
|
|
59
|
+
# @param [Google::Apis::OsloginV1::SignSshPublicKeyRequest] sign_ssh_public_key_request_object
|
|
60
|
+
# @param [String] fields
|
|
61
|
+
# Selector specifying which fields to include in a partial response.
|
|
62
|
+
# @param [String] quota_user
|
|
63
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
64
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
65
|
+
# @param [Google::Apis::RequestOptions] options
|
|
66
|
+
# Request-specific options
|
|
67
|
+
#
|
|
68
|
+
# @yield [result, err] Result & error if block supplied
|
|
69
|
+
# @yieldparam result [Google::Apis::OsloginV1::SignSshPublicKeyResponse] parsed result object
|
|
70
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
71
|
+
#
|
|
72
|
+
# @return [Google::Apis::OsloginV1::SignSshPublicKeyResponse]
|
|
73
|
+
#
|
|
74
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
75
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
76
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
77
|
+
def sign_location_ssh_public_key(parent, sign_ssh_public_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
78
|
+
command = make_simple_command(:post, 'v1/{+parent}:signSshPublicKey', options)
|
|
79
|
+
command.request_representation = Google::Apis::OsloginV1::SignSshPublicKeyRequest::Representation
|
|
80
|
+
command.request_object = sign_ssh_public_key_request_object
|
|
81
|
+
command.response_representation = Google::Apis::OsloginV1::SignSshPublicKeyResponse::Representation
|
|
82
|
+
command.response_class = Google::Apis::OsloginV1::SignSshPublicKeyResponse
|
|
83
|
+
command.params['parent'] = parent unless parent.nil?
|
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
86
|
+
execute_or_queue_command(command, &block)
|
|
87
|
+
end
|
|
88
|
+
|
|
54
89
|
# Retrieves the profile information used for logging in to a virtual machine on
|
|
55
90
|
# Google Compute Engine.
|
|
56
91
|
# @param [String] name
|
|
@@ -163,6 +198,42 @@ module Google
|
|
|
163
198
|
execute_or_queue_command(command, &block)
|
|
164
199
|
end
|
|
165
200
|
|
|
201
|
+
# Adds a POSIX account and returns the profile information. Default POSIX
|
|
202
|
+
# account information is set when no username and UID exist as part of the login
|
|
203
|
+
# profile.
|
|
204
|
+
# @param [String] name
|
|
205
|
+
# Required. The unique ID for the user in format `users/`user`/projects/`project`
|
|
206
|
+
# `.
|
|
207
|
+
# @param [Google::Apis::OsloginV1::ProvisionPosixAccountRequest] provision_posix_account_request_object
|
|
208
|
+
# @param [String] fields
|
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
|
210
|
+
# @param [String] quota_user
|
|
211
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
212
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
213
|
+
# @param [Google::Apis::RequestOptions] options
|
|
214
|
+
# Request-specific options
|
|
215
|
+
#
|
|
216
|
+
# @yield [result, err] Result & error if block supplied
|
|
217
|
+
# @yieldparam result [Google::Apis::OsloginV1::PosixAccount] parsed result object
|
|
218
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
219
|
+
#
|
|
220
|
+
# @return [Google::Apis::OsloginV1::PosixAccount]
|
|
221
|
+
#
|
|
222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
225
|
+
def provision_project_posix_account(name, provision_posix_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
226
|
+
command = make_simple_command(:post, 'v1/{+name}', options)
|
|
227
|
+
command.request_representation = Google::Apis::OsloginV1::ProvisionPosixAccountRequest::Representation
|
|
228
|
+
command.request_object = provision_posix_account_request_object
|
|
229
|
+
command.response_representation = Google::Apis::OsloginV1::PosixAccount::Representation
|
|
230
|
+
command.response_class = Google::Apis::OsloginV1::PosixAccount
|
|
231
|
+
command.params['name'] = name unless name.nil?
|
|
232
|
+
command.query['fields'] = fields unless fields.nil?
|
|
233
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
234
|
+
execute_or_queue_command(command, &block)
|
|
235
|
+
end
|
|
236
|
+
|
|
166
237
|
# Create an SSH public key
|
|
167
238
|
# @param [String] parent
|
|
168
239
|
# Required. The unique ID for the user in format `users/`user``.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-oslogin_v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.28.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-oslogin_v1/v0.28.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-oslogin_v1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|