authorizationrulesdisasterrecoveryconfigs

package
v0.20230622.1085613 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/eventhub/2022-01-01-preview/authorizationrulesdisasterrecoveryconfigs Documentation

The authorizationrulesdisasterrecoveryconfigs SDK allows for interaction with the Azure Resource Manager Service eventhub (API Version 2022-01-01-preview).

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/2022-01-01-preview/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", "disasterRecoveryConfigValue", "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", "disasterRecoveryConfigValue")

// 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", "disasterRecoveryConfigValue", "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"
)

func (*AccessRights) UnmarshalJSON added in v0.20230508.1101604

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

type AuthorizationRule

type AuthorizationRule struct {
	Id         *string                      `json:"id,omitempty"`
	Location   *string                      `json:"location,omitempty"`
	Name       *string                      `json:"name,omitempty"`
	Properties *AuthorizationRuleProperties `json:"properties,omitempty"`
	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 *resourcemanager.Client
}

func NewAuthorizationRulesDisasterRecoveryConfigsClientWithBaseURI

func NewAuthorizationRulesDisasterRecoveryConfigsClientWithBaseURI(api environments.Api) (*AuthorizationRulesDisasterRecoveryConfigsClient, error)

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsGetAuthorizationRule

DisasterRecoveryConfigsGetAuthorizationRule ...

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRules

DisasterRecoveryConfigsListAuthorizationRules ...

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRulesComplete

DisasterRecoveryConfigsListAuthorizationRulesComplete retrieves all the results into a single object

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListAuthorizationRulesCompleteMatchingPredicate

DisasterRecoveryConfigsListAuthorizationRulesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AuthorizationRulesDisasterRecoveryConfigsClient) DisasterRecoveryConfigsListKeys

DisasterRecoveryConfigsListKeys ...

type DisasterRecoveryConfigAuthorizationRuleId

type DisasterRecoveryConfigAuthorizationRuleId struct {
	SubscriptionId             string
	ResourceGroupName          string
	NamespaceName              string
	DisasterRecoveryConfigName 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, disasterRecoveryConfigName 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
	DisasterRecoveryConfigName string
}

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

func NewDisasterRecoveryConfigID

func NewDisasterRecoveryConfigID(subscriptionId string, resourceGroupName string, namespaceName string, disasterRecoveryConfigName 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
	OData        *odata.OData
	Model        *AuthorizationRule
}

type DisasterRecoveryConfigsListAuthorizationRulesCompleteResult

type DisasterRecoveryConfigsListAuthorizationRulesCompleteResult struct {
	Items []AuthorizationRule
}

type DisasterRecoveryConfigsListAuthorizationRulesOperationResponse

type DisasterRecoveryConfigsListAuthorizationRulesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AuthorizationRule
}

type DisasterRecoveryConfigsListKeysOperationResponse

type DisasterRecoveryConfigsListKeysOperationResponse 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