topicsauthorizationrule

package
v0.20230614.1151152 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/servicebus/2021-11-01/topicsauthorizationrule Documentation

The topicsauthorizationrule SDK allows for interaction with the Azure Resource Manager Service servicebus (API Version 2021-11-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/servicebus/2021-11-01/topicsauthorizationrule"

Client Initialization

client := topicsauthorizationrule.NewTopicsAuthorizationRuleClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: TopicsAuthorizationRuleClient.TopicsCreateOrUpdateAuthorizationRule

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

payload := topicsauthorizationrule.SBAuthorizationRule{
	// ...
}


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

Example Usage: TopicsAuthorizationRuleClient.TopicsDeleteAuthorizationRule

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

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

Example Usage: TopicsAuthorizationRuleClient.TopicsGetAuthorizationRule

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

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

Example Usage: TopicsAuthorizationRuleClient.TopicsListAuthorizationRules

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

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

Example Usage: TopicsAuthorizationRuleClient.TopicsListKeys

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

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

Example Usage: TopicsAuthorizationRuleClient.TopicsRegenerateKeys

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

payload := topicsauthorizationrule.RegenerateAccessKeyParameters{
	// ...
}


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

func PossibleValuesForKeyType() []string

func ValidateTopicAuthorizationRuleID

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

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

func ValidateTopicID

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

ValidateTopicID checks that 'input' can be parsed as a Topic ID

Types

type AccessKeys

type AccessKeys struct {
	AliasPrimaryConnectionString   *string `json:"aliasPrimaryConnectionString,omitempty"`
	AliasSecondaryConnectionString *string `json:"aliasSecondaryConnectionString,omitempty"`
	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 AccessRights

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

func (*AccessRights) UnmarshalJSON added in v0.20230406.1124617

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

type KeyType

type KeyType string
const (
	KeyTypePrimaryKey   KeyType = "PrimaryKey"
	KeyTypeSecondaryKey KeyType = "SecondaryKey"
)

func (*KeyType) UnmarshalJSON added in v0.20230406.1124617

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

type RegenerateAccessKeyParameters

type RegenerateAccessKeyParameters struct {
	Key     *string `json:"key,omitempty"`
	KeyType KeyType `json:"keyType"`
}

type SBAuthorizationRule

type SBAuthorizationRule struct {
	Id         *string                        `json:"id,omitempty"`
	Location   *string                        `json:"location,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *SBAuthorizationRuleProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type SBAuthorizationRuleOperationPredicate

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

func (SBAuthorizationRuleOperationPredicate) Matches

type SBAuthorizationRuleProperties

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

type TopicAuthorizationRuleId

type TopicAuthorizationRuleId struct {
	SubscriptionId        string
	ResourceGroupName     string
	NamespaceName         string
	TopicName             string
	AuthorizationRuleName string
}

TopicAuthorizationRuleId is a struct representing the Resource ID for a Topic Authorization Rule

func NewTopicAuthorizationRuleID

func NewTopicAuthorizationRuleID(subscriptionId string, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string) TopicAuthorizationRuleId

NewTopicAuthorizationRuleID returns a new TopicAuthorizationRuleId struct

func ParseTopicAuthorizationRuleID

func ParseTopicAuthorizationRuleID(input string) (*TopicAuthorizationRuleId, error)

ParseTopicAuthorizationRuleID parses 'input' into a TopicAuthorizationRuleId

func ParseTopicAuthorizationRuleIDInsensitively

func ParseTopicAuthorizationRuleIDInsensitively(input string) (*TopicAuthorizationRuleId, error)

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

func (TopicAuthorizationRuleId) ID

ID returns the formatted Topic Authorization Rule ID

func (TopicAuthorizationRuleId) Segments

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

func (TopicAuthorizationRuleId) String

func (id TopicAuthorizationRuleId) String() string

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

type TopicId

type TopicId struct {
	SubscriptionId    string
	ResourceGroupName string
	NamespaceName     string
	TopicName         string
}

TopicId is a struct representing the Resource ID for a Topic

func NewTopicID

func NewTopicID(subscriptionId string, resourceGroupName string, namespaceName string, topicName string) TopicId

NewTopicID returns a new TopicId struct

func ParseTopicID

func ParseTopicID(input string) (*TopicId, error)

ParseTopicID parses 'input' into a TopicId

func ParseTopicIDInsensitively

func ParseTopicIDInsensitively(input string) (*TopicId, error)

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

func (TopicId) ID

func (id TopicId) ID() string

ID returns the formatted Topic ID

func (TopicId) Segments

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

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

func (TopicId) String

func (id TopicId) String() string

String returns a human-readable description of this Topic ID

type TopicsAuthorizationRuleClient

type TopicsAuthorizationRuleClient struct {
	Client *resourcemanager.Client
}

func NewTopicsAuthorizationRuleClientWithBaseURI

func NewTopicsAuthorizationRuleClientWithBaseURI(api environments.Api) (*TopicsAuthorizationRuleClient, error)

func (TopicsAuthorizationRuleClient) TopicsCreateOrUpdateAuthorizationRule

TopicsCreateOrUpdateAuthorizationRule ...

func (TopicsAuthorizationRuleClient) TopicsDeleteAuthorizationRule

TopicsDeleteAuthorizationRule ...

func (TopicsAuthorizationRuleClient) TopicsGetAuthorizationRule

TopicsGetAuthorizationRule ...

func (TopicsAuthorizationRuleClient) TopicsListAuthorizationRules

func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRules(ctx context.Context, id TopicId) (result TopicsListAuthorizationRulesOperationResponse, err error)

TopicsListAuthorizationRules ...

func (TopicsAuthorizationRuleClient) TopicsListAuthorizationRulesComplete

func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRulesComplete(ctx context.Context, id TopicId) (TopicsListAuthorizationRulesCompleteResult, error)

TopicsListAuthorizationRulesComplete retrieves all the results into a single object

func (TopicsAuthorizationRuleClient) TopicsListAuthorizationRulesCompleteMatchingPredicate

func (c TopicsAuthorizationRuleClient) TopicsListAuthorizationRulesCompleteMatchingPredicate(ctx context.Context, id TopicId, predicate SBAuthorizationRuleOperationPredicate) (result TopicsListAuthorizationRulesCompleteResult, err error)

TopicsListAuthorizationRulesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (TopicsAuthorizationRuleClient) TopicsListKeys

TopicsListKeys ...

func (TopicsAuthorizationRuleClient) TopicsRegenerateKeys

TopicsRegenerateKeys ...

type TopicsCreateOrUpdateAuthorizationRuleOperationResponse

type TopicsCreateOrUpdateAuthorizationRuleOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SBAuthorizationRule
}

type TopicsDeleteAuthorizationRuleOperationResponse

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

type TopicsGetAuthorizationRuleOperationResponse

type TopicsGetAuthorizationRuleOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SBAuthorizationRule
}

type TopicsListAuthorizationRulesCompleteResult

type TopicsListAuthorizationRulesCompleteResult struct {
	Items []SBAuthorizationRule
}

type TopicsListAuthorizationRulesOperationResponse

type TopicsListAuthorizationRulesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]SBAuthorizationRule
}

type TopicsListKeysOperationResponse

type TopicsListKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AccessKeys
}

type TopicsRegenerateKeysOperationResponse

type TopicsRegenerateKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AccessKeys
}

Jump to

Keyboard shortcuts

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