Class: Google::Apis::OsloginV1::CloudOSLoginService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::OsloginV1::CloudOSLoginService
- Defined in:
- generated/google/apis/oslogin_v1/service.rb
Overview
Cloud OS Login API
Manages OS login configuration for Google account users.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#delete_user_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::Empty
Deletes a POSIX account.
-
#delete_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::Empty
Deletes an SSH public key.
-
#get_user_login_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::LoginProfile
Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.
-
#get_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::SshPublicKey
Retrieves an SSH public key.
-
#import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::ImportSshPublicKeyResponse
Adds an SSH public key and returns the profile information.
-
#initialize ⇒ CloudOSLoginService
constructor
A new instance of CloudOSLoginService.
-
#patch_user_ssh_public_key(name, ssh_public_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::SshPublicKey
Updates an SSH public key and returns the profile information.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ CloudOSLoginService
Returns a new instance of CloudOSLoginService
45 46 47 48 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 45 def initialize super('https://oslogin.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
38 39 40 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 38 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
43 44 45 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 43 def quota_user @quota_user end |
Instance Method Details
#delete_user_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::Empty
Deletes a POSIX account.
141 142 143 144 145 146 147 148 149 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 141 def delete_user_project(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::OsloginV1::Empty::Representation command.response_class = Google::Apis::OsloginV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::Empty
Deletes an SSH public key.
173 174 175 176 177 178 179 180 181 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 173 def delete_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v1/{+name}', ) command.response_representation = Google::Apis::OsloginV1::Empty::Representation command.response_class = Google::Apis::OsloginV1::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_user_login_profile(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::LoginProfile
Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.
71 72 73 74 75 76 77 78 79 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 71 def get_user_login_profile(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}/loginProfile', ) command.response_representation = Google::Apis::OsloginV1::LoginProfile::Representation command.response_class = Google::Apis::OsloginV1::LoginProfile command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::SshPublicKey
Retrieves an SSH public key.
205 206 207 208 209 210 211 212 213 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 205 def get_user_ssh_public_key(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+name}', ) command.response_representation = Google::Apis::OsloginV1::SshPublicKey::Representation command.response_class = Google::Apis::OsloginV1::SshPublicKey command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::ImportSshPublicKeyResponse
Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.
106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 106 def import_user_ssh_public_key(parent, ssh_public_key_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v1/{+parent}:importSshPublicKey', ) command.request_representation = Google::Apis::OsloginV1::SshPublicKey::Representation command.request_object = ssh_public_key_object command.response_representation = Google::Apis::OsloginV1::ImportSshPublicKeyResponse::Representation command.response_class = Google::Apis::OsloginV1::ImportSshPublicKeyResponse command.params['parent'] = parent unless parent.nil? command.query['projectId'] = project_id unless project_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_user_ssh_public_key(name, ssh_public_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::OsloginV1::SshPublicKey
Updates an SSH public key and returns the profile information. This method supports patch semantics.
241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'generated/google/apis/oslogin_v1/service.rb', line 241 def patch_user_ssh_public_key(name, ssh_public_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v1/{+name}', ) command.request_representation = Google::Apis::OsloginV1::SshPublicKey::Representation command.request_object = ssh_public_key_object command.response_representation = Google::Apis::OsloginV1::SshPublicKey::Representation command.response_class = Google::Apis::OsloginV1::SshPublicKey command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |