platformnotificationsv1

package
v0.101.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Overview

Package platformnotificationsv1 : Operations and models for the PlatformNotificationsV1 service

Index

Constants

View Source
const (
	Notification_Category_Account           = "account"
	Notification_Category_Announcements     = "announcements"
	Notification_Category_BillingAndUsage   = "billing_and_usage"
	Notification_Category_Incident          = "incident"
	Notification_Category_Maintenance       = "maintenance"
	Notification_Category_Ordering          = "ordering"
	Notification_Category_Provisioning      = "provisioning"
	Notification_Category_Resource          = "resource"
	Notification_Category_Security          = "security"
	Notification_Category_SecurityBulletins = "security_bulletins"
)

Constants associated with the Notification.Category property. The category of the notification.

View Source
const (
	Notification_State_Complete   = "complete"
	Notification_State_InProgress = "in-progress"
	Notification_State_New        = "new"
	Notification_State_Resolved   = "resolved"
)

Constants associated with the Notification.State property. The current state of the notification.

View Source
const (
	Notification_CompletionCode_Cancelled  = "cancelled"
	Notification_CompletionCode_Failed     = "failed"
	Notification_CompletionCode_Successful = "successful"
)

Constants associated with the Notification.CompletionCode property. The completion code of the notification.

View Source
const (
	TestDestinationRequestBodyPrototype_NotificationType_Announcements     = "announcements"
	TestDestinationRequestBodyPrototype_NotificationType_BillingAndUsage   = "billing_and_usage"
	TestDestinationRequestBodyPrototype_NotificationType_Incident          = "incident"
	TestDestinationRequestBodyPrototype_NotificationType_Maintenance       = "maintenance"
	TestDestinationRequestBodyPrototype_NotificationType_Resource          = "resource"
	TestDestinationRequestBodyPrototype_NotificationType_SecurityBulletins = "security_bulletins"
)

Constants associated with the TestDestinationRequestBodyPrototype.NotificationType property. The type of the notification to test.

View Source
const (
	TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype_NotificationType_Announcements     = "announcements"
	TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype_NotificationType_BillingAndUsage   = "billing_and_usage"
	TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype_NotificationType_Incident          = "incident"
	TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype_NotificationType_Maintenance       = "maintenance"
	TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype_NotificationType_Resource          = "resource"
	TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype_NotificationType_SecurityBulletins = "security_bulletins"
)

Constants associated with the TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype.NotificationType property. The type of the notification to test.

View Source
const (
	AddDestinationEventNotificationDestination_DestinationType_EventNotifications = "event_notifications"
)

Constants associated with the AddDestinationEventNotificationDestination.DestinationType property. The type of the destination.

View Source
const (
	AddDestinationPrototypeEventNotificationDestinationPrototype_DestinationType_EventNotifications = "event_notifications"
)

Constants associated with the AddDestinationPrototypeEventNotificationDestinationPrototype.DestinationType property. The type of the destination.

View Source
const (
	AddDestinationPrototype_DestinationType_EventNotifications = "event_notifications"
)

Constants associated with the AddDestinationPrototype.DestinationType property. The type of the destination.

View Source
const (
	AddDestination_DestinationType_EventNotifications = "event_notifications"
)

Constants associated with the AddDestination.DestinationType property. The type of the destination.

View Source
const DefaultServiceName = "platform_notifications"

DefaultServiceName is the default key used to find external configuration information.

View Source
const DefaultServiceURL = "https://notifications.cloud.ibm.com/api"

DefaultServiceURL is the default URL to make service requests to.

View Source
const (
	PreferenceValueWithUpdates_Channels_Email = "email"
)

Constants associated with the PreferenceValueWithUpdates.Channels property.

View Source
const (
	PreferenceValueWithoutUpdates_Channels_Email = "email"
)

Constants associated with the PreferenceValueWithoutUpdates.Channels property.

View Source
const (
	TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype_DestinationType_EventNotifications = "event_notifications"
)

Constants associated with the TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype.DestinationType property. The type of the destination.

View Source
const (
	TestDestinationRequestBodyPrototype_DestinationType_EventNotifications = "event_notifications"
)

Constants associated with the TestDestinationRequestBodyPrototype.DestinationType property. The type of the destination.

Variables

This section is empty.

Functions

func GetServiceURLForRegion

func GetServiceURLForRegion(region string) (string, error)

GetServiceURLForRegion returns the service URL to be used for the specified region

func UnmarshalAcknowledgement added in v0.100.0

func UnmarshalAcknowledgement(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalAcknowledgement unmarshals an instance of Acknowledgement from the specified map of raw messages.

func UnmarshalAddDestination

func UnmarshalAddDestination(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalAddDestination unmarshals an instance of AddDestination from the specified map of raw messages.

func UnmarshalAddDestinationCollection

func UnmarshalAddDestinationCollection(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalAddDestinationCollection unmarshals an instance of AddDestinationCollection from the specified map of raw messages.

func UnmarshalAddDestinationEventNotificationDestination

func UnmarshalAddDestinationEventNotificationDestination(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalAddDestinationEventNotificationDestination unmarshals an instance of AddDestinationEventNotificationDestination from the specified map of raw messages.

func UnmarshalAddDestinationPrototype

func UnmarshalAddDestinationPrototype(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalAddDestinationPrototype unmarshals an instance of AddDestinationPrototype from the specified map of raw messages.

func UnmarshalAddDestinationPrototypeEventNotificationDestinationPrototype

func UnmarshalAddDestinationPrototypeEventNotificationDestinationPrototype(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalAddDestinationPrototypeEventNotificationDestinationPrototype unmarshals an instance of AddDestinationPrototypeEventNotificationDestinationPrototype from the specified map of raw messages.

func UnmarshalNotification added in v0.100.0

func UnmarshalNotification(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalNotification unmarshals an instance of Notification from the specified map of raw messages.

func UnmarshalNotificationCollection added in v0.100.0

func UnmarshalNotificationCollection(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalNotificationCollection unmarshals an instance of NotificationCollection from the specified map of raw messages.

func UnmarshalPaginationLink(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPaginationLink unmarshals an instance of PaginationLink from the specified map of raw messages.

func UnmarshalPaginationLinkWithToken added in v0.100.0

func UnmarshalPaginationLinkWithToken(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPaginationLinkWithToken unmarshals an instance of PaginationLinkWithToken from the specified map of raw messages.

func UnmarshalPreferenceValueWithUpdates added in v0.100.0

func UnmarshalPreferenceValueWithUpdates(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPreferenceValueWithUpdates unmarshals an instance of PreferenceValueWithUpdates from the specified map of raw messages.

func UnmarshalPreferenceValueWithoutUpdates added in v0.100.0

func UnmarshalPreferenceValueWithoutUpdates(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPreferenceValueWithoutUpdates unmarshals an instance of PreferenceValueWithoutUpdates from the specified map of raw messages.

func UnmarshalPreferencesObject added in v0.100.0

func UnmarshalPreferencesObject(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalPreferencesObject unmarshals an instance of PreferencesObject from the specified map of raw messages.

func UnmarshalTestDestinationRequestBodyPrototype

func UnmarshalTestDestinationRequestBodyPrototype(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalTestDestinationRequestBodyPrototype unmarshals an instance of TestDestinationRequestBodyPrototype from the specified map of raw messages.

func UnmarshalTestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype

func UnmarshalTestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalTestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype unmarshals an instance of TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype from the specified map of raw messages.

func UnmarshalTestDestinationResponseBody

func UnmarshalTestDestinationResponseBody(m map[string]json.RawMessage, result interface{}) (err error)

UnmarshalTestDestinationResponseBody unmarshals an instance of TestDestinationResponseBody from the specified map of raw messages.

Types

type Acknowledgement added in v0.100.0

type Acknowledgement struct {
	// Indicates whether the user has unread notifications.
	HasUnread *bool `json:"has_unread" validate:"required"`

	// The timestamp of the last acknowledgement.
	LastAcknowledged *int64 `json:"last_acknowledged" validate:"required"`
}

Acknowledgement : Status indicating whether the user has unread notifications.

type AddDestination

type AddDestination struct {
	// The GUID of the Event Notifications instance.
	DestinationID *strfmt.UUID `json:"destination_id,omitempty"`

	// The type of the destination.
	DestinationType *string `json:"destination_type,omitempty"`
}

AddDestination : AddDestination struct Models which "extend" this model: - AddDestinationEventNotificationDestination

type AddDestinationCollection

type AddDestinationCollection struct {
	// Array of destination entries.
	Destinations []AddDestinationIntf `json:"destinations" validate:"required"`
}

AddDestinationCollection : List of destinations in the distribution list.

type AddDestinationEventNotificationDestination

type AddDestinationEventNotificationDestination struct {
	// The GUID of the Event Notifications instance.
	DestinationID *strfmt.UUID `json:"destination_id" validate:"required"`

	// The type of the destination.
	DestinationType *string `json:"destination_type" validate:"required"`
}

AddDestinationEventNotificationDestination : An Event Notifications destination entry in the distribution list. This model "extends" AddDestination

type AddDestinationIntf

type AddDestinationIntf interface {
	// contains filtered or unexported methods
}

type AddDestinationPrototype

type AddDestinationPrototype struct {
	// The GUID of the Event Notifications instance.
	DestinationID *strfmt.UUID `json:"destination_id,omitempty"`

	// The type of the destination.
	DestinationType *string `json:"destination_type" validate:"required"`
}

AddDestinationPrototype : AddDestinationPrototype struct Models which "extend" this model: - AddDestinationPrototypeEventNotificationDestinationPrototype

type AddDestinationPrototypeEventNotificationDestinationPrototype

type AddDestinationPrototypeEventNotificationDestinationPrototype struct {
	// The GUID of the Event Notifications instance.
	DestinationID *strfmt.UUID `json:"destination_id" validate:"required"`

	// The type of the destination.
	DestinationType *string `json:"destination_type" validate:"required"`
}

AddDestinationPrototypeEventNotificationDestinationPrototype : Prototype for creating an Event Notifications destination entry. This model "extends" AddDestinationPrototype

type AddDestinationPrototypeIntf

type AddDestinationPrototypeIntf interface {
	// contains filtered or unexported methods
}

type CreateDistributionListDestinationOptions

type CreateDistributionListDestinationOptions struct {
	// The IBM Cloud account ID.
	AccountID *string `json:"account_id" validate:"required,ne="`

	AddDestinationPrototype AddDestinationPrototypeIntf `json:"AddDestinationPrototype" validate:"required"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

CreateDistributionListDestinationOptions : The CreateDistributionListDestination options.

func (*CreateDistributionListDestinationOptions) SetAccountID

SetAccountID : Allow user to set AccountID

func (*CreateDistributionListDestinationOptions) SetAddDestinationPrototype

func (_options *CreateDistributionListDestinationOptions) SetAddDestinationPrototype(addDestinationPrototype AddDestinationPrototypeIntf) *CreateDistributionListDestinationOptions

SetAddDestinationPrototype : Allow user to set AddDestinationPrototype

func (*CreateDistributionListDestinationOptions) SetHeaders

SetHeaders : Allow user to set Headers

type CreatePreferencesOptions added in v0.100.0

type CreatePreferencesOptions struct {
	// The IAM ID of the user. Must match the IAM ID in the bearer token.
	IamID *string `json:"iam_id" validate:"required,ne="`

	// Preference settings for notification types that support updates.
	IncidentSeverity1 *PreferenceValueWithUpdates `json:"incident_severity1,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity2 *PreferenceValueWithUpdates `json:"incident_severity2,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity3 *PreferenceValueWithUpdates `json:"incident_severity3,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity4 *PreferenceValueWithUpdates `json:"incident_severity4,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceHigh *PreferenceValueWithUpdates `json:"maintenance_high,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceMedium *PreferenceValueWithUpdates `json:"maintenance_medium,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceLow *PreferenceValueWithUpdates `json:"maintenance_low,omitempty"`

	// Preference settings for notification types that do not support updates.
	AnnouncementsMajor *PreferenceValueWithoutUpdates `json:"announcements_major,omitempty"`

	// Preference settings for notification types that do not support updates.
	AnnouncementsMinor *PreferenceValueWithoutUpdates `json:"announcements_minor,omitempty"`

	// Preference settings for notification types that do not support updates.
	SecurityNormal *PreferenceValueWithoutUpdates `json:"security_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	AccountNormal *PreferenceValueWithoutUpdates `json:"account_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageOrder *PreferenceValueWithoutUpdates `json:"billing_and_usage_order,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageInvoices *PreferenceValueWithoutUpdates `json:"billing_and_usage_invoices,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsagePayments *PreferenceValueWithoutUpdates `json:"billing_and_usage_payments,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageSubscriptionsAndPromoCodes *PreferenceValueWithoutUpdates `json:"billing_and_usage_subscriptions_and_promo_codes,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageSpendingAlerts *PreferenceValueWithoutUpdates `json:"billing_and_usage_spending_alerts,omitempty"`

	// Preference settings for notification types that do not support updates.
	ResourceactivityNormal *PreferenceValueWithoutUpdates `json:"resourceactivity_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingReview *PreferenceValueWithoutUpdates `json:"ordering_review,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApproved *PreferenceValueWithoutUpdates `json:"ordering_approved,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApprovedVsi *PreferenceValueWithoutUpdates `json:"ordering_approved_vsi,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApprovedServer *PreferenceValueWithoutUpdates `json:"ordering_approved_server,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningReloadComplete *PreferenceValueWithoutUpdates `json:"provisioning_reload_complete,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningCompleteVsi *PreferenceValueWithoutUpdates `json:"provisioning_complete_vsi,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningCompleteServer *PreferenceValueWithoutUpdates `json:"provisioning_complete_server,omitempty"`

	// The IBM Cloud account ID. If not provided, the account ID from the bearer token will be used.
	AccountID *string `json:"account_id,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

CreatePreferencesOptions : The CreatePreferences options.

func (*CreatePreferencesOptions) SetAccountID added in v0.100.0

func (_options *CreatePreferencesOptions) SetAccountID(accountID string) *CreatePreferencesOptions

SetAccountID : Allow user to set AccountID

func (*CreatePreferencesOptions) SetAccountNormal added in v0.100.0

func (_options *CreatePreferencesOptions) SetAccountNormal(accountNormal *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetAccountNormal : Allow user to set AccountNormal

func (*CreatePreferencesOptions) SetAnnouncementsMajor added in v0.100.0

func (_options *CreatePreferencesOptions) SetAnnouncementsMajor(announcementsMajor *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetAnnouncementsMajor : Allow user to set AnnouncementsMajor

func (*CreatePreferencesOptions) SetAnnouncementsMinor added in v0.100.0

func (_options *CreatePreferencesOptions) SetAnnouncementsMinor(announcementsMinor *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetAnnouncementsMinor : Allow user to set AnnouncementsMinor

func (*CreatePreferencesOptions) SetBillingAndUsageInvoices added in v0.100.0

func (_options *CreatePreferencesOptions) SetBillingAndUsageInvoices(billingAndUsageInvoices *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetBillingAndUsageInvoices : Allow user to set BillingAndUsageInvoices

func (*CreatePreferencesOptions) SetBillingAndUsageOrder added in v0.100.0

func (_options *CreatePreferencesOptions) SetBillingAndUsageOrder(billingAndUsageOrder *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetBillingAndUsageOrder : Allow user to set BillingAndUsageOrder

func (*CreatePreferencesOptions) SetBillingAndUsagePayments added in v0.100.0

func (_options *CreatePreferencesOptions) SetBillingAndUsagePayments(billingAndUsagePayments *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetBillingAndUsagePayments : Allow user to set BillingAndUsagePayments

func (*CreatePreferencesOptions) SetBillingAndUsageSpendingAlerts added in v0.100.0

func (_options *CreatePreferencesOptions) SetBillingAndUsageSpendingAlerts(billingAndUsageSpendingAlerts *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetBillingAndUsageSpendingAlerts : Allow user to set BillingAndUsageSpendingAlerts

func (*CreatePreferencesOptions) SetBillingAndUsageSubscriptionsAndPromoCodes added in v0.100.0

func (_options *CreatePreferencesOptions) SetBillingAndUsageSubscriptionsAndPromoCodes(billingAndUsageSubscriptionsAndPromoCodes *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetBillingAndUsageSubscriptionsAndPromoCodes : Allow user to set BillingAndUsageSubscriptionsAndPromoCodes

func (*CreatePreferencesOptions) SetHeaders added in v0.100.0

func (options *CreatePreferencesOptions) SetHeaders(param map[string]string) *CreatePreferencesOptions

SetHeaders : Allow user to set Headers

func (*CreatePreferencesOptions) SetIamID added in v0.100.0

func (_options *CreatePreferencesOptions) SetIamID(iamID string) *CreatePreferencesOptions

SetIamID : Allow user to set IamID

func (*CreatePreferencesOptions) SetIncidentSeverity1 added in v0.100.0

func (_options *CreatePreferencesOptions) SetIncidentSeverity1(incidentSeverity1 *PreferenceValueWithUpdates) *CreatePreferencesOptions

SetIncidentSeverity1 : Allow user to set IncidentSeverity1

func (*CreatePreferencesOptions) SetIncidentSeverity2 added in v0.100.0

func (_options *CreatePreferencesOptions) SetIncidentSeverity2(incidentSeverity2 *PreferenceValueWithUpdates) *CreatePreferencesOptions

SetIncidentSeverity2 : Allow user to set IncidentSeverity2

func (*CreatePreferencesOptions) SetIncidentSeverity3 added in v0.100.0

func (_options *CreatePreferencesOptions) SetIncidentSeverity3(incidentSeverity3 *PreferenceValueWithUpdates) *CreatePreferencesOptions

SetIncidentSeverity3 : Allow user to set IncidentSeverity3

func (*CreatePreferencesOptions) SetIncidentSeverity4 added in v0.100.0

func (_options *CreatePreferencesOptions) SetIncidentSeverity4(incidentSeverity4 *PreferenceValueWithUpdates) *CreatePreferencesOptions

SetIncidentSeverity4 : Allow user to set IncidentSeverity4

func (*CreatePreferencesOptions) SetMaintenanceHigh added in v0.100.0

func (_options *CreatePreferencesOptions) SetMaintenanceHigh(maintenanceHigh *PreferenceValueWithUpdates) *CreatePreferencesOptions

SetMaintenanceHigh : Allow user to set MaintenanceHigh

func (*CreatePreferencesOptions) SetMaintenanceLow added in v0.100.0

func (_options *CreatePreferencesOptions) SetMaintenanceLow(maintenanceLow *PreferenceValueWithUpdates) *CreatePreferencesOptions

SetMaintenanceLow : Allow user to set MaintenanceLow

func (*CreatePreferencesOptions) SetMaintenanceMedium added in v0.100.0

func (_options *CreatePreferencesOptions) SetMaintenanceMedium(maintenanceMedium *PreferenceValueWithUpdates) *CreatePreferencesOptions

SetMaintenanceMedium : Allow user to set MaintenanceMedium

func (*CreatePreferencesOptions) SetOrderingApproved added in v0.100.0

func (_options *CreatePreferencesOptions) SetOrderingApproved(orderingApproved *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetOrderingApproved : Allow user to set OrderingApproved

func (*CreatePreferencesOptions) SetOrderingApprovedServer added in v0.100.0

func (_options *CreatePreferencesOptions) SetOrderingApprovedServer(orderingApprovedServer *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetOrderingApprovedServer : Allow user to set OrderingApprovedServer

func (*CreatePreferencesOptions) SetOrderingApprovedVsi added in v0.100.0

func (_options *CreatePreferencesOptions) SetOrderingApprovedVsi(orderingApprovedVsi *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetOrderingApprovedVsi : Allow user to set OrderingApprovedVsi

func (*CreatePreferencesOptions) SetOrderingReview added in v0.100.0

func (_options *CreatePreferencesOptions) SetOrderingReview(orderingReview *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetOrderingReview : Allow user to set OrderingReview

func (*CreatePreferencesOptions) SetProvisioningCompleteServer added in v0.100.0

func (_options *CreatePreferencesOptions) SetProvisioningCompleteServer(provisioningCompleteServer *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetProvisioningCompleteServer : Allow user to set ProvisioningCompleteServer

func (*CreatePreferencesOptions) SetProvisioningCompleteVsi added in v0.100.0

func (_options *CreatePreferencesOptions) SetProvisioningCompleteVsi(provisioningCompleteVsi *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetProvisioningCompleteVsi : Allow user to set ProvisioningCompleteVsi

func (*CreatePreferencesOptions) SetProvisioningReloadComplete added in v0.100.0

func (_options *CreatePreferencesOptions) SetProvisioningReloadComplete(provisioningReloadComplete *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetProvisioningReloadComplete : Allow user to set ProvisioningReloadComplete

func (*CreatePreferencesOptions) SetResourceactivityNormal added in v0.100.0

func (_options *CreatePreferencesOptions) SetResourceactivityNormal(resourceactivityNormal *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetResourceactivityNormal : Allow user to set ResourceactivityNormal

func (*CreatePreferencesOptions) SetSecurityNormal added in v0.100.0

func (_options *CreatePreferencesOptions) SetSecurityNormal(securityNormal *PreferenceValueWithoutUpdates) *CreatePreferencesOptions

SetSecurityNormal : Allow user to set SecurityNormal

type DeleteDistributionListDestinationOptions

type DeleteDistributionListDestinationOptions struct {
	// The IBM Cloud account ID.
	AccountID *string `json:"account_id" validate:"required,ne="`

	// The ID of the destination.
	DestinationID *string `json:"destination_id" validate:"required,ne="`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

DeleteDistributionListDestinationOptions : The DeleteDistributionListDestination options.

func (*DeleteDistributionListDestinationOptions) SetAccountID

SetAccountID : Allow user to set AccountID

func (*DeleteDistributionListDestinationOptions) SetDestinationID

SetDestinationID : Allow user to set DestinationID

func (*DeleteDistributionListDestinationOptions) SetHeaders

SetHeaders : Allow user to set Headers

type DeleteNotificationPreferencesOptions added in v0.100.0

type DeleteNotificationPreferencesOptions struct {
	// The IAM ID of the user. Must match the IAM ID in the bearer token.
	IamID *string `json:"iam_id" validate:"required,ne="`

	// The IBM Cloud account ID. If not provided, the account ID from the bearer token will be used.
	AccountID *string `json:"account_id,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

DeleteNotificationPreferencesOptions : The DeleteNotificationPreferences options.

func (*DeleteNotificationPreferencesOptions) SetAccountID added in v0.100.0

SetAccountID : Allow user to set AccountID

func (*DeleteNotificationPreferencesOptions) SetHeaders added in v0.100.0

SetHeaders : Allow user to set Headers

func (*DeleteNotificationPreferencesOptions) SetIamID added in v0.100.0

SetIamID : Allow user to set IamID

type GetAcknowledgementOptions added in v0.100.0

type GetAcknowledgementOptions struct {
	// The IBM Cloud account ID. If not provided, the account ID from the bearer token will be used.
	AccountID *string `json:"account_id,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

GetAcknowledgementOptions : The GetAcknowledgement options.

func (*GetAcknowledgementOptions) SetAccountID added in v0.100.0

func (_options *GetAcknowledgementOptions) SetAccountID(accountID string) *GetAcknowledgementOptions

SetAccountID : Allow user to set AccountID

func (*GetAcknowledgementOptions) SetHeaders added in v0.100.0

func (options *GetAcknowledgementOptions) SetHeaders(param map[string]string) *GetAcknowledgementOptions

SetHeaders : Allow user to set Headers

type GetDistributionListDestinationOptions

type GetDistributionListDestinationOptions struct {
	// The IBM Cloud account ID.
	AccountID *string `json:"account_id" validate:"required,ne="`

	// The ID of the destination.
	DestinationID *string `json:"destination_id" validate:"required,ne="`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

GetDistributionListDestinationOptions : The GetDistributionListDestination options.

func (*GetDistributionListDestinationOptions) SetAccountID

SetAccountID : Allow user to set AccountID

func (*GetDistributionListDestinationOptions) SetDestinationID

func (_options *GetDistributionListDestinationOptions) SetDestinationID(destinationID string) *GetDistributionListDestinationOptions

SetDestinationID : Allow user to set DestinationID

func (*GetDistributionListDestinationOptions) SetHeaders

SetHeaders : Allow user to set Headers

type GetPreferencesOptions added in v0.100.0

type GetPreferencesOptions struct {
	// The IAM ID of the user. Must match the IAM ID in the bearer token.
	IamID *string `json:"iam_id" validate:"required,ne="`

	// The IBM Cloud account ID. If not provided, the account ID from the bearer token will be used.
	AccountID *string `json:"account_id,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

GetPreferencesOptions : The GetPreferences options.

func (*GetPreferencesOptions) SetAccountID added in v0.100.0

func (_options *GetPreferencesOptions) SetAccountID(accountID string) *GetPreferencesOptions

SetAccountID : Allow user to set AccountID

func (*GetPreferencesOptions) SetHeaders added in v0.100.0

func (options *GetPreferencesOptions) SetHeaders(param map[string]string) *GetPreferencesOptions

SetHeaders : Allow user to set Headers

func (*GetPreferencesOptions) SetIamID added in v0.100.0

func (_options *GetPreferencesOptions) SetIamID(iamID string) *GetPreferencesOptions

SetIamID : Allow user to set IamID

type ListDistributionListDestinationsOptions

type ListDistributionListDestinationsOptions struct {
	// The IBM Cloud account ID.
	AccountID *string `json:"account_id" validate:"required,ne="`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

ListDistributionListDestinationsOptions : The ListDistributionListDestinations options.

func (*ListDistributionListDestinationsOptions) SetAccountID

SetAccountID : Allow user to set AccountID

func (*ListDistributionListDestinationsOptions) SetHeaders

SetHeaders : Allow user to set Headers

type ListNotificationsOptions added in v0.100.0

type ListNotificationsOptions struct {
	// The IBM Cloud account ID. If not provided, the account ID from the bearer token will be used.
	AccountID *string `json:"account_id,omitempty"`

	// An opaque page token that specifies the resource to start the page on or after. If unspecified, the first page of
	// results is returned.
	Start *string `json:"start,omitempty"`

	// The maximum number of items to return per page. If unspecified, a default limit of 50 is used.
	Limit *int64 `json:"limit,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

ListNotificationsOptions : The ListNotifications options.

func (*ListNotificationsOptions) SetAccountID added in v0.100.0

func (_options *ListNotificationsOptions) SetAccountID(accountID string) *ListNotificationsOptions

SetAccountID : Allow user to set AccountID

func (*ListNotificationsOptions) SetHeaders added in v0.100.0

func (options *ListNotificationsOptions) SetHeaders(param map[string]string) *ListNotificationsOptions

SetHeaders : Allow user to set Headers

func (*ListNotificationsOptions) SetLimit added in v0.100.0

func (_options *ListNotificationsOptions) SetLimit(limit int64) *ListNotificationsOptions

SetLimit : Allow user to set Limit

func (*ListNotificationsOptions) SetStart added in v0.100.0

func (_options *ListNotificationsOptions) SetStart(start string) *ListNotificationsOptions

SetStart : Allow user to set Start

type Notification added in v0.100.0

type Notification struct {
	// The title of the notification.
	Title *string `json:"title" validate:"required"`

	// The body content of the notification.
	Body *string `json:"body" validate:"required"`

	// The unique identifier for the notification.
	ID *string `json:"id" validate:"required"`

	// The category of the notification.
	Category *string `json:"category" validate:"required"`

	// Array of component/service names affected by this notification.
	ComponentNames []string `json:"component_names" validate:"required"`

	// The start time of the notification in Unix timestamp (seconds).
	StartTime *int64 `json:"start_time,omitempty"`

	// Indicates if the notification is global.
	IsGlobal *bool `json:"is_global" validate:"required"`

	// The current state of the notification.
	State *string `json:"state,omitempty"`

	// Array of region identifiers affected by this notification.
	Regions []string `json:"regions" validate:"required"`

	// Array of CRN masks that define the scope of affected resources.
	CrnMasks []string `json:"crn_masks" validate:"required"`

	// The record identifier for tracking purposes.
	RecordID *string `json:"record_id,omitempty"`

	// The source identifier of the notification.
	SourceID *string `json:"source_id,omitempty"`

	// The completion code of the notification.
	CompletionCode *string `json:"completion_code,omitempty"`

	// The end time of the notification in Unix timestamp (seconds).
	EndTime *int64 `json:"end_time,omitempty"`

	// The last update time of the notification in Unix timestamp (seconds).
	UpdateTime *int64 `json:"update_time,omitempty"`

	// The severity level of the notification (0-3). The display value depends on the notification type:
	//
	// **Incidents:**
	// - 1 = Severity 1
	// - 2 = Severity 2
	// - 3 = Severity 3
	// - 0 = Severity 4
	//
	// **Maintenance:**
	// - 1 = High
	// - 2 = Medium
	// - 3 = Low
	//
	// **Announcements:**
	// - 1 = Major
	// - 0 = Minor.
	Severity *int64 `json:"severity" validate:"required"`

	// Lucene query string for filtering affected resources. Only present when instance targets are specified and
	// resource_link is not available. Mutually exclusive with resource_link.
	LuceneQuery *string `json:"lucene_query,omitempty"`

	// Link to additional resource information or documentation. Takes precedence over lucene_query when both are
	// available. Mutually exclusive with lucene_query.
	ResourceLink *string `json:"resource_link,omitempty"`

	// The timestamp when the notification was created.
	CreationTimestamp *int64 `json:"creation_timestamp" validate:"required"`
}

Notification : A notification entry.

type NotificationCollection added in v0.100.0

type NotificationCollection struct {
	// The maximum number of items returned in this response.
	Limit *int64 `json:"limit" validate:"required"`

	// The total number of notifications in the collection.
	TotalCount *int64 `json:"total_count" validate:"required"`

	// A pagination link object containing the URL to a page.
	First *PaginationLink `json:"first" validate:"required"`

	// A pagination link object with a page token. Used for next, previous, and last page links.
	Previous *PaginationLinkWithToken `json:"previous,omitempty"`

	// A pagination link object with a page token. Used for next, previous, and last page links.
	Next *PaginationLinkWithToken `json:"next,omitempty"`

	// A pagination link object with a page token. Used for next, previous, and last page links.
	Last *PaginationLinkWithToken `json:"last,omitempty"`

	// Array of notification entries.
	Notifications []Notification `json:"notifications" validate:"required"`
}

NotificationCollection : Collection of user notifications with token-based pagination metadata.

func (*NotificationCollection) GetNextStart added in v0.100.0

func (resp *NotificationCollection) GetNextStart() (*string, error)

Retrieve the value to be passed to a request to access the next page of results

type NotificationsPager added in v0.100.0

type NotificationsPager struct {
	// contains filtered or unexported fields
}

NotificationsPager can be used to simplify the use of the "ListNotifications" method.

func (*NotificationsPager) GetAll added in v0.100.0

func (pager *NotificationsPager) GetAll() (allItems []Notification, err error)

GetAll invokes GetAllWithContext() using context.Background() as the Context parameter.

func (*NotificationsPager) GetAllWithContext added in v0.100.0

func (pager *NotificationsPager) GetAllWithContext(ctx context.Context) (allItems []Notification, err error)

GetAllWithContext returns all results by invoking GetNextWithContext() repeatedly until all pages of results have been retrieved.

func (*NotificationsPager) GetNext added in v0.100.0

func (pager *NotificationsPager) GetNext() (page []Notification, err error)

GetNext invokes GetNextWithContext() using context.Background() as the Context parameter.

func (*NotificationsPager) GetNextWithContext added in v0.100.0

func (pager *NotificationsPager) GetNextWithContext(ctx context.Context) (page []Notification, err error)

GetNextWithContext returns the next page of results using the specified Context.

func (*NotificationsPager) HasNext added in v0.100.0

func (pager *NotificationsPager) HasNext() bool

HasNext returns true if there are potentially more results to be retrieved.

type PaginationLink struct {
	// The full URL path to the page.
	Href *string `json:"href" validate:"required"`
}

PaginationLink : A pagination link object containing the URL to a page.

type PaginationLinkWithToken added in v0.100.0

type PaginationLinkWithToken struct {
	// Complete URL to the page.
	Href *string `json:"href" validate:"required"`

	// Opaque page token that can be used to retrieve the page.
	Start *string `json:"start" validate:"required"`
}

PaginationLinkWithToken : A pagination link object with a page token. Used for next, previous, and last page links.

type PlatformNotificationsV1

type PlatformNotificationsV1 struct {
	Service *core.BaseService
}

PlatformNotificationsV1 : API for IBM Cloud account notifications, providing capabilities to: - View notifications - Get and update acknowledgements - Manage user communication preferences - Manage notification distribution lists

API Version: 1.0.0

func NewPlatformNotificationsV1

func NewPlatformNotificationsV1(options *PlatformNotificationsV1Options) (service *PlatformNotificationsV1, err error)

NewPlatformNotificationsV1 : constructs an instance of PlatformNotificationsV1 with passed in options.

func NewPlatformNotificationsV1UsingExternalConfig

func NewPlatformNotificationsV1UsingExternalConfig(options *PlatformNotificationsV1Options) (platformNotifications *PlatformNotificationsV1, err error)

NewPlatformNotificationsV1UsingExternalConfig : constructs an instance of PlatformNotificationsV1 with passed in options and external configuration.

func (*PlatformNotificationsV1) Clone

func (platformNotifications *PlatformNotificationsV1) Clone() *PlatformNotificationsV1

Clone makes a copy of "platformNotifications" suitable for processing requests.

func (*PlatformNotificationsV1) CreateDistributionListDestination

func (platformNotifications *PlatformNotificationsV1) CreateDistributionListDestination(createDistributionListDestinationOptions *CreateDistributionListDestinationOptions) (result AddDestinationIntf, response *core.DetailedResponse, err error)

CreateDistributionListDestination : Add a destination entry Add a destination entry to the distribution list. A maximum of 10 destination entries per destination type. In terms of enterprise accounts, you can provide an Event Notifications destination that is from a different account than the distribution list account, provided these two accounts are from the same enterprise and the user has permission to manage the Event Notifications destinations on both accounts.

func (*PlatformNotificationsV1) CreateDistributionListDestinationWithContext

func (platformNotifications *PlatformNotificationsV1) CreateDistributionListDestinationWithContext(ctx context.Context, createDistributionListDestinationOptions *CreateDistributionListDestinationOptions) (result AddDestinationIntf, response *core.DetailedResponse, err error)

CreateDistributionListDestinationWithContext is an alternate form of the CreateDistributionListDestination method which supports a Context parameter

func (*PlatformNotificationsV1) CreatePreferences added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) CreatePreferences(createPreferencesOptions *CreatePreferencesOptions) (result *PreferencesObject, response *core.DetailedResponse, err error)

CreatePreferences : Create communication preferences Create communication preferences for the specified account.

func (*PlatformNotificationsV1) CreatePreferencesWithContext added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) CreatePreferencesWithContext(ctx context.Context, createPreferencesOptions *CreatePreferencesOptions) (result *PreferencesObject, response *core.DetailedResponse, err error)

CreatePreferencesWithContext is an alternate form of the CreatePreferences method which supports a Context parameter

func (*PlatformNotificationsV1) DeleteDistributionListDestination

func (platformNotifications *PlatformNotificationsV1) DeleteDistributionListDestination(deleteDistributionListDestinationOptions *DeleteDistributionListDestinationOptions) (response *core.DetailedResponse, err error)

DeleteDistributionListDestination : Delete a destination entry Remove a destination entry.

func (*PlatformNotificationsV1) DeleteDistributionListDestinationWithContext

func (platformNotifications *PlatformNotificationsV1) DeleteDistributionListDestinationWithContext(ctx context.Context, deleteDistributionListDestinationOptions *DeleteDistributionListDestinationOptions) (response *core.DetailedResponse, err error)

DeleteDistributionListDestinationWithContext is an alternate form of the DeleteDistributionListDestination method which supports a Context parameter

func (*PlatformNotificationsV1) DeleteNotificationPreferences added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) DeleteNotificationPreferences(deleteNotificationPreferencesOptions *DeleteNotificationPreferencesOptions) (response *core.DetailedResponse, err error)

DeleteNotificationPreferences : Reset all preferences to their default values Delete all communication preferences for the specified account, and reset all preferences to their default values.

func (*PlatformNotificationsV1) DeleteNotificationPreferencesWithContext added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) DeleteNotificationPreferencesWithContext(ctx context.Context, deleteNotificationPreferencesOptions *DeleteNotificationPreferencesOptions) (response *core.DetailedResponse, err error)

DeleteNotificationPreferencesWithContext is an alternate form of the DeleteNotificationPreferences method which supports a Context parameter

func (*PlatformNotificationsV1) DisableRetries

func (platformNotifications *PlatformNotificationsV1) DisableRetries()

DisableRetries disables automatic retries for requests invoked for this service instance.

func (*PlatformNotificationsV1) EnableRetries

func (platformNotifications *PlatformNotificationsV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration)

EnableRetries enables automatic retries for requests invoked for this service instance. If either parameter is specified as 0, then a default value is used instead.

func (*PlatformNotificationsV1) GetAcknowledgement added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) GetAcknowledgement(getAcknowledgementOptions *GetAcknowledgementOptions) (result *Acknowledgement, response *core.DetailedResponse, err error)

GetAcknowledgement : Get acknowledgement Retrieve the ID of the last notification acknowledged by the user for a specific account.

func (*PlatformNotificationsV1) GetAcknowledgementWithContext added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) GetAcknowledgementWithContext(ctx context.Context, getAcknowledgementOptions *GetAcknowledgementOptions) (result *Acknowledgement, response *core.DetailedResponse, err error)

GetAcknowledgementWithContext is an alternate form of the GetAcknowledgement method which supports a Context parameter

func (*PlatformNotificationsV1) GetDistributionListDestination

func (platformNotifications *PlatformNotificationsV1) GetDistributionListDestination(getDistributionListDestinationOptions *GetDistributionListDestinationOptions) (result AddDestinationIntf, response *core.DetailedResponse, err error)

GetDistributionListDestination : Get a destination entry Retrieve a specific destination from the distribution list of the account.

func (*PlatformNotificationsV1) GetDistributionListDestinationWithContext

func (platformNotifications *PlatformNotificationsV1) GetDistributionListDestinationWithContext(ctx context.Context, getDistributionListDestinationOptions *GetDistributionListDestinationOptions) (result AddDestinationIntf, response *core.DetailedResponse, err error)

GetDistributionListDestinationWithContext is an alternate form of the GetDistributionListDestination method which supports a Context parameter

func (*PlatformNotificationsV1) GetEnableGzipCompression

func (platformNotifications *PlatformNotificationsV1) GetEnableGzipCompression() bool

GetEnableGzipCompression returns the service's EnableGzipCompression field

func (*PlatformNotificationsV1) GetPreferences added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) GetPreferences(getPreferencesOptions *GetPreferencesOptions) (result *PreferencesObject, response *core.DetailedResponse, err error)

GetPreferences : Get all communication preferences Retrieve all communication preferences of a user in an account.

func (*PlatformNotificationsV1) GetPreferencesWithContext added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) GetPreferencesWithContext(ctx context.Context, getPreferencesOptions *GetPreferencesOptions) (result *PreferencesObject, response *core.DetailedResponse, err error)

GetPreferencesWithContext is an alternate form of the GetPreferences method which supports a Context parameter

func (*PlatformNotificationsV1) GetServiceURL

func (platformNotifications *PlatformNotificationsV1) GetServiceURL() string

GetServiceURL returns the service URL

func (*PlatformNotificationsV1) ListDistributionListDestinations

func (platformNotifications *PlatformNotificationsV1) ListDistributionListDestinations(listDistributionListDestinationsOptions *ListDistributionListDestinationsOptions) (result *AddDestinationCollection, response *core.DetailedResponse, err error)

ListDistributionListDestinations : Get all destination entries Retrieve all destinations in the distribution list for the specified account.

func (*PlatformNotificationsV1) ListDistributionListDestinationsWithContext

func (platformNotifications *PlatformNotificationsV1) ListDistributionListDestinationsWithContext(ctx context.Context, listDistributionListDestinationsOptions *ListDistributionListDestinationsOptions) (result *AddDestinationCollection, response *core.DetailedResponse, err error)

ListDistributionListDestinationsWithContext is an alternate form of the ListDistributionListDestinations method which supports a Context parameter

func (*PlatformNotificationsV1) ListNotifications added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) ListNotifications(listNotificationsOptions *ListNotificationsOptions) (result *NotificationCollection, response *core.DetailedResponse, err error)

ListNotifications : Get user notifications Retrieve all notifications for the requested user.

func (*PlatformNotificationsV1) ListNotificationsWithContext added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) ListNotificationsWithContext(ctx context.Context, listNotificationsOptions *ListNotificationsOptions) (result *NotificationCollection, response *core.DetailedResponse, err error)

ListNotificationsWithContext is an alternate form of the ListNotifications method which supports a Context parameter

func (*PlatformNotificationsV1) NewAddDestinationPrototypeEventNotificationDestinationPrototype

func (*PlatformNotificationsV1) NewAddDestinationPrototypeEventNotificationDestinationPrototype(destinationID *strfmt.UUID, destinationType string) (_model *AddDestinationPrototypeEventNotificationDestinationPrototype, err error)

NewAddDestinationPrototypeEventNotificationDestinationPrototype : Instantiate AddDestinationPrototypeEventNotificationDestinationPrototype (Generic Model Constructor)

func (*PlatformNotificationsV1) NewCreateDistributionListDestinationOptions

func (*PlatformNotificationsV1) NewCreateDistributionListDestinationOptions(accountID string, addDestinationPrototype AddDestinationPrototypeIntf) *CreateDistributionListDestinationOptions

NewCreateDistributionListDestinationOptions : Instantiate CreateDistributionListDestinationOptions

func (*PlatformNotificationsV1) NewCreatePreferencesOptions added in v0.100.0

func (*PlatformNotificationsV1) NewCreatePreferencesOptions(iamID string) *CreatePreferencesOptions

NewCreatePreferencesOptions : Instantiate CreatePreferencesOptions

func (*PlatformNotificationsV1) NewDeleteDistributionListDestinationOptions

func (*PlatformNotificationsV1) NewDeleteDistributionListDestinationOptions(accountID string, destinationID string) *DeleteDistributionListDestinationOptions

NewDeleteDistributionListDestinationOptions : Instantiate DeleteDistributionListDestinationOptions

func (*PlatformNotificationsV1) NewDeleteNotificationPreferencesOptions added in v0.100.0

func (*PlatformNotificationsV1) NewDeleteNotificationPreferencesOptions(iamID string) *DeleteNotificationPreferencesOptions

NewDeleteNotificationPreferencesOptions : Instantiate DeleteNotificationPreferencesOptions

func (*PlatformNotificationsV1) NewGetAcknowledgementOptions added in v0.100.0

func (*PlatformNotificationsV1) NewGetAcknowledgementOptions() *GetAcknowledgementOptions

NewGetAcknowledgementOptions : Instantiate GetAcknowledgementOptions

func (*PlatformNotificationsV1) NewGetDistributionListDestinationOptions

func (*PlatformNotificationsV1) NewGetDistributionListDestinationOptions(accountID string, destinationID string) *GetDistributionListDestinationOptions

NewGetDistributionListDestinationOptions : Instantiate GetDistributionListDestinationOptions

func (*PlatformNotificationsV1) NewGetPreferencesOptions added in v0.100.0

func (*PlatformNotificationsV1) NewGetPreferencesOptions(iamID string) *GetPreferencesOptions

NewGetPreferencesOptions : Instantiate GetPreferencesOptions

func (*PlatformNotificationsV1) NewListDistributionListDestinationsOptions

func (*PlatformNotificationsV1) NewListDistributionListDestinationsOptions(accountID string) *ListDistributionListDestinationsOptions

NewListDistributionListDestinationsOptions : Instantiate ListDistributionListDestinationsOptions

func (*PlatformNotificationsV1) NewListNotificationsOptions added in v0.100.0

func (*PlatformNotificationsV1) NewListNotificationsOptions() *ListNotificationsOptions

NewListNotificationsOptions : Instantiate ListNotificationsOptions

func (*PlatformNotificationsV1) NewNotificationsPager added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) NewNotificationsPager(options *ListNotificationsOptions) (pager *NotificationsPager, err error)

NewNotificationsPager returns a new NotificationsPager instance.

func (*PlatformNotificationsV1) NewPreferenceValueWithUpdates added in v0.100.0

func (*PlatformNotificationsV1) NewPreferenceValueWithUpdates(channels []string) (_model *PreferenceValueWithUpdates, err error)

NewPreferenceValueWithUpdates : Instantiate PreferenceValueWithUpdates (Generic Model Constructor)

func (*PlatformNotificationsV1) NewPreferenceValueWithoutUpdates added in v0.100.0

func (*PlatformNotificationsV1) NewPreferenceValueWithoutUpdates(channels []string) (_model *PreferenceValueWithoutUpdates, err error)

NewPreferenceValueWithoutUpdates : Instantiate PreferenceValueWithoutUpdates (Generic Model Constructor)

func (*PlatformNotificationsV1) NewReplaceNotificationAcknowledgementOptions added in v0.100.0

func (*PlatformNotificationsV1) NewReplaceNotificationAcknowledgementOptions(lastAcknowledged int64) *ReplaceNotificationAcknowledgementOptions

NewReplaceNotificationAcknowledgementOptions : Instantiate ReplaceNotificationAcknowledgementOptions

func (*PlatformNotificationsV1) NewReplaceNotificationPreferencesOptions added in v0.100.0

func (*PlatformNotificationsV1) NewReplaceNotificationPreferencesOptions(iamID string) *ReplaceNotificationPreferencesOptions

NewReplaceNotificationPreferencesOptions : Instantiate ReplaceNotificationPreferencesOptions

func (*PlatformNotificationsV1) NewTestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype

func (*PlatformNotificationsV1) NewTestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype(destinationType string, notificationType string) (_model *TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype, err error)

NewTestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype : Instantiate TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype (Generic Model Constructor)

func (*PlatformNotificationsV1) NewTestDistributionListDestinationOptions

func (*PlatformNotificationsV1) NewTestDistributionListDestinationOptions(accountID string, destinationID string, testDestinationRequestBodyPrototype TestDestinationRequestBodyPrototypeIntf) *TestDistributionListDestinationOptions

NewTestDistributionListDestinationOptions : Instantiate TestDistributionListDestinationOptions

func (*PlatformNotificationsV1) ReplaceNotificationAcknowledgement added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) ReplaceNotificationAcknowledgement(replaceNotificationAcknowledgementOptions *ReplaceNotificationAcknowledgementOptions) (result *Acknowledgement, response *core.DetailedResponse, err error)

ReplaceNotificationAcknowledgement : Update acknowledgement Update the ID of the last notification acknowledged by the user for a specific account.

func (*PlatformNotificationsV1) ReplaceNotificationAcknowledgementWithContext added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) ReplaceNotificationAcknowledgementWithContext(ctx context.Context, replaceNotificationAcknowledgementOptions *ReplaceNotificationAcknowledgementOptions) (result *Acknowledgement, response *core.DetailedResponse, err error)

ReplaceNotificationAcknowledgementWithContext is an alternate form of the ReplaceNotificationAcknowledgement method which supports a Context parameter

func (*PlatformNotificationsV1) ReplaceNotificationPreferences added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) ReplaceNotificationPreferences(replaceNotificationPreferencesOptions *ReplaceNotificationPreferencesOptions) (result *PreferencesObject, response *core.DetailedResponse, err error)

ReplaceNotificationPreferences : Update communication preferences Update communication preferences for the specified account.

func (*PlatformNotificationsV1) ReplaceNotificationPreferencesWithContext added in v0.100.0

func (platformNotifications *PlatformNotificationsV1) ReplaceNotificationPreferencesWithContext(ctx context.Context, replaceNotificationPreferencesOptions *ReplaceNotificationPreferencesOptions) (result *PreferencesObject, response *core.DetailedResponse, err error)

ReplaceNotificationPreferencesWithContext is an alternate form of the ReplaceNotificationPreferences method which supports a Context parameter

func (*PlatformNotificationsV1) SetDefaultHeaders

func (platformNotifications *PlatformNotificationsV1) SetDefaultHeaders(headers http.Header)

SetDefaultHeaders sets HTTP headers to be sent in every request

func (*PlatformNotificationsV1) SetEnableGzipCompression

func (platformNotifications *PlatformNotificationsV1) SetEnableGzipCompression(enableGzip bool)

SetEnableGzipCompression sets the service's EnableGzipCompression field

func (*PlatformNotificationsV1) SetServiceURL

func (platformNotifications *PlatformNotificationsV1) SetServiceURL(url string) error

SetServiceURL sets the service URL

func (*PlatformNotificationsV1) TestDistributionListDestination

func (platformNotifications *PlatformNotificationsV1) TestDistributionListDestination(testDistributionListDestinationOptions *TestDistributionListDestinationOptions) (result *TestDestinationResponseBody, response *core.DetailedResponse, err error)

TestDistributionListDestination : Test a destination entry Send a test notification to a destination in the distribution list. This allows you to verify that the destination is properly configured and can receive notifications.

func (*PlatformNotificationsV1) TestDistributionListDestinationWithContext

func (platformNotifications *PlatformNotificationsV1) TestDistributionListDestinationWithContext(ctx context.Context, testDistributionListDestinationOptions *TestDistributionListDestinationOptions) (result *TestDestinationResponseBody, response *core.DetailedResponse, err error)

TestDistributionListDestinationWithContext is an alternate form of the TestDistributionListDestination method which supports a Context parameter

type PlatformNotificationsV1Options

type PlatformNotificationsV1Options struct {
	ServiceName   string
	URL           string
	Authenticator core.Authenticator
}

PlatformNotificationsV1Options : Service options

type PreferenceValueWithUpdates added in v0.100.0

type PreferenceValueWithUpdates struct {
	// Array of communication channels for this preference.
	Channels []string `json:"channels" validate:"required"`

	// Whether to receive updates for this preference. Optional, defaults to false if not provided.
	Updates *bool `json:"updates,omitempty"`
}

PreferenceValueWithUpdates : Preference settings for notification types that support updates.

type PreferenceValueWithoutUpdates added in v0.100.0

type PreferenceValueWithoutUpdates struct {
	// Array of communication channels for this preference.
	Channels []string `json:"channels" validate:"required"`
}

PreferenceValueWithoutUpdates : Preference settings for notification types that do not support updates.

type PreferencesObject added in v0.100.0

type PreferencesObject struct {
	// Preference settings for notification types that support updates.
	IncidentSeverity1 *PreferenceValueWithUpdates `json:"incident_severity1,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity2 *PreferenceValueWithUpdates `json:"incident_severity2,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity3 *PreferenceValueWithUpdates `json:"incident_severity3,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity4 *PreferenceValueWithUpdates `json:"incident_severity4,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceHigh *PreferenceValueWithUpdates `json:"maintenance_high,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceMedium *PreferenceValueWithUpdates `json:"maintenance_medium,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceLow *PreferenceValueWithUpdates `json:"maintenance_low,omitempty"`

	// Preference settings for notification types that do not support updates.
	AnnouncementsMajor *PreferenceValueWithoutUpdates `json:"announcements_major,omitempty"`

	// Preference settings for notification types that do not support updates.
	AnnouncementsMinor *PreferenceValueWithoutUpdates `json:"announcements_minor,omitempty"`

	// Preference settings for notification types that do not support updates.
	SecurityNormal *PreferenceValueWithoutUpdates `json:"security_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	AccountNormal *PreferenceValueWithoutUpdates `json:"account_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageOrder *PreferenceValueWithoutUpdates `json:"billing_and_usage_order,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageInvoices *PreferenceValueWithoutUpdates `json:"billing_and_usage_invoices,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsagePayments *PreferenceValueWithoutUpdates `json:"billing_and_usage_payments,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageSubscriptionsAndPromoCodes *PreferenceValueWithoutUpdates `json:"billing_and_usage_subscriptions_and_promo_codes,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageSpendingAlerts *PreferenceValueWithoutUpdates `json:"billing_and_usage_spending_alerts,omitempty"`

	// Preference settings for notification types that do not support updates.
	ResourceactivityNormal *PreferenceValueWithoutUpdates `json:"resourceactivity_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingReview *PreferenceValueWithoutUpdates `json:"ordering_review,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApproved *PreferenceValueWithoutUpdates `json:"ordering_approved,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApprovedVsi *PreferenceValueWithoutUpdates `json:"ordering_approved_vsi,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApprovedServer *PreferenceValueWithoutUpdates `json:"ordering_approved_server,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningReloadComplete *PreferenceValueWithoutUpdates `json:"provisioning_reload_complete,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningCompleteVsi *PreferenceValueWithoutUpdates `json:"provisioning_complete_vsi,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningCompleteServer *PreferenceValueWithoutUpdates `json:"provisioning_complete_server,omitempty"`
}

PreferencesObject : User communication preferences object. Only include preferences where communication is desired; absence of a key means no communication for that preference type.

type ReplaceNotificationAcknowledgementOptions added in v0.100.0

type ReplaceNotificationAcknowledgementOptions struct {
	// The timestamp of the last acknowledgement.
	LastAcknowledged *int64 `json:"last_acknowledged" validate:"required"`

	// The IBM Cloud account ID. If not provided, the account ID from the bearer token will be used.
	AccountID *string `json:"account_id,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

ReplaceNotificationAcknowledgementOptions : The ReplaceNotificationAcknowledgement options.

func (*ReplaceNotificationAcknowledgementOptions) SetAccountID added in v0.100.0

SetAccountID : Allow user to set AccountID

func (*ReplaceNotificationAcknowledgementOptions) SetHeaders added in v0.100.0

SetHeaders : Allow user to set Headers

func (*ReplaceNotificationAcknowledgementOptions) SetLastAcknowledged added in v0.100.0

func (_options *ReplaceNotificationAcknowledgementOptions) SetLastAcknowledged(lastAcknowledged int64) *ReplaceNotificationAcknowledgementOptions

SetLastAcknowledged : Allow user to set LastAcknowledged

type ReplaceNotificationPreferencesOptions added in v0.100.0

type ReplaceNotificationPreferencesOptions struct {
	// The IAM ID of the user. Must match the IAM ID in the bearer token.
	IamID *string `json:"iam_id" validate:"required,ne="`

	// Preference settings for notification types that support updates.
	IncidentSeverity1 *PreferenceValueWithUpdates `json:"incident_severity1,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity2 *PreferenceValueWithUpdates `json:"incident_severity2,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity3 *PreferenceValueWithUpdates `json:"incident_severity3,omitempty"`

	// Preference settings for notification types that support updates.
	IncidentSeverity4 *PreferenceValueWithUpdates `json:"incident_severity4,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceHigh *PreferenceValueWithUpdates `json:"maintenance_high,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceMedium *PreferenceValueWithUpdates `json:"maintenance_medium,omitempty"`

	// Preference settings for notification types that support updates.
	MaintenanceLow *PreferenceValueWithUpdates `json:"maintenance_low,omitempty"`

	// Preference settings for notification types that do not support updates.
	AnnouncementsMajor *PreferenceValueWithoutUpdates `json:"announcements_major,omitempty"`

	// Preference settings for notification types that do not support updates.
	AnnouncementsMinor *PreferenceValueWithoutUpdates `json:"announcements_minor,omitempty"`

	// Preference settings for notification types that do not support updates.
	SecurityNormal *PreferenceValueWithoutUpdates `json:"security_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	AccountNormal *PreferenceValueWithoutUpdates `json:"account_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageOrder *PreferenceValueWithoutUpdates `json:"billing_and_usage_order,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageInvoices *PreferenceValueWithoutUpdates `json:"billing_and_usage_invoices,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsagePayments *PreferenceValueWithoutUpdates `json:"billing_and_usage_payments,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageSubscriptionsAndPromoCodes *PreferenceValueWithoutUpdates `json:"billing_and_usage_subscriptions_and_promo_codes,omitempty"`

	// Preference settings for notification types that do not support updates.
	BillingAndUsageSpendingAlerts *PreferenceValueWithoutUpdates `json:"billing_and_usage_spending_alerts,omitempty"`

	// Preference settings for notification types that do not support updates.
	ResourceactivityNormal *PreferenceValueWithoutUpdates `json:"resourceactivity_normal,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingReview *PreferenceValueWithoutUpdates `json:"ordering_review,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApproved *PreferenceValueWithoutUpdates `json:"ordering_approved,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApprovedVsi *PreferenceValueWithoutUpdates `json:"ordering_approved_vsi,omitempty"`

	// Preference settings for notification types that do not support updates.
	OrderingApprovedServer *PreferenceValueWithoutUpdates `json:"ordering_approved_server,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningReloadComplete *PreferenceValueWithoutUpdates `json:"provisioning_reload_complete,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningCompleteVsi *PreferenceValueWithoutUpdates `json:"provisioning_complete_vsi,omitempty"`

	// Preference settings for notification types that do not support updates.
	ProvisioningCompleteServer *PreferenceValueWithoutUpdates `json:"provisioning_complete_server,omitempty"`

	// The IBM Cloud account ID. If not provided, the account ID from the bearer token will be used.
	AccountID *string `json:"account_id,omitempty"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

ReplaceNotificationPreferencesOptions : The ReplaceNotificationPreferences options.

func (*ReplaceNotificationPreferencesOptions) SetAccountID added in v0.100.0

SetAccountID : Allow user to set AccountID

func (*ReplaceNotificationPreferencesOptions) SetAccountNormal added in v0.100.0

SetAccountNormal : Allow user to set AccountNormal

func (*ReplaceNotificationPreferencesOptions) SetAnnouncementsMajor added in v0.100.0

SetAnnouncementsMajor : Allow user to set AnnouncementsMajor

func (*ReplaceNotificationPreferencesOptions) SetAnnouncementsMinor added in v0.100.0

SetAnnouncementsMinor : Allow user to set AnnouncementsMinor

func (*ReplaceNotificationPreferencesOptions) SetBillingAndUsageInvoices added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetBillingAndUsageInvoices(billingAndUsageInvoices *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetBillingAndUsageInvoices : Allow user to set BillingAndUsageInvoices

func (*ReplaceNotificationPreferencesOptions) SetBillingAndUsageOrder added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetBillingAndUsageOrder(billingAndUsageOrder *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetBillingAndUsageOrder : Allow user to set BillingAndUsageOrder

func (*ReplaceNotificationPreferencesOptions) SetBillingAndUsagePayments added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetBillingAndUsagePayments(billingAndUsagePayments *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetBillingAndUsagePayments : Allow user to set BillingAndUsagePayments

func (*ReplaceNotificationPreferencesOptions) SetBillingAndUsageSpendingAlerts added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetBillingAndUsageSpendingAlerts(billingAndUsageSpendingAlerts *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetBillingAndUsageSpendingAlerts : Allow user to set BillingAndUsageSpendingAlerts

func (*ReplaceNotificationPreferencesOptions) SetBillingAndUsageSubscriptionsAndPromoCodes added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetBillingAndUsageSubscriptionsAndPromoCodes(billingAndUsageSubscriptionsAndPromoCodes *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetBillingAndUsageSubscriptionsAndPromoCodes : Allow user to set BillingAndUsageSubscriptionsAndPromoCodes

func (*ReplaceNotificationPreferencesOptions) SetHeaders added in v0.100.0

SetHeaders : Allow user to set Headers

func (*ReplaceNotificationPreferencesOptions) SetIamID added in v0.100.0

SetIamID : Allow user to set IamID

func (*ReplaceNotificationPreferencesOptions) SetIncidentSeverity1 added in v0.100.0

SetIncidentSeverity1 : Allow user to set IncidentSeverity1

func (*ReplaceNotificationPreferencesOptions) SetIncidentSeverity2 added in v0.100.0

SetIncidentSeverity2 : Allow user to set IncidentSeverity2

func (*ReplaceNotificationPreferencesOptions) SetIncidentSeverity3 added in v0.100.0

SetIncidentSeverity3 : Allow user to set IncidentSeverity3

func (*ReplaceNotificationPreferencesOptions) SetIncidentSeverity4 added in v0.100.0

SetIncidentSeverity4 : Allow user to set IncidentSeverity4

func (*ReplaceNotificationPreferencesOptions) SetMaintenanceHigh added in v0.100.0

SetMaintenanceHigh : Allow user to set MaintenanceHigh

func (*ReplaceNotificationPreferencesOptions) SetMaintenanceLow added in v0.100.0

SetMaintenanceLow : Allow user to set MaintenanceLow

func (*ReplaceNotificationPreferencesOptions) SetMaintenanceMedium added in v0.100.0

SetMaintenanceMedium : Allow user to set MaintenanceMedium

func (*ReplaceNotificationPreferencesOptions) SetOrderingApproved added in v0.100.0

SetOrderingApproved : Allow user to set OrderingApproved

func (*ReplaceNotificationPreferencesOptions) SetOrderingApprovedServer added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetOrderingApprovedServer(orderingApprovedServer *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetOrderingApprovedServer : Allow user to set OrderingApprovedServer

func (*ReplaceNotificationPreferencesOptions) SetOrderingApprovedVsi added in v0.100.0

SetOrderingApprovedVsi : Allow user to set OrderingApprovedVsi

func (*ReplaceNotificationPreferencesOptions) SetOrderingReview added in v0.100.0

SetOrderingReview : Allow user to set OrderingReview

func (*ReplaceNotificationPreferencesOptions) SetProvisioningCompleteServer added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetProvisioningCompleteServer(provisioningCompleteServer *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetProvisioningCompleteServer : Allow user to set ProvisioningCompleteServer

func (*ReplaceNotificationPreferencesOptions) SetProvisioningCompleteVsi added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetProvisioningCompleteVsi(provisioningCompleteVsi *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetProvisioningCompleteVsi : Allow user to set ProvisioningCompleteVsi

func (*ReplaceNotificationPreferencesOptions) SetProvisioningReloadComplete added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetProvisioningReloadComplete(provisioningReloadComplete *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetProvisioningReloadComplete : Allow user to set ProvisioningReloadComplete

func (*ReplaceNotificationPreferencesOptions) SetResourceactivityNormal added in v0.100.0

func (_options *ReplaceNotificationPreferencesOptions) SetResourceactivityNormal(resourceactivityNormal *PreferenceValueWithoutUpdates) *ReplaceNotificationPreferencesOptions

SetResourceactivityNormal : Allow user to set ResourceactivityNormal

func (*ReplaceNotificationPreferencesOptions) SetSecurityNormal added in v0.100.0

SetSecurityNormal : Allow user to set SecurityNormal

type TestDestinationRequestBodyPrototype

type TestDestinationRequestBodyPrototype struct {
	// The type of the destination.
	DestinationType *string `json:"destination_type" validate:"required"`

	// The type of the notification to test.
	NotificationType *string `json:"notification_type,omitempty"`
}

TestDestinationRequestBodyPrototype : TestDestinationRequestBodyPrototype struct Models which "extend" this model: - TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype

type TestDestinationRequestBodyPrototypeIntf

type TestDestinationRequestBodyPrototypeIntf interface {
	// contains filtered or unexported methods
}

type TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype

type TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype struct {
	// The type of the destination.
	DestinationType *string `json:"destination_type" validate:"required"`

	// The type of the notification to test.
	NotificationType *string `json:"notification_type" validate:"required"`
}

TestDestinationRequestBodyPrototypeTestEventNotificationDestinationRequestBodyPrototype : Request body for testing an Event Notifications destination. This model "extends" TestDestinationRequestBodyPrototype

type TestDestinationResponseBody

type TestDestinationResponseBody struct {
	// The status message that indicates the test result.
	Message *string `json:"message" validate:"required"`
}

TestDestinationResponseBody : Response from the test notification endpoint.

type TestDistributionListDestinationOptions

type TestDistributionListDestinationOptions struct {
	// The IBM Cloud account ID.
	AccountID *string `json:"account_id" validate:"required,ne="`

	// The ID of the destination.
	DestinationID *string `json:"destination_id" validate:"required,ne="`

	TestDestinationRequestBodyPrototype TestDestinationRequestBodyPrototypeIntf `json:"TestDestinationRequestBodyPrototype" validate:"required"`

	// Allows users to set headers on API requests.
	Headers map[string]string
}

TestDistributionListDestinationOptions : The TestDistributionListDestination options.

func (*TestDistributionListDestinationOptions) SetAccountID

SetAccountID : Allow user to set AccountID

func (*TestDistributionListDestinationOptions) SetDestinationID

SetDestinationID : Allow user to set DestinationID

func (*TestDistributionListDestinationOptions) SetHeaders

SetHeaders : Allow user to set Headers

func (*TestDistributionListDestinationOptions) SetTestDestinationRequestBodyPrototype

func (_options *TestDistributionListDestinationOptions) SetTestDestinationRequestBodyPrototype(testDestinationRequestBodyPrototype TestDestinationRequestBodyPrototypeIntf) *TestDistributionListDestinationOptions

SetTestDestinationRequestBodyPrototype : Allow user to set TestDestinationRequestBodyPrototype

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL