Skip to content

Commit 1aae157

Browse files
feat: Automated regeneration of oslogin v1 client
1 parent 02e4a01 commit 1aae157

File tree

6 files changed

+140
-2
lines changed

6 files changed

+140
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310372,13 +310372,22 @@
310372310372
"/oslogin:v1/PosixAccount/systemId": system_id
310373310373
"/oslogin:v1/PosixAccount/uid": uid
310374310374
"/oslogin:v1/PosixAccount/username": username
310375+
"/oslogin:v1/SignSshPublicKeyRequest": sign_ssh_public_key_request
310376+
"/oslogin:v1/SignSshPublicKeyRequest/appEngineInstance": app_engine_instance
310377+
"/oslogin:v1/SignSshPublicKeyRequest/computeInstance": compute_instance
310378+
"/oslogin:v1/SignSshPublicKeyRequest/serviceAccount": service_account
310379+
"/oslogin:v1/SignSshPublicKeyRequest/sshPublicKey": ssh_public_key
310380+
"/oslogin:v1/SignSshPublicKeyResponse": sign_ssh_public_key_response
310381+
"/oslogin:v1/SignSshPublicKeyResponse/signedSshPublicKey": signed_ssh_public_key
310375310382
"/oslogin:v1/SshPublicKey": ssh_public_key
310376310383
"/oslogin:v1/SshPublicKey/expirationTimeUsec": expiration_time_usec
310377310384
"/oslogin:v1/SshPublicKey/fingerprint": fingerprint
310378310385
"/oslogin:v1/SshPublicKey/key": key
310379310386
"/oslogin:v1/SshPublicKey/name": name
310380310387
"/oslogin:v1/fields": fields
310381310388
"/oslogin:v1/key": key
310389+
"/oslogin:v1/oslogin.projects.locations.signSshPublicKey": sign_location_ssh_public_key
310390+
"/oslogin:v1/oslogin.projects.locations.signSshPublicKey/parent": parent
310382310391
"/oslogin:v1/oslogin.users.getLoginProfile": get_user_login_profile
310383310392
"/oslogin:v1/oslogin.users.getLoginProfile/name": name
310384310393
"/oslogin:v1/oslogin.users.getLoginProfile/projectId": project_id

generated/google-apis-oslogin_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-oslogin_v1
22

3+
### v0.27.0 (2025-09-28)
4+
5+
* Regenerated from discovery document revision 20250921
6+
37
### v0.26.0 (2025-05-25)
48

59
* Regenerated from discovery document revision 20250518

generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/classes.rb

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,67 @@ def update!(**args)
177177
end
178178
end
179179

180+
# A request message for signing an SSH public key.
181+
class SignSshPublicKeyRequest
182+
include Google::Apis::Core::Hashable
183+
184+
# The App Engine instance to sign the SSH public key for. Expected format: apps/`
185+
# app`/services/`service`/versions/`version`/instances/`instance`
186+
# Corresponds to the JSON property `appEngineInstance`
187+
# @return [String]
188+
attr_accessor :app_engine_instance
189+
190+
# The Compute instance to sign the SSH public key for. Expected format: projects/
191+
# `project`/zones/`zone`/instances/`numeric_instance_id`
192+
# Corresponds to the JSON property `computeInstance`
193+
# @return [String]
194+
attr_accessor :compute_instance
195+
196+
# Optional. The service account for the instance. If the instance in question
197+
# does not have a service account, this field should be left empty. If the wrong
198+
# service account is provided, this operation will return a signed certificate
199+
# that will not be accepted by the VM.
200+
# Corresponds to the JSON property `serviceAccount`
201+
# @return [String]
202+
attr_accessor :service_account
203+
204+
# Required. The SSH public key to sign.
205+
# Corresponds to the JSON property `sshPublicKey`
206+
# @return [String]
207+
attr_accessor :ssh_public_key
208+
209+
def initialize(**args)
210+
update!(**args)
211+
end
212+
213+
# Update properties of this object
214+
def update!(**args)
215+
@app_engine_instance = args[:app_engine_instance] if args.key?(:app_engine_instance)
216+
@compute_instance = args[:compute_instance] if args.key?(:compute_instance)
217+
@service_account = args[:service_account] if args.key?(:service_account)
218+
@ssh_public_key = args[:ssh_public_key] if args.key?(:ssh_public_key)
219+
end
220+
end
221+
222+
# The response message for signing an SSH public key.
223+
class SignSshPublicKeyResponse
224+
include Google::Apis::Core::Hashable
225+
226+
# The signed SSH public key to use in the SSH handshake.
227+
# Corresponds to the JSON property `signedSshPublicKey`
228+
# @return [String]
229+
attr_accessor :signed_ssh_public_key
230+
231+
def initialize(**args)
232+
update!(**args)
233+
end
234+
235+
# Update properties of this object
236+
def update!(**args)
237+
@signed_ssh_public_key = args[:signed_ssh_public_key] if args.key?(:signed_ssh_public_key)
238+
end
239+
end
240+
180241
# The SSH public key information associated with a Google account.
181242
class SshPublicKey
182243
include Google::Apis::Core::Hashable

generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OsloginV1
1818
# Version of the google-apis-oslogin_v1 gem
19-
GEM_VERSION = "0.26.0"
19+
GEM_VERSION = "0.27.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250518"
25+
REVISION = "20250921"
2626
end
2727
end
2828
end

generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/representations.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
4646
include Google::Apis::Core::JsonObjectSupport
4747
end
4848

49+
class SignSshPublicKeyRequest
50+
class Representation < Google::Apis::Core::JsonRepresentation; end
51+
52+
include Google::Apis::Core::JsonObjectSupport
53+
end
54+
55+
class SignSshPublicKeyResponse
56+
class Representation < Google::Apis::Core::JsonRepresentation; end
57+
58+
include Google::Apis::Core::JsonObjectSupport
59+
end
60+
4961
class SshPublicKey
5062
class Representation < Google::Apis::Core::JsonRepresentation; end
5163

@@ -95,6 +107,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
95107
end
96108
end
97109

110+
class SignSshPublicKeyRequest
111+
# @private
112+
class Representation < Google::Apis::Core::JsonRepresentation
113+
property :app_engine_instance, as: 'appEngineInstance'
114+
property :compute_instance, as: 'computeInstance'
115+
property :service_account, as: 'serviceAccount'
116+
property :ssh_public_key, as: 'sshPublicKey'
117+
end
118+
end
119+
120+
class SignSshPublicKeyResponse
121+
# @private
122+
class Representation < Google::Apis::Core::JsonRepresentation
123+
property :signed_ssh_public_key, as: 'signedSshPublicKey'
124+
end
125+
end
126+
98127
class SshPublicKey
99128
# @private
100129
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-oslogin_v1/lib/google/apis/oslogin_v1/service.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,41 @@ def initialize
5151
@batch_path = 'batch'
5252
end
5353

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+
5489
# Retrieves the profile information used for logging in to a virtual machine on
5590
# Google Compute Engine.
5691
# @param [String] name

0 commit comments

Comments
 (0)