Class AccountsResource.ProgramsResource
The "programs" collection of methods.
Inherited Members
Namespace: Google.Apis.Merchant.accounts_v1beta
Assembly: Google.Apis.Merchant.accounts_v1beta.dll
Syntax
public class AccountsResource.ProgramsResource
Constructors
ProgramsResource(IClientService)
Constructs a new resource.
Declaration
public ProgramsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Disable(DisableProgramRequest, string)
Disable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public virtual AccountsResource.ProgramsResource.DisableRequest Disable(DisableProgramRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
DisableProgramRequest | body | The body of the request. |
string | name | Required. The name of the program for which to disable participation for the given account. Format:
|
Returns
Type | Description |
---|---|
AccountsResource.ProgramsResource.DisableRequest |
Enable(EnableProgramRequest, string)
Enable participation in the specified program for the account. Executing this method requires admin access.
Declaration
public virtual AccountsResource.ProgramsResource.EnableRequest Enable(EnableProgramRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
EnableProgramRequest | body | The body of the request. |
string | name | Required. The name of the program for which to enable participation for the given account. Format:
|
Returns
Type | Description |
---|---|
AccountsResource.ProgramsResource.EnableRequest |
Get(string)
Retrieves the specified program for the account.
Declaration
public virtual AccountsResource.ProgramsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the program to retrieve. Format: |
Returns
Type | Description |
---|---|
AccountsResource.ProgramsResource.GetRequest |
List(string)
Retrieves all programs for the account.
Declaration
public virtual AccountsResource.ProgramsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The name of the account for which to retrieve all programs. Format: |
Returns
Type | Description |
---|---|
AccountsResource.ProgramsResource.ListRequest |