azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/mobileengagement/mgmt/2014-12-01/mobileengagement Index | Files

package mobileengagement

import "github.com/Azure/azure-sdk-for-go/services/mobileengagement/mgmt/2014-12-01/mobileengagement"

Package mobileengagement implements the Azure ARM Mobileengagement service API version 2014-12-01.

Microsoft Azure Mobile Engagement REST APIs.

Index

Package Files

appcollections.go apps.go campaigns.go client.go devices.go exporttasks.go importtasks.go models.go supportedplatforms.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Mobileengagement
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type APIError Uses

type APIError struct {
    Error *APIErrorError `json:"error,omitempty"`
}

APIError ...

type APIErrorError Uses

type APIErrorError struct {
    Code    *string `json:"code,omitempty"`
    Message *string `json:"message,omitempty"`
}

APIErrorError ...

type AnnouncementFeedbackCriterion Uses

type AnnouncementFeedbackCriterion struct {
    // ContentID - The unique identifier of the announcement.
    ContentID *int32 `json:"content-id,omitempty"`
    // Action - Action that was performed on the announcement. Possible values include: 'Pushed', 'Replied', 'Actioned', 'Exited'
    Action CampaignFeedbacks `json:"action,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

AnnouncementFeedbackCriterion used to target devices who received an announcement.

func (AnnouncementFeedbackCriterion) AsAnnouncementFeedbackCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsApplicationVersionCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsBasicCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsBooleanTagCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsCarrierCountryCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsCarrierNameCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsDatapushFeedbackCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsDateTagCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsDeviceManufacturerCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsDeviceModelCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsFirmwareVersionCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsGeoFencingCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsIntegerTagCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsLanguageCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsLocationCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsNetworkTypeCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsPollAnswerFeedbackCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsPollFeedbackCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsScreenSizeCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsSegmentCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) AsStringTagCriterion Uses

func (afc AnnouncementFeedbackCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for AnnouncementFeedbackCriterion.

func (AnnouncementFeedbackCriterion) MarshalJSON Uses

func (afc AnnouncementFeedbackCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AnnouncementFeedbackCriterion.

type App Uses

type App struct {
    *AppProperties `json:"properties,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - Resource name
    Name *string `json:"name,omitempty"`
    // Type - Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

App the Mobile Engagement App resource.

func (App) MarshalJSON Uses

func (a App) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for App.

func (*App) UnmarshalJSON Uses

func (a *App) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for App struct.

type AppCollection Uses

type AppCollection struct {
    *AppCollectionProperties `json:"properties,omitempty"`
    // ID - Resource Id
    ID  *string `json:"id,omitempty"`
    // Name - Resource name
    Name *string `json:"name,omitempty"`
    // Type - Resource type
    Type *string `json:"type,omitempty"`
    // Location - Resource location
    Location *string `json:"location,omitempty"`
    // Tags - Resource tags
    Tags map[string]*string `json:"tags"`
}

AppCollection the AppCollection resource.

func (AppCollection) MarshalJSON Uses

func (ac AppCollection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AppCollection.

func (*AppCollection) UnmarshalJSON Uses

func (ac *AppCollection) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AppCollection struct.

type AppCollectionListResult Uses

type AppCollectionListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of AppCollections and their properties.
    Value *[]AppCollection `json:"value,omitempty"`
    // NextLink - When the results are paged, the nextLink is the URI for the next page of results. This property is empty when there are no additional pages.
    NextLink *string `json:"nextLink,omitempty"`
}

AppCollectionListResult the list AppCollections operation response.

func (AppCollectionListResult) IsEmpty Uses

func (aclr AppCollectionListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AppCollectionListResultIterator Uses

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

AppCollectionListResultIterator provides access to a complete listing of AppCollection values.

func (*AppCollectionListResultIterator) Next Uses

func (iter *AppCollectionListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AppCollectionListResultIterator) NotDone Uses

func (iter AppCollectionListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AppCollectionListResultIterator) Response Uses

func (iter AppCollectionListResultIterator) Response() AppCollectionListResult

Response returns the raw server response from the last page request.

func (AppCollectionListResultIterator) Value Uses

func (iter AppCollectionListResultIterator) Value() AppCollection

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AppCollectionListResultPage Uses

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

AppCollectionListResultPage contains a page of AppCollection values.

func (*AppCollectionListResultPage) Next Uses

func (page *AppCollectionListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AppCollectionListResultPage) NotDone Uses

func (page AppCollectionListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AppCollectionListResultPage) Response Uses

func (page AppCollectionListResultPage) Response() AppCollectionListResult

Response returns the raw server response from the last page request.

func (AppCollectionListResultPage) Values Uses

func (page AppCollectionListResultPage) Values() []AppCollection

Values returns the slice of values for the current page or nil if there are no values.

type AppCollectionNameAvailability Uses

type AppCollectionNameAvailability struct {
    autorest.Response `json:"-"`
    // Name - Name.
    Name *string `json:"name,omitempty"`
    // Available - Available.
    Available *bool `json:"available,omitempty"`
    // UnavailabilityReason - UnavailabilityReason.
    UnavailabilityReason *string `json:"unavailabilityReason,omitempty"`
}

AppCollectionNameAvailability ...

type AppCollectionProperties Uses

type AppCollectionProperties struct {
    // ProvisioningState - Mobile Engagement AppCollection Properties. Possible values include: 'Creating', 'Succeeded'
    ProvisioningState ProvisioningStates `json:"provisioningState,omitempty"`
}

AppCollectionProperties ...

type AppCollectionsClient Uses

type AppCollectionsClient struct {
    BaseClient
}

AppCollectionsClient is the microsoft Azure Mobile Engagement REST APIs.

func NewAppCollectionsClient Uses

func NewAppCollectionsClient(subscriptionID string) AppCollectionsClient

NewAppCollectionsClient creates an instance of the AppCollectionsClient client.

func NewAppCollectionsClientWithBaseURI Uses

func NewAppCollectionsClientWithBaseURI(baseURI string, subscriptionID string) AppCollectionsClient

NewAppCollectionsClientWithBaseURI creates an instance of the AppCollectionsClient client.

func (AppCollectionsClient) CheckNameAvailability Uses

func (client AppCollectionsClient) CheckNameAvailability(ctx context.Context, parameters AppCollectionNameAvailability) (result AppCollectionNameAvailability, err error)

CheckNameAvailability checks availability of an app collection name in the Engagement domain.

func (AppCollectionsClient) CheckNameAvailabilityPreparer Uses

func (client AppCollectionsClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters AppCollectionNameAvailability) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (AppCollectionsClient) CheckNameAvailabilityResponder Uses

func (client AppCollectionsClient) CheckNameAvailabilityResponder(resp *http.Response) (result AppCollectionNameAvailability, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (AppCollectionsClient) CheckNameAvailabilitySender Uses

func (client AppCollectionsClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (AppCollectionsClient) List Uses

func (client AppCollectionsClient) List(ctx context.Context) (result AppCollectionListResultPage, err error)

List lists app collections in a subscription.

func (AppCollectionsClient) ListComplete Uses

func (client AppCollectionsClient) ListComplete(ctx context.Context) (result AppCollectionListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AppCollectionsClient) ListPreparer Uses

func (client AppCollectionsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (AppCollectionsClient) ListResponder Uses

func (client AppCollectionsClient) ListResponder(resp *http.Response) (result AppCollectionListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AppCollectionsClient) ListSender Uses

func (client AppCollectionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type AppInfoFilter Uses

type AppInfoFilter struct {
    // AppInfo - An array containing all the required appInfo.
    AppInfo *[]string `json:"appInfo,omitempty"`
    // Type - Possible values include: 'TypeFilter', 'TypeEngageSubset', 'TypeEngageOldUsers', 'TypeEngageNewUsers', 'TypeEngageActiveUsers', 'TypeEngageIdleUsers', 'TypeNativePushEnabled', 'TypePushQuota', 'TypeAppInfo'
    Type TypeBasicFilter `json:"type,omitempty"`
}

AppInfoFilter send only to users who have some app info set. This is a special filter that is automatically added if your campaign contains appInfo parameters. It is not intended to be public and should not be used as it could be removed or replaced by the API.

func (AppInfoFilter) AsAppInfoFilter Uses

func (aif AppInfoFilter) AsAppInfoFilter() (*AppInfoFilter, bool)

AsAppInfoFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsBasicFilter Uses

func (aif AppInfoFilter) AsBasicFilter() (BasicFilter, bool)

AsBasicFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsEngageActiveUsersFilter Uses

func (aif AppInfoFilter) AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)

AsEngageActiveUsersFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsEngageIdleUsersFilter Uses

func (aif AppInfoFilter) AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)

AsEngageIdleUsersFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsEngageNewUsersFilter Uses

func (aif AppInfoFilter) AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)

AsEngageNewUsersFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsEngageOldUsersFilter Uses

func (aif AppInfoFilter) AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)

AsEngageOldUsersFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsEngageSubsetFilter Uses

func (aif AppInfoFilter) AsEngageSubsetFilter() (*EngageSubsetFilter, bool)

AsEngageSubsetFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsFilter Uses

func (aif AppInfoFilter) AsFilter() (*Filter, bool)

AsFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsNativePushEnabledFilter Uses

func (aif AppInfoFilter) AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)

AsNativePushEnabledFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) AsPushQuotaFilter Uses

func (aif AppInfoFilter) AsPushQuotaFilter() (*PushQuotaFilter, bool)

AsPushQuotaFilter is the BasicFilter implementation for AppInfoFilter.

func (AppInfoFilter) MarshalJSON Uses

func (aif AppInfoFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AppInfoFilter.

type AppListResult Uses

type AppListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of Apps and their properties.
    Value *[]App `json:"value,omitempty"`
    // NextLink - When the results are paged, the nextLink is the URI for the next page of results. This property is empty when there are no additional pages.
    NextLink *string `json:"nextLink,omitempty"`
}

AppListResult the list Apps operation response.

func (AppListResult) IsEmpty Uses

func (alr AppListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AppListResultIterator Uses

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

AppListResultIterator provides access to a complete listing of App values.

func (*AppListResultIterator) Next Uses

func (iter *AppListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AppListResultIterator) NotDone Uses

func (iter AppListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AppListResultIterator) Response Uses

func (iter AppListResultIterator) Response() AppListResult

Response returns the raw server response from the last page request.

func (AppListResultIterator) Value Uses

func (iter AppListResultIterator) Value() App

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AppListResultPage Uses

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

AppListResultPage contains a page of App values.

func (*AppListResultPage) Next Uses

func (page *AppListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AppListResultPage) NotDone Uses

func (page AppListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AppListResultPage) Response Uses

func (page AppListResultPage) Response() AppListResult

Response returns the raw server response from the last page request.

func (AppListResultPage) Values Uses

func (page AppListResultPage) Values() []App

Values returns the slice of values for the current page or nil if there are no values.

type AppProperties Uses

type AppProperties struct {
    // BackendID - The application unique identifier.
    BackendID *string `json:"backendId,omitempty"`
    // Platform - The platform of the app.
    Platform *string `json:"platform,omitempty"`
    // AppState - The state of the application.
    AppState *string `json:"appState,omitempty"`
}

AppProperties ...

type ApplicationVersionCriterion Uses

type ApplicationVersionCriterion struct {
    // Name - The application version.
    Name *string `json:"name,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

ApplicationVersionCriterion used to target devices based on the version of the application they are using.

func (ApplicationVersionCriterion) AsAnnouncementFeedbackCriterion Uses

func (avc ApplicationVersionCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsApplicationVersionCriterion Uses

func (avc ApplicationVersionCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsBasicCriterion Uses

func (avc ApplicationVersionCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsBooleanTagCriterion Uses

func (avc ApplicationVersionCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsCarrierCountryCriterion Uses

func (avc ApplicationVersionCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsCarrierNameCriterion Uses

func (avc ApplicationVersionCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsCriterion Uses

func (avc ApplicationVersionCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsDatapushFeedbackCriterion Uses

func (avc ApplicationVersionCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsDateTagCriterion Uses

func (avc ApplicationVersionCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsDeviceManufacturerCriterion Uses

func (avc ApplicationVersionCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsDeviceModelCriterion Uses

func (avc ApplicationVersionCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsFirmwareVersionCriterion Uses

func (avc ApplicationVersionCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsGeoFencingCriterion Uses

func (avc ApplicationVersionCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsIntegerTagCriterion Uses

func (avc ApplicationVersionCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsLanguageCriterion Uses

func (avc ApplicationVersionCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsLocationCriterion Uses

func (avc ApplicationVersionCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsNetworkTypeCriterion Uses

func (avc ApplicationVersionCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsPollAnswerFeedbackCriterion Uses

func (avc ApplicationVersionCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsPollFeedbackCriterion Uses

func (avc ApplicationVersionCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsScreenSizeCriterion Uses

func (avc ApplicationVersionCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsSegmentCriterion Uses

func (avc ApplicationVersionCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) AsStringTagCriterion Uses

func (avc ApplicationVersionCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for ApplicationVersionCriterion.

func (ApplicationVersionCriterion) MarshalJSON Uses

func (avc ApplicationVersionCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationVersionCriterion.

type AppsClient Uses

type AppsClient struct {
    BaseClient
}

AppsClient is the microsoft Azure Mobile Engagement REST APIs.

func NewAppsClient Uses

func NewAppsClient(subscriptionID string) AppsClient

NewAppsClient creates an instance of the AppsClient client.

func NewAppsClientWithBaseURI Uses

func NewAppsClientWithBaseURI(baseURI string, subscriptionID string) AppsClient

NewAppsClientWithBaseURI creates an instance of the AppsClient client.

func (AppsClient) List Uses

func (client AppsClient) List(ctx context.Context, resourceGroupName string, appCollection string) (result AppListResultPage, err error)

List lists apps in an appCollection.

resourceGroupName is the name of the resource group. appCollection is application collection.

func (AppsClient) ListComplete Uses

func (client AppsClient) ListComplete(ctx context.Context, resourceGroupName string, appCollection string) (result AppListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (AppsClient) ListPreparer Uses

func (client AppsClient) ListPreparer(ctx context.Context, resourceGroupName string, appCollection string) (*http.Request, error)

ListPreparer prepares the List request.

func (AppsClient) ListResponder Uses

func (client AppsClient) ListResponder(resp *http.Response) (result AppListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (AppsClient) ListSender Uses

func (client AppsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type AudienceOperators Uses

type AudienceOperators string

AudienceOperators enumerates the values for audience operators.

const (
    // EQ ...
    EQ  AudienceOperators = "EQ"
    // GE ...
    GE  AudienceOperators = "GE"
    // GT ...
    GT  AudienceOperators = "GT"
    // LE ...
    LE  AudienceOperators = "LE"
    // LT ...
    LT  AudienceOperators = "LT"
)

func PossibleAudienceOperatorsValues Uses

func PossibleAudienceOperatorsValues() []AudienceOperators

PossibleAudienceOperatorsValues returns an array of possible values for the AudienceOperators const type.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Mobileengagement.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicCriterion Uses

type BasicCriterion interface {
    AsCarrierNameCriterion() (*CarrierNameCriterion, bool)
    AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)
    AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)
    AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)
    AsDeviceModelCriterion() (*DeviceModelCriterion, bool)
    AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)
    AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)
    AsLanguageCriterion() (*LanguageCriterion, bool)
    AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)
    AsLocationCriterion() (*LocationCriterion, bool)
    AsGeoFencingCriterion() (*GeoFencingCriterion, bool)
    AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)
    AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)
    AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)
    AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)
    AsSegmentCriterion() (*SegmentCriterion, bool)
    AsStringTagCriterion() (*StringTagCriterion, bool)
    AsDateTagCriterion() (*DateTagCriterion, bool)
    AsIntegerTagCriterion() (*IntegerTagCriterion, bool)
    AsBooleanTagCriterion() (*BooleanTagCriterion, bool)
    AsCriterion() (*Criterion, bool)
}

BasicCriterion ...

type BasicFilter Uses

type BasicFilter interface {
    AsEngageSubsetFilter() (*EngageSubsetFilter, bool)
    AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)
    AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)
    AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)
    AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)
    AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)
    AsPushQuotaFilter() (*PushQuotaFilter, bool)
    AsAppInfoFilter() (*AppInfoFilter, bool)
    AsFilter() (*Filter, bool)
}

BasicFilter ...

type BooleanTagCriterion Uses

type BooleanTagCriterion struct {
    // Name - The name of the custom tag.
    Name *string `json:"name,omitempty"`
    // Value - A custom boolean value to match.
    Value *bool `json:"value,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

BooleanTagCriterion target devices based on a boolean tag value.

func (BooleanTagCriterion) AsAnnouncementFeedbackCriterion Uses

func (btc BooleanTagCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsApplicationVersionCriterion Uses

func (btc BooleanTagCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsBasicCriterion Uses

func (btc BooleanTagCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsBooleanTagCriterion Uses

func (btc BooleanTagCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsCarrierCountryCriterion Uses

func (btc BooleanTagCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsCarrierNameCriterion Uses

func (btc BooleanTagCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsCriterion Uses

func (btc BooleanTagCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsDatapushFeedbackCriterion Uses

func (btc BooleanTagCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsDateTagCriterion Uses

func (btc BooleanTagCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsDeviceManufacturerCriterion Uses

func (btc BooleanTagCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsDeviceModelCriterion Uses

func (btc BooleanTagCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsFirmwareVersionCriterion Uses

func (btc BooleanTagCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsGeoFencingCriterion Uses

func (btc BooleanTagCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsIntegerTagCriterion Uses

func (btc BooleanTagCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsLanguageCriterion Uses

func (btc BooleanTagCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsLocationCriterion Uses

func (btc BooleanTagCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsNetworkTypeCriterion Uses

func (btc BooleanTagCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsPollAnswerFeedbackCriterion Uses

func (btc BooleanTagCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsPollFeedbackCriterion Uses

func (btc BooleanTagCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsScreenSizeCriterion Uses

func (btc BooleanTagCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsSegmentCriterion Uses

func (btc BooleanTagCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) AsStringTagCriterion Uses

func (btc BooleanTagCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for BooleanTagCriterion.

func (BooleanTagCriterion) MarshalJSON Uses

func (btc BooleanTagCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BooleanTagCriterion.

type Campaign Uses

type Campaign struct {
    // Name - Unique name of the campaign.
    Name *string `json:"name,omitempty"`
    // Audience - Specify which users will be targeted by this campaign. By default, all users will be targeted. If you set `pushMode` property to `manual`, the only thing you can specify in the audience is the push quota filter. An audience is a boolean expression made of criteria (variables) operators (`not`, `and` or `or`) and parenthesis. Additionally, a set of filters can be added to an audience. 65535 bytes max as per JSON encoding.
    Audience *CampaignAudience `json:"audience,omitempty"`
    // Category - Category of the campaign. Categories can be used on the application side to customize campaigns.
    Category *string `json:"category,omitempty"`
    // PushMode - Announcements/polls only. Defines how the campaign is pushed. Valid values are: * `real-time`: Never ending campaign, the campaign will be delivered  to your existing users and also to your new users. * `one-shot`: In this mode, the campaign will be delivered only to your existing users (campaign will stop after that). * `manual`: In this mode, the campaign will not be pushed automatically to devices. You will have to use the Push campaign command to push the campaign to your end-users. Campaigns can be pushed multiple times to the same device.
    // . Possible values include: 'RealTime', 'OneShot', 'Manual'
    PushMode PushModes `json:"pushMode,omitempty"`
    // Type - Applicable only to announcements and data pushes. Type of announcement. Valid values are: * `text/plain`: Text-only announcement: `body` property should only contain plain text. * `text/html`: HTML announcement: `body` attribute can contain HTML code. * `only_notif`: Notification-only announcement. With this kind of announcements, the `body`, `title`, `actionButtonText` and `exitButtonText` are ignored. Type of data push. Valid values are: * `text/plain`: Text only data push: `body` property must be plain text. * `text/base64`: Base 64 data push: `body` property must be encoded in base 64.
    // . Possible values include: 'Textplain', 'Texthtml', 'OnlyNotif', 'Textbase64'
    Type CampaignTypes `json:"type,omitempty"`
    // DeliveryTime - Announcements/polls only. Defines when the campaign should be delivered. Valid values are: * `any`: Campaign will be delivered as soon as possible. * `background`: iOS only. Campaign will be only delivered when the application is in background (out of app). * `session`: Campaign will be delivered when the application is running.
    // . Possible values include: 'Any', 'Background', 'Session'
    DeliveryTime DeliveryTimes `json:"deliveryTime,omitempty"`
    // DeliveryActivities - Announcements/polls only. Array containing the list of activities in which the campaign can be delivered. deliveryTime must be set to session. If the platform is iOS, this option can also be set if deliveryTime is set to any. In that case, if the campaign is received when the application is launched, it will be delivered only in the specified list of activities.
    DeliveryActivities *[]string `json:"deliveryActivities,omitempty"`
    // StartTime - The date at which the campaign should be started. The date shall conform to the following format: `yyyy-MM-ddTHH:mm:ssZ`. * If you set pushMode property to manual, this attribute will be ignored. * If you set pushMode property to one-shot, then the timezone attribute must be specified. Example: `2011-11-21 15:23Z`
    StartTime *string `json:"startTime,omitempty"`
    // EndTime - The date at which the campaign should be finished. The date shall conform to the following format: `yyyy-MM-ddTHH:mm:ssZ`. Example: `2011-11-21 15:23Z`
    EndTime *string `json:"endTime,omitempty"`
    // Timezone - The id of the time zone to use for the startTime and endTime dates. If not provided, the two date attributes will be expressed using the device timezone. Example: America/Los_Angeles
    Timezone *string `json:"timezone,omitempty"`
    // NotificationType - Android only. Defines how the notification should be displayed. Valid values are: * `system`: Display the notification using a standard system notification. * `popup`: Display the notification using a in-app banner notification.
    // . Possible values include: 'System', 'Popup'
    NotificationType NotificationTypes `json:"notificationType,omitempty"`
    // NotificationIcon - A flag indicating whether or not you want to display the resource icon in notification content.
    NotificationIcon *bool `json:"notificationIcon,omitempty"`
    // NotificationCloseable - A flag indicating whether or not you want the notification to be closeable.
    NotificationCloseable *bool `json:"notificationCloseable,omitempty"`
    // NotificationVibrate - Android only. A flag indicating whether or not you want the system notification to make a vibration. The notificationType property must be set to system.
    NotificationVibrate *bool `json:"notificationVibrate,omitempty"`
    // NotificationSound - * `Android`: A flag indicating whether or not you want the system notification to make a sound. The `notificationType` property must be set to `system`. * `iOS`: A flag indicating whether or not you want the native Apple Push notification to make a sound. The `deliveryTime` property must be set to `any` or `background`. This will play the 'default' sound. If you want to play a custom sound, see the `notificationOptions` property. * `Windows`: A flag indicating whether or not you want the native Windows Notification Service to make a sound. The `deliveryTime` property must be set to `any`.
    NotificationSound *bool `json:"notificationSound,omitempty"`
    // NotificationBadge - A flag indicating whether or not you want the native Apple Push notification to update the badge icon to the number of unread messages. The `deliveryTime` property must be set to `any` or `background`.
    NotificationBadge *bool `json:"notificationBadge,omitempty"`
    // Localization - Push campaigns can be localized using an optional JSON object. The JSON key is a two-character language code as specified by the ISO 639-1 standard. The corresponding value is an object containing the localizable properties.
    Localization map[string]*CampaignLocalization `json:"localization"`
    // Questions - Poll questions.
    Questions *[]PollQuestion `json:"questions,omitempty"`
    // NotificationTitle - Title of the notification. This field supports appInfo markers.
    NotificationTitle *string `json:"notificationTitle,omitempty"`
    // NotificationMessage - Message of the notification. This field supports appInfo markers.
    NotificationMessage *string `json:"notificationMessage,omitempty"`
    // NotificationImage - Optional image encoded in base 64. Usually included in the right part of in app notifications (or as a banner if there is neither text nor content icon). For Android system notifications, the image is used as the large icon (displayed only on Android 3+).
    NotificationImage *[]byte `json:"notificationImage,omitempty"`
    // NotificationOptions - Additional platform specific options.
    NotificationOptions *NotificationOptions `json:"notificationOptions,omitempty"`
    // Title - Title of the announcement or poll. This field supports appInfo markers.
    Title *string `json:"title,omitempty"`
    // Body - Body of the text/web announcement, poll or data push. This field supports appInfo markers.
    Body *string `json:"body,omitempty"`
    // ActionButtonText - Text of the action button for text/web announcements and polls (answer button).
    ActionButtonText *string `json:"actionButtonText,omitempty"`
    // ExitButtonText - Text of the exit button for text/web announcements and polls.
    ExitButtonText *string `json:"exitButtonText,omitempty"`
    // ActionURL - URL to launch when the announcement is actioned.
    ActionURL *string `json:"actionUrl,omitempty"`
    // Payload - Native push payload.
    Payload interface{} `json:"payload,omitempty"`
}

Campaign ...

func (Campaign) MarshalJSON Uses

func (c Campaign) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Campaign.

type CampaignAudience Uses

type CampaignAudience struct {
    // Expression - Boolean expression made of criteria (variables) operators (`not`, `and` or `or`) and parenthesis. Criterion names in the audience expression must start with a capital letter and can only contain alphanumeric (A-Z,a-z,0-9) and underscore (_) characters.
    Expression *string `json:"expression,omitempty"`
    // Criteria - Criteria by name.
    Criteria map[string]*Criterion `json:"criteria"`
    // Filters - Global filters applied to all devices.
    Filters *[]BasicFilter `json:"filters,omitempty"`
}

CampaignAudience specify which users will be targeted by this campaign. By default, all users will be targeted. If you set `pushMode` property to `manual`, the only thing you can specify in the audience is the push quota filter. An audience is a boolean expression made of criteria (variables) operators (`not`, `and` or `or`) and parenthesis. Additionally, a set of filters can be added to an audience. 65535 bytes max as per JSON encoding.

func (CampaignAudience) MarshalJSON Uses

func (c CampaignAudience) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CampaignAudience.

func (*CampaignAudience) UnmarshalJSON Uses

func (c *CampaignAudience) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CampaignAudience struct.

type CampaignFeedbacks Uses

type CampaignFeedbacks string

CampaignFeedbacks enumerates the values for campaign feedbacks.

const (
    // Actioned ...
    Actioned CampaignFeedbacks = "actioned"
    // Exited ...
    Exited CampaignFeedbacks = "exited"
    // Pushed ...
    Pushed CampaignFeedbacks = "pushed"
    // Replied ...
    Replied CampaignFeedbacks = "replied"
)

func PossibleCampaignFeedbacksValues Uses

func PossibleCampaignFeedbacksValues() []CampaignFeedbacks

PossibleCampaignFeedbacksValues returns an array of possible values for the CampaignFeedbacks const type.

type CampaignKinds Uses

type CampaignKinds string

CampaignKinds enumerates the values for campaign kinds.

const (
    // Announcements ...
    Announcements CampaignKinds = "announcements"
    // DataPushes ...
    DataPushes CampaignKinds = "dataPushes"
    // NativePushes ...
    NativePushes CampaignKinds = "nativePushes"
    // Polls ...
    Polls CampaignKinds = "polls"
)

func PossibleCampaignKindsValues Uses

func PossibleCampaignKindsValues() []CampaignKinds

PossibleCampaignKindsValues returns an array of possible values for the CampaignKinds const type.

type CampaignListResult Uses

type CampaignListResult struct {
    // Name - Name of the campaign.
    Name *string `json:"name,omitempty"`
    // ActivatedDate - The date at which the campaign was activated (Not present if not yet activated). The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    ActivatedDate *date.Time `json:"activatedDate,omitempty"`
    // FinishedDate - The date at which the campaign was finished (Not present if not yet finished). The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
    FinishedDate *date.Time `json:"finishedDate,omitempty"`
    // StartTime - The date at which the campaign should be started if specified. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. Applicable only to announcements and polls.
    StartTime *date.Time `json:"startTime,omitempty"`
    // EndTime - The date at which the campaign should be finished if specified. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. Applicable only to announcements and polls.
    EndTime *date.Time `json:"endTime,omitempty"`
    // Timezone - The id of the time zone to use for the `startTime` and `endTime` dates. If not provided, the two date attributes are referencing to the device timezone. Applicable only to announcements and polls.
    Timezone *string `json:"timezone,omitempty"`
    // ID - Campaign identifier.
    ID  *int32 `json:"id,omitempty"`
    // State - State of the campaign, or 'queued' when testing a campaign. Possible values include: 'Draft', 'Scheduled', 'InProgress', 'Finished', 'Queued'
    State CampaignStates `json:"state,omitempty"`
}

CampaignListResult ...

type CampaignLocalization Uses

type CampaignLocalization struct {
    // NotificationTitle - Title of the notification. This field supports appInfo markers.
    NotificationTitle *string `json:"notificationTitle,omitempty"`
    // NotificationMessage - Message of the notification. This field supports appInfo markers.
    NotificationMessage *string `json:"notificationMessage,omitempty"`
    // NotificationImage - Optional image encoded in base 64. Usually included in the right part of in app notifications (or as a banner if there is neither text nor content icon). For Android system notifications, the image is used as the large icon (displayed only on Android 3+).
    NotificationImage *[]byte `json:"notificationImage,omitempty"`
    // NotificationOptions - Additional platform specific options.
    NotificationOptions *NotificationOptions `json:"notificationOptions,omitempty"`
    // Title - Title of the announcement or poll. This field supports appInfo markers.
    Title *string `json:"title,omitempty"`
    // Body - Body of the text/web announcement, poll or data push. This field supports appInfo markers.
    Body *string `json:"body,omitempty"`
    // ActionButtonText - Text of the action button for text/web announcements and polls (answer button).
    ActionButtonText *string `json:"actionButtonText,omitempty"`
    // ExitButtonText - Text of the exit button for text/web announcements and polls.
    ExitButtonText *string `json:"exitButtonText,omitempty"`
    // ActionURL - URL to launch when the announcement is actioned.
    ActionURL *string `json:"actionUrl,omitempty"`
    // Payload - Native push payload.
    Payload interface{} `json:"payload,omitempty"`
}

CampaignLocalization ...

type CampaignPushParameters Uses

type CampaignPushParameters struct {
    // DeviceIds - Device identifiers to push as a JSON array of strings. Note that if you want to push the same campaign several times to the same device, you need to make several API calls.
    DeviceIds *[]string `json:"deviceIds,omitempty"`
    // Data - Alternative campaign's content to use instead of the referenced campaign. All campaign's properties can be overridden except for the following: `name`, `manualPush`, `audience`, `startTime` and `timezone`. `endTime` can be overridden while keeping original `timezone` parameter. The effect is to change the client side expiration of the received campaign for the specific devices. If your campaign is a *poll*, the provided data should contain the same number of questions and choices that the one you created with the create command. Please note that all the push messages created using this parameter will expire after 4 weeks at maximum (`endTime` property of the campaign will be used if lower than 4 weeks in the future).
    Data *Campaign `json:"data,omitempty"`
}

CampaignPushParameters ...

type CampaignPushResult Uses

type CampaignPushResult struct {
    autorest.Response `json:"-"`
    // InvalidDeviceIds - A JSON array containing all identifiers that have been rejected. A device can be rejected for the following reasons: * The device hasn’t reported any session yet. * The device is over quota (if a push quota filter is applied on your campaign). Please note that if the request parameters are valid but all the specified devices are rejected, the status code is still `200` with a response including all the devices as being rejected.
    InvalidDeviceIds *[]string `json:"invalidDeviceIds,omitempty"`
}

CampaignPushResult ...

type CampaignResult Uses

type CampaignResult struct {
    autorest.Response `json:"-"`
    // ID - Campaign identifier.
    ID  *int32 `json:"id,omitempty"`
    // State - State of the campaign, or 'queued' when testing a campaign. Possible values include: 'Draft', 'Scheduled', 'InProgress', 'Finished', 'Queued'
    State CampaignStates `json:"state,omitempty"`
    // ActivatedDate - The date at which the campaign was activated (Not present if not yet activated). The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
    ActivatedDate *date.Time `json:"activatedDate,omitempty"`
    // FinishedDate - The date at which the campaign was finished (Not present if not yet finished). The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
    FinishedDate *date.Time `json:"finishedDate,omitempty"`
    // Name - Unique name of the campaign.
    Name *string `json:"name,omitempty"`
    // Audience - Specify which users will be targeted by this campaign. By default, all users will be targeted. If you set `pushMode` property to `manual`, the only thing you can specify in the audience is the push quota filter. An audience is a boolean expression made of criteria (variables) operators (`not`, `and` or `or`) and parenthesis. Additionally, a set of filters can be added to an audience. 65535 bytes max as per JSON encoding.
    Audience *CampaignAudience `json:"audience,omitempty"`
    // Category - Category of the campaign. Categories can be used on the application side to customize campaigns.
    Category *string `json:"category,omitempty"`
    // PushMode - Announcements/polls only. Defines how the campaign is pushed. Valid values are: * `real-time`: Never ending campaign, the campaign will be delivered  to your existing users and also to your new users. * `one-shot`: In this mode, the campaign will be delivered only to your existing users (campaign will stop after that). * `manual`: In this mode, the campaign will not be pushed automatically to devices. You will have to use the Push campaign command to push the campaign to your end-users. Campaigns can be pushed multiple times to the same device.
    // . Possible values include: 'RealTime', 'OneShot', 'Manual'
    PushMode PushModes `json:"pushMode,omitempty"`
    // Type - Applicable only to announcements and data pushes. Type of announcement. Valid values are: * `text/plain`: Text-only announcement: `body` property should only contain plain text. * `text/html`: HTML announcement: `body` attribute can contain HTML code. * `only_notif`: Notification-only announcement. With this kind of announcements, the `body`, `title`, `actionButtonText` and `exitButtonText` are ignored. Type of data push. Valid values are: * `text/plain`: Text only data push: `body` property must be plain text. * `text/base64`: Base 64 data push: `body` property must be encoded in base 64.
    // . Possible values include: 'Textplain', 'Texthtml', 'OnlyNotif', 'Textbase64'
    Type CampaignTypes `json:"type,omitempty"`
    // DeliveryTime - Announcements/polls only. Defines when the campaign should be delivered. Valid values are: * `any`: Campaign will be delivered as soon as possible. * `background`: iOS only. Campaign will be only delivered when the application is in background (out of app). * `session`: Campaign will be delivered when the application is running.
    // . Possible values include: 'Any', 'Background', 'Session'
    DeliveryTime DeliveryTimes `json:"deliveryTime,omitempty"`
    // DeliveryActivities - Announcements/polls only. Array containing the list of activities in which the campaign can be delivered. deliveryTime must be set to session. If the platform is iOS, this option can also be set if deliveryTime is set to any. In that case, if the campaign is received when the application is launched, it will be delivered only in the specified list of activities.
    DeliveryActivities *[]string `json:"deliveryActivities,omitempty"`
    // StartTime - The date at which the campaign should be started. The date shall conform to the following format: `yyyy-MM-ddTHH:mm:ssZ`. * If you set pushMode property to manual, this attribute will be ignored. * If you set pushMode property to one-shot, then the timezone attribute must be specified. Example: `2011-11-21 15:23Z`
    StartTime *string `json:"startTime,omitempty"`
    // EndTime - The date at which the campaign should be finished. The date shall conform to the following format: `yyyy-MM-ddTHH:mm:ssZ`. Example: `2011-11-21 15:23Z`
    EndTime *string `json:"endTime,omitempty"`
    // Timezone - The id of the time zone to use for the startTime and endTime dates. If not provided, the two date attributes will be expressed using the device timezone. Example: America/Los_Angeles
    Timezone *string `json:"timezone,omitempty"`
    // NotificationType - Android only. Defines how the notification should be displayed. Valid values are: * `system`: Display the notification using a standard system notification. * `popup`: Display the notification using a in-app banner notification.
    // . Possible values include: 'System', 'Popup'
    NotificationType NotificationTypes `json:"notificationType,omitempty"`
    // NotificationIcon - A flag indicating whether or not you want to display the resource icon in notification content.
    NotificationIcon *bool `json:"notificationIcon,omitempty"`
    // NotificationCloseable - A flag indicating whether or not you want the notification to be closeable.
    NotificationCloseable *bool `json:"notificationCloseable,omitempty"`
    // NotificationVibrate - Android only. A flag indicating whether or not you want the system notification to make a vibration. The notificationType property must be set to system.
    NotificationVibrate *bool `json:"notificationVibrate,omitempty"`
    // NotificationSound - * `Android`: A flag indicating whether or not you want the system notification to make a sound. The `notificationType` property must be set to `system`. * `iOS`: A flag indicating whether or not you want the native Apple Push notification to make a sound. The `deliveryTime` property must be set to `any` or `background`. This will play the 'default' sound. If you want to play a custom sound, see the `notificationOptions` property. * `Windows`: A flag indicating whether or not you want the native Windows Notification Service to make a sound. The `deliveryTime` property must be set to `any`.
    NotificationSound *bool `json:"notificationSound,omitempty"`
    // NotificationBadge - A flag indicating whether or not you want the native Apple Push notification to update the badge icon to the number of unread messages. The `deliveryTime` property must be set to `any` or `background`.
    NotificationBadge *bool `json:"notificationBadge,omitempty"`
    // Localization - Push campaigns can be localized using an optional JSON object. The JSON key is a two-character language code as specified by the ISO 639-1 standard. The corresponding value is an object containing the localizable properties.
    Localization map[string]*CampaignLocalization `json:"localization"`
    // Questions - Poll questions.
    Questions *[]PollQuestion `json:"questions,omitempty"`
    // NotificationTitle - Title of the notification. This field supports appInfo markers.
    NotificationTitle *string `json:"notificationTitle,omitempty"`
    // NotificationMessage - Message of the notification. This field supports appInfo markers.
    NotificationMessage *string `json:"notificationMessage,omitempty"`
    // NotificationImage - Optional image encoded in base 64. Usually included in the right part of in app notifications (or as a banner if there is neither text nor content icon). For Android system notifications, the image is used as the large icon (displayed only on Android 3+).
    NotificationImage *[]byte `json:"notificationImage,omitempty"`
    // NotificationOptions - Additional platform specific options.
    NotificationOptions *NotificationOptions `json:"notificationOptions,omitempty"`
    // Title - Title of the announcement or poll. This field supports appInfo markers.
    Title *string `json:"title,omitempty"`
    // Body - Body of the text/web announcement, poll or data push. This field supports appInfo markers.
    Body *string `json:"body,omitempty"`
    // ActionButtonText - Text of the action button for text/web announcements and polls (answer button).
    ActionButtonText *string `json:"actionButtonText,omitempty"`
    // ExitButtonText - Text of the exit button for text/web announcements and polls.
    ExitButtonText *string `json:"exitButtonText,omitempty"`
    // ActionURL - URL to launch when the announcement is actioned.
    ActionURL *string `json:"actionUrl,omitempty"`
    // Payload - Native push payload.
    Payload interface{} `json:"payload,omitempty"`
}

CampaignResult ...

func (CampaignResult) MarshalJSON Uses

func (cr CampaignResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CampaignResult.

type CampaignState Uses

type CampaignState struct {
    autorest.Response `json:"-"`
    // State - State of the campaign, or 'queued' when testing a campaign. Possible values include: 'Draft', 'Scheduled', 'InProgress', 'Finished', 'Queued'
    State CampaignStates `json:"state,omitempty"`
}

CampaignState ...

type CampaignStateResult Uses

type CampaignStateResult struct {
    autorest.Response `json:"-"`
    // ID - Campaign identifier.
    ID  *int32 `json:"id,omitempty"`
    // State - State of the campaign, or 'queued' when testing a campaign. Possible values include: 'Draft', 'Scheduled', 'InProgress', 'Finished', 'Queued'
    State CampaignStates `json:"state,omitempty"`
}

CampaignStateResult ...

type CampaignStates Uses

type CampaignStates string

CampaignStates enumerates the values for campaign states.

const (
    // Draft ...
    Draft CampaignStates = "draft"
    // Finished ...
    Finished CampaignStates = "finished"
    // InProgress ...
    InProgress CampaignStates = "in-progress"
    // Queued ...
    Queued CampaignStates = "queued"
    // Scheduled ...
    Scheduled CampaignStates = "scheduled"
)

func PossibleCampaignStatesValues Uses

func PossibleCampaignStatesValues() []CampaignStates

PossibleCampaignStatesValues returns an array of possible values for the CampaignStates const type.

type CampaignStatisticsResult Uses

type CampaignStatisticsResult struct {
    autorest.Response `json:"-"`
    // Queued - Number of times the campaign was registered to be pushed.
    Queued *int32 `json:"queued,omitempty"`
    // Pushed - Number of pushes performed.
    Pushed *int32 `json:"pushed,omitempty"`
    // PushedNative - Total number of native pushes. Information only available on Android, iOS, Windows Phone and Windows applications.
    PushedNative *int32 `json:"pushed-native,omitempty"`
    // PushedNativeGoogle - Number of C2DM/GCM pushes (available only on Android applications).
    PushedNativeGoogle *int32 `json:"pushed-native-google,omitempty"`
    // PushedNativeAdm - Number of ADM pushes (available only on Android applications).
    PushedNativeAdm *int32 `json:"pushed-native-adm,omitempty"`
    // Delivered - Number of times the campaign was received by the application (Not present in case of a native-push).
    Delivered *int32 `json:"delivered,omitempty"`
    // Dropped - Number of times the campaign was dropped by the application. It can happen if the SDK failed to parse the campaign payload or if an error occurred while trying to notify the end-user (Not present in case of a native-push).
    Dropped *int32 `json:"dropped,omitempty"`
    // SystemNotificationDisplayed - Number of times the system notification was displayed (Not present in case of a data-push or a native-push). On Android it corresponds to a status bar notification.
    SystemNotificationDisplayed *int32 `json:"system-notification-displayed,omitempty"`
    // InAppNotificationDisplayed - Number of times the in-app notification was displayed (Not present in case of a data-push or a native-push).
    InAppNotificationDisplayed *int32 `json:"in-app-notification-displayed,omitempty"`
    // ContentDisplayed - Number of times the campaign’s content view was displayed (Not present in case of a notification-only announcement, a data-push or a native-push).
    ContentDisplayed *int32 `json:"content-displayed,omitempty"`
    // SystemNotificationActioned - Number of times the system notification (On Android it corresponds to a status bar notification. On iOS, it is the Apple Push notification) was actioned.
    SystemNotificationActioned *int32 `json:"system-notification-actioned,omitempty"`
    // SystemNotificationExited - Number of times the system notification was exited (Not present in case of a data-push or a native-push).
    SystemNotificationExited *int32 `json:"system-notification-exited,omitempty"`
    // InAppNotificationActioned - Number of times the in-app notification was actioned (Not present in case of a data-push or a native-push).
    InAppNotificationActioned *int32 `json:"in-app-notification-actioned,omitempty"`
    // InAppNotificationExited - Number of times the in-app notification was exited (Not present in case of a data-push or a native-push).
    InAppNotificationExited *int32 `json:"in-app-notification-exited,omitempty"`
    // ContentActioned - Number of times the campaign’s content view was actioned (Not present in case of a notification-only announcement or a native-push).
    ContentActioned *int32 `json:"content-actioned,omitempty"`
    // ContentExited - Number of times the campaign’s content view was exited (Not present in case of a notification-only announcement or a native-push).
    ContentExited *int32 `json:"content-exited,omitempty"`
    // Answers - Poll specific statistics.
    Answers map[string]interface{} `json:"answers"`
}

CampaignStatisticsResult ...

func (CampaignStatisticsResult) MarshalJSON Uses

func (csr CampaignStatisticsResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CampaignStatisticsResult.

type CampaignTestNewParameters Uses

type CampaignTestNewParameters struct {
    Data *Campaign `json:"data,omitempty"`
    // DeviceID - Device identifier (as returned by the SDK).
    DeviceID *string `json:"deviceId,omitempty"`
    // Lang - The language to test expressed using ISO 639-1 code. The default language of the campaign will be used if the parameter is not provided.
    Lang *string `json:"lang,omitempty"`
}

CampaignTestNewParameters ...

type CampaignTestSavedParameters Uses

type CampaignTestSavedParameters struct {
    // DeviceID - Device identifier (as returned by the SDK).
    DeviceID *string `json:"deviceId,omitempty"`
    // Lang - The language to test expressed using ISO 639-1 code. The default language of the campaign will be used if the parameter is not provided.
    Lang *string `json:"lang,omitempty"`
}

CampaignTestSavedParameters ...

type CampaignType Uses

type CampaignType string

CampaignType enumerates the values for campaign type.

const (
    // Announcement ...
    Announcement CampaignType = "Announcement"
    // DataPush ...
    DataPush CampaignType = "DataPush"
    // NativePush ...
    NativePush CampaignType = "NativePush"
    // Poll ...
    Poll CampaignType = "Poll"
)

func PossibleCampaignTypeValues Uses

func PossibleCampaignTypeValues() []CampaignType

PossibleCampaignTypeValues returns an array of possible values for the CampaignType const type.

type CampaignTypes Uses

type CampaignTypes string

CampaignTypes enumerates the values for campaign types.

const (
    // OnlyNotif ...
    OnlyNotif CampaignTypes = "only_notif"
    // Textbase64 ...
    Textbase64 CampaignTypes = "text/base64"
    // Texthtml ...
    Texthtml CampaignTypes = "text/html"
    // Textplain ...
    Textplain CampaignTypes = "text/plain"
)

func PossibleCampaignTypesValues Uses

func PossibleCampaignTypesValues() []CampaignTypes

PossibleCampaignTypesValues returns an array of possible values for the CampaignTypes const type.

type CampaignsClient Uses

type CampaignsClient struct {
    BaseClient
}

CampaignsClient is the microsoft Azure Mobile Engagement REST APIs.

func NewCampaignsClient Uses

func NewCampaignsClient(subscriptionID string) CampaignsClient

NewCampaignsClient creates an instance of the CampaignsClient client.

func NewCampaignsClientWithBaseURI Uses

func NewCampaignsClientWithBaseURI(baseURI string, subscriptionID string) CampaignsClient

NewCampaignsClientWithBaseURI creates an instance of the CampaignsClient client.

func (CampaignsClient) Activate Uses

func (client CampaignsClient) Activate(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32) (result CampaignStateResult, err error)

Activate activate a campaign previously created by a call to Create campaign.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. ID is campaign identifier.

func (CampaignsClient) ActivatePreparer Uses

func (client CampaignsClient) ActivatePreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32) (*http.Request, error)

ActivatePreparer prepares the Activate request.

func (CampaignsClient) ActivateResponder Uses

func (client CampaignsClient) ActivateResponder(resp *http.Response) (result CampaignStateResult, err error)

ActivateResponder handles the response to the Activate request. The method always closes the http.Response Body.

func (CampaignsClient) ActivateSender Uses

func (client CampaignsClient) ActivateSender(req *http.Request) (*http.Response, error)

ActivateSender sends the Activate request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) Create Uses

func (client CampaignsClient) Create(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, parameters Campaign) (result CampaignStateResult, err error)

Create create a push campaign (announcement, poll, data push or native push).

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. parameters is parameters supplied to the Update Campaign operation.

func (CampaignsClient) CreatePreparer Uses

func (client CampaignsClient) CreatePreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, parameters Campaign) (*http.Request, error)

CreatePreparer prepares the Create request.

func (CampaignsClient) CreateResponder Uses

func (client CampaignsClient) CreateResponder(resp *http.Response) (result CampaignStateResult, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (CampaignsClient) CreateSender Uses

func (client CampaignsClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) Delete Uses

func (client CampaignsClient) Delete(ctx context.Context, kind CampaignKinds, ID int32, resourceGroupName string, appCollection string, appName string) (result autorest.Response, err error)

Delete delete a campaign previously created by a call to Create campaign.

kind is campaign kind. ID is campaign identifier. resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (CampaignsClient) DeletePreparer Uses

func (client CampaignsClient) DeletePreparer(ctx context.Context, kind CampaignKinds, ID int32, resourceGroupName string, appCollection string, appName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (CampaignsClient) DeleteResponder Uses

func (client CampaignsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (CampaignsClient) DeleteSender Uses

func (client CampaignsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) Finish Uses

func (client CampaignsClient) Finish(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32) (result CampaignStateResult, err error)

Finish finish a push campaign previously activated by a call to Activate campaign.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. ID is campaign identifier.

func (CampaignsClient) FinishPreparer Uses

func (client CampaignsClient) FinishPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32) (*http.Request, error)

FinishPreparer prepares the Finish request.

func (CampaignsClient) FinishResponder Uses

func (client CampaignsClient) FinishResponder(resp *http.Response) (result CampaignStateResult, err error)

FinishResponder handles the response to the Finish request. The method always closes the http.Response Body.

func (CampaignsClient) FinishSender Uses

func (client CampaignsClient) FinishSender(req *http.Request) (*http.Response, error)

FinishSender sends the Finish request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) Get Uses

func (client CampaignsClient) Get(ctx context.Context, kind CampaignKinds, ID int32, resourceGroupName string, appCollection string, appName string) (result CampaignResult, err error)

Get the Get campaign operation retrieves information about a previously created campaign.

kind is campaign kind. ID is campaign identifier. resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (CampaignsClient) GetByName Uses

func (client CampaignsClient) GetByName(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, name string) (result CampaignResult, err error)

GetByName the Get campaign operation retrieves information about a previously created campaign.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. name is campaign name.

func (CampaignsClient) GetByNamePreparer Uses

func (client CampaignsClient) GetByNamePreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, name string) (*http.Request, error)

GetByNamePreparer prepares the GetByName request.

func (CampaignsClient) GetByNameResponder Uses

func (client CampaignsClient) GetByNameResponder(resp *http.Response) (result CampaignResult, err error)

GetByNameResponder handles the response to the GetByName request. The method always closes the http.Response Body.

func (CampaignsClient) GetByNameSender Uses

func (client CampaignsClient) GetByNameSender(req *http.Request) (*http.Response, error)

GetByNameSender sends the GetByName request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) GetPreparer Uses

func (client CampaignsClient) GetPreparer(ctx context.Context, kind CampaignKinds, ID int32, resourceGroupName string, appCollection string, appName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CampaignsClient) GetResponder Uses

func (client CampaignsClient) GetResponder(resp *http.Response) (result CampaignResult, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CampaignsClient) GetSender Uses

func (client CampaignsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) GetStatistics Uses

func (client CampaignsClient) GetStatistics(ctx context.Context, kind CampaignKinds, ID int32, resourceGroupName string, appCollection string, appName string) (result CampaignStatisticsResult, err error)

GetStatistics get all the campaign statistics.

kind is campaign kind. ID is campaign identifier. resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (CampaignsClient) GetStatisticsPreparer Uses

func (client CampaignsClient) GetStatisticsPreparer(ctx context.Context, kind CampaignKinds, ID int32, resourceGroupName string, appCollection string, appName string) (*http.Request, error)

GetStatisticsPreparer prepares the GetStatistics request.

func (CampaignsClient) GetStatisticsResponder Uses

func (client CampaignsClient) GetStatisticsResponder(resp *http.Response) (result CampaignStatisticsResult, err error)

GetStatisticsResponder handles the response to the GetStatistics request. The method always closes the http.Response Body.

func (CampaignsClient) GetStatisticsSender Uses

func (client CampaignsClient) GetStatisticsSender(req *http.Request) (*http.Response, error)

GetStatisticsSender sends the GetStatistics request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) List Uses

func (client CampaignsClient) List(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, skip *int32, top *int32, filter string, orderby string, search string) (result CampaignsListResultPage, err error)

List get the list of campaigns.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. skip is control paging of campaigns, start results at the given offset, defaults to 0 (1st page of data). top is control paging of campaigns, number of campaigns to return with each call. It returns all campaigns by default. When specifying $top parameter, the response contains a `nextLink` property describing the path to get the next page if there are more results. filter is filter can be used to restrict the results to campaigns matching a specific state. The syntax is `$filter=state eq 'draft'`. Valid state values are: draft, scheduled, in-progress, and finished. Only the eq operator and the state property are supported. orderby is sort results by an expression which looks like `$orderby=id asc` (this example is actually the default behavior). The syntax is orderby={property} {direction} or just orderby={property}. The available sorting properties are id, name, state, activatedDate, and finishedDate. The available directions are asc (for ascending order) and desc (for descending order). When not specified the asc direction is used. Only one property at a time can be used for sorting. search is restrict results to campaigns matching the optional `search` expression. This currently performs the search based on the name on the campaign only, case insensitive. If the campaign contains the value of the `search` parameter anywhere in the name, it matches.

func (CampaignsClient) ListComplete Uses

func (client CampaignsClient) ListComplete(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, skip *int32, top *int32, filter string, orderby string, search string) (result CampaignsListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (CampaignsClient) ListPreparer Uses

func (client CampaignsClient) ListPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, skip *int32, top *int32, filter string, orderby string, search string) (*http.Request, error)

ListPreparer prepares the List request.

func (CampaignsClient) ListResponder Uses

func (client CampaignsClient) ListResponder(resp *http.Response) (result CampaignsListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (CampaignsClient) ListSender Uses

func (client CampaignsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) Push Uses

func (client CampaignsClient) Push(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32, parameters CampaignPushParameters) (result CampaignPushResult, err error)

Push push a previously saved campaign (created with Create campaign) to a set of devices.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. ID is campaign identifier. parameters is parameters supplied to the Push Campaign operation.

func (CampaignsClient) PushPreparer Uses

func (client CampaignsClient) PushPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32, parameters CampaignPushParameters) (*http.Request, error)

PushPreparer prepares the Push request.

func (CampaignsClient) PushResponder Uses

func (client CampaignsClient) PushResponder(resp *http.Response) (result CampaignPushResult, err error)

PushResponder handles the response to the Push request. The method always closes the http.Response Body.

func (CampaignsClient) PushSender Uses

func (client CampaignsClient) PushSender(req *http.Request) (*http.Response, error)

PushSender sends the Push request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) Suspend Uses

func (client CampaignsClient) Suspend(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32) (result CampaignStateResult, err error)

Suspend suspend a push campaign previously activated by a call to Activate campaign.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. ID is campaign identifier.

func (CampaignsClient) SuspendPreparer Uses

func (client CampaignsClient) SuspendPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32) (*http.Request, error)

SuspendPreparer prepares the Suspend request.

func (CampaignsClient) SuspendResponder Uses

func (client CampaignsClient) SuspendResponder(resp *http.Response) (result CampaignStateResult, err error)

SuspendResponder handles the response to the Suspend request. The method always closes the http.Response Body.

func (CampaignsClient) SuspendSender Uses

func (client CampaignsClient) SuspendSender(req *http.Request) (*http.Response, error)

SuspendSender sends the Suspend request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) TestNew Uses

func (client CampaignsClient) TestNew(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, parameters CampaignTestNewParameters) (result CampaignState, err error)

TestNew test a new campaign on a set of devices.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. parameters is parameters supplied to the Test Campaign operation.

func (CampaignsClient) TestNewPreparer Uses

func (client CampaignsClient) TestNewPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, parameters CampaignTestNewParameters) (*http.Request, error)

TestNewPreparer prepares the TestNew request.

func (CampaignsClient) TestNewResponder Uses

func (client CampaignsClient) TestNewResponder(resp *http.Response) (result CampaignState, err error)

TestNewResponder handles the response to the TestNew request. The method always closes the http.Response Body.

func (CampaignsClient) TestNewSender Uses

func (client CampaignsClient) TestNewSender(req *http.Request) (*http.Response, error)

TestNewSender sends the TestNew request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) TestSaved Uses

func (client CampaignsClient) TestSaved(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32, parameters CampaignTestSavedParameters) (result CampaignStateResult, err error)

TestSaved test an existing campaign (created with Create campaign) on a set of devices.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. kind is campaign kind. ID is campaign identifier. parameters is parameters supplied to the Test Campaign operation.

func (CampaignsClient) TestSavedPreparer Uses

func (client CampaignsClient) TestSavedPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, kind CampaignKinds, ID int32, parameters CampaignTestSavedParameters) (*http.Request, error)

TestSavedPreparer prepares the TestSaved request.

func (CampaignsClient) TestSavedResponder Uses

func (client CampaignsClient) TestSavedResponder(resp *http.Response) (result CampaignStateResult, err error)

TestSavedResponder handles the response to the TestSaved request. The method always closes the http.Response Body.

func (CampaignsClient) TestSavedSender Uses

func (client CampaignsClient) TestSavedSender(req *http.Request) (*http.Response, error)

TestSavedSender sends the TestSaved request. The method will close the http.Response Body if it receives an error.

func (CampaignsClient) Update Uses

func (client CampaignsClient) Update(ctx context.Context, kind CampaignKinds, ID int32, parameters Campaign, resourceGroupName string, appCollection string, appName string) (result CampaignStateResult, err error)

Update update an existing push campaign (announcement, poll, data push or native push).

kind is campaign kind. ID is campaign identifier. parameters is parameters supplied to the Update Campaign operation. resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (CampaignsClient) UpdatePreparer Uses

func (client CampaignsClient) UpdatePreparer(ctx context.Context, kind CampaignKinds, ID int32, parameters Campaign, resourceGroupName string, appCollection string, appName string) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (CampaignsClient) UpdateResponder Uses

func (client CampaignsClient) UpdateResponder(resp *http.Response) (result CampaignStateResult, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (CampaignsClient) UpdateSender Uses

func (client CampaignsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type CampaignsListResult Uses

type CampaignsListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of campaigns.
    Value *[]CampaignListResult `json:"value,omitempty"`
    // NextLink - When using `top` parameter and if partial results are returned, this property describes a URI path to get the next results. This property is not set when reaching the last page.
    NextLink *string `json:"nextLink,omitempty"`
}

CampaignsListResult the campaigns list result.

func (CampaignsListResult) IsEmpty Uses

func (clr CampaignsListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CampaignsListResultIterator Uses

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

CampaignsListResultIterator provides access to a complete listing of CampaignListResult values.

func (*CampaignsListResultIterator) Next Uses

func (iter *CampaignsListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (CampaignsListResultIterator) NotDone Uses

func (iter CampaignsListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (CampaignsListResultIterator) Response Uses

func (iter CampaignsListResultIterator) Response() CampaignsListResult

Response returns the raw server response from the last page request.

func (CampaignsListResultIterator) Value Uses

func (iter CampaignsListResultIterator) Value() CampaignListResult

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type CampaignsListResultPage Uses

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

CampaignsListResultPage contains a page of CampaignListResult values.

func (*CampaignsListResultPage) Next Uses

func (page *CampaignsListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (CampaignsListResultPage) NotDone Uses

func (page CampaignsListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (CampaignsListResultPage) Response Uses

func (page CampaignsListResultPage) Response() CampaignsListResult

Response returns the raw server response from the last page request.

func (CampaignsListResultPage) Values Uses

func (page CampaignsListResultPage) Values() []CampaignListResult

Values returns the slice of values for the current page or nil if there are no values.

type CarrierCountryCriterion Uses

type CarrierCountryCriterion struct {
    // Name - Two-characters country code (ISO 3166-1).
    Name *string `json:"name,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

CarrierCountryCriterion used to target devices based on their carrier country.

func (CarrierCountryCriterion) AsAnnouncementFeedbackCriterion Uses

func (ccc CarrierCountryCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsApplicationVersionCriterion Uses

func (ccc CarrierCountryCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsBasicCriterion Uses

func (ccc CarrierCountryCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsBooleanTagCriterion Uses

func (ccc CarrierCountryCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsCarrierCountryCriterion Uses

func (ccc CarrierCountryCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsCarrierNameCriterion Uses

func (ccc CarrierCountryCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsCriterion Uses

func (ccc CarrierCountryCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsDatapushFeedbackCriterion Uses

func (ccc CarrierCountryCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsDateTagCriterion Uses

func (ccc CarrierCountryCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsDeviceManufacturerCriterion Uses

func (ccc CarrierCountryCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsDeviceModelCriterion Uses

func (ccc CarrierCountryCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsFirmwareVersionCriterion Uses

func (ccc CarrierCountryCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsGeoFencingCriterion Uses

func (ccc CarrierCountryCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsIntegerTagCriterion Uses

func (ccc CarrierCountryCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsLanguageCriterion Uses

func (ccc CarrierCountryCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsLocationCriterion Uses

func (ccc CarrierCountryCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsNetworkTypeCriterion Uses

func (ccc CarrierCountryCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsPollAnswerFeedbackCriterion Uses

func (ccc CarrierCountryCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsPollFeedbackCriterion Uses

func (ccc CarrierCountryCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsScreenSizeCriterion Uses

func (ccc CarrierCountryCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsSegmentCriterion Uses

func (ccc CarrierCountryCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) AsStringTagCriterion Uses

func (ccc CarrierCountryCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for CarrierCountryCriterion.

func (CarrierCountryCriterion) MarshalJSON Uses

func (ccc CarrierCountryCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CarrierCountryCriterion.

type CarrierNameCriterion Uses

type CarrierNameCriterion struct {
    // Name - Carrier name value.
    Name *string `json:"name,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

CarrierNameCriterion used to target devices based on their carrier name.

func (CarrierNameCriterion) AsAnnouncementFeedbackCriterion Uses

func (cnc CarrierNameCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsApplicationVersionCriterion Uses

func (cnc CarrierNameCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsBasicCriterion Uses

func (cnc CarrierNameCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsBooleanTagCriterion Uses

func (cnc CarrierNameCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsCarrierCountryCriterion Uses

func (cnc CarrierNameCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsCarrierNameCriterion Uses

func (cnc CarrierNameCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsCriterion Uses

func (cnc CarrierNameCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsDatapushFeedbackCriterion Uses

func (cnc CarrierNameCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsDateTagCriterion Uses

func (cnc CarrierNameCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsDeviceManufacturerCriterion Uses

func (cnc CarrierNameCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsDeviceModelCriterion Uses

func (cnc CarrierNameCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsFirmwareVersionCriterion Uses

func (cnc CarrierNameCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsGeoFencingCriterion Uses

func (cnc CarrierNameCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsIntegerTagCriterion Uses

func (cnc CarrierNameCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsLanguageCriterion Uses

func (cnc CarrierNameCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsLocationCriterion Uses

func (cnc CarrierNameCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsNetworkTypeCriterion Uses

func (cnc CarrierNameCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsPollAnswerFeedbackCriterion Uses

func (cnc CarrierNameCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsPollFeedbackCriterion Uses

func (cnc CarrierNameCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsScreenSizeCriterion Uses

func (cnc CarrierNameCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsSegmentCriterion Uses

func (cnc CarrierNameCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) AsStringTagCriterion Uses

func (cnc CarrierNameCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for CarrierNameCriterion.

func (CarrierNameCriterion) MarshalJSON Uses

func (cnc CarrierNameCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CarrierNameCriterion.

type Criterion Uses

type Criterion struct {
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

Criterion ...

func (Criterion) AsAnnouncementFeedbackCriterion Uses

func (c Criterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsApplicationVersionCriterion Uses

func (c Criterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsBasicCriterion Uses

func (c Criterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsBooleanTagCriterion Uses

func (c Criterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsCarrierCountryCriterion Uses

func (c Criterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsCarrierNameCriterion Uses

func (c Criterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsCriterion Uses

func (c Criterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsDatapushFeedbackCriterion Uses

func (c Criterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsDateTagCriterion Uses

func (c Criterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsDeviceManufacturerCriterion Uses

func (c Criterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsDeviceModelCriterion Uses

func (c Criterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsFirmwareVersionCriterion Uses

func (c Criterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsGeoFencingCriterion Uses

func (c Criterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsIntegerTagCriterion Uses

func (c Criterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsLanguageCriterion Uses

func (c Criterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsLocationCriterion Uses

func (c Criterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsNetworkTypeCriterion Uses

func (c Criterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsPollAnswerFeedbackCriterion Uses

func (c Criterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsPollFeedbackCriterion Uses

func (c Criterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsScreenSizeCriterion Uses

func (c Criterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsSegmentCriterion Uses

func (c Criterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) AsStringTagCriterion Uses

func (c Criterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for Criterion.

func (Criterion) MarshalJSON Uses

func (c Criterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Criterion.

type DatapushFeedbackCriterion Uses

type DatapushFeedbackCriterion struct {
    // ContentID - The unique identifier of the data push.
    ContentID *int32 `json:"content-id,omitempty"`
    // Action - Action that was performed on the data push (action depends on the return value in the callbacks you declared in the client code).
    // . Possible values include: 'Pushed', 'Replied', 'Actioned', 'Exited'
    Action CampaignFeedbacks `json:"action,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

DatapushFeedbackCriterion used to target devices who received a data push.

func (DatapushFeedbackCriterion) AsAnnouncementFeedbackCriterion Uses

func (dfc DatapushFeedbackCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsApplicationVersionCriterion Uses

func (dfc DatapushFeedbackCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsBasicCriterion Uses

func (dfc DatapushFeedbackCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsBooleanTagCriterion Uses

func (dfc DatapushFeedbackCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsCarrierCountryCriterion Uses

func (dfc DatapushFeedbackCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsCarrierNameCriterion Uses

func (dfc DatapushFeedbackCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsCriterion Uses

func (dfc DatapushFeedbackCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsDatapushFeedbackCriterion Uses

func (dfc DatapushFeedbackCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsDateTagCriterion Uses

func (dfc DatapushFeedbackCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsDeviceManufacturerCriterion Uses

func (dfc DatapushFeedbackCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsDeviceModelCriterion Uses

func (dfc DatapushFeedbackCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsFirmwareVersionCriterion Uses

func (dfc DatapushFeedbackCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsGeoFencingCriterion Uses

func (dfc DatapushFeedbackCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsIntegerTagCriterion Uses

func (dfc DatapushFeedbackCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsLanguageCriterion Uses

func (dfc DatapushFeedbackCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsLocationCriterion Uses

func (dfc DatapushFeedbackCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsNetworkTypeCriterion Uses

func (dfc DatapushFeedbackCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsPollAnswerFeedbackCriterion Uses

func (dfc DatapushFeedbackCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsPollFeedbackCriterion Uses

func (dfc DatapushFeedbackCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsScreenSizeCriterion Uses

func (dfc DatapushFeedbackCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsSegmentCriterion Uses

func (dfc DatapushFeedbackCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) AsStringTagCriterion Uses

func (dfc DatapushFeedbackCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for DatapushFeedbackCriterion.

func (DatapushFeedbackCriterion) MarshalJSON Uses

func (dfc DatapushFeedbackCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DatapushFeedbackCriterion.

type DateRangeExportTaskParameter Uses

type DateRangeExportTaskParameter struct {
    ContainerURL *string `json:"containerUrl,omitempty"`
    // Description - A description of the export task.
    Description *string `json:"description,omitempty"`
    // StartDate - The RFC3339 full-date of the start of the period for which data is exported.
    StartDate *date.Date `json:"startDate,omitempty"`
    // EndDate - The RFC3339 full-date of the end of the period for which data is exported.
    EndDate *date.Date `json:"endDate,omitempty"`
    // ExportFormat - The format of the exported data. Possible values include: 'JSONBlob', 'CsvBlob'
    ExportFormat ExportFormat `json:"exportFormat,omitempty"`
}

DateRangeExportTaskParameter ...

type DateTagCriterion Uses

type DateTagCriterion struct {
    // Name - The name of the custom tag.
    Name *string `json:"name,omitempty"`
    // Value - It can be either: * an absolute date using yyyy-MM-dd format (e.g. 1969-12-07 stands for 7 Dec 1969). * an offset in days relative to the current day (`TODAY` + `value`).
    Value *date.Date `json:"value,omitempty"`
    // Op - comparison operator: `EQ` (equal to), `LT` (less than), `GT` (greater than), `LE` (less than or equal to) or `GE` (greater than or equal to). Possible values include: 'EQ', 'LT', 'GT', 'LE', 'GE'
    Op  AudienceOperators `json:"op,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

DateTagCriterion target devices based on a date tag value.

func (DateTagCriterion) AsAnnouncementFeedbackCriterion Uses

func (dtc DateTagCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsApplicationVersionCriterion Uses

func (dtc DateTagCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsBasicCriterion Uses

func (dtc DateTagCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsBooleanTagCriterion Uses

func (dtc DateTagCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsCarrierCountryCriterion Uses

func (dtc DateTagCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsCarrierNameCriterion Uses

func (dtc DateTagCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsCriterion Uses

func (dtc DateTagCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsDatapushFeedbackCriterion Uses

func (dtc DateTagCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsDateTagCriterion Uses

func (dtc DateTagCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsDeviceManufacturerCriterion Uses

func (dtc DateTagCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsDeviceModelCriterion Uses

func (dtc DateTagCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsFirmwareVersionCriterion Uses

func (dtc DateTagCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsGeoFencingCriterion Uses

func (dtc DateTagCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsIntegerTagCriterion Uses

func (dtc DateTagCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsLanguageCriterion Uses

func (dtc DateTagCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsLocationCriterion Uses

func (dtc DateTagCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsNetworkTypeCriterion Uses

func (dtc DateTagCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsPollAnswerFeedbackCriterion Uses

func (dtc DateTagCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsPollFeedbackCriterion Uses

func (dtc DateTagCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsScreenSizeCriterion Uses

func (dtc DateTagCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsSegmentCriterion Uses

func (dtc DateTagCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) AsStringTagCriterion Uses

func (dtc DateTagCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for DateTagCriterion.

func (DateTagCriterion) MarshalJSON Uses

func (dtc DateTagCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DateTagCriterion.

type DeliveryTimes Uses

type DeliveryTimes string

DeliveryTimes enumerates the values for delivery times.

const (
    // Any ...
    Any DeliveryTimes = "any"
    // Background ...
    Background DeliveryTimes = "background"
    // Session ...
    Session DeliveryTimes = "session"
)

func PossibleDeliveryTimesValues Uses

func PossibleDeliveryTimesValues() []DeliveryTimes

PossibleDeliveryTimesValues returns an array of possible values for the DeliveryTimes const type.

type Device Uses

type Device struct {
    autorest.Response `json:"-"`
    // DeviceID - The device result.
    DeviceID *string `json:"deviceId,omitempty"`
    // Meta - Application usage data.
    Meta *DeviceMeta `json:"meta,omitempty"`
    // Info - Last technical data received (concerning device, system, network and application identification).
    Info *DeviceInfo `json:"info,omitempty"`
    // Location - Last geo-location data received.
    Location *DeviceLocation `json:"location,omitempty"`
    // AppInfo - Also known as tags, a key-value set as a JSON object.
    AppInfo map[string]*string `json:"appInfo"`
}

Device ...

func (Device) MarshalJSON Uses

func (d Device) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Device.

type DeviceInfo Uses

type DeviceInfo struct {
    // PhoneModel - Phone model.
    PhoneModel *string `json:"phoneModel,omitempty"`
    // PhoneManufacturer - Phone manufacturer
    PhoneManufacturer *string `json:"phoneManufacturer,omitempty"`
    // FirmwareVersion - Firmware version.
    FirmwareVersion *string `json:"firmwareVersion,omitempty"`
    // FirmwareName - Firmware name.
    FirmwareName *string `json:"firmwareName,omitempty"`
    // AndroidAPILevel - Android API level.
    AndroidAPILevel *int32 `json:"androidAPILevel,omitempty"`
    // CarrierCountry - Carrier country.
    CarrierCountry *string `json:"carrierCountry,omitempty"`
    // Locale - Locale code.
    Locale *string `json:"locale,omitempty"`
    // CarrierName - Carrier name.
    CarrierName *string `json:"carrierName,omitempty"`
    // NetworkType - Network type.
    NetworkType *string `json:"networkType,omitempty"`
    // NetworkSubtype - Network sub-type.
    NetworkSubtype *string `json:"networkSubtype,omitempty"`
    // ApplicationVersionName - Application version name.
    ApplicationVersionName *string `json:"applicationVersionName,omitempty"`
    // ApplicationVersionCode - Application version code.
    ApplicationVersionCode *int32 `json:"applicationVersionCode,omitempty"`
    // TimeZoneOffset - The offset in minutes from UTC for the device time zone, including daylight savings time.
    TimeZoneOffset *int32 `json:"timeZoneOffset,omitempty"`
    // ServiceVersion - SDK version.
    ServiceVersion *string `json:"serviceVersion,omitempty"`
}

DeviceInfo ...

type DeviceLocation Uses

type DeviceLocation struct {
    // Countrycode - The ISO 3166 two-letter country code.
    Countrycode *string `json:"countrycode,omitempty"`
    // Region - An administrative region of the nation, such as a state or province.
    Region *string `json:"region,omitempty"`
    // Locality - A locality within the administrative region, such as a town or city.
    Locality *string `json:"locality,omitempty"`
}

DeviceLocation ...

type DeviceManufacturerCriterion Uses

type DeviceManufacturerCriterion struct {
    // Name - The device manufacturer.
    Name *string `json:"name,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

DeviceManufacturerCriterion used to target devices based on the device manufacturer.

func (DeviceManufacturerCriterion) AsAnnouncementFeedbackCriterion Uses

func (dmc DeviceManufacturerCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsApplicationVersionCriterion Uses

func (dmc DeviceManufacturerCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsBasicCriterion Uses

func (dmc DeviceManufacturerCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsBooleanTagCriterion Uses

func (dmc DeviceManufacturerCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsCarrierCountryCriterion Uses

func (dmc DeviceManufacturerCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsCarrierNameCriterion Uses

func (dmc DeviceManufacturerCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsCriterion Uses

func (dmc DeviceManufacturerCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsDatapushFeedbackCriterion Uses

func (dmc DeviceManufacturerCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsDateTagCriterion Uses

func (dmc DeviceManufacturerCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsDeviceManufacturerCriterion Uses

func (dmc DeviceManufacturerCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsDeviceModelCriterion Uses

func (dmc DeviceManufacturerCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsFirmwareVersionCriterion Uses

func (dmc DeviceManufacturerCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsGeoFencingCriterion Uses

func (dmc DeviceManufacturerCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsIntegerTagCriterion Uses

func (dmc DeviceManufacturerCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsLanguageCriterion Uses

func (dmc DeviceManufacturerCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsLocationCriterion Uses

func (dmc DeviceManufacturerCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsNetworkTypeCriterion Uses

func (dmc DeviceManufacturerCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsPollAnswerFeedbackCriterion Uses

func (dmc DeviceManufacturerCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsPollFeedbackCriterion Uses

func (dmc DeviceManufacturerCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsScreenSizeCriterion Uses

func (dmc DeviceManufacturerCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsSegmentCriterion Uses

func (dmc DeviceManufacturerCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) AsStringTagCriterion Uses

func (dmc DeviceManufacturerCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for DeviceManufacturerCriterion.

func (DeviceManufacturerCriterion) MarshalJSON Uses

func (dmc DeviceManufacturerCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeviceManufacturerCriterion.

type DeviceMeta Uses

type DeviceMeta struct {
    // FirstSeen - First time the device used the application in milliseconds since January 1st, 1970 UTC.
    FirstSeen *int64 `json:"firstSeen,omitempty"`
    // LastSeen - Last time the device used the application in milliseconds since January 1st, 1970 UTC.
    LastSeen *int64 `json:"lastSeen,omitempty"`
    // LastInfo - Timestamp corresponding to the info object in milliseconds since January 1st, 1970 UTC.
    LastInfo *int64 `json:"lastInfo,omitempty"`
    // LastLocation - Timestamp corresponding to the location object in milliseconds since January 1st, 1970 UTC.
    LastLocation *int64 `json:"lastLocation,omitempty"`
    // NativePushEnabled - Boolean indicating if native push notifications (like Android’s GCM or Apple’s APNS) are enabled for the application. This boolean is set to true when the application registers successfully to the native push service, and set to false when the native push service reports to Mobile Engagement that the application can no longer be pushed (which means that it has been uninstalled). This report is performed a few hours after Mobile Engagement has tried to perform a native push to a device on which the application has been uninstalled.
    NativePushEnabled *bool `json:"nativePushEnabled,omitempty"`
}

DeviceMeta ...

type DeviceModelCriterion Uses

type DeviceModelCriterion struct {
    // Name - The device model.
    Name *string `json:"name,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

DeviceModelCriterion used to target devices based on the device model.

func (DeviceModelCriterion) AsAnnouncementFeedbackCriterion Uses

func (dmc DeviceModelCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsApplicationVersionCriterion Uses

func (dmc DeviceModelCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsBasicCriterion Uses

func (dmc DeviceModelCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsBooleanTagCriterion Uses

func (dmc DeviceModelCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsCarrierCountryCriterion Uses

func (dmc DeviceModelCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsCarrierNameCriterion Uses

func (dmc DeviceModelCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsCriterion Uses

func (dmc DeviceModelCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsDatapushFeedbackCriterion Uses

func (dmc DeviceModelCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsDateTagCriterion Uses

func (dmc DeviceModelCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsDeviceManufacturerCriterion Uses

func (dmc DeviceModelCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsDeviceModelCriterion Uses

func (dmc DeviceModelCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsFirmwareVersionCriterion Uses

func (dmc DeviceModelCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsGeoFencingCriterion Uses

func (dmc DeviceModelCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsIntegerTagCriterion Uses

func (dmc DeviceModelCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsLanguageCriterion Uses

func (dmc DeviceModelCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsLocationCriterion Uses

func (dmc DeviceModelCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsNetworkTypeCriterion Uses

func (dmc DeviceModelCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsPollAnswerFeedbackCriterion Uses

func (dmc DeviceModelCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsPollFeedbackCriterion Uses

func (dmc DeviceModelCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsScreenSizeCriterion Uses

func (dmc DeviceModelCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsSegmentCriterion Uses

func (dmc DeviceModelCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) AsStringTagCriterion Uses

func (dmc DeviceModelCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for DeviceModelCriterion.

func (DeviceModelCriterion) MarshalJSON Uses

func (dmc DeviceModelCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeviceModelCriterion.

type DeviceQueryResult Uses

type DeviceQueryResult struct {
    // DeviceID - The device result.
    DeviceID *string `json:"deviceId,omitempty"`
    // Meta - Application usage data.
    Meta *DeviceMeta `json:"meta,omitempty"`
    // AppInfo - Also known as tags, a key-value set as a JSON object.
    AppInfo map[string]*string `json:"appInfo"`
}

DeviceQueryResult ...

func (DeviceQueryResult) MarshalJSON Uses

func (dqr DeviceQueryResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeviceQueryResult.

type DeviceTagsParameters Uses

type DeviceTagsParameters struct {
    // Tags - A JSON object describing the set of tags to record for a set of users. Each key is a device/user identifier, each value is itself a key/value set: the tags to set for the specified device/user identifier.
    Tags map[string]map[string]*string `json:"tags"`
    // DeleteOnNull - If this parameter is `true`, tags with a null value will be deleted.
    DeleteOnNull *bool `json:"deleteOnNull,omitempty"`
}

DeviceTagsParameters ...

func (DeviceTagsParameters) MarshalJSON Uses

func (dtp DeviceTagsParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DeviceTagsParameters.

type DeviceTagsResult Uses

type DeviceTagsResult struct {
    autorest.Response `json:"-"`
    // InvalidIds - A JSON array containing all identifiers that have been rejected. Please note that if the request parameters are valid but all the specified devices are rejected, the status code is still `200` with a response including all the devices as being rejected.
    InvalidIds *[]string `json:"invalidIds,omitempty"`
}

DeviceTagsResult ...

type DevicesClient Uses

type DevicesClient struct {
    BaseClient
}

DevicesClient is the microsoft Azure Mobile Engagement REST APIs.

func NewDevicesClient Uses

func NewDevicesClient(subscriptionID string) DevicesClient

NewDevicesClient creates an instance of the DevicesClient client.

func NewDevicesClientWithBaseURI Uses

func NewDevicesClientWithBaseURI(baseURI string, subscriptionID string) DevicesClient

NewDevicesClientWithBaseURI creates an instance of the DevicesClient client.

func (DevicesClient) GetByDeviceID Uses

func (client DevicesClient) GetByDeviceID(ctx context.Context, resourceGroupName string, appCollection string, appName string, deviceID string) (result Device, err error)

GetByDeviceID get the information associated to a device running an application.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. deviceID is device identifier.

func (DevicesClient) GetByDeviceIDPreparer Uses

func (client DevicesClient) GetByDeviceIDPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, deviceID string) (*http.Request, error)

GetByDeviceIDPreparer prepares the GetByDeviceID request.

func (DevicesClient) GetByDeviceIDResponder Uses

func (client DevicesClient) GetByDeviceIDResponder(resp *http.Response) (result Device, err error)

GetByDeviceIDResponder handles the response to the GetByDeviceID request. The method always closes the http.Response Body.

func (DevicesClient) GetByDeviceIDSender Uses

func (client DevicesClient) GetByDeviceIDSender(req *http.Request) (*http.Response, error)

GetByDeviceIDSender sends the GetByDeviceID request. The method will close the http.Response Body if it receives an error.

func (DevicesClient) GetByUserID Uses

func (client DevicesClient) GetByUserID(ctx context.Context, resourceGroupName string, appCollection string, appName string, userID string) (result Device, err error)

GetByUserID get the information associated to a device running an application using the user identifier.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. userID is user identifier.

func (DevicesClient) GetByUserIDPreparer Uses

func (client DevicesClient) GetByUserIDPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, userID string) (*http.Request, error)

GetByUserIDPreparer prepares the GetByUserID request.

func (DevicesClient) GetByUserIDResponder Uses

func (client DevicesClient) GetByUserIDResponder(resp *http.Response) (result Device, err error)

GetByUserIDResponder handles the response to the GetByUserID request. The method always closes the http.Response Body.

func (DevicesClient) GetByUserIDSender Uses

func (client DevicesClient) GetByUserIDSender(req *http.Request) (*http.Response, error)

GetByUserIDSender sends the GetByUserID request. The method will close the http.Response Body if it receives an error.

func (DevicesClient) List Uses

func (client DevicesClient) List(ctx context.Context, resourceGroupName string, appCollection string, appName string, top *int32, selectParameter string, filter string) (result DevicesQueryResultPage, err error)

List query the information associated to the devices running an application.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. top is number of devices to return with each call. Defaults to 100 and cannot return more. Passing a greater value is ignored. The response contains a `nextLink` property describing the URI path to get the next page of results if not all results could be returned at once. selectParameter is by default all `meta` and `appInfo` properties are returned, this property is used to restrict the output to the desired properties. It also excludes all devices from the output that have none of the selected properties. In other terms, only devices having at least one of the selected property being set is part of the results. Examples: - `$select=appInfo` : select all devices having at least 1 appInfo, return them all and don’t return any meta property. - `$select=meta` : return only meta properties in the output. - `$select=appInfo,meta/firstSeen,meta/lastSeen` : return all `appInfo`, plus meta object containing only firstSeen and lastSeen properties. The format is thus a comma separated list of properties to select. Use `appInfo` to select all appInfo properties, `meta` to select all meta properties. Use `appInfo/{key}` and `meta/{key}` to select specific appInfo and meta properties. filter is filter can be used to reduce the number of results. Filter is a boolean expression that can look like the following examples: * `$filter=deviceId gt 'abcdef0123456789abcdef0123456789'` * `$filter=lastModified le 1447284263690L` * `$filter=(deviceId ge 'abcdef0123456789abcdef0123456789') and (deviceId lt 'bacdef0123456789abcdef0123456789') and (lastModified gt 1447284263690L)` The first example is used automatically for paging when returning the `nextLink` property. The filter expression is a combination of checks on some properties that can be compared to their value. The available operators are: * `gt` : greater than * `ge` : greater than or equals * `lt` : less than * `le` : less than or equals * `and` : to add multiple checks (all checks must pass), optional parentheses can be used. The properties that can be used in the expression are the following: * `deviceId {operator} '{deviceIdValue}'` : a lexicographical comparison is made on the deviceId value, use single quotes for the value. * `lastModified {operator} {number}L` : returns only meta properties or appInfo properties whose last value modification timestamp compared to the specified value is matching (value is milliseconds since January 1st, 1970 UTC). Please note the `L` character after the number of milliseconds, its required when the number of milliseconds exceeds `2^31 - 1` (which is always the case for recent timestamps). Using `lastModified` excludes all devices from the output that have no property matching the timestamp criteria, like `$select`. Please note that the internal value of `lastModified` timestamp for a given property is never part of the results.

func (DevicesClient) ListComplete Uses

func (client DevicesClient) ListComplete(ctx context.Context, resourceGroupName string, appCollection string, appName string, top *int32, selectParameter string, filter string) (result DevicesQueryResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (DevicesClient) ListPreparer Uses

func (client DevicesClient) ListPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, top *int32, selectParameter string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (DevicesClient) ListResponder Uses

func (client DevicesClient) ListResponder(resp *http.Response) (result DevicesQueryResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DevicesClient) ListSender Uses

func (client DevicesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (DevicesClient) TagByDeviceID Uses

func (client DevicesClient) TagByDeviceID(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DeviceTagsParameters) (result DeviceTagsResult, err error)

TagByDeviceID update the tags registered for a set of devices running an application. Updates are performed asynchronously, meaning that a few seconds are needed before the modifications appear in the results of the Get device command.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (DevicesClient) TagByDeviceIDPreparer Uses

func (client DevicesClient) TagByDeviceIDPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DeviceTagsParameters) (*http.Request, error)

TagByDeviceIDPreparer prepares the TagByDeviceID request.

func (DevicesClient) TagByDeviceIDResponder Uses

func (client DevicesClient) TagByDeviceIDResponder(resp *http.Response) (result DeviceTagsResult, err error)

TagByDeviceIDResponder handles the response to the TagByDeviceID request. The method always closes the http.Response Body.

func (DevicesClient) TagByDeviceIDSender Uses

func (client DevicesClient) TagByDeviceIDSender(req *http.Request) (*http.Response, error)

TagByDeviceIDSender sends the TagByDeviceID request. The method will close the http.Response Body if it receives an error.

func (DevicesClient) TagByUserID Uses

func (client DevicesClient) TagByUserID(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DeviceTagsParameters) (result DeviceTagsResult, err error)

TagByUserID update the tags registered for a set of users running an application. Updates are performed asynchronously, meaning that a few seconds are needed before the modifications appear in the results of the Get device command.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (DevicesClient) TagByUserIDPreparer Uses

func (client DevicesClient) TagByUserIDPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DeviceTagsParameters) (*http.Request, error)

TagByUserIDPreparer prepares the TagByUserID request.

func (DevicesClient) TagByUserIDResponder Uses

func (client DevicesClient) TagByUserIDResponder(resp *http.Response) (result DeviceTagsResult, err error)

TagByUserIDResponder handles the response to the TagByUserID request. The method always closes the http.Response Body.

func (DevicesClient) TagByUserIDSender Uses

func (client DevicesClient) TagByUserIDSender(req *http.Request) (*http.Response, error)

TagByUserIDSender sends the TagByUserID request. The method will close the http.Response Body if it receives an error.

type DevicesQueryResult Uses

type DevicesQueryResult struct {
    autorest.Response `json:"-"`
    // Value - The list of devices.
    Value *[]DeviceQueryResult `json:"value,omitempty"`
    // NextLink - If partial results are returned, this property describes a URI path to get the next result page.
    NextLink *string `json:"nextLink,omitempty"`
}

DevicesQueryResult the campaigns list result.

func (DevicesQueryResult) IsEmpty Uses

func (dqr DevicesQueryResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DevicesQueryResultIterator Uses

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

DevicesQueryResultIterator provides access to a complete listing of DeviceQueryResult values.

func (*DevicesQueryResultIterator) Next Uses

func (iter *DevicesQueryResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DevicesQueryResultIterator) NotDone Uses

func (iter DevicesQueryResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DevicesQueryResultIterator) Response Uses

func (iter DevicesQueryResultIterator) Response() DevicesQueryResult

Response returns the raw server response from the last page request.

func (DevicesQueryResultIterator) Value Uses

func (iter DevicesQueryResultIterator) Value() DeviceQueryResult

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DevicesQueryResultPage Uses

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

DevicesQueryResultPage contains a page of DeviceQueryResult values.

func (*DevicesQueryResultPage) Next Uses

func (page *DevicesQueryResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DevicesQueryResultPage) NotDone Uses

func (page DevicesQueryResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DevicesQueryResultPage) Response Uses

func (page DevicesQueryResultPage) Response() DevicesQueryResult

Response returns the raw server response from the last page request.

func (DevicesQueryResultPage) Values Uses

func (page DevicesQueryResultPage) Values() []DeviceQueryResult

Values returns the slice of values for the current page or nil if there are no values.

type EngageActiveUsersFilter Uses

type EngageActiveUsersFilter struct {
    // Threshold - An integer value representing the threshold to apply on this filter.
    Threshold *int32 `json:"threshold,omitempty"`
    // Type - Possible values include: 'TypeFilter', 'TypeEngageSubset', 'TypeEngageOldUsers', 'TypeEngageNewUsers', 'TypeEngageActiveUsers', 'TypeEngageIdleUsers', 'TypeNativePushEnabled', 'TypePushQuota', 'TypeAppInfo'
    Type TypeBasicFilter `json:"type,omitempty"`
}

EngageActiveUsersFilter send only to users who have used the app in the last {threshold} days.

func (EngageActiveUsersFilter) AsAppInfoFilter Uses

func (eauf EngageActiveUsersFilter) AsAppInfoFilter() (*AppInfoFilter, bool)

AsAppInfoFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsBasicFilter Uses

func (eauf EngageActiveUsersFilter) AsBasicFilter() (BasicFilter, bool)

AsBasicFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsEngageActiveUsersFilter Uses

func (eauf EngageActiveUsersFilter) AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)

AsEngageActiveUsersFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsEngageIdleUsersFilter Uses

func (eauf EngageActiveUsersFilter) AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)

AsEngageIdleUsersFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsEngageNewUsersFilter Uses

func (eauf EngageActiveUsersFilter) AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)

AsEngageNewUsersFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsEngageOldUsersFilter Uses

func (eauf EngageActiveUsersFilter) AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)

AsEngageOldUsersFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsEngageSubsetFilter Uses

func (eauf EngageActiveUsersFilter) AsEngageSubsetFilter() (*EngageSubsetFilter, bool)

AsEngageSubsetFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsFilter Uses

func (eauf EngageActiveUsersFilter) AsFilter() (*Filter, bool)

AsFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsNativePushEnabledFilter Uses

func (eauf EngageActiveUsersFilter) AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)

AsNativePushEnabledFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) AsPushQuotaFilter Uses

func (eauf EngageActiveUsersFilter) AsPushQuotaFilter() (*PushQuotaFilter, bool)

AsPushQuotaFilter is the BasicFilter implementation for EngageActiveUsersFilter.

func (EngageActiveUsersFilter) MarshalJSON Uses

func (eauf EngageActiveUsersFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EngageActiveUsersFilter.

type EngageIdleUsersFilter Uses

type EngageIdleUsersFilter struct {
    // Threshold - An integer value representing the threshold to apply on this filter.
    Threshold *int32 `json:"threshold,omitempty"`
    // Type - Possible values include: 'TypeFilter', 'TypeEngageSubset', 'TypeEngageOldUsers', 'TypeEngageNewUsers', 'TypeEngageActiveUsers', 'TypeEngageIdleUsers', 'TypeNativePushEnabled', 'TypePushQuota', 'TypeAppInfo'
    Type TypeBasicFilter `json:"type,omitempty"`
}

EngageIdleUsersFilter send only to users who haven't used the app in the last {threshold} days.

func (EngageIdleUsersFilter) AsAppInfoFilter Uses

func (eiuf EngageIdleUsersFilter) AsAppInfoFilter() (*AppInfoFilter, bool)

AsAppInfoFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsBasicFilter Uses

func (eiuf EngageIdleUsersFilter) AsBasicFilter() (BasicFilter, bool)

AsBasicFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsEngageActiveUsersFilter Uses

func (eiuf EngageIdleUsersFilter) AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)

AsEngageActiveUsersFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsEngageIdleUsersFilter Uses

func (eiuf EngageIdleUsersFilter) AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)

AsEngageIdleUsersFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsEngageNewUsersFilter Uses

func (eiuf EngageIdleUsersFilter) AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)

AsEngageNewUsersFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsEngageOldUsersFilter Uses

func (eiuf EngageIdleUsersFilter) AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)

AsEngageOldUsersFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsEngageSubsetFilter Uses

func (eiuf EngageIdleUsersFilter) AsEngageSubsetFilter() (*EngageSubsetFilter, bool)

AsEngageSubsetFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsFilter Uses

func (eiuf EngageIdleUsersFilter) AsFilter() (*Filter, bool)

AsFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsNativePushEnabledFilter Uses

func (eiuf EngageIdleUsersFilter) AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)

AsNativePushEnabledFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) AsPushQuotaFilter Uses

func (eiuf EngageIdleUsersFilter) AsPushQuotaFilter() (*PushQuotaFilter, bool)

AsPushQuotaFilter is the BasicFilter implementation for EngageIdleUsersFilter.

func (EngageIdleUsersFilter) MarshalJSON Uses

func (eiuf EngageIdleUsersFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EngageIdleUsersFilter.

type EngageNewUsersFilter Uses

type EngageNewUsersFilter struct {
    // Threshold - An integer value representing the threshold to apply on this filter.
    Threshold *int32 `json:"threshold,omitempty"`
    // Type - Possible values include: 'TypeFilter', 'TypeEngageSubset', 'TypeEngageOldUsers', 'TypeEngageNewUsers', 'TypeEngageActiveUsers', 'TypeEngageIdleUsers', 'TypeNativePushEnabled', 'TypePushQuota', 'TypeAppInfo'
    Type TypeBasicFilter `json:"type,omitempty"`
}

EngageNewUsersFilter send only to users whose first app use is less than {threshold} days old.

func (EngageNewUsersFilter) AsAppInfoFilter Uses

func (enuf EngageNewUsersFilter) AsAppInfoFilter() (*AppInfoFilter, bool)

AsAppInfoFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsBasicFilter Uses

func (enuf EngageNewUsersFilter) AsBasicFilter() (BasicFilter, bool)

AsBasicFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsEngageActiveUsersFilter Uses

func (enuf EngageNewUsersFilter) AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)

AsEngageActiveUsersFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsEngageIdleUsersFilter Uses

func (enuf EngageNewUsersFilter) AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)

AsEngageIdleUsersFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsEngageNewUsersFilter Uses

func (enuf EngageNewUsersFilter) AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)

AsEngageNewUsersFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsEngageOldUsersFilter Uses

func (enuf EngageNewUsersFilter) AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)

AsEngageOldUsersFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsEngageSubsetFilter Uses

func (enuf EngageNewUsersFilter) AsEngageSubsetFilter() (*EngageSubsetFilter, bool)

AsEngageSubsetFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsFilter Uses

func (enuf EngageNewUsersFilter) AsFilter() (*Filter, bool)

AsFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsNativePushEnabledFilter Uses

func (enuf EngageNewUsersFilter) AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)

AsNativePushEnabledFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) AsPushQuotaFilter Uses

func (enuf EngageNewUsersFilter) AsPushQuotaFilter() (*PushQuotaFilter, bool)

AsPushQuotaFilter is the BasicFilter implementation for EngageNewUsersFilter.

func (EngageNewUsersFilter) MarshalJSON Uses

func (enuf EngageNewUsersFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EngageNewUsersFilter.

type EngageOldUsersFilter Uses

type EngageOldUsersFilter struct {
    // Threshold - An integer value representing the threshold to apply on this filter.
    Threshold *int32 `json:"threshold,omitempty"`
    // Type - Possible values include: 'TypeFilter', 'TypeEngageSubset', 'TypeEngageOldUsers', 'TypeEngageNewUsers', 'TypeEngageActiveUsers', 'TypeEngageIdleUsers', 'TypeNativePushEnabled', 'TypePushQuota', 'TypeAppInfo'
    Type TypeBasicFilter `json:"type,omitempty"`
}

EngageOldUsersFilter send only to users whose first app use is more than {threshold} days old.

func (EngageOldUsersFilter) AsAppInfoFilter Uses

func (eouf EngageOldUsersFilter) AsAppInfoFilter() (*AppInfoFilter, bool)

AsAppInfoFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsBasicFilter Uses

func (eouf EngageOldUsersFilter) AsBasicFilter() (BasicFilter, bool)

AsBasicFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsEngageActiveUsersFilter Uses

func (eouf EngageOldUsersFilter) AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)

AsEngageActiveUsersFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsEngageIdleUsersFilter Uses

func (eouf EngageOldUsersFilter) AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)

AsEngageIdleUsersFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsEngageNewUsersFilter Uses

func (eouf EngageOldUsersFilter) AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)

AsEngageNewUsersFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsEngageOldUsersFilter Uses

func (eouf EngageOldUsersFilter) AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)

AsEngageOldUsersFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsEngageSubsetFilter Uses

func (eouf EngageOldUsersFilter) AsEngageSubsetFilter() (*EngageSubsetFilter, bool)

AsEngageSubsetFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsFilter Uses

func (eouf EngageOldUsersFilter) AsFilter() (*Filter, bool)

AsFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsNativePushEnabledFilter Uses

func (eouf EngageOldUsersFilter) AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)

AsNativePushEnabledFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) AsPushQuotaFilter Uses

func (eouf EngageOldUsersFilter) AsPushQuotaFilter() (*PushQuotaFilter, bool)

AsPushQuotaFilter is the BasicFilter implementation for EngageOldUsersFilter.

func (EngageOldUsersFilter) MarshalJSON Uses

func (eouf EngageOldUsersFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EngageOldUsersFilter.

type EngageSubsetFilter Uses

type EngageSubsetFilter struct {
    // Max - An integer value representing the maximum users that should be pushed.
    Max *int32 `json:"max,omitempty"`
    // Type - Possible values include: 'TypeFilter', 'TypeEngageSubset', 'TypeEngageOldUsers', 'TypeEngageNewUsers', 'TypeEngageActiveUsers', 'TypeEngageIdleUsers', 'TypeNativePushEnabled', 'TypePushQuota', 'TypeAppInfo'
    Type TypeBasicFilter `json:"type,omitempty"`
}

EngageSubsetFilter send only to a maximum of max users.

func (EngageSubsetFilter) AsAppInfoFilter Uses

func (esf EngageSubsetFilter) AsAppInfoFilter() (*AppInfoFilter, bool)

AsAppInfoFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsBasicFilter Uses

func (esf EngageSubsetFilter) AsBasicFilter() (BasicFilter, bool)

AsBasicFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsEngageActiveUsersFilter Uses

func (esf EngageSubsetFilter) AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)

AsEngageActiveUsersFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsEngageIdleUsersFilter Uses

func (esf EngageSubsetFilter) AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)

AsEngageIdleUsersFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsEngageNewUsersFilter Uses

func (esf EngageSubsetFilter) AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)

AsEngageNewUsersFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsEngageOldUsersFilter Uses

func (esf EngageSubsetFilter) AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)

AsEngageOldUsersFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsEngageSubsetFilter Uses

func (esf EngageSubsetFilter) AsEngageSubsetFilter() (*EngageSubsetFilter, bool)

AsEngageSubsetFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsFilter Uses

func (esf EngageSubsetFilter) AsFilter() (*Filter, bool)

AsFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsNativePushEnabledFilter Uses

func (esf EngageSubsetFilter) AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)

AsNativePushEnabledFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) AsPushQuotaFilter Uses

func (esf EngageSubsetFilter) AsPushQuotaFilter() (*PushQuotaFilter, bool)

AsPushQuotaFilter is the BasicFilter implementation for EngageSubsetFilter.

func (EngageSubsetFilter) MarshalJSON Uses

func (esf EngageSubsetFilter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EngageSubsetFilter.

type ExportFormat Uses

type ExportFormat string

ExportFormat enumerates the values for export format.

const (
    // CsvBlob ...
    CsvBlob ExportFormat = "CsvBlob"
    // JSONBlob ...
    JSONBlob ExportFormat = "JsonBlob"
)

func PossibleExportFormatValues Uses

func PossibleExportFormatValues() []ExportFormat

PossibleExportFormatValues returns an array of possible values for the ExportFormat const type.

type ExportOptions Uses

type ExportOptions struct {
    ExportUserID *bool `json:"exportUserId,omitempty"`
}

ExportOptions options to control export generation.

type ExportState Uses

type ExportState string

ExportState enumerates the values for export state.

const (
    // ExportStateFailed ...
    ExportStateFailed ExportState = "Failed"
    // ExportStateQueued ...
    ExportStateQueued ExportState = "Queued"
    // ExportStateStarted ...
    ExportStateStarted ExportState = "Started"
    // ExportStateSucceeded ...
    ExportStateSucceeded ExportState = "Succeeded"
)

func PossibleExportStateValues Uses

func PossibleExportStateValues() []ExportState

PossibleExportStateValues returns an array of possible values for the ExportState const type.

type ExportTaskListResult Uses

type ExportTaskListResult struct {
    autorest.Response `json:"-"`
    // Value - The list of export tasks.
    Value *[]ExportTaskResult `json:"value,omitempty"`
    // NextLink - When the results are paged, the nextLink is the URI for the next page of results. This property is empty when there are no additional pages.
    NextLink *string `json:"nextLink,omitempty"`
}

ExportTaskListResult gets a paged list of ExportTasks.

func (ExportTaskListResult) IsEmpty Uses

func (etlr ExportTaskListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ExportTaskListResultIterator Uses

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

ExportTaskListResultIterator provides access to a complete listing of ExportTaskResult values.

func (*ExportTaskListResultIterator) Next Uses

func (iter *ExportTaskListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ExportTaskListResultIterator) NotDone Uses

func (iter ExportTaskListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ExportTaskListResultIterator) Response Uses

func (iter ExportTaskListResultIterator) Response() ExportTaskListResult

Response returns the raw server response from the last page request.

func (ExportTaskListResultIterator) Value Uses

func (iter ExportTaskListResultIterator) Value() ExportTaskResult

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ExportTaskListResultPage Uses

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

ExportTaskListResultPage contains a page of ExportTaskResult values.

func (*ExportTaskListResultPage) Next Uses

func (page *ExportTaskListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ExportTaskListResultPage) NotDone Uses

func (page ExportTaskListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ExportTaskListResultPage) Response Uses

func (page ExportTaskListResultPage) Response() ExportTaskListResult

Response returns the raw server response from the last page request.

func (ExportTaskListResultPage) Values Uses

func (page ExportTaskListResultPage) Values() []ExportTaskResult

Values returns the slice of values for the current page or nil if there are no values.

type ExportTaskParameter Uses

type ExportTaskParameter struct {
    ContainerURL *string `json:"containerUrl,omitempty"`
    // Description - A description of the export task.
    Description *string `json:"description,omitempty"`
    // ExportFormat - The format of the exported data. Possible values include: 'JSONBlob', 'CsvBlob'
    ExportFormat ExportFormat `json:"exportFormat,omitempty"`
}

ExportTaskParameter ...

type ExportTaskResult Uses

type ExportTaskResult struct {
    autorest.Response `json:"-"`
    // ID - Unique identifier of the export task.
    ID  *string `json:"id,omitempty"`
    // Description - A description of the export task.
    Description *string `json:"description,omitempty"`
    // State - Possible values include: 'ExportStateQueued', 'ExportStateStarted', 'ExportStateSucceeded', 'ExportStateFailed'
    State ExportState `json:"state,omitempty"`
    // DateCreated - The RFC3339 date-time the export task was created.
    DateCreated *date.Time `json:"dateCreated,omitempty"`
    // DateCompleted - The RFC3339 date-time the export task was completed.
    DateCompleted *date.Time `json:"dateCompleted,omitempty"`
    // ExportType - Possible values include: 'ExportTypeActivity', 'ExportTypeTag', 'ExportTypeCrash', 'ExportTypeError', 'ExportTypeEvent', 'ExportTypeJob', 'ExportTypeSession', 'ExportTypeToken', 'ExportTypePush'
    ExportType ExportType `json:"exportType,omitempty"`
    // ErrorDetails - Details of errors encountered during the export, if any.
    ErrorDetails *string `json:"errorDetails,omitempty"`
}

ExportTaskResult ...

type ExportTasksClient Uses

type ExportTasksClient struct {
    BaseClient
}

ExportTasksClient is the microsoft Azure Mobile Engagement REST APIs.

func NewExportTasksClient Uses

func NewExportTasksClient(subscriptionID string) ExportTasksClient

NewExportTasksClient creates an instance of the ExportTasksClient client.

func NewExportTasksClientWithBaseURI Uses

func NewExportTasksClientWithBaseURI(baseURI string, subscriptionID string) ExportTasksClient

NewExportTasksClientWithBaseURI creates an instance of the ExportTasksClient client.

func (ExportTasksClient) CreateActivitiesTask Uses

func (client ExportTasksClient) CreateActivitiesTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (result ExportTaskResult, err error)

CreateActivitiesTask creates a task to export activities.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateActivitiesTaskPreparer Uses

func (client ExportTasksClient) CreateActivitiesTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (*http.Request, error)

CreateActivitiesTaskPreparer prepares the CreateActivitiesTask request.

func (ExportTasksClient) CreateActivitiesTaskResponder Uses

func (client ExportTasksClient) CreateActivitiesTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateActivitiesTaskResponder handles the response to the CreateActivitiesTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateActivitiesTaskSender Uses

func (client ExportTasksClient) CreateActivitiesTaskSender(req *http.Request) (*http.Response, error)

CreateActivitiesTaskSender sends the CreateActivitiesTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateCrashesTask Uses

func (client ExportTasksClient) CreateCrashesTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (result ExportTaskResult, err error)

CreateCrashesTask creates a task to export crashes.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateCrashesTaskPreparer Uses

func (client ExportTasksClient) CreateCrashesTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (*http.Request, error)

CreateCrashesTaskPreparer prepares the CreateCrashesTask request.

func (ExportTasksClient) CreateCrashesTaskResponder Uses

func (client ExportTasksClient) CreateCrashesTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateCrashesTaskResponder handles the response to the CreateCrashesTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateCrashesTaskSender Uses

func (client ExportTasksClient) CreateCrashesTaskSender(req *http.Request) (*http.Response, error)

CreateCrashesTaskSender sends the CreateCrashesTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateErrorsTask Uses

func (client ExportTasksClient) CreateErrorsTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (result ExportTaskResult, err error)

CreateErrorsTask creates a task to export errors.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateErrorsTaskPreparer Uses

func (client ExportTasksClient) CreateErrorsTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (*http.Request, error)

CreateErrorsTaskPreparer prepares the CreateErrorsTask request.

func (ExportTasksClient) CreateErrorsTaskResponder Uses

func (client ExportTasksClient) CreateErrorsTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateErrorsTaskResponder handles the response to the CreateErrorsTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateErrorsTaskSender Uses

func (client ExportTasksClient) CreateErrorsTaskSender(req *http.Request) (*http.Response, error)

CreateErrorsTaskSender sends the CreateErrorsTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateEventsTask Uses

func (client ExportTasksClient) CreateEventsTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (result ExportTaskResult, err error)

CreateEventsTask creates a task to export events.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateEventsTaskPreparer Uses

func (client ExportTasksClient) CreateEventsTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (*http.Request, error)

CreateEventsTaskPreparer prepares the CreateEventsTask request.

func (ExportTasksClient) CreateEventsTaskResponder Uses

func (client ExportTasksClient) CreateEventsTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateEventsTaskResponder handles the response to the CreateEventsTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateEventsTaskSender Uses

func (client ExportTasksClient) CreateEventsTaskSender(req *http.Request) (*http.Response, error)

CreateEventsTaskSender sends the CreateEventsTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateFeedbackTaskByCampaign Uses

func (client ExportTasksClient) CreateFeedbackTaskByCampaign(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters FeedbackByCampaignParameter) (result ExportTaskResult, err error)

CreateFeedbackTaskByCampaign creates a task to export push campaign data for a set of campaigns.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateFeedbackTaskByCampaignPreparer Uses

func (client ExportTasksClient) CreateFeedbackTaskByCampaignPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters FeedbackByCampaignParameter) (*http.Request, error)

CreateFeedbackTaskByCampaignPreparer prepares the CreateFeedbackTaskByCampaign request.

func (ExportTasksClient) CreateFeedbackTaskByCampaignResponder Uses

func (client ExportTasksClient) CreateFeedbackTaskByCampaignResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateFeedbackTaskByCampaignResponder handles the response to the CreateFeedbackTaskByCampaign request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateFeedbackTaskByCampaignSender Uses

func (client ExportTasksClient) CreateFeedbackTaskByCampaignSender(req *http.Request) (*http.Response, error)

CreateFeedbackTaskByCampaignSender sends the CreateFeedbackTaskByCampaign request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateFeedbackTaskByDateRange Uses

func (client ExportTasksClient) CreateFeedbackTaskByDateRange(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters FeedbackByDateRangeParameter) (result ExportTaskResult, err error)

CreateFeedbackTaskByDateRange creates a task to export push campaign data for a date range.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateFeedbackTaskByDateRangePreparer Uses

func (client ExportTasksClient) CreateFeedbackTaskByDateRangePreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters FeedbackByDateRangeParameter) (*http.Request, error)

CreateFeedbackTaskByDateRangePreparer prepares the CreateFeedbackTaskByDateRange request.

func (ExportTasksClient) CreateFeedbackTaskByDateRangeResponder Uses

func (client ExportTasksClient) CreateFeedbackTaskByDateRangeResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateFeedbackTaskByDateRangeResponder handles the response to the CreateFeedbackTaskByDateRange request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateFeedbackTaskByDateRangeSender Uses

func (client ExportTasksClient) CreateFeedbackTaskByDateRangeSender(req *http.Request) (*http.Response, error)

CreateFeedbackTaskByDateRangeSender sends the CreateFeedbackTaskByDateRange request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateJobsTask Uses

func (client ExportTasksClient) CreateJobsTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (result ExportTaskResult, err error)

CreateJobsTask creates a task to export jobs.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateJobsTaskPreparer Uses

func (client ExportTasksClient) CreateJobsTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (*http.Request, error)

CreateJobsTaskPreparer prepares the CreateJobsTask request.

func (ExportTasksClient) CreateJobsTaskResponder Uses

func (client ExportTasksClient) CreateJobsTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateJobsTaskResponder handles the response to the CreateJobsTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateJobsTaskSender Uses

func (client ExportTasksClient) CreateJobsTaskSender(req *http.Request) (*http.Response, error)

CreateJobsTaskSender sends the CreateJobsTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateSessionsTask Uses

func (client ExportTasksClient) CreateSessionsTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (result ExportTaskResult, err error)

CreateSessionsTask creates a task to export sessions.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateSessionsTaskPreparer Uses

func (client ExportTasksClient) CreateSessionsTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters DateRangeExportTaskParameter) (*http.Request, error)

CreateSessionsTaskPreparer prepares the CreateSessionsTask request.

func (ExportTasksClient) CreateSessionsTaskResponder Uses

func (client ExportTasksClient) CreateSessionsTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateSessionsTaskResponder handles the response to the CreateSessionsTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateSessionsTaskSender Uses

func (client ExportTasksClient) CreateSessionsTaskSender(req *http.Request) (*http.Response, error)

CreateSessionsTaskSender sends the CreateSessionsTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateTagsTask Uses

func (client ExportTasksClient) CreateTagsTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters ExportTaskParameter) (result ExportTaskResult, err error)

CreateTagsTask creates a task to export tags.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateTagsTaskPreparer Uses

func (client ExportTasksClient) CreateTagsTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters ExportTaskParameter) (*http.Request, error)

CreateTagsTaskPreparer prepares the CreateTagsTask request.

func (ExportTasksClient) CreateTagsTaskResponder Uses

func (client ExportTasksClient) CreateTagsTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateTagsTaskResponder handles the response to the CreateTagsTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateTagsTaskSender Uses

func (client ExportTasksClient) CreateTagsTaskSender(req *http.Request) (*http.Response, error)

CreateTagsTaskSender sends the CreateTagsTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) CreateTokensTask Uses

func (client ExportTasksClient) CreateTokensTask(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters ExportTaskParameter) (result ExportTaskResult, err error)

CreateTokensTask creates a task to export tags.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name.

func (ExportTasksClient) CreateTokensTaskPreparer Uses

func (client ExportTasksClient) CreateTokensTaskPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, parameters ExportTaskParameter) (*http.Request, error)

CreateTokensTaskPreparer prepares the CreateTokensTask request.

func (ExportTasksClient) CreateTokensTaskResponder Uses

func (client ExportTasksClient) CreateTokensTaskResponder(resp *http.Response) (result ExportTaskResult, err error)

CreateTokensTaskResponder handles the response to the CreateTokensTask request. The method always closes the http.Response Body.

func (ExportTasksClient) CreateTokensTaskSender Uses

func (client ExportTasksClient) CreateTokensTaskSender(req *http.Request) (*http.Response, error)

CreateTokensTaskSender sends the CreateTokensTask request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) Get Uses

func (client ExportTasksClient) Get(ctx context.Context, resourceGroupName string, appCollection string, appName string, ID string) (result ExportTaskResult, err error)

Get retrieves information about a previously created export task.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. ID is export task identifier.

func (ExportTasksClient) GetPreparer Uses

func (client ExportTasksClient) GetPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, ID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ExportTasksClient) GetResponder Uses

func (client ExportTasksClient) GetResponder(resp *http.Response) (result ExportTaskResult, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ExportTasksClient) GetSender Uses

func (client ExportTasksClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ExportTasksClient) List Uses

func (client ExportTasksClient) List(ctx context.Context, resourceGroupName string, appCollection string, appName string, skip *int32, top *int32, orderby string) (result ExportTaskListResultPage, err error)

List get the list of export tasks.

resourceGroupName is the name of the resource group. appCollection is application collection. appName is application resource name. skip is control paging of export tasks, start results at the given offset, defaults to 0 (1st page of data). top is control paging of export tasks, number of export tasks to return with each call. By default, it returns all export tasks with a default paging of 20. The response contains a `nextLink` property describing the path to get the next page if there are more results. The maximum paging limit for $top is 40. orderby is sort results by an expression which looks like `$orderby=taskId asc` (default when not specified). The syntax is orderby={property} {direction} or just orderby={property}. Properties that can be specified for sorting: taskId, errorDetails, dateCreated, taskStatus, and dateCreated. The available directions are asc (for ascending order) and desc (for descending order). When not specified the asc direction is used. Only one orderby property can be specified.

func (ExportTasksClient) ListComplete Uses

func (client ExportTasksClient) ListComplete(ctx context.Context, resourceGroupName string, appCollection string, appName string, skip *int32, top *int32, orderby string) (result ExportTaskListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ExportTasksClient) ListPreparer Uses

func (client ExportTasksClient) ListPreparer(ctx context.Context, resourceGroupName string, appCollection string, appName string, skip *int32, top *int32, orderby string) (*http.Request, error)

ListPreparer prepares the List request.

func (ExportTasksClient) ListResponder Uses

func (client ExportTasksClient) ListResponder(resp *http.Response) (result ExportTaskListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ExportTasksClient) ListSender Uses

func (client ExportTasksClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ExportType Uses

type ExportType string

ExportType enumerates the values for export type.

const (
    // ExportTypeActivity ...
    ExportTypeActivity ExportType = "Activity"
    // ExportTypeCrash ...
    ExportTypeCrash ExportType = "Crash"
    // ExportTypeError ...
    ExportTypeError ExportType = "Error"
    // ExportTypeEvent ...
    ExportTypeEvent ExportType = "Event"
    // ExportTypeJob ...
    ExportTypeJob ExportType = "Job"
    // ExportTypePush ...
    ExportTypePush ExportType = "Push"
    // ExportTypeSession ...
    ExportTypeSession ExportType = "Session"
    // ExportTypeTag ...
    ExportTypeTag ExportType = "Tag"
    // ExportTypeToken ...
    ExportTypeToken ExportType = "Token"
)

func PossibleExportTypeValues Uses

func PossibleExportTypeValues() []ExportType

PossibleExportTypeValues returns an array of possible values for the ExportType const type.

type FeedbackByCampaignParameter Uses

type FeedbackByCampaignParameter struct {
    ContainerURL *string `json:"containerUrl,omitempty"`
    // Description - A description of the export task.
    Description *string `json:"description,omitempty"`
    // CampaignType - Possible values include: 'Announcement', 'DataPush', 'NativePush', 'Poll'
    CampaignType CampaignType `json:"campaignType,omitempty"`
    // CampaignIds - A list of campaign identifiers.
    CampaignIds *[]int32 `json:"campaignIds,omitempty"`
    // ExportFormat - The format of the exported data. Possible values include: 'JSONBlob', 'CsvBlob'
    ExportFormat ExportFormat `json:"exportFormat,omitempty"`
}

FeedbackByCampaignParameter ...

type FeedbackByDateRangeParameter Uses

type FeedbackByDateRangeParameter struct {
    ContainerURL *string `json:"containerUrl,omitempty"`
    // Description - A description of the export task.
    Description *string `json:"description,omitempty"`
    // CampaignType - Possible values include: 'Announcement', 'DataPush', 'NativePush', 'Poll'
    CampaignType CampaignType `json:"campaignType,omitempty"`
    // CampaignWindowStart - The RFC3339 date-time start of the period for inclusion of active campaigns.
    CampaignWindowStart *date.Time `json:"campaignWindowStart,omitempty"`
    // CampaignWindowEnd - The RFC3339 date-time end of the period for inclusion of active campaigns.
    CampaignWindowEnd *date.Time `json:"campaignWindowEnd,omitempty"`
    // ExportFormat - The format of the exported data. Possible values include: 'JSONBlob', 'CsvBlob'
    ExportFormat ExportFormat `json:"exportFormat,omitempty"`
}

FeedbackByDateRangeParameter ...

type Filter Uses

type Filter struct {
    // Type - Possible values include: 'TypeFilter', 'TypeEngageSubset', 'TypeEngageOldUsers', 'TypeEngageNewUsers', 'TypeEngageActiveUsers', 'TypeEngageIdleUsers', 'TypeNativePushEnabled', 'TypePushQuota', 'TypeAppInfo'
    Type TypeBasicFilter `json:"type,omitempty"`
}

Filter ...

func (Filter) AsAppInfoFilter Uses

func (f Filter) AsAppInfoFilter() (*AppInfoFilter, bool)

AsAppInfoFilter is the BasicFilter implementation for Filter.

func (Filter) AsBasicFilter Uses

func (f Filter) AsBasicFilter() (BasicFilter, bool)

AsBasicFilter is the BasicFilter implementation for Filter.

func (Filter) AsEngageActiveUsersFilter Uses

func (f Filter) AsEngageActiveUsersFilter() (*EngageActiveUsersFilter, bool)

AsEngageActiveUsersFilter is the BasicFilter implementation for Filter.

func (Filter) AsEngageIdleUsersFilter Uses

func (f Filter) AsEngageIdleUsersFilter() (*EngageIdleUsersFilter, bool)

AsEngageIdleUsersFilter is the BasicFilter implementation for Filter.

func (Filter) AsEngageNewUsersFilter Uses

func (f Filter) AsEngageNewUsersFilter() (*EngageNewUsersFilter, bool)

AsEngageNewUsersFilter is the BasicFilter implementation for Filter.

func (Filter) AsEngageOldUsersFilter Uses

func (f Filter) AsEngageOldUsersFilter() (*EngageOldUsersFilter, bool)

AsEngageOldUsersFilter is the BasicFilter implementation for Filter.

func (Filter) AsEngageSubsetFilter Uses

func (f Filter) AsEngageSubsetFilter() (*EngageSubsetFilter, bool)

AsEngageSubsetFilter is the BasicFilter implementation for Filter.

func (Filter) AsFilter Uses

func (f Filter) AsFilter() (*Filter, bool)

AsFilter is the BasicFilter implementation for Filter.

func (Filter) AsNativePushEnabledFilter Uses

func (f Filter) AsNativePushEnabledFilter() (*NativePushEnabledFilter, bool)

AsNativePushEnabledFilter is the BasicFilter implementation for Filter.

func (Filter) AsPushQuotaFilter Uses

func (f Filter) AsPushQuotaFilter() (*PushQuotaFilter, bool)

AsPushQuotaFilter is the BasicFilter implementation for Filter.

func (Filter) MarshalJSON Uses

func (f Filter) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Filter.

type FirmwareVersionCriterion Uses

type FirmwareVersionCriterion struct {
    // Name - Firmware version.
    Name *string `json:"name,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

FirmwareVersionCriterion used to target devices based on their firmware version.

func (FirmwareVersionCriterion) AsAnnouncementFeedbackCriterion Uses

func (fvc FirmwareVersionCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsApplicationVersionCriterion Uses

func (fvc FirmwareVersionCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsBasicCriterion Uses

func (fvc FirmwareVersionCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsBooleanTagCriterion Uses

func (fvc FirmwareVersionCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsCarrierCountryCriterion Uses

func (fvc FirmwareVersionCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsCarrierNameCriterion Uses

func (fvc FirmwareVersionCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsCriterion Uses

func (fvc FirmwareVersionCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsDatapushFeedbackCriterion Uses

func (fvc FirmwareVersionCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsDateTagCriterion Uses

func (fvc FirmwareVersionCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsDeviceManufacturerCriterion Uses

func (fvc FirmwareVersionCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsDeviceModelCriterion Uses

func (fvc FirmwareVersionCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsFirmwareVersionCriterion Uses

func (fvc FirmwareVersionCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsGeoFencingCriterion Uses

func (fvc FirmwareVersionCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsIntegerTagCriterion Uses

func (fvc FirmwareVersionCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsLanguageCriterion Uses

func (fvc FirmwareVersionCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsLocationCriterion Uses

func (fvc FirmwareVersionCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsNetworkTypeCriterion Uses

func (fvc FirmwareVersionCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsPollAnswerFeedbackCriterion Uses

func (fvc FirmwareVersionCriterion) AsPollAnswerFeedbackCriterion() (*PollAnswerFeedbackCriterion, bool)

AsPollAnswerFeedbackCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsPollFeedbackCriterion Uses

func (fvc FirmwareVersionCriterion) AsPollFeedbackCriterion() (*PollFeedbackCriterion, bool)

AsPollFeedbackCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsScreenSizeCriterion Uses

func (fvc FirmwareVersionCriterion) AsScreenSizeCriterion() (*ScreenSizeCriterion, bool)

AsScreenSizeCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsSegmentCriterion Uses

func (fvc FirmwareVersionCriterion) AsSegmentCriterion() (*SegmentCriterion, bool)

AsSegmentCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) AsStringTagCriterion Uses

func (fvc FirmwareVersionCriterion) AsStringTagCriterion() (*StringTagCriterion, bool)

AsStringTagCriterion is the BasicCriterion implementation for FirmwareVersionCriterion.

func (FirmwareVersionCriterion) MarshalJSON Uses

func (fvc FirmwareVersionCriterion) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for FirmwareVersionCriterion.

type GeoFencingCriterion Uses

type GeoFencingCriterion struct {
    // Lat - The latitude of the central point of the region.
    Lat *float64 `json:"lat,omitempty"`
    // Lon - The longitude of the central point of the region.
    Lon *float64 `json:"lon,omitempty"`
    // Radius - The radius of the central point of the region, in meters.
    Radius *int32 `json:"radius,omitempty"`
    // Expiration - Number of minutes before device location is considered to be expired.
    Expiration *int32 `json:"expiration,omitempty"`
    // Type - Possible values include: 'TypeCriterion', 'TypeCarrierName', 'TypeCarrierCountry', 'TypeFirmwareVersion', 'TypeDeviceManufacturer', 'TypeDeviceModel', 'TypeApplicationVersion', 'TypeNetworkType', 'TypeLanguage', 'TypeScreenSize', 'TypeLocation', 'TypeGeoFencing', 'TypeAnnouncementFeedback', 'TypePollFeedback', 'TypePollAnswerFeedback', 'TypeDatapushFeedback', 'TypeSegment', 'TypeStringTag', 'TypeDateTag', 'TypeIntegerTag', 'TypeBooleanTag'
    Type Type `json:"type,omitempty"`
}

GeoFencingCriterion used to target devices based on a specific region. A center point (defined by a latitude and longitude) and a radius form the boundary for the region. This criterion will be met when the user crosses the boundaries of the region.

func (GeoFencingCriterion) AsAnnouncementFeedbackCriterion Uses

func (gfc GeoFencingCriterion) AsAnnouncementFeedbackCriterion() (*AnnouncementFeedbackCriterion, bool)

AsAnnouncementFeedbackCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsApplicationVersionCriterion Uses

func (gfc GeoFencingCriterion) AsApplicationVersionCriterion() (*ApplicationVersionCriterion, bool)

AsApplicationVersionCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsBasicCriterion Uses

func (gfc GeoFencingCriterion) AsBasicCriterion() (BasicCriterion, bool)

AsBasicCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsBooleanTagCriterion Uses

func (gfc GeoFencingCriterion) AsBooleanTagCriterion() (*BooleanTagCriterion, bool)

AsBooleanTagCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsCarrierCountryCriterion Uses

func (gfc GeoFencingCriterion) AsCarrierCountryCriterion() (*CarrierCountryCriterion, bool)

AsCarrierCountryCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsCarrierNameCriterion Uses

func (gfc GeoFencingCriterion) AsCarrierNameCriterion() (*CarrierNameCriterion, bool)

AsCarrierNameCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsCriterion Uses

func (gfc GeoFencingCriterion) AsCriterion() (*Criterion, bool)

AsCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsDatapushFeedbackCriterion Uses

func (gfc GeoFencingCriterion) AsDatapushFeedbackCriterion() (*DatapushFeedbackCriterion, bool)

AsDatapushFeedbackCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsDateTagCriterion Uses

func (gfc GeoFencingCriterion) AsDateTagCriterion() (*DateTagCriterion, bool)

AsDateTagCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsDeviceManufacturerCriterion Uses

func (gfc GeoFencingCriterion) AsDeviceManufacturerCriterion() (*DeviceManufacturerCriterion, bool)

AsDeviceManufacturerCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsDeviceModelCriterion Uses

func (gfc GeoFencingCriterion) AsDeviceModelCriterion() (*DeviceModelCriterion, bool)

AsDeviceModelCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsFirmwareVersionCriterion Uses

func (gfc GeoFencingCriterion) AsFirmwareVersionCriterion() (*FirmwareVersionCriterion, bool)

AsFirmwareVersionCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsGeoFencingCriterion Uses

func (gfc GeoFencingCriterion) AsGeoFencingCriterion() (*GeoFencingCriterion, bool)

AsGeoFencingCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsIntegerTagCriterion Uses

func (gfc GeoFencingCriterion) AsIntegerTagCriterion() (*IntegerTagCriterion, bool)

AsIntegerTagCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsLanguageCriterion Uses

func (gfc GeoFencingCriterion) AsLanguageCriterion() (*LanguageCriterion, bool)

AsLanguageCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsLocationCriterion Uses

func (gfc GeoFencingCriterion) AsLocationCriterion() (*LocationCriterion, bool)

AsLocationCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsNetworkTypeCriterion Uses

func (gfc GeoFencingCriterion) AsNetworkTypeCriterion() (*NetworkTypeCriterion, bool)

AsNetworkTypeCriterion is the BasicCriterion implementation for GeoFencingCriterion.

func (GeoFencingCriterion) AsPollAnswerFeedbackCriterion Uses