namespaces

package
v0.20240111.1120634 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MPL-2.0 Imports: 15 Imported by: 1

README

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

The namespaces 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/namespaces"

Client Initialization

client := namespaces.NewNamespacesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: NamespacesClient.CheckAvailability

ctx := context.TODO()
id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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


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

Example Usage: NamespacesClient.CreateOrUpdate

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

payload := namespaces.NamespaceResource{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: NamespacesClient.CreateOrUpdateAuthorizationRule

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

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


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

Example Usage: NamespacesClient.Delete

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

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

Example Usage: NamespacesClient.DeleteAuthorizationRule

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

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

Example Usage: NamespacesClient.Get

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

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

Example Usage: NamespacesClient.GetAuthorizationRule

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

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

Example Usage: NamespacesClient.GetPnsCredentials

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

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

Example Usage: NamespacesClient.List

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

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

Example Usage: NamespacesClient.ListAll

ctx := context.TODO()
id := namespaces.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: NamespacesClient.ListAuthorizationRules

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

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

Example Usage: NamespacesClient.ListKeys

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

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

Example Usage: NamespacesClient.RegenerateKeys

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

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


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

Example Usage: NamespacesClient.Update

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

payload := namespaces.NamespacePatchParameters{
	// ...
}


read, err := client.Update(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 PossibleValuesForNamespaceStatus

func PossibleValuesForNamespaceStatus() []string

func PossibleValuesForNamespaceType

func PossibleValuesForNamespaceType() []string

func PossibleValuesForOperationProvisioningState

func PossibleValuesForOperationProvisioningState() []string

func PossibleValuesForPolicyKeyType

func PossibleValuesForPolicyKeyType() []string

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateLinkConnectionStatus

func PossibleValuesForPrivateLinkConnectionStatus() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

func PossibleValuesForReplicationRegion

func PossibleValuesForReplicationRegion() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForZoneRedundancyPreference

func PossibleValuesForZoneRedundancyPreference() []string

func ValidateAuthorizationRuleID

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

ValidateAuthorizationRuleID checks that 'input' can be parsed as a Authorization Rule ID

func ValidateNamespaceID

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

ValidateNamespaceID checks that 'input' can be parsed as a Namespace 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 AuthorizationRuleId

type AuthorizationRuleId struct {
	SubscriptionId        string
	ResourceGroupName     string
	NamespaceName         string
	AuthorizationRuleName string
}

AuthorizationRuleId is a struct representing the Resource ID for a Authorization Rule

func NewAuthorizationRuleID

func NewAuthorizationRuleID(subscriptionId string, resourceGroupName string, namespaceName string, authorizationRuleName string) AuthorizationRuleId

NewAuthorizationRuleID returns a new AuthorizationRuleId struct

func ParseAuthorizationRuleID

func ParseAuthorizationRuleID(input string) (*AuthorizationRuleId, error)

ParseAuthorizationRuleID parses 'input' into a AuthorizationRuleId

func ParseAuthorizationRuleIDInsensitively

func ParseAuthorizationRuleIDInsensitively(input string) (*AuthorizationRuleId, error)

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

func (*AuthorizationRuleId) FromParseResult added in v0.20231127.1171502

func (id *AuthorizationRuleId) FromParseResult(input resourceids.ParseResult) error

func (AuthorizationRuleId) ID

func (id AuthorizationRuleId) ID() string

ID returns the formatted Authorization Rule ID

func (AuthorizationRuleId) Segments

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

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

func (AuthorizationRuleId) String

func (id AuthorizationRuleId) String() string

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

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 CheckAvailabilityOperationResponse

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

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 CreateOrUpdateAuthorizationRuleOperationResponse

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeleteAuthorizationRuleOperationResponse

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

type DeleteOperationResponse

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

type GcmCredential

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

type GcmCredentialProperties

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

type GetAuthorizationRuleOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NamespaceResource
}

type GetPnsCredentialsOperationResponse

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

type IPRule

type IPRule struct {
	IPMask string         `json:"ipMask"`
	Rights []AccessRights `json:"rights"`
}

type ListAllCompleteResult

type ListAllCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []NamespaceResource
}

type ListAllOperationOptions

type ListAllOperationOptions struct {
	Top *int64
}

func DefaultListAllOperationOptions

func DefaultListAllOperationOptions() ListAllOperationOptions

func (ListAllOperationOptions) ToHeaders

func (o ListAllOperationOptions) ToHeaders() *client.Headers

func (ListAllOperationOptions) ToOData

func (o ListAllOperationOptions) ToOData() *odata.Query

func (ListAllOperationOptions) ToQuery

type ListAllOperationResponse

type ListAllOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NamespaceResource
}

type ListAuthorizationRulesCompleteResult

type ListAuthorizationRulesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []SharedAccessAuthorizationRuleResource
}

type ListAuthorizationRulesOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []NamespaceResource
}

type ListKeysOperationResponse

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

type ListOperationOptions

type ListOperationOptions struct {
	Top *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]NamespaceResource
}

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) FromParseResult added in v0.20231127.1171502

func (id *NamespaceId) FromParseResult(input resourceids.ParseResult) error

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 NamespacePatchParameters

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

type NamespaceProperties

type NamespaceProperties struct {
	CreatedAt                  *string                              `json:"createdAt,omitempty"`
	Critical                   *bool                                `json:"critical,omitempty"`
	DataCenter                 *string                              `json:"dataCenter,omitempty"`
	Enabled                    *bool                                `json:"enabled,omitempty"`
	MetricId                   *string                              `json:"metricId,omitempty"`
	Name                       *string                              `json:"name,omitempty"`
	NamespaceType              *NamespaceType                       `json:"namespaceType,omitempty"`
	NetworkAcls                *NetworkAcls                         `json:"networkAcls,omitempty"`
	PnsCredentials             *PnsCredentials                      `json:"pnsCredentials,omitempty"`
	PrivateEndpointConnections *[]PrivateEndpointConnectionResource `json:"privateEndpointConnections,omitempty"`
	ProvisioningState          *OperationProvisioningState          `json:"provisioningState,omitempty"`
	PublicNetworkAccess        *PublicNetworkAccess                 `json:"publicNetworkAccess,omitempty"`
	Region                     *string                              `json:"region,omitempty"`
	ReplicationRegion          *ReplicationRegion                   `json:"replicationRegion,omitempty"`
	ScaleUnit                  *string                              `json:"scaleUnit,omitempty"`
	ServiceBusEndpoint         *string                              `json:"serviceBusEndpoint,omitempty"`
	Status                     *NamespaceStatus                     `json:"status,omitempty"`
	SubscriptionId             *string                              `json:"subscriptionId,omitempty"`
	UpdatedAt                  *string                              `json:"updatedAt,omitempty"`
	ZoneRedundancy             *ZoneRedundancyPreference            `json:"zoneRedundancy,omitempty"`
}

func (*NamespaceProperties) GetCreatedAtAsTime

func (o *NamespaceProperties) GetCreatedAtAsTime() (*time.Time, error)

func (*NamespaceProperties) GetUpdatedAtAsTime

func (o *NamespaceProperties) GetUpdatedAtAsTime() (*time.Time, error)

func (*NamespaceProperties) SetCreatedAtAsTime

func (o *NamespaceProperties) SetCreatedAtAsTime(input time.Time)

func (*NamespaceProperties) SetUpdatedAtAsTime

func (o *NamespaceProperties) SetUpdatedAtAsTime(input time.Time)

type NamespaceResource

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

type NamespaceResourceOperationPredicate

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

func (NamespaceResourceOperationPredicate) Matches

type NamespaceStatus

type NamespaceStatus string
const (
	NamespaceStatusCreated   NamespaceStatus = "Created"
	NamespaceStatusCreating  NamespaceStatus = "Creating"
	NamespaceStatusDeleting  NamespaceStatus = "Deleting"
	NamespaceStatusSuspended NamespaceStatus = "Suspended"
)

func (*NamespaceStatus) UnmarshalJSON

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

type NamespaceType

type NamespaceType string
const (
	NamespaceTypeMessaging       NamespaceType = "Messaging"
	NamespaceTypeNotificationHub NamespaceType = "NotificationHub"
)

func (*NamespaceType) UnmarshalJSON

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

type NamespacesClient

type NamespacesClient struct {
	Client *resourcemanager.Client
}

func NewNamespacesClientWithBaseURI

func NewNamespacesClientWithBaseURI(sdkApi sdkEnv.Api) (*NamespacesClient, error)

func (NamespacesClient) CheckAvailability

CheckAvailability ...

func (NamespacesClient) CreateOrUpdate

CreateOrUpdate ...

func (NamespacesClient) CreateOrUpdateAuthorizationRule

CreateOrUpdateAuthorizationRule ...

func (NamespacesClient) CreateOrUpdateThenPoll

func (c NamespacesClient) CreateOrUpdateThenPoll(ctx context.Context, id NamespaceId, input NamespaceResource) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (NamespacesClient) Delete

func (c NamespacesClient) Delete(ctx context.Context, id NamespaceId) (result DeleteOperationResponse, err error)

Delete ...

func (NamespacesClient) DeleteAuthorizationRule

func (c NamespacesClient) DeleteAuthorizationRule(ctx context.Context, id AuthorizationRuleId) (result DeleteAuthorizationRuleOperationResponse, err error)

DeleteAuthorizationRule ...

func (NamespacesClient) Get

Get ...

func (NamespacesClient) GetAuthorizationRule

GetAuthorizationRule ...

func (NamespacesClient) GetPnsCredentials

func (c NamespacesClient) GetPnsCredentials(ctx context.Context, id NamespaceId) (result GetPnsCredentialsOperationResponse, err error)

GetPnsCredentials ...

func (NamespacesClient) List

List ...

func (NamespacesClient) ListAll

ListAll ...

func (NamespacesClient) ListAllComplete

ListAllComplete retrieves all the results into a single object

func (NamespacesClient) ListAllCompleteMatchingPredicate

func (c NamespacesClient) ListAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListAllOperationOptions, predicate NamespaceResourceOperationPredicate) (result ListAllCompleteResult, err error)

ListAllCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (NamespacesClient) ListAuthorizationRules

func (c NamespacesClient) ListAuthorizationRules(ctx context.Context, id NamespaceId) (result ListAuthorizationRulesOperationResponse, err error)

ListAuthorizationRules ...

func (NamespacesClient) ListAuthorizationRulesComplete

func (c NamespacesClient) ListAuthorizationRulesComplete(ctx context.Context, id NamespaceId) (ListAuthorizationRulesCompleteResult, error)

ListAuthorizationRulesComplete retrieves all the results into a single object

func (NamespacesClient) ListAuthorizationRulesCompleteMatchingPredicate

func (c NamespacesClient) ListAuthorizationRulesCompleteMatchingPredicate(ctx context.Context, id NamespaceId, predicate SharedAccessAuthorizationRuleResourceOperationPredicate) (result ListAuthorizationRulesCompleteResult, err error)

ListAuthorizationRulesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (NamespacesClient) ListComplete

ListComplete retrieves all the results into a single object

func (NamespacesClient) ListCompleteMatchingPredicate

func (c NamespacesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListOperationOptions, predicate NamespaceResourceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (NamespacesClient) ListKeys

ListKeys ...

func (NamespacesClient) RegenerateKeys

RegenerateKeys ...

func (NamespacesClient) Update

Update ...

type NetworkAcls

type NetworkAcls struct {
	IPRules           *[]IPRule                        `json:"ipRules,omitempty"`
	PublicNetworkRule *PublicInternetAuthorizationRule `json:"publicNetworkRule,omitempty"`
}

type OperationProvisioningState

type OperationProvisioningState string
const (
	OperationProvisioningStateCanceled   OperationProvisioningState = "Canceled"
	OperationProvisioningStateDisabled   OperationProvisioningState = "Disabled"
	OperationProvisioningStateFailed     OperationProvisioningState = "Failed"
	OperationProvisioningStateInProgress OperationProvisioningState = "InProgress"
	OperationProvisioningStatePending    OperationProvisioningState = "Pending"
	OperationProvisioningStateSucceeded  OperationProvisioningState = "Succeeded"
	OperationProvisioningStateUnknown    OperationProvisioningState = "Unknown"
)

func (*OperationProvisioningState) UnmarshalJSON

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

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 PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	GroupIds                          *[]string                                   `json:"groupIds,omitempty"`
	PrivateEndpoint                   *RemotePrivateEndpointConnection            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState *RemotePrivateLinkServiceConnectionState    `json:"privateLinkServiceConnectionState,omitempty"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string
const (
	PrivateEndpointConnectionProvisioningStateCreating        PrivateEndpointConnectionProvisioningState = "Creating"
	PrivateEndpointConnectionProvisioningStateDeleted         PrivateEndpointConnectionProvisioningState = "Deleted"
	PrivateEndpointConnectionProvisioningStateDeleting        PrivateEndpointConnectionProvisioningState = "Deleting"
	PrivateEndpointConnectionProvisioningStateDeletingByProxy PrivateEndpointConnectionProvisioningState = "DeletingByProxy"
	PrivateEndpointConnectionProvisioningStateSucceeded       PrivateEndpointConnectionProvisioningState = "Succeeded"
	PrivateEndpointConnectionProvisioningStateUnknown         PrivateEndpointConnectionProvisioningState = "Unknown"
	PrivateEndpointConnectionProvisioningStateUpdating        PrivateEndpointConnectionProvisioningState = "Updating"
	PrivateEndpointConnectionProvisioningStateUpdatingByProxy PrivateEndpointConnectionProvisioningState = "UpdatingByProxy"
)

func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON

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

type PrivateEndpointConnectionResource

type PrivateEndpointConnectionResource struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData               `json:"systemData,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type PrivateLinkConnectionStatus

type PrivateLinkConnectionStatus string
const (
	PrivateLinkConnectionStatusApproved     PrivateLinkConnectionStatus = "Approved"
	PrivateLinkConnectionStatusDisconnected PrivateLinkConnectionStatus = "Disconnected"
	PrivateLinkConnectionStatusPending      PrivateLinkConnectionStatus = "Pending"
	PrivateLinkConnectionStatusRejected     PrivateLinkConnectionStatus = "Rejected"
)

func (*PrivateLinkConnectionStatus) UnmarshalJSON

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

type PublicInternetAuthorizationRule

type PublicInternetAuthorizationRule struct {
	Rights []AccessRights `json:"rights"`
}

type PublicNetworkAccess

type PublicNetworkAccess string
const (
	PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
	PublicNetworkAccessEnabled  PublicNetworkAccess = "Enabled"
)

func (*PublicNetworkAccess) UnmarshalJSON

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

type RegenerateKeysOperationResponse

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

type RemotePrivateEndpointConnection

type RemotePrivateEndpointConnection struct {
	Id *string `json:"id,omitempty"`
}

type RemotePrivateLinkServiceConnectionState

type RemotePrivateLinkServiceConnectionState struct {
	ActionsRequired *string                      `json:"actionsRequired,omitempty"`
	Description     *string                      `json:"description,omitempty"`
	Status          *PrivateLinkConnectionStatus `json:"status,omitempty"`
}

type ReplicationRegion

type ReplicationRegion string
const (
	ReplicationRegionAustraliaEast    ReplicationRegion = "AustraliaEast"
	ReplicationRegionBrazilSouth      ReplicationRegion = "BrazilSouth"
	ReplicationRegionDefault          ReplicationRegion = "Default"
	ReplicationRegionNone             ReplicationRegion = "None"
	ReplicationRegionNorthEurope      ReplicationRegion = "NorthEurope"
	ReplicationRegionSouthAfricaNorth ReplicationRegion = "SouthAfricaNorth"
	ReplicationRegionSouthEastAsia    ReplicationRegion = "SouthEastAsia"
	ReplicationRegionWestUsTwo        ReplicationRegion = "WestUs2"
)

func (*ReplicationRegion) UnmarshalJSON

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

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 UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *NamespaceResource
}

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"`
}

type ZoneRedundancyPreference

type ZoneRedundancyPreference string
const (
	ZoneRedundancyPreferenceDisabled ZoneRedundancyPreference = "Disabled"
	ZoneRedundancyPreferenceEnabled  ZoneRedundancyPreference = "Enabled"
)

func (*ZoneRedundancyPreference) UnmarshalJSON

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

Source Files

Jump to

Keyboard shortcuts

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