My Business Notifications API . accounts

Instance Methods

close()

Close httplib2 connections.

getNotificationSetting(name, x__xgafv=None)

Returns the pubsub notification settings for the account.

updateNotificationSetting(name, body=None, updateMask=None, x__xgafv=None)

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

Method Details

close()
Close httplib2 connections.
getNotificationSetting(name, x__xgafv=None)
Returns the pubsub notification settings for the account.

Args:
  name: string, Required. The resource name of the notification setting we are trying to fetch. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A Google Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification setting resource per-account.
  "name": "A String", # Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.
  "notificationTypes": [ # The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notification_types or set the pubsub_topic to an empty string.
    "A String",
  ],
  "pubsubTopic": "A String", # Optional. The Google Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account mybusiness-api-pubsub@system.gserviceaccount.com must have at least Publish permissions on the Pub/Sub topic.
}
updateNotificationSetting(name, body=None, updateMask=None, x__xgafv=None)
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

Args:
  name: string, Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`. (required)
  body: object, The request body.
    The object takes the form of:

{ # A Google Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification setting resource per-account.
  "name": "A String", # Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.
  "notificationTypes": [ # The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notification_types or set the pubsub_topic to an empty string.
    "A String",
  ],
  "pubsubTopic": "A String", # Optional. The Google Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account mybusiness-api-pubsub@system.gserviceaccount.com must have at least Publish permissions on the Pub/Sub topic.
}

  updateMask: string, Required. The specific fields that should be updated. The only editable field is notification_setting.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A Google Pub/Sub topic where notifications can be published when a location is updated or has a new review. There will be only one notification setting resource per-account.
  "name": "A String", # Required. The resource name this setting is for. This is of the form `accounts/{account_id}/notificationSetting`.
  "notificationTypes": [ # The types of notifications that will be sent to the Pub/Sub topic. To stop receiving notifications entirely, use NotificationSettings.UpdateNotificationSetting with an empty notification_types or set the pubsub_topic to an empty string.
    "A String",
  ],
  "pubsubTopic": "A String", # Optional. The Google Pub/Sub topic that will receive notifications when locations managed by this account are updated. If unset, no notifications will be posted. The account mybusiness-api-pubsub@system.gserviceaccount.com must have at least Publish permissions on the Pub/Sub topic.
}