Class UsersResource.EnvironmentsResource.PublicKeysResource
The "publicKeys" collection of methods.
Inheritance
System.Object
UsersResource.EnvironmentsResource.PublicKeysResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudShell.v1alpha1
Assembly: Google.Apis.CloudShell.v1alpha1.dll
Syntax
public class PublicKeysResource
Constructors
PublicKeysResource(IClientService)
Constructs a new resource.
Declaration
public PublicKeysResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(CreatePublicKeyRequest, String)
Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same format and content already exists, this will return the existing key.
Declaration
public virtual UsersResource.EnvironmentsResource.PublicKeysResource.CreateRequest Create(CreatePublicKeyRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
CreatePublicKeyRequest | body | The body of the request. |
System.String | parent | Parent resource name, e.g. |
Returns
Type | Description |
---|---|
UsersResource.EnvironmentsResource.PublicKeysResource.CreateRequest |
Delete(String)
Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key.
Declaration
public virtual UsersResource.EnvironmentsResource.PublicKeysResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the resource to be deleted, e.g. |
Returns
Type | Description |
---|---|
UsersResource.EnvironmentsResource.PublicKeysResource.DeleteRequest |