authorizationrulesdisasterrecoveryconfigs

package
v0.20221128.1190504 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2021-11-01/authorizationrulesdisasterrecoveryconfigs Documentation

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

Client Initialization

client := authorizationrulesdisasterrecoveryconfigs.NewAuthorizationRulesDisasterRecoveryConfigsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AuthorizationRulesDisasterRecoveryConfigsClient.DisasterRecoveryConfigsGetAuthorizationRule

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

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

Example Usage: AuthorizationRulesDisasterRecoveryConfigsClient.DisasterRecoveryConfigsListAuthorizationRules

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

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

Example Usage: AuthorizationRulesDisasterRecoveryConfigsClient.DisasterRecoveryConfigsListKeys

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

read, err := client.DisasterRecoveryConfigsListKeys(ctx, id)
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 ValidateDisasterRecoveryConfigAuthorizationRuleID

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

ValidateDisasterRecoveryConfigAuthorizationRuleID checks that 'input' can be parsed as a Disaster Recovery Config Authorization Rule ID

func ValidateDisasterRecoveryConfigID

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

ValidateDisasterRecoveryConfigID checks that 'input' can be parsed as a Disaster Recovery Config 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"
)

type AuthorizationRule

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

type AuthorizationRuleOperationPredicate

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

func (AuthorizationRuleOperationPredicate) Matches

type AuthorizationRuleProperties

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

type AuthorizationRulesDisasterRecoveryConfigsClient

type AuthorizationRulesDisasterRecoveryConfigsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewAuthorizationRulesDisasterRecoveryConfigsClientWithBaseURI

func NewAuthorizationRulesDisasterRecoveryConfigsClientWithBaseURI(endpoint string) AuthorizationRulesDisasterRecoveryConfigsClient

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsGetAuthorizationRule

DisasterRecoveryConfigsGetAuthorizationRule ...

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRules

DisasterRecoveryConfigsListAuthorizationRules ...

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRulesComplete

DisasterRecoveryConfigsListAuthorizationRulesComplete retrieves all of the results into a single object

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRulesCompleteMatchingPredicate

DisasterRecoveryConfigsListAuthorizationRulesCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListKeys

DisasterRecoveryConfigsListKeys ...

type DisasterRecoveryConfigAuthorizationRuleId

type DisasterRecoveryConfigAuthorizationRuleId struct {
	SubscriptionId        string
	ResourceGroupName     string
	NamespaceName         string
	Alias                 string
	AuthorizationRuleName string
}

DisasterRecoveryConfigAuthorizationRuleId is a struct representing the Resource ID for a Disaster Recovery Config Authorization Rule

func NewDisasterRecoveryConfigAuthorizationRuleID

func NewDisasterRecoveryConfigAuthorizationRuleID(subscriptionId string, resourceGroupName string, namespaceName string, alias string, authorizationRuleName string) DisasterRecoveryConfigAuthorizationRuleId

NewDisasterRecoveryConfigAuthorizationRuleID returns a new DisasterRecoveryConfigAuthorizationRuleId struct

func ParseDisasterRecoveryConfigAuthorizationRuleID

func ParseDisasterRecoveryConfigAuthorizationRuleID(input string) (*DisasterRecoveryConfigAuthorizationRuleId, error)

ParseDisasterRecoveryConfigAuthorizationRuleID parses 'input' into a DisasterRecoveryConfigAuthorizationRuleId

func ParseDisasterRecoveryConfigAuthorizationRuleIDInsensitively

func ParseDisasterRecoveryConfigAuthorizationRuleIDInsensitively(input string) (*DisasterRecoveryConfigAuthorizationRuleId, error)

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

func (DisasterRecoveryConfigAuthorizationRuleId) ID

ID returns the formatted Disaster Recovery Config Authorization Rule ID

func (DisasterRecoveryConfigAuthorizationRuleId) Segments

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

func (DisasterRecoveryConfigAuthorizationRuleId) String

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

type DisasterRecoveryConfigId

type DisasterRecoveryConfigId struct {
	SubscriptionId    string
	ResourceGroupName string
	NamespaceName     string
	Alias             string
}

DisasterRecoveryConfigId is a struct representing the Resource ID for a Disaster Recovery Config

func NewDisasterRecoveryConfigID

func NewDisasterRecoveryConfigID(subscriptionId string, resourceGroupName string, namespaceName string, alias string) DisasterRecoveryConfigId

NewDisasterRecoveryConfigID returns a new DisasterRecoveryConfigId struct

func ParseDisasterRecoveryConfigID

func ParseDisasterRecoveryConfigID(input string) (*DisasterRecoveryConfigId, error)

ParseDisasterRecoveryConfigID parses 'input' into a DisasterRecoveryConfigId

func ParseDisasterRecoveryConfigIDInsensitively

func ParseDisasterRecoveryConfigIDInsensitively(input string) (*DisasterRecoveryConfigId, error)

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

func (DisasterRecoveryConfigId) ID

ID returns the formatted Disaster Recovery Config ID

func (DisasterRecoveryConfigId) Segments

Segments returns a slice of Resource ID Segments which comprise this Disaster Recovery Config ID

func (DisasterRecoveryConfigId) String

func (id DisasterRecoveryConfigId) String() string

String returns a human-readable description of this Disaster Recovery Config ID

type DisasterRecoveryConfigsGetAuthorizationRuleOperationResponse

type DisasterRecoveryConfigsGetAuthorizationRuleOperationResponse struct {
	HttpResponse *http.Response
	Model        *AuthorizationRule
}

type DisasterRecoveryConfigsListAuthorizationRulesCompleteResult

type DisasterRecoveryConfigsListAuthorizationRulesCompleteResult struct {
	Items []AuthorizationRule
}

type DisasterRecoveryConfigsListAuthorizationRulesOperationResponse

type DisasterRecoveryConfigsListAuthorizationRulesOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]AuthorizationRule
	// contains filtered or unexported fields
}

func (DisasterRecoveryConfigsListAuthorizationRulesOperationResponse) HasMore

func (DisasterRecoveryConfigsListAuthorizationRulesOperationResponse) LoadMore

type DisasterRecoveryConfigsListKeysOperationResponse

type DisasterRecoveryConfigsListKeysOperationResponse struct {
	HttpResponse *http.Response
	Model        *AccessKeys
}

Jump to

Keyboard shortcuts

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