deletedaccounts

package
v0.20221025.1104718 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/storage/2022-05-01/deletedaccounts Documentation

The deletedaccounts SDK allows for interaction with the Azure Resource Manager Service storage (API Version 2022-05-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/storage/2022-05-01/deletedaccounts"

Client Initialization

client := deletedaccounts.NewDeletedAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DeletedAccountsClient.Get

ctx := context.TODO()
id := deletedaccounts.NewDeletedAccountID("12345678-1234-9876-4563-123456789012", "locationValue", "deletedAccountValue")

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: DeletedAccountsClient.List

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

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(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 ValidateDeletedAccountID

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

ValidateDeletedAccountID checks that 'input' can be parsed as a Deleted Account ID

Types

type DeletedAccount

type DeletedAccount struct {
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *DeletedAccountProperties `json:"properties,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type DeletedAccountId

type DeletedAccountId struct {
	SubscriptionId     string
	Location           string
	DeletedAccountName string
}

DeletedAccountId is a struct representing the Resource ID for a Deleted Account

func NewDeletedAccountID

func NewDeletedAccountID(subscriptionId string, location string, deletedAccountName string) DeletedAccountId

NewDeletedAccountID returns a new DeletedAccountId struct

func ParseDeletedAccountID

func ParseDeletedAccountID(input string) (*DeletedAccountId, error)

ParseDeletedAccountID parses 'input' into a DeletedAccountId

func ParseDeletedAccountIDInsensitively

func ParseDeletedAccountIDInsensitively(input string) (*DeletedAccountId, error)

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

func (DeletedAccountId) ID

func (id DeletedAccountId) ID() string

ID returns the formatted Deleted Account ID

func (DeletedAccountId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Deleted Account ID

func (DeletedAccountId) String

func (id DeletedAccountId) String() string

String returns a human-readable description of this Deleted Account ID

type DeletedAccountOperationPredicate

type DeletedAccountOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (DeletedAccountOperationPredicate) Matches

type DeletedAccountProperties

type DeletedAccountProperties struct {
	CreationTime             *string `json:"creationTime,omitempty"`
	DeletionTime             *string `json:"deletionTime,omitempty"`
	Location                 *string `json:"location,omitempty"`
	RestoreReference         *string `json:"restoreReference,omitempty"`
	StorageAccountResourceId *string `json:"storageAccountResourceId,omitempty"`
}

type DeletedAccountsClient

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

func NewDeletedAccountsClientWithBaseURI

func NewDeletedAccountsClientWithBaseURI(endpoint string) DeletedAccountsClient

func (DeletedAccountsClient) Get

Get ...

func (DeletedAccountsClient) List

List ...

func (DeletedAccountsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (DeletedAccountsClient) ListCompleteMatchingPredicate

func (c DeletedAccountsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate DeletedAccountOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *DeletedAccount
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []DeletedAccount
}

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

Jump to

Keyboard shortcuts

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