notificationhubs

package
v0.0.0-...-3b8a704 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

.Net client wrapper for the REST API for Azure NotificationHub Service

Index

Constants

View Source
const (
	// APIVersion is the version of the Notificationhubs
	APIVersion = "2014-09-01"

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AccessRights

type AccessRights string

AccessRights enumerates the values for access rights.

const (
	// Listen specifies the listen state for access rights.
	Listen AccessRights = "Listen"
	// Manage specifies the manage state for access rights.
	Manage AccessRights = "Manage"
	// Send specifies the send state for access rights.
	Send AccessRights = "Send"
)

type AdmCredential

type AdmCredential struct {
	Properties *AdmCredentialProperties `json:"properties,omitempty"`
}

AdmCredential is description of a NotificationHub AdmCredential.

type AdmCredentialProperties

type AdmCredentialProperties struct {
	ClientID     *string `json:"clientId,omitempty"`
	ClientSecret *string `json:"clientSecret,omitempty"`
	AuthTokenURL *string `json:"authTokenUrl,omitempty"`
}

AdmCredentialProperties is description of a NotificationHub AdmCredential.

type ApnsCredential

type ApnsCredential struct {
	Properties *ApnsCredentialProperties `json:"properties,omitempty"`
}

ApnsCredential is description of a NotificationHub ApnsCredential.

type ApnsCredentialProperties

type ApnsCredentialProperties struct {
	ApnsCertificate *string `json:"apnsCertificate,omitempty"`
	CertificateKey  *string `json:"certificateKey,omitempty"`
	Endpoint        *string `json:"endpoint,omitempty"`
	Thumbprint      *string `json:"thumbprint,omitempty"`
}

ApnsCredentialProperties is description of a NotificationHub ApnsCredential.

type BaiduCredential

type BaiduCredential struct {
	Properties *BaiduCredentialProperties `json:"properties,omitempty"`
}

BaiduCredential is description of a NotificationHub BaiduCredential.

type BaiduCredentialProperties

type BaiduCredentialProperties struct {
	BaiduAPIKey    *string `json:"baiduApiKey,omitempty"`
	BaiduEndPoint  *string `json:"baiduEndPoint,omitempty"`
	BaiduSecretKey *string `json:"baiduSecretKey,omitempty"`
}

BaiduCredentialProperties is description of a NotificationHub BaiduCredential.

type CheckAvailabilityParameters

type CheckAvailabilityParameters struct {
	Name         *string             `json:"name,omitempty"`
	Location     *string             `json:"location,omitempty"`
	Tags         *map[string]*string `json:"tags,omitempty"`
	IsAvailiable *bool               `json:"isAvailiable,omitempty"`
}

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

type CheckAvailabilityResource

type CheckAvailabilityResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	IsAvailiable      *bool               `json:"isAvailiable,omitempty"`
}

CheckAvailabilityResource is description of a CheckAvailibility resource.

type Client

type Client struct {
	ManagementClient
}

Client is the .Net client wrapper for the REST API for Azure NotificationHub Service

func NewClient

func NewClient(subscriptionID string) Client

NewClient creates an instance of the Client client.

func NewClientWithBaseURI

func NewClientWithBaseURI(baseURI string, subscriptionID string) Client

NewClientWithBaseURI creates an instance of the Client client.

func (Client) CheckAvailability

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

CheckAvailability checks the availability of the given notificationHub in a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. parameters is the notificationHub name.

func (Client) CheckAvailabilityPreparer

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

CheckAvailabilityPreparer prepares the CheckAvailability request.

func (Client) CheckAvailabilityResponder

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

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) Create

func (client Client) Create(resourceGroupName string, namespaceName string, notificationHubName string, parameters NotificationHubCreateOrUpdateParameters) (result NotificationHubResource, err error)

Create creates a new NotificationHub in a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. parameters is parameters supplied to the create a Namespace Resource.

func (Client) CreateOrUpdateAuthorizationRule

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

CreateOrUpdateAuthorizationRule the create NotificationHub authorization rule operation creates an authorization rule for a NotificationHub

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. authorizationRuleName is the namespace authorizationRuleName name. parameters is the shared access authorization rule.

func (Client) CreateOrUpdateAuthorizationRulePreparer

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

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (Client) CreateOrUpdateAuthorizationRuleResponder

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

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) CreatePreparer

func (client Client) CreatePreparer(resourceGroupName string, namespaceName string, notificationHubName string, parameters NotificationHubCreateOrUpdateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (Client) CreateResponder

func (client Client) CreateResponder(resp *http.Response) (result NotificationHubResource, err error)

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

func (Client) CreateSender

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

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

Delete deletes a notification hub associated with a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name.

func (Client) DeleteAuthorizationRule

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

DeleteAuthorizationRule the delete a notificationHub authorization rule operation

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. authorizationRuleName is the namespace authorizationRuleName name.

func (Client) DeleteAuthorizationRulePreparer

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

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (Client) DeleteAuthorizationRuleResponder

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

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

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

DeletePreparer prepares the Delete request.

func (Client) DeleteResponder

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

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

func (client Client) Get(resourceGroupName string, namespaceName string, notificationHubName string) (result NotificationHubResource, err error)

Get lists the notification hubs associated with a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name.

func (Client) GetAuthorizationRule

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

GetAuthorizationRule the get authorization rule operation gets an authorization rule for a NotificationHub by name.

resourceGroupName is the name of the resource group. namespaceName is the namespace to get the authorization rule for. notificationHubName is the notification hub name. authorizationRuleName is the entity name to get the authorization rule for.

func (Client) GetAuthorizationRulePreparer

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

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (Client) GetAuthorizationRuleResponder

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

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

func (client Client) GetPnsCredentials(resourceGroupName string, namespaceName string, notificationHubName string) (result NotificationHubResource, err error)

GetPnsCredentials lists the PNS Credentials associated with a notification hub .

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name.

func (Client) GetPnsCredentialsPreparer

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

GetPnsCredentialsPreparer prepares the GetPnsCredentials request.

func (Client) GetPnsCredentialsResponder

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

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

func (Client) GetPnsCredentialsSender

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

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

GetPreparer prepares the Get request.

func (Client) GetResponder

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

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

func (Client) GetSender

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

func (client Client) List(resourceGroupName string, namespaceName string) (result NotificationHubListResult, err error)

List lists the notification hubs associated with a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name.

func (Client) ListAuthorizationRules

func (client Client) ListAuthorizationRules(resourceGroupName string, namespaceName string, notificationHubName string) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRules the get authorization rules operation gets the authorization rules for a NotificationHub.

resourceGroupName is the name of the resource group. namespaceName is the NotificationHub to get the authorization rule for. notificationHubName is the notification hub name.

func (Client) ListAuthorizationRulesNextResults

func (client Client) ListAuthorizationRulesNextResults(lastResults SharedAccessAuthorizationRuleListResult) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRulesNextResults retrieves the next set of results, if any.

func (Client) ListAuthorizationRulesPreparer

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

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (Client) ListAuthorizationRulesResponder

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

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) ListKeys

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

ListKeys gets the Primary and Secondary ConnectionStrings to the NotificationHub

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. authorizationRuleName is the connection string of the NotificationHub for the specified authorizationRule.

func (Client) ListKeysPreparer

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

ListKeysPreparer prepares the ListKeys request.

func (Client) ListKeysResponder

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

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) ListNextResults

func (client Client) ListNextResults(lastResults NotificationHubListResult) (result NotificationHubListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (Client) ListPreparer

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

ListPreparer prepares the List request.

func (Client) ListResponder

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

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

func (Client) ListSender

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 GcmCredential

type GcmCredential struct {
	Properties *GcmCredentialProperties `json:"properties,omitempty"`
}

GcmCredential is description of a NotificationHub GcmCredential.

type GcmCredentialProperties

type GcmCredentialProperties struct {
	GcmEndpoint  *string `json:"gcmEndpoint,omitempty"`
	GoogleAPIKey *string `json:"googleApiKey,omitempty"`
}

GcmCredentialProperties is description of a NotificationHub GcmCredential.

type ManagementClient

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

ManagementClient is the base client for Notificationhubs.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

func (ManagementClient) CheckAvailability

func (client ManagementClient) CheckAvailability(resourceGroupName string, namespaceName string, parameters CheckAvailabilityParameters) (result CheckAvailabilityResource, err error)

CheckAvailability checks the availability of the given notificationHub in a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. parameters is the notificationHub name.

func (ManagementClient) CheckAvailabilityPreparer

func (client ManagementClient) CheckAvailabilityPreparer(resourceGroupName string, namespaceName string, parameters CheckAvailabilityParameters) (*http.Request, error)

CheckAvailabilityPreparer prepares the CheckAvailability request.

func (ManagementClient) CheckAvailabilityResponder

func (client ManagementClient) 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 (ManagementClient) CheckAvailabilitySender

func (client ManagementClient) 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 (ManagementClient) Create

func (client ManagementClient) Create(resourceGroupName string, namespaceName string, notificationHubName string, parameters NotificationHubCreateOrUpdateParameters) (result NotificationHubResource, err error)

Create creates a new NotificationHub in a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. parameters is parameters supplied to the create a Namespace Resource.

func (ManagementClient) CreateOrUpdateAuthorizationRule

func (client ManagementClient) CreateOrUpdateAuthorizationRule(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (result SharedAccessAuthorizationRuleResource, err error)

CreateOrUpdateAuthorizationRule the create NotificationHub authorization rule operation creates an authorization rule for a NotificationHub

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. authorizationRuleName is the namespace authorizationRuleName name. parameters is the shared access authorization rule.

func (ManagementClient) CreateOrUpdateAuthorizationRulePreparer

func (client ManagementClient) CreateOrUpdateAuthorizationRulePreparer(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string, parameters SharedAccessAuthorizationRuleCreateOrUpdateParameters) (*http.Request, error)

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (ManagementClient) CreateOrUpdateAuthorizationRuleResponder

func (client ManagementClient) 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 (ManagementClient) CreateOrUpdateAuthorizationRuleSender

func (client ManagementClient) 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 (ManagementClient) CreatePreparer

func (client ManagementClient) CreatePreparer(resourceGroupName string, namespaceName string, notificationHubName string, parameters NotificationHubCreateOrUpdateParameters) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ManagementClient) CreateResponder

func (client ManagementClient) CreateResponder(resp *http.Response) (result NotificationHubResource, err error)

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

func (ManagementClient) CreateSender

func (client ManagementClient) 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 (ManagementClient) Delete

func (client ManagementClient) Delete(resourceGroupName string, namespaceName string, notificationHubName string) (result autorest.Response, err error)

Delete deletes a notification hub associated with a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name.

func (ManagementClient) DeleteAuthorizationRule

func (client ManagementClient) DeleteAuthorizationRule(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (result autorest.Response, err error)

DeleteAuthorizationRule the delete a notificationHub authorization rule operation

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. authorizationRuleName is the namespace authorizationRuleName name.

func (ManagementClient) DeleteAuthorizationRulePreparer

func (client ManagementClient) DeleteAuthorizationRulePreparer(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (*http.Request, error)

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (ManagementClient) DeleteAuthorizationRuleResponder

func (client ManagementClient) 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 (ManagementClient) DeleteAuthorizationRuleSender

func (client ManagementClient) 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 (ManagementClient) DeletePreparer

func (client ManagementClient) DeletePreparer(resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ManagementClient) DeleteResponder

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

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

func (client ManagementClient) Get(resourceGroupName string, namespaceName string, notificationHubName string) (result NotificationHubResource, err error)

Get lists the notification hubs associated with a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name.

func (ManagementClient) GetAuthorizationRule

func (client ManagementClient) GetAuthorizationRule(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRule the get authorization rule operation gets an authorization rule for a NotificationHub by name.

resourceGroupName is the name of the resource group. namespaceName is the namespace to get the authorization rule for. notificationHubName is the notification hub name. authorizationRuleName is the entity name to get the authorization rule for.

func (ManagementClient) GetAuthorizationRulePreparer

func (client ManagementClient) GetAuthorizationRulePreparer(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (*http.Request, error)

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (ManagementClient) GetAuthorizationRuleResponder

func (client ManagementClient) 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 (ManagementClient) GetAuthorizationRuleSender

func (client ManagementClient) 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 (ManagementClient) GetPnsCredentials

func (client ManagementClient) GetPnsCredentials(resourceGroupName string, namespaceName string, notificationHubName string) (result NotificationHubResource, err error)

GetPnsCredentials lists the PNS Credentials associated with a notification hub .

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name.

func (ManagementClient) GetPnsCredentialsPreparer

func (client ManagementClient) GetPnsCredentialsPreparer(resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

GetPnsCredentialsPreparer prepares the GetPnsCredentials request.

func (ManagementClient) GetPnsCredentialsResponder

func (client ManagementClient) GetPnsCredentialsResponder(resp *http.Response) (result NotificationHubResource, err error)

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

func (ManagementClient) GetPnsCredentialsSender

func (client ManagementClient) 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 (ManagementClient) GetPreparer

func (client ManagementClient) GetPreparer(resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ManagementClient) GetResponder

func (client ManagementClient) GetResponder(resp *http.Response) (result NotificationHubResource, err error)

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

func (ManagementClient) GetSender

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

func (client ManagementClient) List(resourceGroupName string, namespaceName string) (result NotificationHubListResult, err error)

List lists the notification hubs associated with a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name.

func (ManagementClient) ListAuthorizationRules

func (client ManagementClient) ListAuthorizationRules(resourceGroupName string, namespaceName string, notificationHubName string) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRules the get authorization rules operation gets the authorization rules for a NotificationHub.

resourceGroupName is the name of the resource group. namespaceName is the NotificationHub to get the authorization rule for. notificationHubName is the notification hub name.

func (ManagementClient) ListAuthorizationRulesNextResults

func (client ManagementClient) ListAuthorizationRulesNextResults(lastResults SharedAccessAuthorizationRuleListResult) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRulesNextResults retrieves the next set of results, if any.

func (ManagementClient) ListAuthorizationRulesPreparer

func (client ManagementClient) ListAuthorizationRulesPreparer(resourceGroupName string, namespaceName string, notificationHubName string) (*http.Request, error)

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (ManagementClient) ListAuthorizationRulesResponder

func (client ManagementClient) 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 (ManagementClient) ListAuthorizationRulesSender

func (client ManagementClient) 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 (ManagementClient) ListKeys

func (client ManagementClient) ListKeys(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (result ResourceListKeys, err error)

ListKeys gets the Primary and Secondary ConnectionStrings to the NotificationHub

resourceGroupName is the name of the resource group. namespaceName is the namespace name. notificationHubName is the notification hub name. authorizationRuleName is the connection string of the NotificationHub for the specified authorizationRule.

func (ManagementClient) ListKeysPreparer

func (client ManagementClient) ListKeysPreparer(resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (ManagementClient) ListKeysResponder

func (client ManagementClient) 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 (ManagementClient) ListKeysSender

func (client ManagementClient) 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 (ManagementClient) ListNextResults

func (client ManagementClient) ListNextResults(lastResults NotificationHubListResult) (result NotificationHubListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (ManagementClient) ListPreparer

func (client ManagementClient) ListPreparer(resourceGroupName string, namespaceName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ManagementClient) ListResponder

func (client ManagementClient) ListResponder(resp *http.Response) (result NotificationHubListResult, err error)

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

func (ManagementClient) ListSender

func (client ManagementClient) 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 MpnsCredential

type MpnsCredential struct {
	Properties *MpnsCredentialProperties `json:"properties,omitempty"`
}

MpnsCredential is description of a NotificationHub MpnsCredential.

type MpnsCredentialProperties

type MpnsCredentialProperties struct {
	MpnsCertificate *string `json:"mpnsCertificate,omitempty"`
	CertificateKey  *string `json:"certificateKey,omitempty"`
	Thumbprint      *string `json:"thumbprint,omitempty"`
}

MpnsCredentialProperties is description of a NotificationHub MpnsCredential.

type NamespaceCreateOrUpdateParameters

type NamespaceCreateOrUpdateParameters struct {
	Location   *string              `json:"location,omitempty"`
	Tags       *map[string]*string  `json:"tags,omitempty"`
	Properties *NamespaceProperties `json:"properties,omitempty"`
}

NamespaceCreateOrUpdateParameters is parameters supplied to the CreateOrUpdate Namespace operation.

type NamespaceListResult

type NamespaceListResult struct {
	autorest.Response `json:"-"`
	Value             *[]NamespaceResource `json:"value,omitempty"`
	NextLink          *string              `json:"nextLink,omitempty"`
}

NamespaceListResult is the response of the List Namespace operation.

func (NamespaceListResult) NamespaceListResultPreparer

func (client NamespaceListResult) NamespaceListResultPreparer() (*http.Request, error)

NamespaceListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type NamespaceProperties

type NamespaceProperties struct {
	Name               *string       `json:"name,omitempty"`
	ProvisioningState  *string       `json:"provisioningState,omitempty"`
	Region             *string       `json:"region,omitempty"`
	Status             *string       `json:"status,omitempty"`
	CreatedAt          *date.Time    `json:"createdAt,omitempty"`
	ServiceBusEndpoint *string       `json:"serviceBusEndpoint,omitempty"`
	SubscriptionID     *string       `json:"subscriptionId,omitempty"`
	ScaleUnit          *string       `json:"scaleUnit,omitempty"`
	Enabled            *bool         `json:"enabled,omitempty"`
	Critical           *bool         `json:"critical,omitempty"`
	NamespaceType      NamespaceType `json:"namespaceType,omitempty"`
}

NamespaceProperties is namespace properties.

type NamespaceResource

type NamespaceResource struct {
	autorest.Response `json:"-"`
	ID                *string              `json:"id,omitempty"`
	Location          *string              `json:"location,omitempty"`
	Name              *string              `json:"name,omitempty"`
	Type              *string              `json:"type,omitempty"`
	Tags              *map[string]*string  `json:"tags,omitempty"`
	Properties        *NamespaceProperties `json:"properties,omitempty"`
}

NamespaceResource is description of a Namespace resource.

type NamespaceType

type NamespaceType string

NamespaceType enumerates the values for namespace type.

const (
	// Messaging specifies the messaging state for namespace type.
	Messaging NamespaceType = "Messaging"
	// NotificationHub specifies the notification hub state for namespace type.
	NotificationHub NamespaceType = "NotificationHub"
)

type NamespacesClient

type NamespacesClient struct {
	ManagementClient
}

NamespacesClient is the .Net client wrapper for the REST API for Azure NotificationHub Service

func NewNamespacesClient

func NewNamespacesClient(subscriptionID string) NamespacesClient

NewNamespacesClient creates an instance of the NamespacesClient client.

func NewNamespacesClientWithBaseURI

func NewNamespacesClientWithBaseURI(baseURI string, subscriptionID string) NamespacesClient

NewNamespacesClientWithBaseURI creates an instance of the NamespacesClient client.

func (NamespacesClient) CheckAvailability

func (client NamespacesClient) CheckAvailability(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 is the namespace name.

func (NamespacesClient) CheckAvailabilityPreparer

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

CheckAvailabilityPreparer prepares the CheckAvailability request.

func (NamespacesClient) CheckAvailabilityResponder

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

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

func (client NamespacesClient) CreateOrUpdate(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.

resourceGroupName is the name of the resource group. namespaceName is the namespace name. parameters is parameters supplied to the create a Namespace Resource.

func (NamespacesClient) CreateOrUpdateAuthorizationRule

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

CreateOrUpdateAuthorizationRule the create namespace authorization rule operation creates an authorization rule for a namespace

resourceGroupName is the name of the resource group. namespaceName is the namespace name. authorizationRuleName is the namespace authorizationRuleName name. parameters is the shared access authorization rule.

func (NamespacesClient) CreateOrUpdateAuthorizationRulePreparer

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

CreateOrUpdateAuthorizationRulePreparer prepares the CreateOrUpdateAuthorizationRule request.

func (NamespacesClient) CreateOrUpdateAuthorizationRuleResponder

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

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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (NamespacesClient) CreateOrUpdateResponder

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

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

func (client NamespacesClient) Delete(resourceGroupName string, namespaceName string, cancel <-chan struct{}) (result autorest.Response, err error)

Delete deletes an existing namespace. This operation also removes all associated notificationHubs under the namespace. This method may poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.

resourceGroupName is the name of the resource group. namespaceName is the namespace name.

func (NamespacesClient) DeleteAuthorizationRule

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

DeleteAuthorizationRule the delete a namespace authorization rule operation

resourceGroupName is the name of the resource group. namespaceName is the namespace name. authorizationRuleName is the namespace authorizationRuleName name.

func (NamespacesClient) DeleteAuthorizationRulePreparer

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

DeleteAuthorizationRulePreparer prepares the DeleteAuthorizationRule request.

func (NamespacesClient) DeleteAuthorizationRuleResponder

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

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

func (client NamespacesClient) DeletePreparer(resourceGroupName string, namespaceName string, cancel <-chan struct{}) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (NamespacesClient) DeleteResponder

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

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

func (client NamespacesClient) Get(resourceGroupName string, namespaceName string) (result NamespaceResource, err error)

Get returns the description for the specified namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace name.

func (NamespacesClient) GetAuthorizationRule

func (client NamespacesClient) GetAuthorizationRule(resourceGroupName string, namespaceName string, authorizationRuleName string) (result SharedAccessAuthorizationRuleResource, err error)

GetAuthorizationRule the get authorization rule operation gets an authorization rule for a namespace by name.

resourceGroupName is the name of the resource group. namespaceName is the namespace to get the authorization rule for. authorizationRuleName is the entity name to get the authorization rule for.

func (NamespacesClient) GetAuthorizationRulePreparer

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

GetAuthorizationRulePreparer prepares the GetAuthorizationRule request.

func (NamespacesClient) GetAuthorizationRuleResponder

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

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

func (client NamespacesClient) GetLongRunningOperationStatus(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.

operationStatusLink is location value returned by the Begin operation.

func (NamespacesClient) GetLongRunningOperationStatusPreparer

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

GetLongRunningOperationStatusPreparer prepares the GetLongRunningOperationStatus request.

func (NamespacesClient) GetLongRunningOperationStatusResponder

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

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

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

GetPreparer prepares the Get request.

func (NamespacesClient) GetResponder

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

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

func (client NamespacesClient) List(resourceGroupName string) (result NamespaceListResult, err error)

List lists the available namespaces within a resourceGroup.

resourceGroupName is the name of the resource group. If resourceGroupName value is null the method lists all the namespaces within subscription

func (NamespacesClient) ListAll

func (client NamespacesClient) ListAll() (result NamespaceListResult, err error)

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

func (NamespacesClient) ListAllNextResults

func (client NamespacesClient) ListAllNextResults(lastResults NamespaceListResult) (result NamespaceListResult, err error)

ListAllNextResults retrieves the next set of results, if any.

func (NamespacesClient) ListAllPreparer

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

ListAllPreparer prepares the ListAll request.

func (NamespacesClient) ListAllResponder

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

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

func (client NamespacesClient) ListAuthorizationRules(resourceGroupName string, namespaceName string) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRules the get authorization rules operation gets the authorization rules for a namespace.

resourceGroupName is the name of the resource group. namespaceName is the namespace to get the authorization rule for.

func (NamespacesClient) ListAuthorizationRulesNextResults

func (client NamespacesClient) ListAuthorizationRulesNextResults(lastResults SharedAccessAuthorizationRuleListResult) (result SharedAccessAuthorizationRuleListResult, err error)

ListAuthorizationRulesNextResults retrieves the next set of results, if any.

func (NamespacesClient) ListAuthorizationRulesPreparer

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

ListAuthorizationRulesPreparer prepares the ListAuthorizationRules request.

func (NamespacesClient) ListAuthorizationRulesResponder

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

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) ListKeys

func (client NamespacesClient) ListKeys(resourceGroupName string, namespaceName string, authorizationRuleName string) (result ResourceListKeys, err error)

ListKeys gets the Primary and Secondary ConnectionStrings to the namespace

resourceGroupName is the name of the resource group. namespaceName is the namespace name. authorizationRuleName is the connection string of the namespace for the specified authorizationRule.

func (NamespacesClient) ListKeysPreparer

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

ListKeysPreparer prepares the ListKeys request.

func (NamespacesClient) ListKeysResponder

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

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) ListNextResults

func (client NamespacesClient) ListNextResults(lastResults NamespaceListResult) (result NamespaceListResult, err error)

ListNextResults retrieves the next set of results, if any.

func (NamespacesClient) ListPreparer

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

ListPreparer prepares the List request.

func (NamespacesClient) ListResponder

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

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 NotificationHubCreateOrUpdateParameters

type NotificationHubCreateOrUpdateParameters struct {
	Location   *string                    `json:"location,omitempty"`
	Tags       *map[string]*string        `json:"tags,omitempty"`
	Properties *NotificationHubProperties `json:"properties,omitempty"`
}

NotificationHubCreateOrUpdateParameters is parameters supplied to the CreateOrUpdate NotificationHub operation.

type NotificationHubListResult

type NotificationHubListResult struct {
	autorest.Response `json:"-"`
	Value             *[]NotificationHubResource `json:"value,omitempty"`
	NextLink          *string                    `json:"nextLink,omitempty"`
}

NotificationHubListResult is the response of the List NotificationHub operation.

func (NotificationHubListResult) NotificationHubListResultPreparer

func (client NotificationHubListResult) NotificationHubListResultPreparer() (*http.Request, error)

NotificationHubListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type NotificationHubProperties

type NotificationHubProperties struct {
	Name               *string                                    `json:"name,omitempty"`
	RegistrationTTL    *string                                    `json:"registrationTtl,omitempty"`
	AuthorizationRules *[]SharedAccessAuthorizationRuleProperties `json:"authorizationRules,omitempty"`
	ApnsCredential     *ApnsCredential                            `json:"apnsCredential,omitempty"`
	WnsCredential      *WnsCredential                             `json:"wnsCredential,omitempty"`
	GcmCredential      *GcmCredential                             `json:"gcmCredential,omitempty"`
	MpnsCredential     *MpnsCredential                            `json:"mpnsCredential,omitempty"`
	AdmCredential      *AdmCredential                             `json:"admCredential,omitempty"`
	BaiduCredential    *BaiduCredential                           `json:"baiduCredential,omitempty"`
}

NotificationHubProperties is notificationHub properties.

type NotificationHubResource

type NotificationHubResource struct {
	autorest.Response `json:"-"`
	ID                *string                    `json:"id,omitempty"`
	Location          *string                    `json:"location,omitempty"`
	Name              *string                    `json:"name,omitempty"`
	Type              *string                    `json:"type,omitempty"`
	Tags              *map[string]*string        `json:"tags,omitempty"`
	Properties        *NotificationHubProperties `json:"properties,omitempty"`
}

NotificationHubResource is description of a NotificatioHub Resource.

type Resource

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

Resource is

type ResourceListKeys

type ResourceListKeys struct {
	autorest.Response         `json:"-"`
	PrimaryConnectionString   *string `json:"primaryConnectionString,omitempty"`
	SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"`
}

ResourceListKeys is namespace/NotificationHub Connection String

type SharedAccessAuthorizationRuleCreateOrUpdateParameters

type SharedAccessAuthorizationRuleCreateOrUpdateParameters struct {
	Location   *string                                  `json:"location,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"`
}

SharedAccessAuthorizationRuleCreateOrUpdateParameters is parameters supplied to the CreateOrUpdate Namespace AuthorizationRules.

type SharedAccessAuthorizationRuleListResult

type SharedAccessAuthorizationRuleListResult struct {
	autorest.Response `json:"-"`
	Value             *[]SharedAccessAuthorizationRuleResource `json:"value,omitempty"`
	NextLink          *string                                  `json:"nextLink,omitempty"`
}

SharedAccessAuthorizationRuleListResult is the response of the List Namespace operation.

func (SharedAccessAuthorizationRuleListResult) SharedAccessAuthorizationRuleListResultPreparer

func (client SharedAccessAuthorizationRuleListResult) SharedAccessAuthorizationRuleListResultPreparer() (*http.Request, error)

SharedAccessAuthorizationRuleListResultPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type SharedAccessAuthorizationRuleProperties

type SharedAccessAuthorizationRuleProperties struct {
	PrimaryKey   *string         `json:"primaryKey,omitempty"`
	SecondaryKey *string         `json:"secondaryKey,omitempty"`
	KeyName      *string         `json:"keyName,omitempty"`
	ClaimType    *string         `json:"claimType,omitempty"`
	ClaimValue   *string         `json:"claimValue,omitempty"`
	Rights       *[]AccessRights `json:"rights,omitempty"`
	CreatedTime  *date.Time      `json:"createdTime,omitempty"`
	ModifiedTime *date.Time      `json:"modifiedTime,omitempty"`
	Revision     *int32          `json:"revision,omitempty"`
}

SharedAccessAuthorizationRuleProperties is sharedAccessAuthorizationRule properties.

type SharedAccessAuthorizationRuleResource

type SharedAccessAuthorizationRuleResource struct {
	autorest.Response `json:"-"`
	ID                *string                                  `json:"id,omitempty"`
	Location          *string                                  `json:"location,omitempty"`
	Name              *string                                  `json:"name,omitempty"`
	Type              *string                                  `json:"type,omitempty"`
	Tags              *map[string]*string                      `json:"tags,omitempty"`
	Properties        *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"`
}

SharedAccessAuthorizationRuleResource is description of a Namespace AuthorizationRules.

type SubResource

type SubResource struct {
	ID *string `json:"id,omitempty"`
}

SubResource is

type WnsCredential

type WnsCredential struct {
	Properties *WnsCredentialProperties `json:"properties,omitempty"`
}

WnsCredential is description of a NotificationHub WnsCredential.

type WnsCredentialProperties

type WnsCredentialProperties struct {
	PackageSid          *string `json:"packageSid,omitempty"`
	SecretKey           *string `json:"secretKey,omitempty"`
	WindowsLiveEndpoint *string `json:"windowsLiveEndpoint,omitempty"`
}

WnsCredentialProperties is description of a NotificationHub WnsCredential.

Jump to

Keyboard shortcuts

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