Class ProjectsResource.SubscribersResource.SubscriptionsResource
The "subscriptions" collection of methods.
Inherited Members
Namespace: Google.Apis.GoogleHealthAPI.v4
Assembly: Google.Apis.GoogleHealthAPI.v4.dll
Syntax
public class ProjectsResource.SubscribersResource.SubscriptionsResource
Constructors
SubscriptionsResource(IClientService)
Constructs a new resource.
Declaration
public SubscriptionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Create(CreateSubscriptionPayload, string)
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.
Declaration
public virtual ProjectsResource.SubscribersResource.SubscriptionsResource.CreateRequest Create(CreateSubscriptionPayload body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateSubscriptionPayload | body | The body of the request. |
| string | 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. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SubscribersResource.SubscriptionsResource.CreateRequest |
Delete(string)
Deletes a specific user subscription, stopping notifications for this user to this subscriber.
Declaration
public virtual ProjectsResource.SubscribersResource.SubscriptionsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the subscription to delete. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.SubscribersResource.SubscriptionsResource.DeleteRequest |
List(string)
Lists all active subscriptions for a given subscriber. This can be filtered, for example, by user or data type.
Declaration
public virtual ProjectsResource.SubscribersResource.SubscriptionsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | 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. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.SubscribersResource.SubscriptionsResource.ListRequest |
Patch(Subscription, string)
Updates the data types for an existing user subscription.
Declaration
public virtual ProjectsResource.SubscribersResource.SubscriptionsResource.PatchRequest Patch(Subscription body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Subscription | body | The body of the request. |
| string | name | Identifier. The resource name of the Subscription. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.SubscribersResource.SubscriptionsResource.PatchRequest |