Skip to content

Commit 7eee468

Browse files
feat: Automated regeneration of oslogin v1 client (#25128)
Auto-created at 2025-12-07 10:23:36 +0000 using the toys pull request generator.
1 parent 39423c1 commit 7eee468

File tree

6 files changed

+81
-2
lines changed

6 files changed

+81
-2
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321693,6 +321693,9 @@
321693321693
"/oslogin:v1/PosixAccount/systemId": system_id
321694321694
"/oslogin:v1/PosixAccount/uid": uid
321695321695
"/oslogin:v1/PosixAccount/username": username
321696+
"/oslogin:v1/ProvisionPosixAccountRequest": provision_posix_account_request
321697+
"/oslogin:v1/ProvisionPosixAccountRequest/regions": regions
321698+
"/oslogin:v1/ProvisionPosixAccountRequest/regions/region": region
321696321699
"/oslogin:v1/SignSshPublicKeyRequest": sign_ssh_public_key_request
321697321700
"/oslogin:v1/SignSshPublicKeyRequest/appEngineInstance": app_engine_instance
321698321701
"/oslogin:v1/SignSshPublicKeyRequest/computeInstance": compute_instance
@@ -321719,6 +321722,8 @@
321719321722
"/oslogin:v1/oslogin.users.importSshPublicKey/regions": regions
321720321723
"/oslogin:v1/oslogin.users.projects.delete": delete_user_project
321721321724
"/oslogin:v1/oslogin.users.projects.delete/name": name
321725+
"/oslogin:v1/oslogin.users.projects.provisionPosixAccount": provision_project_posix_account
321726+
"/oslogin:v1/oslogin.users.projects.provisionPosixAccount/name": name
321722321727
"/oslogin:v1/oslogin.users.sshPublicKey.create": create_user_ssh_public_key
321723321728
"/oslogin:v1/oslogin.users.sshPublicKey.create/parent": parent
321724321729
"/oslogin:v1/oslogin.users.sshPublicKeys.create": create_user_ssh_public_key

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.28.0 (2025-12-07)
4+
5+
* Regenerated from discovery document revision 20251202
6+
37
### v0.27.0 (2025-09-28)
48

59
* Regenerated from discovery document revision 20250921

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

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

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+
180201
# A request message for signing an SSH public key.
181202
class SignSshPublicKeyRequest
182203
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.27.0"
19+
GEM_VERSION = "0.28.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 = "20250921"
25+
REVISION = "20251202"
2626
end
2727
end
2828
end

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

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

49+
class ProvisionPosixAccountRequest
50+
class Representation < Google::Apis::Core::JsonRepresentation; end
51+
52+
include Google::Apis::Core::JsonObjectSupport
53+
end
54+
4955
class SignSshPublicKeyRequest
5056
class Representation < Google::Apis::Core::JsonRepresentation; end
5157

@@ -107,6 +113,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
107113
end
108114
end
109115

116+
class ProvisionPosixAccountRequest
117+
# @private
118+
class Representation < Google::Apis::Core::JsonRepresentation
119+
collection :regions, as: 'regions'
120+
end
121+
end
122+
110123
class SignSshPublicKeyRequest
111124
# @private
112125
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,42 @@ def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block
198198
execute_or_queue_command(command, &block)
199199
end
200200

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+
201237
# Create an SSH public key
202238
# @param [String] parent
203239
# Required. The unique ID for the user in format `users/`user``.

0 commit comments

Comments
 (0)