# Cloud OS Login API . users . sshPublicKeys

## Instance Methods

Close httplib2 connections.

Deletes an SSH public key.

Retrieves an SSH public key.

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

### Method Details

`close()`

    Close httplib2 connections.

`delete(name, x__xgafv=None)`

    Deletes an SSH public key.

    Args:
      name: string, Required. 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}`. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
      }

`get(name, x__xgafv=None)`

    Retrieves an SSH public key.

    Args:
      name: string, Required. 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}`. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # The SSH public key information associated with a Google account.
        "expirationTimeUsec": "A String", # An expiration time in microseconds since epoch.
        "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
        "key": "A String", # Public key text in SSH format, defined by RFC4253 section 6.6.
        "name": "A String", # Output only. The canonical resource name.
      }

`patch(name, body=None, updateMask=None, x__xgafv=None)`

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

    Args:
      name: string, Required. 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}`. (required)
      body: object, The request body.
        The object takes the form of:

    { # The SSH public key information associated with a Google account.
      "expirationTimeUsec": "A String", # An expiration time in microseconds since epoch.
      "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
      "key": "A String", # Public key text in SSH format, defined by RFC4253 section 6.6.
      "name": "A String", # Output only. The canonical resource name.
    }

      updateMask: string, Mask to control which fields get updated. Updates all if not present.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # The SSH public key information associated with a Google account.
        "expirationTimeUsec": "A String", # An expiration time in microseconds since epoch.
        "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
        "key": "A String", # Public key text in SSH format, defined by RFC4253 section 6.6.
        "name": "A String", # Output only. The canonical resource name.
      }