storageaccounts

package
v0.20220628.1171401 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/datalakeanalytics/2016-11-01/storageaccounts Documentation

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

Client Initialization

client := storageaccounts.NewStorageAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
if err != nil {
	// handle the error
}

Example Usage: StorageAccountsClient.Add

ctx := context.TODO()
id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "storageAccountValue")

payload := storageaccounts.AddStorageAccountParameters{
	// ...
}

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

Example Usage: StorageAccountsClient.Delete

ctx := context.TODO()
id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "storageAccountValue")
read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StorageAccountsClient.Get

ctx := context.TODO()
id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "storageAccountValue")
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: StorageAccountsClient.GetStorageContainer

ctx := context.TODO()
id := storageaccounts.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "storageAccountValue", "containerValue")
read, err := client.GetStorageContainer(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: StorageAccountsClient.ListByAccount

ctx := context.TODO()
id := storageaccounts.NewAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue")
// alternatively `client.ListByAccount(ctx, id, storageaccounts.DefaultListByAccountOperationOptions())` can be used to do batched pagination
items, err := client.ListByAccountComplete(ctx, id, storageaccounts.DefaultListByAccountOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StorageAccountsClient.ListSasTokens

ctx := context.TODO()
id := storageaccounts.NewContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "storageAccountValue", "containerValue")
// alternatively `client.ListSasTokens(ctx, id)` can be used to do batched pagination
items, err := client.ListSasTokensComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StorageAccountsClient.ListStorageContainers

ctx := context.TODO()
id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "storageAccountValue")
// alternatively `client.ListStorageContainers(ctx, id)` can be used to do batched pagination
items, err := client.ListStorageContainersComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: StorageAccountsClient.Update

ctx := context.TODO()
id := storageaccounts.NewStorageAccountID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "storageAccountValue")

payload := storageaccounts.UpdateStorageAccountParameters{
	// ...
}

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

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

ValidateAccountID checks that 'input' can be parsed as a Account ID

func ValidateContainerID

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

ValidateContainerID checks that 'input' can be parsed as a Container ID

func ValidateStorageAccountID

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

ValidateStorageAccountID checks that 'input' can be parsed as a Storage Account ID

Types

type AccountId

type AccountId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

AccountId is a struct representing the Resource ID for a Account

func NewAccountID

func NewAccountID(subscriptionId string, resourceGroupName string, accountName string) AccountId

NewAccountID returns a new AccountId struct

func ParseAccountID

func ParseAccountID(input string) (*AccountId, error)

ParseAccountID parses 'input' into a AccountId

func ParseAccountIDInsensitively

func ParseAccountIDInsensitively(input string) (*AccountId, error)

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

func (AccountId) ID

func (id AccountId) ID() string

ID returns the formatted Account ID

func (AccountId) Segments

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

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

func (AccountId) String

func (id AccountId) String() string

String returns a human-readable description of this Account ID

type AddOperationResponse

type AddOperationResponse struct {
	HttpResponse *http.Response
}

type AddStorageAccountParameters

type AddStorageAccountParameters struct {
	Properties AddStorageAccountProperties `json:"properties"`
}

type AddStorageAccountProperties

type AddStorageAccountProperties struct {
	AccessKey string  `json:"accessKey"`
	Suffix    *string `json:"suffix,omitempty"`
}

type ContainerId

type ContainerId struct {
	SubscriptionId     string
	ResourceGroupName  string
	AccountName        string
	StorageAccountName string
	ContainerName      string
}

ContainerId is a struct representing the Resource ID for a Container

func NewContainerID

func NewContainerID(subscriptionId string, resourceGroupName string, accountName string, storageAccountName string, containerName string) ContainerId

NewContainerID returns a new ContainerId struct

func ParseContainerID

func ParseContainerID(input string) (*ContainerId, error)

ParseContainerID parses 'input' into a ContainerId

func ParseContainerIDInsensitively

func ParseContainerIDInsensitively(input string) (*ContainerId, error)

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

func (ContainerId) ID

func (id ContainerId) ID() string

ID returns the formatted Container ID

func (ContainerId) Segments

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

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

func (ContainerId) String

func (id ContainerId) String() string

String returns a human-readable description of this Container ID

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

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

type GetStorageContainerOperationResponse

type GetStorageContainerOperationResponse struct {
	HttpResponse *http.Response
	Model        *StorageContainer
}

type ListByAccountCompleteResult

type ListByAccountCompleteResult struct {
	Items []StorageAccountInformation
}

type ListByAccountOperationOptions

type ListByAccountOperationOptions struct {
	Count   *bool
	Filter  *string
	Orderby *string
	Select  *string
	Skip    *int64
	Top     *int64
}

func DefaultListByAccountOperationOptions

func DefaultListByAccountOperationOptions() ListByAccountOperationOptions

type ListByAccountOperationResponse

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

func (ListByAccountOperationResponse) HasMore

func (ListByAccountOperationResponse) LoadMore

type ListSasTokensCompleteResult

type ListSasTokensCompleteResult struct {
	Items []SasTokenInformation
}

type ListSasTokensOperationResponse

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

func (ListSasTokensOperationResponse) HasMore

func (ListSasTokensOperationResponse) LoadMore

type ListStorageContainersCompleteResult

type ListStorageContainersCompleteResult struct {
	Items []StorageContainer
}

type ListStorageContainersOperationResponse

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

func (ListStorageContainersOperationResponse) HasMore

func (ListStorageContainersOperationResponse) LoadMore

type SasTokenInformation

type SasTokenInformation struct {
	AccessToken *string `json:"accessToken,omitempty"`
}

type SasTokenInformationOperationPredicate

type SasTokenInformationOperationPredicate struct {
	AccessToken *string
}

func (SasTokenInformationOperationPredicate) Matches

type StorageAccountId

type StorageAccountId struct {
	SubscriptionId     string
	ResourceGroupName  string
	AccountName        string
	StorageAccountName string
}

StorageAccountId is a struct representing the Resource ID for a Storage Account

func NewStorageAccountID

func NewStorageAccountID(subscriptionId string, resourceGroupName string, accountName string, storageAccountName string) StorageAccountId

NewStorageAccountID returns a new StorageAccountId struct

func ParseStorageAccountID

func ParseStorageAccountID(input string) (*StorageAccountId, error)

ParseStorageAccountID parses 'input' into a StorageAccountId

func ParseStorageAccountIDInsensitively

func ParseStorageAccountIDInsensitively(input string) (*StorageAccountId, error)

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

func (StorageAccountId) ID

func (id StorageAccountId) ID() string

ID returns the formatted Storage Account ID

func (StorageAccountId) Segments

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

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

func (StorageAccountId) String

func (id StorageAccountId) String() string

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

type StorageAccountInformation

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

type StorageAccountInformationOperationPredicate

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

func (StorageAccountInformationOperationPredicate) Matches

type StorageAccountInformationProperties

type StorageAccountInformationProperties struct {
	Suffix *string `json:"suffix,omitempty"`
}

type StorageAccountsClient

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

func NewStorageAccountsClientWithBaseURI

func NewStorageAccountsClientWithBaseURI(endpoint string) StorageAccountsClient

func (StorageAccountsClient) Add

Add ...

func (StorageAccountsClient) Delete

Delete ...

func (StorageAccountsClient) Get

Get ...

func (StorageAccountsClient) GetStorageContainer

func (c StorageAccountsClient) GetStorageContainer(ctx context.Context, id ContainerId) (result GetStorageContainerOperationResponse, err error)

GetStorageContainer ...

func (StorageAccountsClient) ListByAccount

ListByAccount ...

func (StorageAccountsClient) ListByAccountComplete

ListByAccountComplete retrieves all of the results into a single object

func (StorageAccountsClient) ListByAccountCompleteMatchingPredicate

ListByAccountCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (StorageAccountsClient) ListSasTokens

ListSasTokens ...

func (StorageAccountsClient) ListSasTokensComplete

ListSasTokensComplete retrieves all of the results into a single object

func (StorageAccountsClient) ListSasTokensCompleteMatchingPredicate

func (c StorageAccountsClient) ListSasTokensCompleteMatchingPredicate(ctx context.Context, id ContainerId, predicate SasTokenInformationOperationPredicate) (resp ListSasTokensCompleteResult, err error)

ListSasTokensCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (StorageAccountsClient) ListStorageContainers

ListStorageContainers ...

func (StorageAccountsClient) ListStorageContainersComplete

ListStorageContainersComplete retrieves all of the results into a single object

func (StorageAccountsClient) ListStorageContainersCompleteMatchingPredicate

func (c StorageAccountsClient) ListStorageContainersCompleteMatchingPredicate(ctx context.Context, id StorageAccountId, predicate StorageContainerOperationPredicate) (resp ListStorageContainersCompleteResult, err error)

ListStorageContainersCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (StorageAccountsClient) Update

Update ...

type StorageContainer

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

type StorageContainerOperationPredicate

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

func (StorageContainerOperationPredicate) Matches

type StorageContainerProperties

type StorageContainerProperties struct {
	LastModifiedTime *string `json:"lastModifiedTime,omitempty"`
}

func (*StorageContainerProperties) GetLastModifiedTimeAsTime

func (o *StorageContainerProperties) GetLastModifiedTimeAsTime() (*time.Time, error)

func (*StorageContainerProperties) SetLastModifiedTimeAsTime

func (o *StorageContainerProperties) SetLastModifiedTimeAsTime(input time.Time)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
}

type UpdateStorageAccountParameters

type UpdateStorageAccountParameters struct {
	Properties *UpdateStorageAccountProperties `json:"properties,omitempty"`
}

type UpdateStorageAccountProperties

type UpdateStorageAccountProperties struct {
	AccessKey *string `json:"accessKey,omitempty"`
	Suffix    *string `json:"suffix,omitempty"`
}

Jump to

Keyboard shortcuts

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