Class AnywhereCachesResource
The "anywhereCaches" collection of methods.
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class AnywhereCachesResource
Constructors
AnywhereCachesResource(IClientService)
Constructs a new resource.
Declaration
public AnywhereCachesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Disable(string, string)
Disables an Anywhere Cache instance.
Declaration
public virtual AnywhereCachesResource.DisableRequest Disable(string bucket, string anywhereCacheId)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the parent bucket. |
string | anywhereCacheId | The ID of requested Anywhere Cache instance. |
Returns
Type | Description |
---|---|
AnywhereCachesResource.DisableRequest |
Get(string, string)
Returns the metadata of an Anywhere Cache instance.
Declaration
public virtual AnywhereCachesResource.GetRequest Get(string bucket, string anywhereCacheId)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the parent bucket. |
string | anywhereCacheId | The ID of requested Anywhere Cache instance. |
Returns
Type | Description |
---|---|
AnywhereCachesResource.GetRequest |
Insert(AnywhereCache, string)
Creates an Anywhere Cache instance.
Declaration
public virtual AnywhereCachesResource.InsertRequest Insert(AnywhereCache body, string bucket)
Parameters
Type | Name | Description |
---|---|---|
AnywhereCache | body | The body of the request. |
string | bucket | Name of the parent bucket. |
Returns
Type | Description |
---|---|
AnywhereCachesResource.InsertRequest |
List(string)
Returns a list of Anywhere Cache instances of the bucket matching the criteria.
Declaration
public virtual AnywhereCachesResource.ListRequest List(string bucket)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the parent bucket. |
Returns
Type | Description |
---|---|
AnywhereCachesResource.ListRequest |
Pause(string, string)
Pauses an Anywhere Cache instance.
Declaration
public virtual AnywhereCachesResource.PauseRequest Pause(string bucket, string anywhereCacheId)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the parent bucket. |
string | anywhereCacheId | The ID of requested Anywhere Cache instance. |
Returns
Type | Description |
---|---|
AnywhereCachesResource.PauseRequest |
Resume(string, string)
Resumes a paused or disabled Anywhere Cache instance.
Declaration
public virtual AnywhereCachesResource.ResumeRequest Resume(string bucket, string anywhereCacheId)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the parent bucket. |
string | anywhereCacheId | The ID of requested Anywhere Cache instance. |
Returns
Type | Description |
---|---|
AnywhereCachesResource.ResumeRequest |
Update(AnywhereCache, string, string)
Updates the config(ttl and admissionPolicy) of an Anywhere Cache instance.
Declaration
public virtual AnywhereCachesResource.UpdateRequest Update(AnywhereCache body, string bucket, string anywhereCacheId)
Parameters
Type | Name | Description |
---|---|---|
AnywhereCache | body | The body of the request. |
string | bucket | Name of the parent bucket. |
string | anywhereCacheId | The ID of requested Anywhere Cache instance. |
Returns
Type | Description |
---|---|
AnywhereCachesResource.UpdateRequest |