Class AccountsResource.LabelsResource
The "labels" collection of methods.
Inherited Members
Namespace: Google.Apis.Css.v1
Assembly: Google.Apis.Css.v1.dll
Syntax
public class AccountsResource.LabelsResource
Constructors
LabelsResource(IClientService)
Constructs a new resource.
Declaration
public LabelsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(AccountLabel, string)
Creates a new label, not assigned to any account.
Declaration
public virtual AccountsResource.LabelsResource.CreateRequest Create(AccountLabel body, string parent)
Parameters
Type | Name | Description |
---|---|---|
AccountLabel | body | The body of the request. |
string | parent | Required. The parent account. Format: accounts/{account} |
Returns
Type | Description |
---|---|
AccountsResource.LabelsResource.CreateRequest |
Delete(string)
Deletes a label and removes it from all accounts to which it was assigned.
Declaration
public virtual AccountsResource.LabelsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the label to delete. Format: accounts/{account}/labels/{label} |
Returns
Type | Description |
---|---|
AccountsResource.LabelsResource.DeleteRequest |
List(string)
Lists the labels assigned to an account.
Declaration
public virtual AccountsResource.LabelsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent account. Format: accounts/{account} |
Returns
Type | Description |
---|---|
AccountsResource.LabelsResource.ListRequest |
Patch(AccountLabel, string)
Updates a label.
Declaration
public virtual AccountsResource.LabelsResource.PatchRequest Patch(AccountLabel body, string name)
Parameters
Type | Name | Description |
---|---|---|
AccountLabel | body | The body of the request. |
string | name | The resource name of the label. Format: accounts/{account}/labels/{label} |
Returns
Type | Description |
---|---|
AccountsResource.LabelsResource.PatchRequest |