Reference documentation and code samples for the Google Cloud Shell V1 Client class AddPublicKeyRequest.
Request message for AddPublicKey.
Generated from protobuf message google.cloud.shell.v1.AddPublicKeyRequest
Namespace
Google \ Cloud \ Shell \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ environment | stringEnvironment this key should be added to, e.g.  | 
| ↳ key | stringKey that should be added to the environment. Supported formats are  
 | 
getEnvironment
Environment this key should be added to, e.g.
users/me/environments/default.
| Returns | |
|---|---|
| Type | Description | 
| string | |
setEnvironment
Environment this key should be added to, e.g.
users/me/environments/default.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getKey
Key that should be added to the environment. Supported formats are
ssh-dss (see RFC4253), ssh-rsa (see RFC4253), ecdsa-sha2-nistp256
(see RFC5656), ecdsa-sha2-nistp384 (see RFC5656) and
ecdsa-sha2-nistp521 (see RFC5656). It should be structured as
| Returns | |
|---|---|
| Type | Description | 
| string | |
setKey
Key that should be added to the environment. Supported formats are
ssh-dss (see RFC4253), ssh-rsa (see RFC4253), ecdsa-sha2-nistp256
(see RFC5656), ecdsa-sha2-nistp384 (see RFC5656) and
ecdsa-sha2-nistp521 (see RFC5656). It should be structured as
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |