azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/notificationhubs/mgmt/2014-09-01/notificationhubs Index | Files | Directories

package notificationhubs

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

Package notificationhubs implements the Azure ARM Notificationhubs service API version 2014-09-01.

Azure NotificationHub client

Index

Package Files

client.go models.go namespaces.go notificationhubs.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Notificationhubs
    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 AccessRights Uses

type AccessRights string

AccessRights enumerates the values for access rights.

const (
    // Listen ...
    Listen AccessRights = "Listen"
    // Manage ...
    Manage AccessRights = "Manage"
    // Send ...
    Send AccessRights = "Send"
)

func PossibleAccessRightsValues Uses

func PossibleAccessRightsValues() []AccessRights

PossibleAccessRightsValues returns an array of possible values for the AccessRights const type.

type AdmCredential Uses

type AdmCredential struct {
    // Properties - Gets or sets properties of NotificationHub AdmCredential.
    Properties *AdmCredentialProperties `json:"properties,omitempty"`
}

AdmCredential description of a NotificationHub AdmCredential.

type AdmCredentialProperties Uses

type AdmCredentialProperties struct {
    // ClientID - Gets or sets the client identifier.
    ClientID *string `json:"clientId,omitempty"`
    // ClientSecret - Gets or sets the credential secret access key.
    ClientSecret *string `json:"clientSecret,omitempty"`
    // AuthTokenURL - Gets or sets the URL of the authorization token.
    AuthTokenURL *string `json:"authTokenUrl,omitempty"`
}

AdmCredentialProperties description of a NotificationHub AdmCredential.

type ApnsCredential Uses

type ApnsCredential struct {
    // Properties - Gets or sets properties of NotificationHub ApnsCredential.
    Properties *ApnsCredentialProperties `json:"properties,omitempty"`
}

ApnsCredential description of a NotificationHub ApnsCredential.

type ApnsCredentialProperties Uses

type ApnsCredentialProperties struct {
    // ApnsCertificate - Gets or sets the APNS certificate.
    ApnsCertificate *string `json:"apnsCertificate,omitempty"`
    // CertificateKey - Gets or sets the certificate key.
    CertificateKey *string `json:"certificateKey,omitempty"`
    // Endpoint - Gets or sets the endpoint of this credential.
    Endpoint *string `json:"endpoint,omitempty"`
    // Thumbprint - Gets or sets the Apns certificate Thumbprint
    Thumbprint *string `json:"thumbprint,omitempty"`
}

ApnsCredentialProperties description of a NotificationHub ApnsCredential.

type BaiduCredential Uses

type BaiduCredential struct {
    // Properties - Gets or sets properties of NotificationHub BaiduCredential.
    Properties *BaiduCredentialProperties `json:"properties,omitempty"`
}

BaiduCredential description of a NotificationHub BaiduCredential.

type BaiduCredentialProperties Uses

type BaiduCredentialProperties struct {
    // BaiduAPIKey - Get or Set Baidu Api Key.
    BaiduAPIKey *string `json:"baiduApiKey,omitempty"`
    // BaiduEndPoint - Get or Set Baidu Endpoint.
    BaiduEndPoint *string `json:"baiduEndPoint,omitempty"`
    // BaiduSecretKey - Get or Set Baidu Secret Key
    BaiduSecretKey *string `json:"baiduSecretKey,omitempty"`
}

BaiduCredentialProperties description of a NotificationHub BaiduCredential.

type BaseClient Uses

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

BaseClient is the base client for Notificationhubs.

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 CheckAvailabilityParameters Uses

type CheckAvailabilityParameters struct {
    // Name - Gets or sets name
    Name *string `json:"name,omitempty"`
    // Location - Gets or sets location.
    Location *string `json:"location,omitempty"`
    // Tags - Gets or sets tags.
    Tags map[string]*string `json:"tags"`
    // IsAvailiable - Gets or sets true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false.
    IsAvailiable *bool `json:"isAvailiable,omitempty"`
}

CheckAvailabilityParameters parameters supplied to the Check Name Availability for Namespace and NotificationHubs.

func (CheckAvailabilityParameters) MarshalJSON Uses

func (capVar CheckAvailabilityParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckAvailabilityParameters.

type CheckAvailabilityResource Uses

type CheckAvailabilityResource struct {
    autorest.Response `json:"-"`
    // ID - Gets or sets the id
    ID  *string `json:"id,omitempty"`
    // Location - Gets or sets datacenter location
    Location *string `json:"location,omitempty"`
    // Name - Gets or sets name
    Name *string `json:"name,omitempty"`
    // Type - Gets or sets resource type
    Type *string `json:"type,omitempty"`
    // Tags - Gets or sets tags
    Tags map[string]*string `json:"tags"`
    // IsAvailiable - Gets or sets true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false.
    IsAvailiable *bool `json:"isAvailiable,omitempty"`
}

CheckAvailabilityResource description of a CheckAvailability resource.

func (CheckAvailabilityResource) MarshalJSON Uses

func (car CheckAvailabilityResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CheckAvailabilityResource.

type Client Uses

type Client struct {
    BaseClient
}

Client is the azure NotificationHub client

func NewClient Uses

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI Uses

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) CheckAvailability Uses

func (client Client) CheckAvailability(ctx context.Context, resourceGroupName string, namespaceName string, parameters CheckAvailabilityParameters) (result CheckAvailabilityResource, err error)

CheckAvailability checks the availability of the given notificationHub in a namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. parameters - the notificationHub name.

func (Client) CheckAvailabilityPreparer Uses

func (client Client) CheckAvailabilityPreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters CheckAvailabilityParameters) (*http.Request, error)

CheckAvailabilityPreparer prepares the CheckAvailability request.

func (Client) CheckAvailabilityResponder Uses

func (client Client) CheckAvailabilityResponder(resp *http.Response) (result CheckAvailabilityResource, err error)

CheckAvailabilityResponder handles the response to the CheckAvailability request. The method always closes the http.Response Body.

func (Client) CheckAvailabilitySender Uses

func (client Client) CheckAvailabilitySender(req *http.Request) (*http.Response, error)

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

func (Client) CreateOrUpdate Uses

func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, parameters CreateOrUpdateParameters) (result ResourceType, err error)

CreateOrUpdate creates/Update a NotificationHub in a namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. notificationHubName - the notification hub name. parameters - parameters supplied to the create/update a NotificationHub Resource.

func (Client) CreateOrUpdateAuthorizationRule Uses

func (client Client) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRule creates/Updates an authorization rule for a NotificationHub Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. notificationHubName - the notification hub name. authorizationRuleName - authorization Rule Name. parameters - the shared access authorization rule.

func (Client) CreateOrUpdateAuthorizationRulePreparer Uses

func (client Client) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (Client) CreateOrUpdateAuthorizationRuleResponder Uses

func (client Client) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRuleResponder handles the response to the CreateOrUpdateAuthorizationRule request. The method always closes the http.Response Body.

func (Client) CreateOrUpdateAuthorizationRuleSender Uses

func (client Client) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error)

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

func (Client) CreateOrUpdatePreparer Uses

func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, parameters CreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (Client) CreateOrUpdateResponder Uses

func (client Client) CreateOrUpdateResponder(resp *http.Response) (result ResourceType, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (Client) CreateOrUpdateSender Uses

func (client Client) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (Client) Delete Uses

func (client Client) Delete(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (result autorest.Response, err error)

Delete deletes a notification hub associated with a namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. notificationHubName - the notification hub name.

func (Client) DeleteAuthorizationRule Uses

func (client Client) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (result autorest.Response, err error)

DeleteAuthorizationRule deletes a notificationHub authorization rule Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. notificationHubName - the notification hub name. authorizationRuleName - authorization Rule Name.

func (Client) DeleteAuthorizationRulePreparer Uses

func (client Client) DeleteAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (*http.Request, error)

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (Client) DeleteAuthorizationRuleResponder Uses

func (client Client) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAuthorizationRuleResponder handles the response to the DeleteAuthorizationRule request. The method always closes the http.Response Body.

func (Client) DeleteAuthorizationRuleSender Uses

func (client Client) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error)

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

func (Client) DeletePreparer Uses

func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (Client) DeleteResponder Uses

func (client Client) 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 (Client) DeleteSender Uses

func (client Client) 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 (Client) Get Uses

func (client Client) Get(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (result ResourceType, err error)

Get lists the notification hubs associated with a namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. notificationHubName - the notification hub name.

func (Client) GetAuthorizationRule Uses

func (client Client) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRule gets an authorization rule for a NotificationHub by name. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name notificationHubName - the notification hub name. authorizationRuleName - authorization rule name.

func (Client) GetAuthorizationRulePreparer Uses

func (client Client) GetAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (*http.Request, error)

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (Client) GetAuthorizationRuleResponder Uses

func (client Client) GetAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRuleResponder handles the response to the GetAuthorizationRule request. The method always closes the http.Response Body.

func (Client) GetAuthorizationRuleSender Uses

func (client Client) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error)

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

func (Client) GetPnsCredentials Uses

func (client Client) GetPnsCredentials(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (result ResourceType, err error)

GetPnsCredentials lists the PNS Credentials associated with a notification hub . Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. notificationHubName - the notification hub name.

func (Client) GetPnsCredentialsPreparer Uses

func (client Client) GetPnsCredentialsPreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

GetPnsCredentialsPreparer prepares the GetPnsCredentials request.

func (Client) GetPnsCredentialsResponder Uses

func (client Client) GetPnsCredentialsResponder(resp *http.Response) (result ResourceType, err error)

GetPnsCredentialsResponder handles the response to the GetPnsCredentials request. The method always closes the http.Response Body.

func (Client) GetPnsCredentialsSender Uses

func (client Client) GetPnsCredentialsSender(req *http.Request) (*http.Response, error)

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

func (Client) GetPreparer Uses

func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (Client) GetResponder Uses

func (client Client) GetResponder(resp *http.Response) (result ResourceType, err error)

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

func (Client) GetSender Uses

func (client Client) 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 (Client) List Uses

func (client Client) List(ctx context.Context, resourceGroupName string, namespaceName string) (result ListResultPage, err error)

List lists the notification hubs associated with a namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name.

func (Client) ListAuthorizationRules Uses

func (client Client) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (result SharedAccessAuthorizationRuleListResultPage, err error)

ListAuthorizationRules gets the authorization rules for a NotificationHub. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name notificationHubName - the notification hub name.

func (Client) ListAuthorizationRulesComplete Uses

func (client Client) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (result SharedAccessAuthorizationRuleListResultIterator, err error)

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

func (Client) ListAuthorizationRulesPreparer Uses

func (client Client) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (Client) ListAuthorizationRulesResponder Uses

func (client Client) ListAuthorizationRulesResponder(resp *http.Response) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRulesResponder handles the response to the ListAuthorizationRules request. The method always closes the http.Response Body.

func (Client) ListAuthorizationRulesSender Uses

func (client Client) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error)

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

func (Client) ListComplete Uses

func (client Client) ListComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result ListResultIterator, err error)

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

func (Client) ListKeys Uses

func (client Client) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (result ResourceListKeys, err error)

ListKeys gets the Primary and Secondary ConnectionStrings to the NotificationHub Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. notificationHubName - the notification hub name. authorizationRuleName - the connection string of the NotificationHub for the specified authorizationRule.

func (Client) ListKeysPreparer Uses

func (client Client) ListKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (Client) ListKeysResponder Uses

func (client Client) ListKeysResponder(resp *http.Response) (result ResourceListKeys, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (Client) ListKeysSender Uses

func (client Client) ListKeysSender(req *http.Request) (*http.Response, error)

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

func (Client) ListPreparer Uses

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

ListPreparer prepares the List request.

func (Client) ListResponder Uses

func (client Client) ListResponder(resp *http.Response) (result ListResult, err error)

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

func (Client) ListSender Uses

func (client Client) 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 CreateOrUpdateParameters Uses

type CreateOrUpdateParameters struct {
    // Location - Gets or sets NotificationHub data center location.
    Location *string `json:"location,omitempty"`
    // Tags - Gets or sets NotificationHub tags.
    Tags map[string]*string `json:"tags"`
    // Properties - Gets or sets properties of the NotificationHub.
    Properties *Properties `json:"properties,omitempty"`
}

CreateOrUpdateParameters parameters supplied to the CreateOrUpdate NotificationHub operation.

func (CreateOrUpdateParameters) MarshalJSON Uses

func (coup CreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CreateOrUpdateParameters.

type GcmCredential Uses

type GcmCredential struct {
    // Properties - Gets or sets properties of NotificationHub GcmCredential.
    Properties *GcmCredentialProperties `json:"properties,omitempty"`
}

GcmCredential description of a NotificationHub GcmCredential.

type GcmCredentialProperties Uses

type GcmCredentialProperties struct {
    // GcmEndpoint - Gets or sets the GCM endpoint.
    GcmEndpoint *string `json:"gcmEndpoint,omitempty"`
    // GoogleAPIKey - Gets or sets the Google API key.
    GoogleAPIKey *string `json:"googleApiKey,omitempty"`
}

GcmCredentialProperties description of a NotificationHub GcmCredential.

type ListResult Uses

type ListResult struct {
    autorest.Response `json:"-"`
    // Value - Gets or sets result of the List NotificationHub operation.
    Value *[]ResourceType `json:"value,omitempty"`
    // NextLink - Gets or sets link to the next set of results. Not empty if Value contains incomplete list of NotificationHub
    NextLink *string `json:"nextLink,omitempty"`
}

ListResult the response of the List NotificationHub operation.

func (ListResult) IsEmpty Uses

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListResultIterator Uses

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

ListResultIterator provides access to a complete listing of ResourceType values.

func NewListResultIterator Uses

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next Uses

func (iter *ListResultIterator) 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. Deprecated: Use NextWithContext() instead.

func (*ListResultIterator) NextWithContext Uses

func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)

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

func (ListResultIterator) NotDone Uses

func (iter ListResultIterator) NotDone() bool

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

func (ListResultIterator) Response Uses

func (iter ListResultIterator) Response() ListResult

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

func (ListResultIterator) Value Uses

func (iter ListResultIterator) Value() ResourceType

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

type ListResultPage Uses

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

ListResultPage contains a page of ResourceType values.

func NewListResultPage Uses

func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next Uses

func (page *ListResultPage) 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. Deprecated: Use NextWithContext() instead.

func (*ListResultPage) NextWithContext Uses

func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (ListResultPage) NotDone Uses

func (page ListResultPage) NotDone() bool

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

func (ListResultPage) Response Uses

func (page ListResultPage) Response() ListResult

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

func (ListResultPage) Values Uses

func (page ListResultPage) Values() []ResourceType

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

type MpnsCredential Uses

type MpnsCredential struct {
    // Properties - Gets or sets properties of NotificationHub MpnsCredential.
    Properties *MpnsCredentialProperties `json:"properties,omitempty"`
}

MpnsCredential description of a NotificationHub MpnsCredential.

type MpnsCredentialProperties Uses

type MpnsCredentialProperties struct {
    // MpnsCertificate - Gets or sets the MPNS certificate.
    MpnsCertificate *string `json:"mpnsCertificate,omitempty"`
    // CertificateKey - Gets or sets the certificate key for this credential.
    CertificateKey *string `json:"certificateKey,omitempty"`
    // Thumbprint - Gets or sets the Mpns certificate Thumbprint
    Thumbprint *string `json:"thumbprint,omitempty"`
}

MpnsCredentialProperties description of a NotificationHub MpnsCredential.

type NamespaceCreateOrUpdateParameters Uses

type NamespaceCreateOrUpdateParameters struct {
    // Location - Gets or sets Namespace data center location.
    Location *string `json:"location,omitempty"`
    // Tags - Gets or sets Namespace tags.
    Tags map[string]*string `json:"tags"`
    // Properties - Gets or sets properties of the Namespace.
    Properties *NamespaceProperties `json:"properties,omitempty"`
}

NamespaceCreateOrUpdateParameters parameters supplied to the CreateOrUpdate Namespace operation.

func (NamespaceCreateOrUpdateParameters) MarshalJSON Uses

func (ncoup NamespaceCreateOrUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NamespaceCreateOrUpdateParameters.

type NamespaceListResult Uses

type NamespaceListResult struct {
    autorest.Response `json:"-"`
    // Value - Gets or sets result of the List Namespace operation.
    Value *[]NamespaceResource `json:"value,omitempty"`
    // NextLink - Gets or sets link to the next set of results. Not empty if Value contains incomplete list of Namespaces
    NextLink *string `json:"nextLink,omitempty"`
}

NamespaceListResult the response of the List Namespace operation.

func (NamespaceListResult) IsEmpty Uses

func (nlr NamespaceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type NamespaceListResultIterator Uses

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

NamespaceListResultIterator provides access to a complete listing of NamespaceResource values.

func NewNamespaceListResultIterator Uses

func NewNamespaceListResultIterator(page NamespaceListResultPage) NamespaceListResultIterator

Creates a new instance of the NamespaceListResultIterator type.

func (*NamespaceListResultIterator) Next Uses

func (iter *NamespaceListResultIterator) 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. Deprecated: Use NextWithContext() instead.

func (*NamespaceListResultIterator) NextWithContext Uses

func (iter *NamespaceListResultIterator) NextWithContext(ctx context.Context) (err error)

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

func (NamespaceListResultIterator) NotDone Uses

func (iter NamespaceListResultIterator) NotDone() bool

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

func (NamespaceListResultIterator) Response Uses

func (iter NamespaceListResultIterator) Response() NamespaceListResult

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

func (NamespaceListResultIterator) Value Uses

func (iter NamespaceListResultIterator) Value() NamespaceResource

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

type NamespaceListResultPage Uses

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

NamespaceListResultPage contains a page of NamespaceResource values.

func NewNamespaceListResultPage Uses

func NewNamespaceListResultPage(getNextPage func(context.Context, NamespaceListResult) (NamespaceListResult, error)) NamespaceListResultPage

Creates a new instance of the NamespaceListResultPage type.

func (*NamespaceListResultPage) Next Uses

func (page *NamespaceListResultPage) 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. Deprecated: Use NextWithContext() instead.

func (*NamespaceListResultPage) NextWithContext Uses

func (page *NamespaceListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (NamespaceListResultPage) NotDone Uses

func (page NamespaceListResultPage) NotDone() bool

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

func (NamespaceListResultPage) Response Uses

func (page NamespaceListResultPage) Response() NamespaceListResult

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

func (NamespaceListResultPage) Values Uses

func (page NamespaceListResultPage) Values() []NamespaceResource

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

type NamespaceProperties Uses

type NamespaceProperties struct {
    // Name - The name of the namespace.
    Name *string `json:"name,omitempty"`
    // ProvisioningState - Gets or sets provisioning state of the Namespace.
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // Region - Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe
    Region *string `json:"region,omitempty"`
    // Status - Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
    Status *string `json:"status,omitempty"`
    // CreatedAt - The time the namespace was created.
    CreatedAt *date.Time `json:"createdAt,omitempty"`
    // ServiceBusEndpoint - Endpoint you can use to perform NotificationHub operations.
    ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"`
    // SubscriptionID - The Id of the Azure subscription associated with the namespace.
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // ScaleUnit - ScaleUnit where the namespace gets created
    ScaleUnit *string `json:"scaleUnit,omitempty"`
    // Enabled - Whether or not the namespace is currently enabled.
    Enabled *bool `json:"enabled,omitempty"`
    // Critical - Whether or not the namespace is set as Critical.
    Critical *bool `json:"critical,omitempty"`
    // NamespaceType - Gets or sets the namespace type. Possible values include: 'Messaging', 'NotificationHub'
    NamespaceType NamespaceType `json:"namespaceType,omitempty"`
}

NamespaceProperties namespace properties.

type NamespaceResource Uses

type NamespaceResource struct {
    autorest.Response `json:"-"`
    // ID - Gets or sets the id of the created Namespace.
    ID  *string `json:"id,omitempty"`
    // Location - Gets or sets datacenter location of the Namespace.
    Location *string `json:"location,omitempty"`
    // Name - Gets or sets name of the Namespace.
    Name *string `json:"name,omitempty"`
    // Type - Gets or sets resource type of the Namespace.
    Type *string `json:"type,omitempty"`
    // Tags - Gets or sets tags of the Namespace.
    Tags map[string]*string `json:"tags"`
    // Properties - Gets or sets properties of the Namespace.
    Properties *NamespaceProperties `json:"properties,omitempty"`
}

NamespaceResource description of a Namespace resource.

func (NamespaceResource) MarshalJSON Uses

func (nr NamespaceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NamespaceResource.

type NamespaceType Uses

type NamespaceType string

NamespaceType enumerates the values for namespace type.

const (
    // Messaging ...
    Messaging NamespaceType = "Messaging"
    // NotificationHub ...
    NotificationHub NamespaceType = "NotificationHub"
)

func PossibleNamespaceTypeValues Uses

func PossibleNamespaceTypeValues() []NamespaceType

PossibleNamespaceTypeValues returns an array of possible values for the NamespaceType const type.

type NamespacesClient Uses

type NamespacesClient struct {
    BaseClient
}

NamespacesClient is the azure NotificationHub client

func NewNamespacesClient Uses

func NewNamespacesClient(subscriptionID string) NamespacesClient

NewNamespacesClient creates an instance of the NamespacesClient client.

func NewNamespacesClientWithBaseURI Uses

func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) NamespacesClient

NewNamespacesClientWithBaseURI creates an instance of the NamespacesClient client.

func (NamespacesClient) CheckAvailability Uses

func (client NamespacesClient) CheckAvailability(ctx context.Context, parameters CheckAvailabilityParameters) (result CheckAvailabilityResource, err error)

CheckAvailability checks the availability of the given service namespace across all Windows Azure subscriptions. This is useful because the domain name is created based on the service namespace name. Parameters: parameters - the namespace name.

func (NamespacesClient) CheckAvailabilityPreparer Uses

func (client NamespacesClient) CheckAvailabilityPreparer(ctx context.Context, parameters CheckAvailabilityParameters) (*http.Request, error)

CheckAvailabilityPreparer prepares the CheckAvailability request.

func (NamespacesClient) CheckAvailabilityResponder Uses

func (client NamespacesClient) CheckAvailabilityResponder(resp *http.Response) (result CheckAvailabilityResource, err error)

CheckAvailabilityResponder handles the response to the CheckAvailability request. The method always closes the http.Response Body.

func (NamespacesClient) CheckAvailabilitySender Uses

func (client NamespacesClient) CheckAvailabilitySender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) CreateOrUpdate Uses

func (client NamespacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceCreateOrUpdateParameters) (result NamespaceResource, err error)

CreateOrUpdate creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. parameters - parameters supplied to create a Namespace Resource.

func (NamespacesClient) CreateOrUpdateAuthorizationRule Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRule creates an authorization rule for a namespace Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. authorizationRuleName - authorization Rule Name. parameters - the shared access authorization rule.

func (NamespacesClient) CreateOrUpdateAuthorizationRulePreparer Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (NamespacesClient) CreateOrUpdateAuthorizationRuleResponder Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRuleResponder handles the response to the CreateOrUpdateAuthorizationRule request. The method always closes the http.Response Body.

func (NamespacesClient) CreateOrUpdateAuthorizationRuleSender Uses

func (client NamespacesClient) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) CreateOrUpdatePreparer Uses

func (client NamespacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, namespaceName string, parameters NamespaceCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (NamespacesClient) CreateOrUpdateResponder Uses

func (client NamespacesClient) CreateOrUpdateResponder(resp *http.Response) (result NamespaceResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (NamespacesClient) CreateOrUpdateSender Uses

func (client NamespacesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) Delete Uses

func (client NamespacesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespacesDeleteFuture, err error)

Delete deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name.

func (NamespacesClient) DeleteAuthorizationRule Uses

func (client NamespacesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result autorest.Response, err error)

DeleteAuthorizationRule deletes a namespace authorization rule Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. authorizationRuleName - authorization Rule Name.

func (NamespacesClient) DeleteAuthorizationRulePreparer Uses

func (client NamespacesClient) DeleteAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (NamespacesClient) DeleteAuthorizationRuleResponder Uses

func (client NamespacesClient) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error)

DeleteAuthorizationRuleResponder handles the response to the DeleteAuthorizationRule request. The method always closes the http.Response Body.

func (NamespacesClient) DeleteAuthorizationRuleSender Uses

func (client NamespacesClient) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) DeletePreparer Uses

func (client NamespacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (NamespacesClient) DeleteResponder Uses

func (client NamespacesClient) 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 (NamespacesClient) DeleteSender Uses

func (client NamespacesClient) DeleteSender(req *http.Request) (future NamespacesDeleteFuture, err error)

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

func (NamespacesClient) Get Uses

func (client NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string) (result NamespaceResource, err error)

Get returns the description for the specified namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name.

func (NamespacesClient) GetAuthorizationRule Uses

func (client NamespacesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRule gets an authorization rule for a namespace by name. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name authorizationRuleName - authorization rule name.

func (NamespacesClient) GetAuthorizationRulePreparer Uses

func (client NamespacesClient) GetAuthorizationRulePreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (NamespacesClient) GetAuthorizationRuleResponder Uses

func (client NamespacesClient) GetAuthorizationRuleResponder(resp *http.Response) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRuleResponder handles the response to the GetAuthorizationRule request. The method always closes the http.Response Body.

func (NamespacesClient) GetAuthorizationRuleSender Uses

func (client NamespacesClient) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) GetLongRunningOperationStatus Uses

func (client NamespacesClient) GetLongRunningOperationStatus(ctx context.Context, operationStatusLink string) (result autorest.Response, err error)

GetLongRunningOperationStatus the Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeeded, failed, or is still in progress. Parameters: operationStatusLink - location value returned by the Begin operation.

func (NamespacesClient) GetLongRunningOperationStatusPreparer Uses

func (client NamespacesClient) GetLongRunningOperationStatusPreparer(ctx context.Context, operationStatusLink string) (*http.Request, error)

GetLongRunningOperationStatusPreparer prepares the GetLongRunningOperationStatus request.

func (NamespacesClient) GetLongRunningOperationStatusResponder Uses

func (client NamespacesClient) GetLongRunningOperationStatusResponder(resp *http.Response) (result autorest.Response, err error)

GetLongRunningOperationStatusResponder handles the response to the GetLongRunningOperationStatus request. The method always closes the http.Response Body.

func (NamespacesClient) GetLongRunningOperationStatusSender Uses

func (client NamespacesClient) GetLongRunningOperationStatusSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) GetPreparer Uses

func (client NamespacesClient) GetPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (NamespacesClient) GetResponder Uses

func (client NamespacesClient) GetResponder(resp *http.Response) (result NamespaceResource, err error)

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

func (NamespacesClient) GetSender Uses

func (client NamespacesClient) 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 (NamespacesClient) List Uses

func (client NamespacesClient) List(ctx context.Context, resourceGroupName string) (result NamespaceListResultPage, err error)

List lists the available namespaces within a resourceGroup. Parameters: resourceGroupName - the name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription

func (NamespacesClient) ListAll Uses

func (client NamespacesClient) ListAll(ctx context.Context) (result NamespaceListResultPage, err error)

ListAll lists all the available namespaces within the subscription irrespective of the resourceGroups.

func (NamespacesClient) ListAllComplete Uses

func (client NamespacesClient) ListAllComplete(ctx context.Context) (result NamespaceListResultIterator, err error)

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

func (NamespacesClient) ListAllPreparer Uses

func (client NamespacesClient) ListAllPreparer(ctx context.Context) (*http.Request, error)

ListAllPreparer prepares the ListAll request.

func (NamespacesClient) ListAllResponder Uses

func (client NamespacesClient) ListAllResponder(resp *http.Response) (result NamespaceListResult, err error)

ListAllResponder handles the response to the ListAll request. The method always closes the http.Response Body.

func (NamespacesClient) ListAllSender Uses

func (client NamespacesClient) ListAllSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) ListAuthorizationRules Uses

func (client NamespacesClient) ListAuthorizationRules(ctx context.Context, resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResultPage, err error)

ListAuthorizationRules gets the authorization rules for a namespace. Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name

func (NamespacesClient) ListAuthorizationRulesComplete Uses

func (client NamespacesClient) ListAuthorizationRulesComplete(ctx context.Context, resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResultIterator, err error)

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

func (NamespacesClient) ListAuthorizationRulesPreparer Uses

func (client NamespacesClient) ListAuthorizationRulesPreparer(ctx context.Context, resourceGroupName string, namespaceName string) (*http.Request, error)

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (NamespacesClient) ListAuthorizationRulesResponder Uses

func (client NamespacesClient) ListAuthorizationRulesResponder(resp *http.Response) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRulesResponder handles the response to the ListAuthorizationRules request. The method always closes the http.Response Body.

func (NamespacesClient) ListAuthorizationRulesSender Uses

func (client NamespacesClient) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) ListComplete Uses

func (client NamespacesClient) ListComplete(ctx context.Context, resourceGroupName string) (result NamespaceListResultIterator, err error)

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

func (NamespacesClient) ListKeys Uses

func (client NamespacesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (result ResourceListKeys, err error)

ListKeys gets the Primary and Secondary ConnectionStrings to the namespace Parameters: resourceGroupName - the name of the resource group. namespaceName - the namespace name. authorizationRuleName - the connection string of the namespace for the specified authorizationRule.

func (NamespacesClient) ListKeysPreparer Uses

func (client NamespacesClient) ListKeysPreparer(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (NamespacesClient) ListKeysResponder Uses

func (client NamespacesClient) ListKeysResponder(resp *http.Response) (result ResourceListKeys, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (NamespacesClient) ListKeysSender Uses

func (client NamespacesClient) ListKeysSender(req *http.Request) (*http.Response, error)

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

func (NamespacesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (NamespacesClient) ListResponder Uses

func (client NamespacesClient) ListResponder(resp *http.Response) (result NamespaceListResult, err error)

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

func (NamespacesClient) ListSender Uses

func (client NamespacesClient) 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 NamespacesDeleteFuture Uses

type NamespacesDeleteFuture struct {
    azure.Future
}

NamespacesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*NamespacesDeleteFuture) Result Uses

func (future *NamespacesDeleteFuture) Result(client NamespacesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type Properties Uses

type Properties struct {
    // Name - The NotificationHub name.
    Name *string `json:"name,omitempty"`
    // RegistrationTTL - The RegistrationTtl of the created NotificationHub
    RegistrationTTL *string `json:"registrationTtl,omitempty"`
    // AuthorizationRules - The AuthorizationRules of the created NotificationHub
    AuthorizationRules *[]SharedAccessAuthorizationRuleProperties `json:"authorizationRules,omitempty"`
    // ApnsCredential - The ApnsCredential of the created NotificationHub
    ApnsCredential *ApnsCredential `json:"apnsCredential,omitempty"`
    // WnsCredential - The WnsCredential of the created NotificationHub
    WnsCredential *WnsCredential `json:"wnsCredential,omitempty"`
    // GcmCredential - The GcmCredential of the created NotificationHub
    GcmCredential *GcmCredential `json:"gcmCredential,omitempty"`
    // MpnsCredential - The MpnsCredential of the created NotificationHub
    MpnsCredential *MpnsCredential `json:"mpnsCredential,omitempty"`
    // AdmCredential - The AdmCredential of the created NotificationHub
    AdmCredential *AdmCredential `json:"admCredential,omitempty"`
    // BaiduCredential - The BaiduCredential of the created NotificationHub
    BaiduCredential *BaiduCredential `json:"baiduCredential,omitempty"`
}

Properties notificationHub properties.

type Resource Uses

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

Resource ...

func (Resource) MarshalJSON Uses

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceListKeys Uses

type ResourceListKeys struct {
    autorest.Response `json:"-"`
    // PrimaryConnectionString - Gets or sets the primaryConnectionString of the created Namespace AuthorizationRule.
    PrimaryConnectionString *string `json:"primaryConnectionString,omitempty"`
    // SecondaryConnectionString - Gets or sets the secondaryConnectionString of the created Namespace AuthorizationRule
    SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"`
}

ResourceListKeys namespace/NotificationHub Connection String

type ResourceType Uses

type ResourceType struct {
    autorest.Response `json:"-"`
    // ID - Gets or sets the id of the created NotificationHub.
    ID  *string `json:"id,omitempty"`
    // Location - Gets or sets datacenter location of the NotificationHub.
    Location *string `json:"location,omitempty"`
    // Name - Gets or sets name of the NotificationHub.
    Name *string `json:"name,omitempty"`
    // Type - Gets or sets resource type of the NotificationHub.
    Type *string `json:"type,omitempty"`
    // Tags - Gets or sets tags of the NotificationHub.
    Tags map[string]*string `json:"tags"`
    // Properties - Gets or sets properties of the NotificationHub.
    Properties *Properties `json:"properties,omitempty"`
}

ResourceType description of a NotificationHub Resource.

func (ResourceType) MarshalJSON Uses

func (rt ResourceType) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceType.

type SharedAccessAuthorizationRuleCreateOrUpdateParameters Uses

type SharedAccessAuthorizationRuleCreateOrUpdateParameters struct {
    // Location - Gets or sets Namespace data center location.
    Location *string `json:"location,omitempty"`
    // Name - Gets or sets Name of the Namespace AuthorizationRule.
    Name *string `json:"name,omitempty"`
    // Properties - Gets or sets properties of the Namespace AuthorizationRules.
    Properties *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"`
}

SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters supplied to the CreateOrUpdate Namespace AuthorizationRules.

type SharedAccessAuthorizationRuleListResult Uses

type SharedAccessAuthorizationRuleListResult struct {
    autorest.Response `json:"-"`
    // Value - Gets or sets result of the List AuthorizationRules operation.
    Value *[]SharedAccessAuthorizationRuleResource `json:"value,omitempty"`
    // NextLink - Gets or sets link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules
    NextLink *string `json:"nextLink,omitempty"`
}

SharedAccessAuthorizationRuleListResult the response of the List Namespace operation.

func (SharedAccessAuthorizationRuleListResult) IsEmpty Uses

func (saarlr SharedAccessAuthorizationRuleListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SharedAccessAuthorizationRuleListResultIterator Uses

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

SharedAccessAuthorizationRuleListResultIterator provides access to a complete listing of SharedAccessAuthorizationRuleResource values.

func NewSharedAccessAuthorizationRuleListResultIterator Uses

func NewSharedAccessAuthorizationRuleListResultIterator(page SharedAccessAuthorizationRuleListResultPage) SharedAccessAuthorizationRuleListResultIterator

Creates a new instance of the SharedAccessAuthorizationRuleListResultIterator type.

func (*SharedAccessAuthorizationRuleListResultIterator) Next Uses

func (iter *SharedAccessAuthorizationRuleListResultIterator) 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. Deprecated: Use NextWithContext() instead.

func (*SharedAccessAuthorizationRuleListResultIterator) NextWithContext Uses

func (iter *SharedAccessAuthorizationRuleListResultIterator) NextWithContext(ctx context.Context) (err error)

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

func (SharedAccessAuthorizationRuleListResultIterator) NotDone Uses

func (iter SharedAccessAuthorizationRuleListResultIterator) NotDone() bool

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

func (SharedAccessAuthorizationRuleListResultIterator) Response Uses

func (iter SharedAccessAuthorizationRuleListResultIterator) Response() SharedAccessAuthorizationRuleListResult

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

func (SharedAccessAuthorizationRuleListResultIterator) Value Uses

func (iter SharedAccessAuthorizationRuleListResultIterator) Value() SharedAccessAuthorizationRuleResource

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

type SharedAccessAuthorizationRuleListResultPage Uses

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

SharedAccessAuthorizationRuleListResultPage contains a page of SharedAccessAuthorizationRuleResource values.

func NewSharedAccessAuthorizationRuleListResultPage Uses

func NewSharedAccessAuthorizationRuleListResultPage(getNextPage func(context.Context, SharedAccessAuthorizationRuleListResult) (SharedAccessAuthorizationRuleListResult, error)) SharedAccessAuthorizationRuleListResultPage

Creates a new instance of the SharedAccessAuthorizationRuleListResultPage type.

func (*SharedAccessAuthorizationRuleListResultPage) Next Uses

func (page *SharedAccessAuthorizationRuleListResultPage) 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. Deprecated: Use NextWithContext() instead.

func (*SharedAccessAuthorizationRuleListResultPage) NextWithContext Uses

func (page *SharedAccessAuthorizationRuleListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext 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 (SharedAccessAuthorizationRuleListResultPage) NotDone Uses

func (page SharedAccessAuthorizationRuleListResultPage) NotDone() bool

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

func (SharedAccessAuthorizationRuleListResultPage) Response Uses

func (page SharedAccessAuthorizationRuleListResultPage) Response() SharedAccessAuthorizationRuleListResult

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

func (SharedAccessAuthorizationRuleListResultPage) Values Uses

func (page SharedAccessAuthorizationRuleListResultPage) Values() []SharedAccessAuthorizationRuleResource

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

type SharedAccessAuthorizationRuleProperties Uses

type SharedAccessAuthorizationRuleProperties struct {
    // PrimaryKey - The primary key that was used.
    PrimaryKey *string `json:"primaryKey,omitempty"`
    // SecondaryKey - The secondary key that was used.
    SecondaryKey *string `json:"secondaryKey,omitempty"`
    // KeyName - The name of the key that was used.
    KeyName *string `json:"keyName,omitempty"`
    // ClaimType - The type of the claim.
    ClaimType *string `json:"claimType,omitempty"`
    // ClaimValue - The value of the claim.
    ClaimValue *string `json:"claimValue,omitempty"`
    // Rights - The rights associated with the rule.
    Rights *[]AccessRights `json:"rights,omitempty"`
    // CreatedTime - The time at which the authorization rule was created.
    CreatedTime *date.Time `json:"createdTime,omitempty"`
    // ModifiedTime - The most recent time the rule was updated.
    ModifiedTime *date.Time `json:"modifiedTime,omitempty"`
    // Revision - The revision number for the rule.
    Revision *int32 `json:"revision,omitempty"`
}

SharedAccessAuthorizationRuleProperties sharedAccessAuthorizationRule properties.

type SharedAccessAuthorizationRuleResource Uses

type SharedAccessAuthorizationRuleResource struct {
    autorest.Response `json:"-"`
    // ID - Gets or sets the id of the created Namespace AuthorizationRules.
    ID  *string `json:"id,omitempty"`
    // Location - Gets or sets datacenter location of the Namespace AuthorizationRules.
    Location *string `json:"location,omitempty"`
    // Name - Gets or sets name of the Namespace AuthorizationRules.
    Name *string `json:"name,omitempty"`
    // Type - Gets or sets resource type of the Namespace AuthorizationRules.
    Type *string `json:"type,omitempty"`
    // Tags - Gets or sets tags of the Namespace AuthorizationRules.
    Tags map[string]*string `json:"tags"`
    // Properties - Gets or sets properties of the Namespace.
    Properties *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"`
}

SharedAccessAuthorizationRuleResource description of a Namespace AuthorizationRules.

func (SharedAccessAuthorizationRuleResource) MarshalJSON Uses

func (saarr SharedAccessAuthorizationRuleResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SharedAccessAuthorizationRuleResource.

type SubResource Uses

type SubResource struct {
    // ID - Resource Id
    ID *string `json:"id,omitempty"`
}

SubResource ...

type WnsCredential Uses

type WnsCredential struct {
    // Properties - Gets or sets properties of NotificationHub WnsCredential.
    Properties *WnsCredentialProperties `json:"properties,omitempty"`
}

WnsCredential description of a NotificationHub WnsCredential.

type WnsCredentialProperties Uses

type WnsCredentialProperties struct {
    // PackageSid - Gets or sets the package ID for this credential.
    PackageSid *string `json:"packageSid,omitempty"`
    // SecretKey - Gets or sets the secret key.
    SecretKey *string `json:"secretKey,omitempty"`
    // WindowsLiveEndpoint - Gets or sets the Windows Live endpoint.
    WindowsLiveEndpoint *string `json:"windowsLiveEndpoint,omitempty"`
}

WnsCredentialProperties description of a NotificationHub WnsCredential.

Directories

PathSynopsis
notificationhubsapi

Package notificationhubs imports 10 packages (graph) and is imported by 4 packages. Updated 2019-08-10. Refresh now. Tools for package owners.