Cloud OS Login API . users . sshPublicKeys

Instance Methods

delete(name, x__xgafv=None)

Deletes an SSH public key.

get(name, x__xgafv=None)

Retrieves an SSH public key.

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

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

Method Details

delete(name, x__xgafv=None)
Deletes an SSH public key.

Args:
  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}`. (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, 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.
    "key": "A String", # Public key text in SSH format, defined by
        # RFC4253
        # section 6.6.
    "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
  }
patch(name, body, updateMask=None, x__xgafv=None)
Updates an SSH public key and returns the profile information. This method
supports patch semantics.

Args:
  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}`. (required)
  body: object, The request body. (required)
    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.
  "key": "A String", # Public key text in SSH format, defined by
      # RFC4253
      # section 6.6.
  "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
}

  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.
    "key": "A String", # Public key text in SSH format, defined by
        # RFC4253
        # section 6.6.
    "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
  }