class ProjectsLocationsInstances extends Resource (View source)

The "instances" collection of methods.

Typical usage is:

 $fileService = new Google\Service\CloudFilestore(...);
 $instances = $fileService->projects_locations_instances;

Methods

create(string $parent, Instance $postBody, array $optParams = [])

Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

delete(string $name, array $optParams = [])

Deletes an instance. (instances.delete)

get(string $name, array $optParams = [])

Gets the details of a specific instance. (instances.get)

listProjectsLocationsInstances(string $parent, array $optParams = [])

Lists all instances in a project for either a specified location or for all locations. (instances.listProjectsLocationsInstances)

patch(string $name, Instance $postBody, array $optParams = [])

Updates the settings of a specific instance. (instances.patch)

promoteReplica(string $name, PromoteReplicaRequest $postBody, array $optParams = [])

Promote an standby instance (replica). (instances.promoteReplica)

restore(string $name, RestoreInstanceRequest $postBody, array $optParams = [])

Restores an existing instance's file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

revert(string $name, RevertInstanceRequest $postBody, array $optParams = [])

Revert an existing instance's file system to a specified snapshot.

Details

Operation create(string $parent, Instance $postBody, array $optParams = [])

Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

(instances.create)

Parameters

string $parent

Required. The instance's project and location, in the format projects/{project_id}/locations/{location}. In Filestore, locations map to Google Cloud zones, for example us-west1-b.

Instance $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation delete(string $name, array $optParams = [])

Deletes an instance. (instances.delete)

Parameters

string $name

Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id}

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Instance get(string $name, array $optParams = [])

Gets the details of a specific instance. (instances.get)

Parameters

string $name

Required. The instance resource name, in the format projects/{project_id}/locations/{location}/instances/{instance_id}.

array $optParams

Optional parameters.

Return Value

Instance

Exceptions

Exception

ListInstancesResponse listProjectsLocationsInstances(string $parent, array $optParams = [])

Lists all instances in a project for either a specified location or for all locations. (instances.listProjectsLocationsInstances)

Parameters

string $parent

Required. The project and location for which to retrieve instance information, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to Google Cloud zones, for example us-west1-b. To retrieve instance information for all locations, use "-" for the {location} value.

array $optParams

Optional parameters.

Return Value

ListInstancesResponse

Exceptions

Exception

Operation patch(string $name, Instance $postBody, array $optParams = [])

Updates the settings of a specific instance. (instances.patch)

Parameters

string $name

Output only. The resource name of the instance, in the format projects/{project}/locations/{location}/instances/{instance}.

Instance $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation promoteReplica(string $name, PromoteReplicaRequest $postBody, array $optParams = [])

Promote an standby instance (replica). (instances.promoteReplica)

Parameters

string $name

Required. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

PromoteReplicaRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation restore(string $name, RestoreInstanceRequest $postBody, array $optParams = [])

Restores an existing instance's file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).

(instances.restore)

Parameters

string $name

Required. The resource name of the instance, in the format projects/{project_number}/locations/{location_id}/instances/{instance_id}.

RestoreInstanceRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation revert(string $name, RevertInstanceRequest $postBody, array $optParams = [])

Revert an existing instance's file system to a specified snapshot.

(instances.revert)

Parameters

string $name

Required. The resource name of the instance, in the format projects/{project_id}/locations/{location_id}/instances/{instance_id}.

RevertInstanceRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception