Class UsersResource.EnvironmentsResource
The "environments" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudShell.v1alpha1
Assembly: Google.Apis.CloudShell.v1alpha1.dll
Syntax
public class EnvironmentsResource
Constructors
EnvironmentsResource(IClientService)
Constructs a new resource.
Declaration
public EnvironmentsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
PublicKeys
Gets the PublicKeys resource.
Declaration
public virtual UsersResource.EnvironmentsResource.PublicKeysResource PublicKeys { get; }
Property Value
Type | Description |
---|---|
UsersResource.EnvironmentsResource.PublicKeysResource |
Methods
Authorize(AuthorizeEnvironmentRequest, String)
Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate.
Declaration
public virtual UsersResource.EnvironmentsResource.AuthorizeRequest Authorize(AuthorizeEnvironmentRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
AuthorizeEnvironmentRequest | body | The body of the request. |
System.String | name | Name of the resource that should receive the credentials, for example |
Returns
Type | Description |
---|---|
UsersResource.EnvironmentsResource.AuthorizeRequest |
Get(String)
Gets an environment. Returns NOT_FOUND if the environment does not exist.
Declaration
public virtual UsersResource.EnvironmentsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the requested resource, for example |
Returns
Type | Description |
---|---|
UsersResource.EnvironmentsResource.GetRequest |
Patch(Environment, String)
Updates an existing environment.
Declaration
public virtual UsersResource.EnvironmentsResource.PatchRequest Patch(Environment body, string name)
Parameters
Type | Name | Description |
---|---|---|
Environment | body | The body of the request. |
System.String | name | Name of the resource to be updated, for example |
Returns
Type | Description |
---|---|
UsersResource.EnvironmentsResource.PatchRequest |
Start(StartEnvironmentRequest, String)
Starts an existing environment, allowing clients to connect to it. The returned operation will contain an instance of StartEnvironmentMetadata in its metadata field. Users can wait for the environment to start by polling this operation via GetOperation. Once the environment has finished starting and is ready to accept connections, the operation will contain a StartEnvironmentResponse in its response field.
Declaration
public virtual UsersResource.EnvironmentsResource.StartRequest Start(StartEnvironmentRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
StartEnvironmentRequest | body | The body of the request. |
System.String | name | Name of the resource that should be started, for example |
Returns
Type | Description |
---|---|
UsersResource.EnvironmentsResource.StartRequest |