google_api_os_login v0.0.1 GoogleApi.OSLogin.V1alpha.Api.Users View Source

API calls for all endpoints tagged Users.

Link to this section Summary

Functions

Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine

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

Updates an SSH public key and returns the profile information. This method supports patch semantics

Link to this section Functions

Link to this function oslogin_users_get_login_profile(connection, name, opts \\ []) View Source
oslogin_users_get_login_profile(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.OSLogin.V1alpha.Model.LoginProfile.t} |
  {:error, Tesla.Env.t}

Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.

Parameters

  • connection (GoogleApi.OSLogin.V1alpha.Connection): Connection to server
  • name (String): The unique ID for the user in format `users/{user}`.
  • opts (KeywordList): [optional] Optional parameters

    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.

Returns

{:ok, %GoogleApi.OSLogin.V1alpha.Model.LoginProfile{}} on success {:error, info} on failure

Link to this function oslogin_users_import_ssh_public_key(connection, parent, opts \\ []) View Source
oslogin_users_import_ssh_public_key(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.OSLogin.V1alpha.Model.ImportSshPublicKeyResponse.t} |
  {:error, Tesla.Env.t}

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.

Parameters

  • connection (GoogleApi.OSLogin.V1alpha.Connection): Connection to server
  • parent (String): The unique ID for the user in format `users/{user}`.
  • opts (KeywordList): [optional] Optional parameters

    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :body (SshPublicKey):

Returns

{:ok, %GoogleApi.OSLogin.V1alpha.Model.ImportSshPublicKeyResponse{}} on success {:error, info} on failure

Link to this function oslogin_users_ssh_public_keys_delete(connection, name, opts \\ []) View Source
oslogin_users_ssh_public_keys_delete(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.OSLogin.V1alpha.Model.Empty.t} |
  {:error, Tesla.Env.t}

Deletes an SSH public key.

Parameters

  • connection (GoogleApi.OSLogin.V1alpha.Connection): Connection to server
  • name (String): The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
  • opts (KeywordList): [optional] Optional parameters

    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.

Returns

{:ok, %GoogleApi.OSLogin.V1alpha.Model.Empty{}} on success {:error, info} on failure

Link to this function oslogin_users_ssh_public_keys_get(connection, name, opts \\ []) View Source
oslogin_users_ssh_public_keys_get(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.OSLogin.V1alpha.Model.SshPublicKey.t} |
  {:error, Tesla.Env.t}

Retrieves an SSH public key.

Parameters

  • connection (GoogleApi.OSLogin.V1alpha.Connection): Connection to server
  • name (String): The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
  • opts (KeywordList): [optional] Optional parameters

    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.

Returns

{:ok, %GoogleApi.OSLogin.V1alpha.Model.SshPublicKey{}} on success {:error, info} on failure

Link to this function oslogin_users_ssh_public_keys_patch(connection, name, opts \\ []) View Source
oslogin_users_ssh_public_keys_patch(Tesla.Env.client, String.t, keyword) ::
  {:ok, GoogleApi.OSLogin.V1alpha.Model.SshPublicKey.t} |
  {:error, Tesla.Env.t}

Updates an SSH public key and returns the profile information. This method supports patch semantics.

Parameters

  • connection (GoogleApi.OSLogin.V1alpha.Connection): Connection to server
  • name (String): The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the public key is in format `users/{user}/sshPublicKeys/{fingerprint}`.
  • opts (KeywordList): [optional] Optional parameters

    • :upload_protocol (String): Upload protocol for media (e.g. "raw", "multipart").
    • :pretty_print (Boolean): Returns response with indentations and line breaks.
    • :upload_type (String): Legacy upload protocol for media (e.g. "media", "multipart").
    • :fields (String): Selector specifying which fields to include in a partial response.
    • :__/xgafv (String): V1 error format.
    • :callback (String): JSONP
    • :alt (String): Data format for response.
    • :key (String): 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.
    • :access_token (String): OAuth access token.
    • :quota_user (String): 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.
    • :pp (Boolean): Pretty-print response.
    • :bearer_token (String): OAuth bearer token.
    • :oauth_token (String): OAuth 2.0 token for the current user.
    • :update_mask (String): Mask to control which fields get updated. Updates all if not present.
    • :body (SshPublicKey):

Returns

{:ok, %GoogleApi.OSLogin.V1alpha.Model.SshPublicKey{}} on success {:error, info} on failure