Class ProjectsResource.HmacKeysResource
The "hmacKeys" collection of methods.
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class ProjectsResource.HmacKeysResource
Constructors
HmacKeysResource(IClientService)
Constructs a new resource.
Declaration
public HmacKeysResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(string, string)
Creates a new HMAC key for the specified service account.
Declaration
public virtual ProjectsResource.HmacKeysResource.CreateRequest Create(string projectId, string serviceAccountEmail)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Project ID owning the service account. |
string | serviceAccountEmail | Email address of the service account. |
Returns
Type | Description |
---|---|
ProjectsResource.HmacKeysResource.CreateRequest |
Delete(string, string)
Deletes an HMAC key.
Declaration
public virtual ProjectsResource.HmacKeysResource.DeleteRequest Delete(string projectId, string accessId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Project ID owning the requested key |
string | accessId | Name of the HMAC key to be deleted. |
Returns
Type | Description |
---|---|
ProjectsResource.HmacKeysResource.DeleteRequest |
Get(string, string)
Retrieves an HMAC key's metadata
Declaration
public virtual ProjectsResource.HmacKeysResource.GetRequest Get(string projectId, string accessId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Project ID owning the service account of the requested key. |
string | accessId | Name of the HMAC key. |
Returns
Type | Description |
---|---|
ProjectsResource.HmacKeysResource.GetRequest |
List(string)
Retrieves a list of HMAC keys matching the criteria.
Declaration
public virtual ProjectsResource.HmacKeysResource.ListRequest List(string projectId)
Parameters
Type | Name | Description |
---|---|---|
string | projectId | Name of the project in which to look for HMAC keys. |
Returns
Type | Description |
---|---|
ProjectsResource.HmacKeysResource.ListRequest |
Update(HmacKeyMetadata, string, string)
Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states.
Declaration
public virtual ProjectsResource.HmacKeysResource.UpdateRequest Update(HmacKeyMetadata body, string projectId, string accessId)
Parameters
Type | Name | Description |
---|---|---|
HmacKeyMetadata | body | The body of the request. |
string | projectId | Project ID owning the service account of the updated key. |
string | accessId | Name of the HMAC key being updated. |
Returns
Type | Description |
---|---|
ProjectsResource.HmacKeysResource.UpdateRequest |