Documentation

Google_Service_CloudMemorystoreforMemcached_Resource_ProjectsLocationsInstances extends Google_Service_Resource
in package

The "instances" collection of methods.

Typical usage is: $memcacheService = new Google_Service_CloudMemorystoreforMemcached(...); $instances = $memcacheService->instances;

Table of Contents

$client  : Google_Client
$methods  : array<string|int, mixed>
$resourceName  : string
$rootUrl  : string
$serviceName  : string
$servicePath  : string
$stackParameters  : mixed
__construct()  : mixed
applyParameters()  : Google_Service_CloudMemorystoreforMemcached_Operation
ApplyParameters will restart the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.
call()  : Google_Http_Request|expectedClass
TODO: This function needs simplifying.
create()  : Google_Service_CloudMemorystoreforMemcached_Operation
Creates a new Instance in a given location. (instances.create)
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_CloudMemorystoreforMemcached_Operation
Deletes a single Instance. (instances.delete)
get()  : Google_Service_CloudMemorystoreforMemcached_Instance
Gets details of a single Instance. (instances.get)
listProjectsLocationsInstances()  : Google_Service_CloudMemorystoreforMemcached_ListInstancesResponse
Lists Instances in a given location.
patch()  : Google_Service_CloudMemorystoreforMemcached_Operation
Updates an existing Instance in a given project and location.
updateParameters()  : Google_Service_CloudMemorystoreforMemcached_Operation
Updates the defined Memcached Parameters for an existing Instance. This method only stages the parameters, it must be followed by ApplyParameters to apply the parameters to nodes of the Memcached Instance.
convertToArrayAndStripNulls()  : mixed

Properties

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$serviceName

private string $serviceName

$servicePath

private string $servicePath

$stackParameters

private mixed $stackParameters = array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))

Methods

__construct()

public __construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
$service : mixed
$serviceName : mixed
$resourceName : mixed
$resource : mixed
Return values
mixed

applyParameters()

ApplyParameters will restart the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.

public applyParameters(string $name, Google_Service_CloudMemorystoreforMemcached_ApplyParametersRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudMemorystoreforMemcached_Operation

(instances.applyParameters)

Parameters
$name : string

Required. Resource name of the Memcached instance for which parameter group updates should be applied.

$postBody : Google_Service_CloudMemorystoreforMemcached_ApplyParametersRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudMemorystoreforMemcached_Operation

call()

TODO: This function needs simplifying.

public call( $name,  $arguments[,  $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
Return values
Google_Http_Request|expectedClass

create()

Creates a new Instance in a given location. (instances.create)

public create(string $parent, Google_Service_CloudMemorystoreforMemcached_Instance $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudMemorystoreforMemcached_Operation
Parameters
$parent : string

Required. The resource name of the instance location using the form: projects/{project_id}/locations/{location_id} where location_id refers to a GCP region

$postBody : Google_Service_CloudMemorystoreforMemcached_Instance
$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string instanceId Required. The logical name of the Memcached instance in the user project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the user project / location If any of the above are not met, will raise an invalid argument error.

Return values
Google_Service_CloudMemorystoreforMemcached_Operation

createRequestUri()

Parse/expand request parameters and create a fully qualified request uri.

public createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
$restPath : string
$params : array<string|int, mixed>
Tags
static
Return values
string

$requestUrl

delete()

Deletes a single Instance. (instances.delete)

public delete(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudMemorystoreforMemcached_Operation
Parameters
$name : string

Required. Memcached instance resource name in the format: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudMemorystoreforMemcached_Operation

get()

Gets details of a single Instance. (instances.get)

public get(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudMemorystoreforMemcached_Instance
Parameters
$name : string

Required. Memcached instance resource name in the format: projects/{project_id}/locations/{location_id}/instances/{instance_id} where location_id refers to a GCP region

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudMemorystoreforMemcached_Instance

listProjectsLocationsInstances()

Lists Instances in a given location.

public listProjectsLocationsInstances(string $parent[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudMemorystoreforMemcached_ListInstancesResponse

(instances.listProjectsLocationsInstances)

Parameters
$parent : string

Required. The resource name of the instance location using the form: projects/{project_id}/locations/{location_id} where location_id refers to a GCP region

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

int pageSize The maximum number of items to return. If not specified, a default value of 1000 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.

opt_param

string pageToken The next_page_token value returned from a previous List request, if any.

opt_param

string filter List filter. For example, exclude all Memcached instances with name as my-instance by specifying "name != my-instance".

opt_param

string orderBy Sort results. Supported values are "name", "name desc" or "" (unsorted).

Return values
Google_Service_CloudMemorystoreforMemcached_ListInstancesResponse

patch()

Updates an existing Instance in a given project and location.

public patch(string $name, Google_Service_CloudMemorystoreforMemcached_Instance $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudMemorystoreforMemcached_Operation

(instances.patch)

Parameters
$name : string

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} Note: Memcached instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which zones Memcached nodes within an instances should be provisioned in. Refer to [zones] field for more details.

$postBody : Google_Service_CloudMemorystoreforMemcached_Instance
$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string updateMask Required. Mask of fields to update. * displayName

Return values
Google_Service_CloudMemorystoreforMemcached_Operation

updateParameters()

Updates the defined Memcached Parameters for an existing Instance. This method only stages the parameters, it must be followed by ApplyParameters to apply the parameters to nodes of the Memcached Instance.

public updateParameters(string $name, Google_Service_CloudMemorystoreforMemcached_UpdateParametersRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_CloudMemorystoreforMemcached_Operation

(instances.updateParameters)

Parameters
$name : string

Required. Resource name of the Memcached instance for which the parameters should be updated.

$postBody : Google_Service_CloudMemorystoreforMemcached_UpdateParametersRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_CloudMemorystoreforMemcached_Operation

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results