Class AccountsResource.NotificationsubscriptionsResource.CreateRequest
Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple "partial" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple "all managed accounts" subscriptions. 3. "All managed accounts" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.
Inheritance
Inherited Members
Namespace: Google.Apis.Merchant.notifications_v1beta
Assembly: Google.Apis.Merchant.notifications_v1beta.dll
Syntax
public class AccountsResource.NotificationsubscriptionsResource.CreateRequest : MerchantBaseServiceRequest<NotificationSubscription>, IClientServiceRequest<NotificationSubscription>, IClientServiceRequest
Constructors
CreateRequest(IClientService, NotificationSubscription, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, NotificationSubscription body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
NotificationSubscription | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The merchant account that owns the new notification subscription. Format:
accounts/{account}
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()