hubs

package
v0.20231103.1085514 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs Documentation

The hubs SDK allows for interaction with the Azure Resource Manager Service notificationhubs (API Version 2023-09-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/notificationhubs/2023-09-01/hubs"

Client Initialization

client := hubs.NewHubsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: HubsClient.NotificationHubsCheckNotificationHubAvailability

ctx := context.TODO()
id := hubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue")

payload := hubs.CheckAvailabilityParameters{
	// ...
}


read, err := client.NotificationHubsCheckNotificationHubAvailability(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsCreateOrUpdate

ctx := context.TODO()
id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue")

payload := hubs.NotificationHubResource{
	// ...
}


read, err := client.NotificationHubsCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsCreateOrUpdateAuthorizationRule

ctx := context.TODO()
id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue")

payload := hubs.SharedAccessAuthorizationRuleResource{
	// ...
}


read, err := client.NotificationHubsCreateOrUpdateAuthorizationRule(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsDebugSend

ctx := context.TODO()
id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue")

read, err := client.NotificationHubsDebugSend(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsDelete

ctx := context.TODO()
id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue")

read, err := client.NotificationHubsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsDeleteAuthorizationRule

ctx := context.TODO()
id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue")

read, err := client.NotificationHubsDeleteAuthorizationRule(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsGet

ctx := context.TODO()
id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue")

read, err := client.NotificationHubsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsGetAuthorizationRule

ctx := context.TODO()
id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue")

read, err := client.NotificationHubsGetAuthorizationRule(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsGetPnsCredentials

ctx := context.TODO()
id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue")

read, err := client.NotificationHubsGetPnsCredentials(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsList

ctx := context.TODO()
id := hubs.NewNamespaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue")

// alternatively `client.NotificationHubsList(ctx, id, hubs.DefaultNotificationHubsListOperationOptions())` can be used to do batched pagination
items, err := client.NotificationHubsListComplete(ctx, id, hubs.DefaultNotificationHubsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: HubsClient.NotificationHubsListAuthorizationRules

ctx := context.TODO()
id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue")

// alternatively `client.NotificationHubsListAuthorizationRules(ctx, id)` can be used to do batched pagination
items, err := client.NotificationHubsListAuthorizationRulesComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: HubsClient.NotificationHubsListKeys

ctx := context.TODO()
id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue")

read, err := client.NotificationHubsListKeys(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsRegenerateKeys

ctx := context.TODO()
id := hubs.NewNotificationHubAuthorizationRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue", "authorizationRuleValue")

payload := hubs.PolicyKeyResource{
	// ...
}


read, err := client.NotificationHubsRegenerateKeys(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: HubsClient.NotificationHubsUpdate

ctx := context.TODO()
id := hubs.NewNotificationHubID("12345678-1234-9876-4563-123456789012", "example-resource-group", "namespaceValue", "notificationHubValue")

payload := hubs.NotificationHubPatchParameters{
	// ...
}


read, err := client.NotificationHubsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAccessRights

func PossibleValuesForAccessRights() []string

func PossibleValuesForPolicyKeyType

func PossibleValuesForPolicyKeyType() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func ValidateNamespaceID

func ValidateNamespaceID(input interface{}, key string) (warnings []string, errors []error)

ValidateNamespaceID checks that 'input' can be parsed as a Namespace ID

func ValidateNotificationHubAuthorizationRuleID

func ValidateNotificationHubAuthorizationRuleID(input interface{}, key string) (warnings []string, errors []error)

ValidateNotificationHubAuthorizationRuleID checks that 'input' can be parsed as a Notification Hub Authorization Rule ID

func ValidateNotificationHubID

func ValidateNotificationHubID(input interface{}, key string) (warnings []string, errors []error)

ValidateNotificationHubID checks that 'input' can be parsed as a Notification Hub ID

Types

type AccessRights

type AccessRights string
const (
	AccessRightsListen AccessRights = "Listen"
	AccessRightsManage AccessRights = "Manage"
	AccessRightsSend   AccessRights = "Send"
)

func (*AccessRights) UnmarshalJSON

func (s *AccessRights) UnmarshalJSON(bytes []byte) error

type AdmCredential

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

type AdmCredentialProperties

type AdmCredentialProperties struct {
	AuthTokenUrl string `json:"authTokenUrl"`
	ClientId     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
}

type ApnsCredential

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

type ApnsCredentialProperties

type ApnsCredentialProperties struct {
	ApnsCertificate *string `json:"apnsCertificate,omitempty"`
	AppId           *string `json:"appId,omitempty"`
	AppName         *string `json:"appName,omitempty"`
	CertificateKey  *string `json:"certificateKey,omitempty"`
	Endpoint        string  `json:"endpoint"`
	KeyId           *string `json:"keyId,omitempty"`
	Thumbprint      *string `json:"thumbprint,omitempty"`
	Token           *string `json:"token,omitempty"`
}

type BaiduCredential

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

type BaiduCredentialProperties

type BaiduCredentialProperties struct {
	BaiduApiKey    string `json:"baiduApiKey"`
	BaiduEndPoint  string `json:"baiduEndPoint"`
	BaiduSecretKey string `json:"baiduSecretKey"`
}

type BrowserCredential

type BrowserCredential struct {
	Properties BrowserCredentialProperties `json:"properties"`
}

type BrowserCredentialProperties

type BrowserCredentialProperties struct {
	Subject         string `json:"subject"`
	VapidPrivateKey string `json:"vapidPrivateKey"`
	VapidPublicKey  string `json:"vapidPublicKey"`
}

type CheckAvailabilityParameters

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

type CheckAvailabilityResult

type CheckAvailabilityResult struct {
	Id           *string                `json:"id,omitempty"`
	IsAvailiable *bool                  `json:"isAvailiable,omitempty"`
	Location     *string                `json:"location,omitempty"`
	Name         *string                `json:"name,omitempty"`
	Sku          *Sku                   `json:"sku,omitempty"`
	SystemData   *systemdata.SystemData `json:"systemData,omitempty"`
	Tags         *map[string]string     `json:"tags,omitempty"`
	Type         *string                `json:"type,omitempty"`
}

type DebugSendResponse

type DebugSendResponse struct {
	Id         *string                `json:"id,omitempty"`
	Location   *string                `json:"location,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *DebugSendResult       `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type DebugSendResult

type DebugSendResult struct {
	Failure *int64                `json:"failure,omitempty"`
	Results *[]RegistrationResult `json:"results,omitempty"`
	Success *int64                `json:"success,omitempty"`
}

type GcmCredential

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

type GcmCredentialProperties

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

type HubsClient

type HubsClient struct {
	Client *resourcemanager.Client
}

func NewHubsClientWithBaseURI

func NewHubsClientWithBaseURI(sdkApi sdkEnv.Api) (*HubsClient, error)

func (HubsClient) NotificationHubsCheckNotificationHubAvailability

func (c HubsClient) NotificationHubsCheckNotificationHubAvailability(ctx context.Context, id NamespaceId, input CheckAvailabilityParameters) (result NotificationHubsCheckNotificationHubAvailabilityOperationResponse, err error)

NotificationHubsCheckNotificationHubAvailability ...

func (HubsClient) NotificationHubsCreateOrUpdate

func (c HubsClient) NotificationHubsCreateOrUpdate(ctx context.Context, id NotificationHubId, input NotificationHubResource) (result NotificationHubsCreateOrUpdateOperationResponse, err error)

NotificationHubsCreateOrUpdate ...

func (HubsClient) NotificationHubsCreateOrUpdateAuthorizationRule

NotificationHubsCreateOrUpdateAuthorizationRule ...

func (HubsClient) NotificationHubsDebugSend

func (c HubsClient) NotificationHubsDebugSend(ctx context.Context, id NotificationHubId) (result NotificationHubsDebugSendOperationResponse, err error)

NotificationHubsDebugSend ...

func (HubsClient) NotificationHubsDelete

func (c HubsClient) NotificationHubsDelete(ctx context.Context, id NotificationHubId) (result NotificationHubsDeleteOperationResponse, err error)

NotificationHubsDelete ...

func (HubsClient) NotificationHubsDeleteAuthorizationRule

NotificationHubsDeleteAuthorizationRule ...

func (HubsClient) NotificationHubsGet

func (c HubsClient) NotificationHubsGet(ctx context.Context, id NotificationHubId) (result NotificationHubsGetOperationResponse, err error)

NotificationHubsGet ...

func (HubsClient) NotificationHubsGetAuthorizationRule

NotificationHubsGetAuthorizationRule ...

func (HubsClient) NotificationHubsGetPnsCredentials

func (c HubsClient) NotificationHubsGetPnsCredentials(ctx context.Context, id NotificationHubId) (result NotificationHubsGetPnsCredentialsOperationResponse, err error)

NotificationHubsGetPnsCredentials ...

func (HubsClient) NotificationHubsList

NotificationHubsList ...

func (HubsClient) NotificationHubsListAuthorizationRules

func (c HubsClient) NotificationHubsListAuthorizationRules(ctx context.Context, id NotificationHubId) (result NotificationHubsListAuthorizationRulesOperationResponse, err error)

NotificationHubsListAuthorizationRules ...

func (HubsClient) NotificationHubsListAuthorizationRulesComplete

func (c HubsClient) NotificationHubsListAuthorizationRulesComplete(ctx context.Context, id NotificationHubId) (NotificationHubsListAuthorizationRulesCompleteResult, error)

NotificationHubsListAuthorizationRulesComplete retrieves all the results into a single object

func (HubsClient) NotificationHubsListAuthorizationRulesCompleteMatchingPredicate

func (c HubsClient) NotificationHubsListAuthorizationRulesCompleteMatchingPredicate(ctx context.Context, id NotificationHubId, predicate SharedAccessAuthorizationRuleResourceOperationPredicate) (result NotificationHubsListAuthorizationRulesCompleteResult, err error)

NotificationHubsListAuthorizationRulesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (HubsClient) NotificationHubsListComplete

NotificationHubsListComplete retrieves all the results into a single object

func (HubsClient) NotificationHubsListCompleteMatchingPredicate

func (c HubsClient) NotificationHubsListCompleteMatchingPredicate(ctx context.Context, id NamespaceId, options NotificationHubsListOperationOptions, predicate NotificationHubResourceOperationPredicate) (result NotificationHubsListCompleteResult, err error)

NotificationHubsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (HubsClient) NotificationHubsListKeys

NotificationHubsListKeys ...

func (HubsClient) NotificationHubsRegenerateKeys

NotificationHubsRegenerateKeys ...

func (HubsClient) NotificationHubsUpdate

NotificationHubsUpdate ...

type MpnsCredential

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

type MpnsCredentialProperties

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

type NamespaceId

type NamespaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	NamespaceName     string
}

NamespaceId is a struct representing the Resource ID for a Namespace

func NewNamespaceID

func NewNamespaceID(subscriptionId string, resourceGroupName string, namespaceName string) NamespaceId

NewNamespaceID returns a new NamespaceId struct

func ParseNamespaceID

func ParseNamespaceID(input string) (*NamespaceId, error)

ParseNamespaceID parses 'input' into a NamespaceId

func ParseNamespaceIDInsensitively

func ParseNamespaceIDInsensitively(input string) (*NamespaceId, error)

ParseNamespaceIDInsensitively parses 'input' case-insensitively into a NamespaceId note: this method should only be used for API response data and not user input

func (NamespaceId) ID

func (id NamespaceId) ID() string

ID returns the formatted Namespace ID

func (NamespaceId) Segments

func (id NamespaceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Namespace ID

func (NamespaceId) String

func (id NamespaceId) String() string

String returns a human-readable description of this Namespace ID

type NotificationHubAuthorizationRuleId

type NotificationHubAuthorizationRuleId struct {
	SubscriptionId        string
	ResourceGroupName     string
	NamespaceName         string
	NotificationHubName   string
	AuthorizationRuleName string
}

NotificationHubAuthorizationRuleId is a struct representing the Resource ID for a Notification Hub Authorization Rule

func NewNotificationHubAuthorizationRuleID

func NewNotificationHubAuthorizationRuleID(subscriptionId string, resourceGroupName string, namespaceName string, notificationHubName string, authorizationRuleName string) NotificationHubAuthorizationRuleId

NewNotificationHubAuthorizationRuleID returns a new NotificationHubAuthorizationRuleId struct

func ParseNotificationHubAuthorizationRuleID

func ParseNotificationHubAuthorizationRuleID(input string) (*NotificationHubAuthorizationRuleId, error)

ParseNotificationHubAuthorizationRuleID parses 'input' into a NotificationHubAuthorizationRuleId

func ParseNotificationHubAuthorizationRuleIDInsensitively

func ParseNotificationHubAuthorizationRuleIDInsensitively(input string) (*NotificationHubAuthorizationRuleId, error)

ParseNotificationHubAuthorizationRuleIDInsensitively parses 'input' case-insensitively into a NotificationHubAuthorizationRuleId note: this method should only be used for API response data and not user input

func (NotificationHubAuthorizationRuleId) ID

ID returns the formatted Notification Hub Authorization Rule ID

func (NotificationHubAuthorizationRuleId) Segments

Segments returns a slice of Resource ID Segments which comprise this Notification Hub Authorization Rule ID

func (NotificationHubAuthorizationRuleId) String

String returns a human-readable description of this Notification Hub Authorization Rule ID

type NotificationHubId

type NotificationHubId struct {
	SubscriptionId      string
	ResourceGroupName   string
	NamespaceName       string
	NotificationHubName string
}

NotificationHubId is a struct representing the Resource ID for a Notification Hub

func NewNotificationHubID

func NewNotificationHubID(subscriptionId string, resourceGroupName string, namespaceName string, notificationHubName string) NotificationHubId

NewNotificationHubID returns a new NotificationHubId struct

func ParseNotificationHubID

func ParseNotificationHubID(input string) (*NotificationHubId, error)

ParseNotificationHubID parses 'input' into a NotificationHubId

func ParseNotificationHubIDInsensitively

func ParseNotificationHubIDInsensitively(input string) (*NotificationHubId, error)

ParseNotificationHubIDInsensitively parses 'input' case-insensitively into a NotificationHubId note: this method should only be used for API response data and not user input

func (NotificationHubId) ID

func (id NotificationHubId) ID() string

ID returns the formatted Notification Hub ID

func (NotificationHubId) Segments

func (id NotificationHubId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Notification Hub ID

func (NotificationHubId) String

func (id NotificationHubId) String() string

String returns a human-readable description of this Notification Hub ID

type NotificationHubPatchParameters

type NotificationHubPatchParameters struct {
	Properties *NotificationHubProperties `json:"properties,omitempty"`
	Sku        *Sku                       `json:"sku,omitempty"`
	Tags       *map[string]string         `json:"tags,omitempty"`
}

type NotificationHubProperties

type NotificationHubProperties struct {
	AdmCredential         *AdmCredential                             `json:"admCredential,omitempty"`
	ApnsCredential        *ApnsCredential                            `json:"apnsCredential,omitempty"`
	AuthorizationRules    *[]SharedAccessAuthorizationRuleProperties `json:"authorizationRules,omitempty"`
	BaiduCredential       *BaiduCredential                           `json:"baiduCredential,omitempty"`
	BrowserCredential     *BrowserCredential                         `json:"browserCredential,omitempty"`
	DailyMaxActiveDevices *int64                                     `json:"dailyMaxActiveDevices,omitempty"`
	GcmCredential         *GcmCredential                             `json:"gcmCredential,omitempty"`
	MpnsCredential        *MpnsCredential                            `json:"mpnsCredential,omitempty"`
	Name                  *string                                    `json:"name,omitempty"`
	RegistrationTtl       *string                                    `json:"registrationTtl,omitempty"`
	WnsCredential         *WnsCredential                             `json:"wnsCredential,omitempty"`
	XiaomiCredential      *XiaomiCredential                          `json:"xiaomiCredential,omitempty"`
}

type NotificationHubResource

type NotificationHubResource struct {
	Id         *string                    `json:"id,omitempty"`
	Location   string                     `json:"location"`
	Name       *string                    `json:"name,omitempty"`
	Properties *NotificationHubProperties `json:"properties,omitempty"`
	Sku        *Sku                       `json:"sku,omitempty"`
	SystemData *systemdata.SystemData     `json:"systemData,omitempty"`
	Tags       *map[string]string         `json:"tags,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

type NotificationHubResourceOperationPredicate

type NotificationHubResourceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (NotificationHubResourceOperationPredicate) Matches

type NotificationHubsCheckNotificationHubAvailabilityOperationResponse

type NotificationHubsCheckNotificationHubAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CheckAvailabilityResult
}

type NotificationHubsCreateOrUpdateAuthorizationRuleOperationResponse

type NotificationHubsCreateOrUpdateAuthorizationRuleOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SharedAccessAuthorizationRuleResource
}

type NotificationHubsCreateOrUpdateOperationResponse

type NotificationHubsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NotificationHubResource
}

type NotificationHubsDebugSendOperationResponse

type NotificationHubsDebugSendOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DebugSendResponse
}

type NotificationHubsDeleteAuthorizationRuleOperationResponse

type NotificationHubsDeleteAuthorizationRuleOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type NotificationHubsDeleteOperationResponse

type NotificationHubsDeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type NotificationHubsGetAuthorizationRuleOperationResponse

type NotificationHubsGetAuthorizationRuleOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SharedAccessAuthorizationRuleResource
}

type NotificationHubsGetOperationResponse

type NotificationHubsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NotificationHubResource
}

type NotificationHubsGetPnsCredentialsOperationResponse

type NotificationHubsGetPnsCredentialsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PnsCredentialsResource
}

type NotificationHubsListAuthorizationRulesCompleteResult

type NotificationHubsListAuthorizationRulesCompleteResult struct {
	Items []SharedAccessAuthorizationRuleResource
}

type NotificationHubsListAuthorizationRulesOperationResponse

type NotificationHubsListAuthorizationRulesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SharedAccessAuthorizationRuleResource
}

type NotificationHubsListCompleteResult

type NotificationHubsListCompleteResult struct {
	Items []NotificationHubResource
}

type NotificationHubsListKeysOperationResponse

type NotificationHubsListKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ResourceListKeys
}

type NotificationHubsListOperationOptions

type NotificationHubsListOperationOptions struct {
	Top *int64
}

func DefaultNotificationHubsListOperationOptions

func DefaultNotificationHubsListOperationOptions() NotificationHubsListOperationOptions

func (NotificationHubsListOperationOptions) ToHeaders

func (NotificationHubsListOperationOptions) ToOData

func (NotificationHubsListOperationOptions) ToQuery

type NotificationHubsListOperationResponse

type NotificationHubsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NotificationHubResource
}

type NotificationHubsRegenerateKeysOperationResponse

type NotificationHubsRegenerateKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ResourceListKeys
}

type NotificationHubsUpdateOperationResponse

type NotificationHubsUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NotificationHubResource
}

type PnsCredentials

type PnsCredentials struct {
	AdmCredential     *AdmCredential     `json:"admCredential,omitempty"`
	ApnsCredential    *ApnsCredential    `json:"apnsCredential,omitempty"`
	BaiduCredential   *BaiduCredential   `json:"baiduCredential,omitempty"`
	BrowserCredential *BrowserCredential `json:"browserCredential,omitempty"`
	GcmCredential     *GcmCredential     `json:"gcmCredential,omitempty"`
	MpnsCredential    *MpnsCredential    `json:"mpnsCredential,omitempty"`
	WnsCredential     *WnsCredential     `json:"wnsCredential,omitempty"`
	XiaomiCredential  *XiaomiCredential  `json:"xiaomiCredential,omitempty"`
}

type PnsCredentialsResource

type PnsCredentialsResource struct {
	Id         *string                `json:"id,omitempty"`
	Location   *string                `json:"location,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *PnsCredentials        `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Tags       *map[string]string     `json:"tags,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type PolicyKeyResource

type PolicyKeyResource struct {
	PolicyKey PolicyKeyType `json:"policyKey"`
}

type PolicyKeyType

type PolicyKeyType string
const (
	PolicyKeyTypePrimaryKey   PolicyKeyType = "PrimaryKey"
	PolicyKeyTypeSecondaryKey PolicyKeyType = "SecondaryKey"
)

func (*PolicyKeyType) UnmarshalJSON

func (s *PolicyKeyType) UnmarshalJSON(bytes []byte) error

type RegistrationResult

type RegistrationResult struct {
	ApplicationPlatform *string `json:"applicationPlatform,omitempty"`
	Outcome             *string `json:"outcome,omitempty"`
	PnsHandle           *string `json:"pnsHandle,omitempty"`
	RegistrationId      *string `json:"registrationId,omitempty"`
}

type ResourceListKeys

type ResourceListKeys struct {
	KeyName                   *string `json:"keyName,omitempty"`
	PrimaryConnectionString   *string `json:"primaryConnectionString,omitempty"`
	PrimaryKey                *string `json:"primaryKey,omitempty"`
	SecondaryConnectionString *string `json:"secondaryConnectionString,omitempty"`
	SecondaryKey              *string `json:"secondaryKey,omitempty"`
}

type SharedAccessAuthorizationRuleProperties

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

func (*SharedAccessAuthorizationRuleProperties) GetCreatedTimeAsTime

func (o *SharedAccessAuthorizationRuleProperties) GetCreatedTimeAsTime() (*time.Time, error)

func (*SharedAccessAuthorizationRuleProperties) GetModifiedTimeAsTime

func (o *SharedAccessAuthorizationRuleProperties) GetModifiedTimeAsTime() (*time.Time, error)

func (*SharedAccessAuthorizationRuleProperties) SetCreatedTimeAsTime

func (o *SharedAccessAuthorizationRuleProperties) SetCreatedTimeAsTime(input time.Time)

func (*SharedAccessAuthorizationRuleProperties) SetModifiedTimeAsTime

func (o *SharedAccessAuthorizationRuleProperties) SetModifiedTimeAsTime(input time.Time)

type SharedAccessAuthorizationRuleResource

type SharedAccessAuthorizationRuleResource struct {
	Id         *string                                  `json:"id,omitempty"`
	Location   *string                                  `json:"location,omitempty"`
	Name       *string                                  `json:"name,omitempty"`
	Properties *SharedAccessAuthorizationRuleProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData                   `json:"systemData,omitempty"`
	Tags       *map[string]string                       `json:"tags,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type SharedAccessAuthorizationRuleResourceOperationPredicate

type SharedAccessAuthorizationRuleResourceOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (SharedAccessAuthorizationRuleResourceOperationPredicate) Matches

type Sku

type Sku struct {
	Capacity *int64  `json:"capacity,omitempty"`
	Family   *string `json:"family,omitempty"`
	Name     SkuName `json:"name"`
	Size     *string `json:"size,omitempty"`
	Tier     *string `json:"tier,omitempty"`
}

type SkuName

type SkuName string
const (
	SkuNameBasic    SkuName = "Basic"
	SkuNameFree     SkuName = "Free"
	SkuNameStandard SkuName = "Standard"
)

func (*SkuName) UnmarshalJSON

func (s *SkuName) UnmarshalJSON(bytes []byte) error

type WnsCredential

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

type WnsCredentialProperties

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

type XiaomiCredential

type XiaomiCredential struct {
	Properties XiaomiCredentialProperties `json:"properties"`
}

type XiaomiCredentialProperties

type XiaomiCredentialProperties struct {
	AppSecret *string `json:"appSecret,omitempty"`
	Endpoint  *string `json:"endpoint,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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