Class ProjectsResource.SubscribersResource.SubscriptionsResource.CreateRequest
Creates a subscription for a specific user to a specific subscriber. This method requires the
subscriber to have a SubscriptionCreatePolicy set to MANUAL for the given data types.
Inheritance
ProjectsResource.SubscribersResource.SubscriptionsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.GoogleHealthAPI.v4
Assembly: Google.Apis.GoogleHealthAPI.v4.dll
Syntax
public class ProjectsResource.SubscribersResource.SubscriptionsResource.CreateRequest : GoogleHealthAPIBaseServiceRequest<Subscription>, IClientServiceRequest<Subscription>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CreateSubscriptionPayload, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CreateSubscriptionPayload body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| CreateSubscriptionPayload | 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 parent subscriber. Format: projects/{project}/subscribers/{subscriber} The {subscriber} ID is user-settable (4-36 characters, matching /a-z/) if provided during creation, or system-generated otherwise.
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
SubscriptionId
Optional. The {subscription_id} is user-settable (4-36 chars, matching /a-z/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
Declaration
[RequestParameter("subscriptionId", RequestParameterType.Query)]
public virtual string SubscriptionId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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()