Reference documentation and code samples for the Cloud OS Login V1beta API class Google::Cloud::OsLogin::V1beta::ImportSshPublicKeyRequest.
A request message for importing an SSH public key.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#parent
def parent() -> ::String
Returns
-
(::String) — The unique ID for the user in format
users/{user}
.
#parent=
def parent=(value) -> ::String
Parameter
-
value (::String) — The unique ID for the user in format
users/{user}
.
Returns
-
(::String) — The unique ID for the user in format
users/{user}
.
#project_id
def project_id() -> ::String
Returns
- (::String) — The project ID of the Google Cloud Platform project.
#project_id=
def project_id=(value) -> ::String
Parameter
- value (::String) — The project ID of the Google Cloud Platform project.
Returns
- (::String) — The project ID of the Google Cloud Platform project.
#regions
def regions() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
#regions=
def regions=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
Returns
- (::Array<::String>) — Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.
#ssh_public_key
def ssh_public_key() -> ::Google::Cloud::OsLogin::Common::SshPublicKey
Returns
- (::Google::Cloud::OsLogin::Common::SshPublicKey) — Required. The SSH public key and expiration time.
#ssh_public_key=
def ssh_public_key=(value) -> ::Google::Cloud::OsLogin::Common::SshPublicKey
Parameter
- value (::Google::Cloud::OsLogin::Common::SshPublicKey) — Required. The SSH public key and expiration time.
Returns
- (::Google::Cloud::OsLogin::Common::SshPublicKey) — Required. The SSH public key and expiration time.
#view
def view() -> ::Google::Cloud::OsLogin::V1beta::LoginProfileView
Returns
- (::Google::Cloud::OsLogin::V1beta::LoginProfileView) — The view configures whether to retrieve security keys information.
#view=
def view=(value) -> ::Google::Cloud::OsLogin::V1beta::LoginProfileView
Parameter
- value (::Google::Cloud::OsLogin::V1beta::LoginProfileView) — The view configures whether to retrieve security keys information.
Returns
- (::Google::Cloud::OsLogin::V1beta::LoginProfileView) — The view configures whether to retrieve security keys information.