Class AccountsResource.UpdateNotificationSettingRequest
Sets the pubsub notification setting for the account informing Google which topic to send pubsub notifications for. Use the notification_types field within notification_setting to manipulate the events an account wants to subscribe to. An account will only have one notification setting resource, and only one pubsub topic can be set. To delete the setting, update with an empty notification_types
Inheritance
Inherited Members
Namespace: Google.Apis.MyBusinessNotificationSettings.v1
Assembly: Google.Apis.MyBusinessNotificationSettings.v1.dll
Syntax
public class AccountsResource.UpdateNotificationSettingRequest : MyBusinessNotificationSettingsBaseServiceRequest<NotificationSetting>, IClientServiceRequest<NotificationSetting>, IClientServiceRequest
Constructors
UpdateNotificationSettingRequest(IClientService, NotificationSetting, string)
Constructs a new UpdateNotificationSetting request.
Declaration
public UpdateNotificationSettingRequest(IClientService service, NotificationSetting body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| NotificationSetting | body | |
| string | name |
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
Name
Required. The resource name this setting is for. This is of the form
accounts/{account_id}/notificationSetting.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
UpdateMask
Required. The specific fields that should be updated. The only editable field is notification_setting.
Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes UpdateNotificationSetting parameter list.
Declaration
protected override void InitParameters()