Class ProjectsResource.LocationsResource.DatastoresResource
The "datastores" collection of methods.
Inherited Members
Namespace: Google.Apis.VMwareEngine.v1
Assembly: Google.Apis.VMwareEngine.v1.dll
Syntax
public class ProjectsResource.LocationsResource.DatastoresResource
Constructors
DatastoresResource(IClientService)
Constructs a new resource.
Declaration
public DatastoresResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(Datastore, string)
Creates a new Datastore resource in a given project and location. Datastores are regional
resources
Declaration
public virtual ProjectsResource.LocationsResource.DatastoresResource.CreateRequest Create(Datastore body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| Datastore | body | The body of the request. |
| string | parent | Required. The resource name of the location to create the new datastore in. Resource names are
schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
For example: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DatastoresResource.CreateRequest |
Delete(string)
Deletes a Datastore resource. You can only delete a Datastore after all resources that refer to it
are deleted. For example, multiple clusters of the same private cloud or different private clouds
can refer to the same datastore.
Declaration
public virtual ProjectsResource.LocationsResource.DatastoresResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the Datastore to be deleted. Resource names are schemeless URIs that
follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DatastoresResource.DeleteRequest |
Get(string)
Retrieves a Datastore resource by its resource name. The resource contains details of the
Datastore, such as its description, subnets, type, and more.
Declaration
public virtual ProjectsResource.LocationsResource.DatastoresResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the Datastore to retrieve. Resource names are schemeless URIs that
follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DatastoresResource.GetRequest |
List(string)
Lists Datastore resources in a given project and location.
Declaration
public virtual ProjectsResource.LocationsResource.DatastoresResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The resource name of the location to query for Datastores. Resource names are schemeless
URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DatastoresResource.ListRequest |
Patch(Datastore, string)
Modifies a Datastore resource. Only the following fields can be updated: description. Only fields
specified in updateMask are applied.
Declaration
public virtual ProjectsResource.LocationsResource.DatastoresResource.PatchRequest Patch(Datastore body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Datastore | body | The body of the request. |
| string | name | Output only. Identifier. The resource name of this datastore. Resource names are schemeless URIs
that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.DatastoresResource.PatchRequest |