MYBUSINESSNOTIFICATIONS

mybusinessnotifications.accounts.getNotificationSetting

valid {
    input.ReqMap.name == STRING
    input.ProviderMetadata.Region == STRING
}

mybusinessnotifications.accounts.updateNotificationSetting

enum_NotificationSettingNotificationTypes := [ "NOTIFICATION_TYPE_UNSPECIFIED", "GOOGLE_UPDATE", "NEW_REVIEW", "UPDATED_REVIEW", "NEW_CUSTOMER_MEDIA", "NEW_QUESTION", "UPDATED_QUESTION", "NEW_ANSWER", "UPDATED_ANSWER", "DUPLICATE_LOCATION", "LOSS_OF_VOICE_OF_MERCHANT", "VOICE_OF_MERCHANT_UPDATED" ]

valid {
    input.Body.name == STRING
    input.Body.notificationTypes[_] == enum_NotificationSettingNotificationTypes[_]
    input.Body.pubsubTopic == STRING
    input.ReqMap.name == STRING
    input.Qs.updateMask == STRING
    input.ProviderMetadata.Region == STRING
}