# Cloud OS Login V1 API - Class Google::Cloud::OsLogin::V1::OsLoginService::Rest::ServiceStub (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.2 1.1.0 1.0.1 0.12.0 0.11.2 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the Cloud OS Login V1 API class Google::Cloud::OsLogin::V1::OsLoginService::Rest::ServiceStub.

REST service stub for the OsLoginService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #create_ssh_public_key

    def create_ssh_public_key(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsLogin::Common::SshPublicKey

Baseline implementation for the create_ssh_public_key REST call
**Parameters**

- **request_pb** ([::Google::Cloud::OsLogin::V1::CreateSshPublicKeyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-CreateSshPublicKeyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-Common-SshPublicKey))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-Common-SshPublicKey)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_posix_account

    def delete_posix_account(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_posix_account REST call
**Parameters**

- **request_pb** ([::Google::Cloud::OsLogin::V1::DeletePosixAccountRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-DeletePosixAccountRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #delete_ssh_public_key

    def delete_ssh_public_key(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_ssh_public_key REST call
**Parameters**

- **request_pb** ([::Google::Cloud::OsLogin::V1::DeleteSshPublicKeyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-DeleteSshPublicKeyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_login_profile

    def get_login_profile(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsLogin::V1::LoginProfile

Baseline implementation for the get_login_profile REST call
**Parameters**

- **request_pb** ([::Google::Cloud::OsLogin::V1::GetLoginProfileRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-GetLoginProfileRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::OsLogin::V1::LoginProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-LoginProfile))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsLogin::V1::LoginProfile](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-LoginProfile)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_ssh_public_key

    def get_ssh_public_key(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsLogin::Common::SshPublicKey

Baseline implementation for the get_ssh_public_key REST call
**Parameters**

- **request_pb** ([::Google::Cloud::OsLogin::V1::GetSshPublicKeyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-GetSshPublicKeyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-Common-SshPublicKey))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-Common-SshPublicKey)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #import_ssh_public_key

    def import_ssh_public_key(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsLogin::V1::ImportSshPublicKeyResponse

Baseline implementation for the import_ssh_public_key REST call
**Parameters**

- **request_pb** ([::Google::Cloud::OsLogin::V1::ImportSshPublicKeyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-ImportSshPublicKeyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::OsLogin::V1::ImportSshPublicKeyResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-ImportSshPublicKeyResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsLogin::V1::ImportSshPublicKeyResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-ImportSshPublicKeyResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_ssh_public_key

    def update_ssh_public_key(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::OsLogin::Common::SshPublicKey

Baseline implementation for the update_ssh_public_key REST call
**Parameters**

- **request_pb** ([::Google::Cloud::OsLogin::V1::UpdateSshPublicKeyRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-V1-UpdateSshPublicKeyRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-Common-SshPublicKey))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::OsLogin::Common::SshPublicKey](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-os_login-v1/latest/Google-Cloud-OsLogin-Common-SshPublicKey)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)