@@ -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