mhsmlistregions

package
v0.20240315.1103122 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/keyvault/2023-02-01/mhsmlistregions Documentation

The mhsmlistregions SDK allows for interaction with the Azure Resource Manager Service keyvault (API Version 2023-02-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/keyvault/2023-02-01/mhsmlistregions"

Client Initialization

client := mhsmlistregions.NewMHSMListRegionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MHSMListRegionsClient.MHSMRegionsListByResource

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForGeoReplicationRegionProvisioningState

func PossibleValuesForGeoReplicationRegionProvisioningState() []string

func ValidateManagedHSMID

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

ValidateManagedHSMID checks that 'input' can be parsed as a Managed H S M ID

Types

type GeoReplicationRegionProvisioningState

type GeoReplicationRegionProvisioningState string
const (
	GeoReplicationRegionProvisioningStateCleanup         GeoReplicationRegionProvisioningState = "Cleanup"
	GeoReplicationRegionProvisioningStateDeleting        GeoReplicationRegionProvisioningState = "Deleting"
	GeoReplicationRegionProvisioningStateFailed          GeoReplicationRegionProvisioningState = "Failed"
	GeoReplicationRegionProvisioningStatePreprovisioning GeoReplicationRegionProvisioningState = "Preprovisioning"
	GeoReplicationRegionProvisioningStateProvisioning    GeoReplicationRegionProvisioningState = "Provisioning"
	GeoReplicationRegionProvisioningStateSucceeded       GeoReplicationRegionProvisioningState = "Succeeded"
)

type MHSMGeoReplicatedRegion

type MHSMGeoReplicatedRegion struct {
	IsPrimary         *bool                                  `json:"isPrimary,omitempty"`
	Name              *string                                `json:"name,omitempty"`
	ProvisioningState *GeoReplicationRegionProvisioningState `json:"provisioningState,omitempty"`
}

type MHSMGeoReplicatedRegionOperationPredicate

type MHSMGeoReplicatedRegionOperationPredicate struct {
	IsPrimary *bool
	Name      *string
}

func (MHSMGeoReplicatedRegionOperationPredicate) Matches

type MHSMListRegionsClient

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

func NewMHSMListRegionsClientWithBaseURI

func NewMHSMListRegionsClientWithBaseURI(endpoint string) MHSMListRegionsClient

func (MHSMListRegionsClient) MHSMRegionsListByResource

func (c MHSMListRegionsClient) MHSMRegionsListByResource(ctx context.Context, id ManagedHSMId) (resp MHSMRegionsListByResourceOperationResponse, err error)

MHSMRegionsListByResource ...

func (MHSMListRegionsClient) MHSMRegionsListByResourceComplete

func (c MHSMListRegionsClient) MHSMRegionsListByResourceComplete(ctx context.Context, id ManagedHSMId) (MHSMRegionsListByResourceCompleteResult, error)

MHSMRegionsListByResourceComplete retrieves all of the results into a single object

func (MHSMListRegionsClient) MHSMRegionsListByResourceCompleteMatchingPredicate

func (c MHSMListRegionsClient) MHSMRegionsListByResourceCompleteMatchingPredicate(ctx context.Context, id ManagedHSMId, predicate MHSMGeoReplicatedRegionOperationPredicate) (resp MHSMRegionsListByResourceCompleteResult, err error)

MHSMRegionsListByResourceCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type MHSMRegionsListByResourceCompleteResult

type MHSMRegionsListByResourceCompleteResult struct {
	Items []MHSMGeoReplicatedRegion
}

type MHSMRegionsListByResourceOperationResponse

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

func (MHSMRegionsListByResourceOperationResponse) HasMore

func (MHSMRegionsListByResourceOperationResponse) LoadMore

type ManagedHSMId

type ManagedHSMId struct {
	SubscriptionId    string
	ResourceGroupName string
	ManagedHSMName    string
}

ManagedHSMId is a struct representing the Resource ID for a Managed H S M

func NewManagedHSMID

func NewManagedHSMID(subscriptionId string, resourceGroupName string, managedHSMName string) ManagedHSMId

NewManagedHSMID returns a new ManagedHSMId struct

func ParseManagedHSMID

func ParseManagedHSMID(input string) (*ManagedHSMId, error)

ParseManagedHSMID parses 'input' into a ManagedHSMId

func ParseManagedHSMIDInsensitively

func ParseManagedHSMIDInsensitively(input string) (*ManagedHSMId, error)

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

func (*ManagedHSMId) FromParseResult

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

func (ManagedHSMId) ID

func (id ManagedHSMId) ID() string

ID returns the formatted Managed H S M ID

func (ManagedHSMId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Managed H S M ID

func (ManagedHSMId) String

func (id ManagedHSMId) String() string

String returns a human-readable description of this Managed H S M ID

Jump to

Keyboard shortcuts

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