storageaccounts

package
v0.20240923.1142107 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts Documentation

The storageaccounts SDK allows for interaction with Azure Resource Manager storage (API Version 2023-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2023-05-01/storageaccounts"

Client Initialization

client := storageaccounts.NewStorageAccountsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StorageAccountsClient.AbortHierarchicalNamespaceMigration

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

if err := client.AbortHierarchicalNamespaceMigrationThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StorageAccountsClient.CheckNameAvailability

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

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


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

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

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


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StorageAccountsClient.Delete

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

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.Failover

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

if err := client.FailoverThenPoll(ctx, id, storageaccounts.DefaultFailoverOperationOptions()); err != nil {
	// handle the error
}

Example Usage: StorageAccountsClient.GetProperties

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

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

Example Usage: StorageAccountsClient.HierarchicalNamespaceMigration

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

if err := client.HierarchicalNamespaceMigrationThenPoll(ctx, id, storageaccounts.DefaultHierarchicalNamespaceMigrationOperationOptions()); err != nil {
	// handle the error
}

Example Usage: StorageAccountsClient.List

ctx := context.TODO()
id := commonids.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
}

Example Usage: StorageAccountsClient.ListAccountSAS

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

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


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

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

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

Example Usage: StorageAccountsClient.ListKeys

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

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

Example Usage: StorageAccountsClient.ListServiceSAS

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

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


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

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

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


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

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

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


if err := client.RestoreBlobRangesThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StorageAccountsClient.RevokeUserDelegationKeys

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

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

Example Usage: StorageAccountsClient.Update

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

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


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 PossibleValuesForAccessTier

func PossibleValuesForAccessTier() []string

func PossibleValuesForAccountImmutabilityPolicyState

func PossibleValuesForAccountImmutabilityPolicyState() []string

func PossibleValuesForAccountStatus

func PossibleValuesForAccountStatus() []string

func PossibleValuesForAccountType

func PossibleValuesForAccountType() []string

func PossibleValuesForAction

func PossibleValuesForAction() []string

func PossibleValuesForAllowedCopyScope

func PossibleValuesForAllowedCopyScope() []string

func PossibleValuesForBlobRestoreProgressStatus

func PossibleValuesForBlobRestoreProgressStatus() []string

func PossibleValuesForBypass

func PossibleValuesForBypass() []string

func PossibleValuesForDefaultAction

func PossibleValuesForDefaultAction() []string

func PossibleValuesForDefaultSharePermission

func PossibleValuesForDefaultSharePermission() []string

func PossibleValuesForDirectoryServiceOptions

func PossibleValuesForDirectoryServiceOptions() []string

func PossibleValuesForDnsEndpointType

func PossibleValuesForDnsEndpointType() []string

func PossibleValuesForExpirationAction

func PossibleValuesForExpirationAction() []string

func PossibleValuesForFailoverType

func PossibleValuesForFailoverType() []string

func PossibleValuesForGeoReplicationStatus

func PossibleValuesForGeoReplicationStatus() []string

func PossibleValuesForHTTPProtocol

func PossibleValuesForHTTPProtocol() []string

func PossibleValuesForKeyPermission

func PossibleValuesForKeyPermission() []string

func PossibleValuesForKeySource

func PossibleValuesForKeySource() []string

func PossibleValuesForKeyType

func PossibleValuesForKeyType() []string

func PossibleValuesForKind

func PossibleValuesForKind() []string

func PossibleValuesForLargeFileSharesState

func PossibleValuesForLargeFileSharesState() []string

func PossibleValuesForListKeyExpand

func PossibleValuesForListKeyExpand() []string

func PossibleValuesForMinimumTlsVersion

func PossibleValuesForMinimumTlsVersion() []string

func PossibleValuesForPermissions

func PossibleValuesForPermissions() []string

func PossibleValuesForPostFailoverRedundancy

func PossibleValuesForPostFailoverRedundancy() []string

func PossibleValuesForPostPlannedFailoverRedundancy

func PossibleValuesForPostPlannedFailoverRedundancy() []string

func PossibleValuesForPrivateEndpointConnectionProvisioningState

func PossibleValuesForPrivateEndpointConnectionProvisioningState() []string

func PossibleValuesForPrivateEndpointServiceConnectionStatus

func PossibleValuesForPrivateEndpointServiceConnectionStatus() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForPublicNetworkAccess

func PossibleValuesForPublicNetworkAccess() []string

func PossibleValuesForReason

func PossibleValuesForReason() []string

func PossibleValuesForRoutingChoice

func PossibleValuesForRoutingChoice() []string

func PossibleValuesForServices

func PossibleValuesForServices() []string

func PossibleValuesForSignedResource

func PossibleValuesForSignedResource() []string

func PossibleValuesForSignedResourceTypes

func PossibleValuesForSignedResourceTypes() []string

func PossibleValuesForSkuConversionStatus

func PossibleValuesForSkuConversionStatus() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

func PossibleValuesForState

func PossibleValuesForState() []string

func PossibleValuesForStorageAccountExpand

func PossibleValuesForStorageAccountExpand() []string

func PossibleValuesForType

func PossibleValuesForType() []string

Types

type AbortHierarchicalNamespaceMigrationOperationResponse

type AbortHierarchicalNamespaceMigrationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type AccessTier

type AccessTier string
const (
	AccessTierCold    AccessTier = "Cold"
	AccessTierCool    AccessTier = "Cool"
	AccessTierHot     AccessTier = "Hot"
	AccessTierPremium AccessTier = "Premium"
)

func (*AccessTier) UnmarshalJSON

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

type AccountImmutabilityPolicyProperties

type AccountImmutabilityPolicyProperties struct {
	AllowProtectedAppendWrites            *bool                           `json:"allowProtectedAppendWrites,omitempty"`
	ImmutabilityPeriodSinceCreationInDays *int64                          `json:"immutabilityPeriodSinceCreationInDays,omitempty"`
	State                                 *AccountImmutabilityPolicyState `json:"state,omitempty"`
}

type AccountImmutabilityPolicyState

type AccountImmutabilityPolicyState string
const (
	AccountImmutabilityPolicyStateDisabled AccountImmutabilityPolicyState = "Disabled"
	AccountImmutabilityPolicyStateLocked   AccountImmutabilityPolicyState = "Locked"
	AccountImmutabilityPolicyStateUnlocked AccountImmutabilityPolicyState = "Unlocked"
)

func (*AccountImmutabilityPolicyState) UnmarshalJSON

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

type AccountSasParameters

type AccountSasParameters struct {
	KeyToSign           *string             `json:"keyToSign,omitempty"`
	SignedExpiry        string              `json:"signedExpiry"`
	SignedIP            *string             `json:"signedIp,omitempty"`
	SignedPermission    Permissions         `json:"signedPermission"`
	SignedProtocol      *HTTPProtocol       `json:"signedProtocol,omitempty"`
	SignedResourceTypes SignedResourceTypes `json:"signedResourceTypes"`
	SignedServices      Services            `json:"signedServices"`
	SignedStart         *string             `json:"signedStart,omitempty"`
}

func (*AccountSasParameters) GetSignedExpiryAsTime

func (o *AccountSasParameters) GetSignedExpiryAsTime() (*time.Time, error)

func (*AccountSasParameters) GetSignedStartAsTime

func (o *AccountSasParameters) GetSignedStartAsTime() (*time.Time, error)

func (*AccountSasParameters) SetSignedExpiryAsTime

func (o *AccountSasParameters) SetSignedExpiryAsTime(input time.Time)

func (*AccountSasParameters) SetSignedStartAsTime

func (o *AccountSasParameters) SetSignedStartAsTime(input time.Time)

type AccountStatus

type AccountStatus string
const (
	AccountStatusAvailable   AccountStatus = "available"
	AccountStatusUnavailable AccountStatus = "unavailable"
)

func (*AccountStatus) UnmarshalJSON

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

type AccountType

type AccountType string
const (
	AccountTypeComputer AccountType = "Computer"
	AccountTypeUser     AccountType = "User"
)

func (*AccountType) UnmarshalJSON

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

type Action

type Action string
const (
	ActionAllow Action = "Allow"
)

func (*Action) UnmarshalJSON

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

type ActiveDirectoryProperties

type ActiveDirectoryProperties struct {
	AccountType       *AccountType `json:"accountType,omitempty"`
	AzureStorageSid   *string      `json:"azureStorageSid,omitempty"`
	DomainGuid        string       `json:"domainGuid"`
	DomainName        string       `json:"domainName"`
	DomainSid         *string      `json:"domainSid,omitempty"`
	ForestName        *string      `json:"forestName,omitempty"`
	NetBiosDomainName *string      `json:"netBiosDomainName,omitempty"`
	SamAccountName    *string      `json:"samAccountName,omitempty"`
}

type AllowedCopyScope

type AllowedCopyScope string
const (
	AllowedCopyScopeAAD         AllowedCopyScope = "AAD"
	AllowedCopyScopePrivateLink AllowedCopyScope = "PrivateLink"
)

func (*AllowedCopyScope) UnmarshalJSON

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

type AzureFilesIdentityBasedAuthentication

type AzureFilesIdentityBasedAuthentication struct {
	ActiveDirectoryProperties *ActiveDirectoryProperties `json:"activeDirectoryProperties,omitempty"`
	DefaultSharePermission    *DefaultSharePermission    `json:"defaultSharePermission,omitempty"`
	DirectoryServiceOptions   DirectoryServiceOptions    `json:"directoryServiceOptions"`
}

type BlobRestoreParameters

type BlobRestoreParameters struct {
	BlobRanges    []BlobRestoreRange `json:"blobRanges"`
	TimeToRestore string             `json:"timeToRestore"`
}

func (*BlobRestoreParameters) GetTimeToRestoreAsTime

func (o *BlobRestoreParameters) GetTimeToRestoreAsTime() (*time.Time, error)

func (*BlobRestoreParameters) SetTimeToRestoreAsTime

func (o *BlobRestoreParameters) SetTimeToRestoreAsTime(input time.Time)

type BlobRestoreProgressStatus

type BlobRestoreProgressStatus string
const (
	BlobRestoreProgressStatusComplete   BlobRestoreProgressStatus = "Complete"
	BlobRestoreProgressStatusFailed     BlobRestoreProgressStatus = "Failed"
	BlobRestoreProgressStatusInProgress BlobRestoreProgressStatus = "InProgress"
)

func (*BlobRestoreProgressStatus) UnmarshalJSON

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

type BlobRestoreRange

type BlobRestoreRange struct {
	EndRange   string `json:"endRange"`
	StartRange string `json:"startRange"`
}

type BlobRestoreStatus

type BlobRestoreStatus struct {
	FailureReason *string                    `json:"failureReason,omitempty"`
	Parameters    *BlobRestoreParameters     `json:"parameters,omitempty"`
	RestoreId     *string                    `json:"restoreId,omitempty"`
	Status        *BlobRestoreProgressStatus `json:"status,omitempty"`
}

type Bypass

type Bypass string
const (
	BypassAzureServices Bypass = "AzureServices"
	BypassLogging       Bypass = "Logging"
	BypassMetrics       Bypass = "Metrics"
	BypassNone          Bypass = "None"
)

func (*Bypass) UnmarshalJSON

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

type CheckNameAvailabilityOperationResponse

type CheckNameAvailabilityOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CheckNameAvailabilityResult
}

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	Message       *string `json:"message,omitempty"`
	NameAvailable *bool   `json:"nameAvailable,omitempty"`
	Reason        *Reason `json:"reason,omitempty"`
}

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StorageAccount
}

type CustomDomain

type CustomDomain struct {
	Name             string `json:"name"`
	UseSubDomainName *bool  `json:"useSubDomainName,omitempty"`
}

type DefaultAction

type DefaultAction string
const (
	DefaultActionAllow DefaultAction = "Allow"
	DefaultActionDeny  DefaultAction = "Deny"
)

func (*DefaultAction) UnmarshalJSON

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

type DefaultSharePermission

type DefaultSharePermission string
const (
	DefaultSharePermissionNone                                       DefaultSharePermission = "None"
	DefaultSharePermissionStorageFileDataSmbShareContributor         DefaultSharePermission = "StorageFileDataSmbShareContributor"
	DefaultSharePermissionStorageFileDataSmbShareElevatedContributor DefaultSharePermission = "StorageFileDataSmbShareElevatedContributor"
	DefaultSharePermissionStorageFileDataSmbShareReader              DefaultSharePermission = "StorageFileDataSmbShareReader"
)

func (*DefaultSharePermission) UnmarshalJSON

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

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type DirectoryServiceOptions

type DirectoryServiceOptions string
const (
	DirectoryServiceOptionsAADDS   DirectoryServiceOptions = "AADDS"
	DirectoryServiceOptionsAADKERB DirectoryServiceOptions = "AADKERB"
	DirectoryServiceOptionsAD      DirectoryServiceOptions = "AD"
	DirectoryServiceOptionsNone    DirectoryServiceOptions = "None"
)

func (*DirectoryServiceOptions) UnmarshalJSON

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

type DnsEndpointType

type DnsEndpointType string
const (
	DnsEndpointTypeAzureDnsZone DnsEndpointType = "AzureDnsZone"
	DnsEndpointTypeStandard     DnsEndpointType = "Standard"
)

func (*DnsEndpointType) UnmarshalJSON

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

type Encryption

type Encryption struct {
	Identity                        *EncryptionIdentity `json:"identity,omitempty"`
	KeySource                       *KeySource          `json:"keySource,omitempty"`
	Keyvaultproperties              *KeyVaultProperties `json:"keyvaultproperties,omitempty"`
	RequireInfrastructureEncryption *bool               `json:"requireInfrastructureEncryption,omitempty"`
	Services                        *EncryptionServices `json:"services,omitempty"`
}

type EncryptionIdentity

type EncryptionIdentity struct {
	FederatedIdentityClientId *string `json:"federatedIdentityClientId,omitempty"`
	UserAssignedIdentity      *string `json:"userAssignedIdentity,omitempty"`
}

type EncryptionService

type EncryptionService struct {
	Enabled         *bool    `json:"enabled,omitempty"`
	KeyType         *KeyType `json:"keyType,omitempty"`
	LastEnabledTime *string  `json:"lastEnabledTime,omitempty"`
}

func (*EncryptionService) GetLastEnabledTimeAsTime

func (o *EncryptionService) GetLastEnabledTimeAsTime() (*time.Time, error)

func (*EncryptionService) SetLastEnabledTimeAsTime

func (o *EncryptionService) SetLastEnabledTimeAsTime(input time.Time)

type EncryptionServices

type EncryptionServices struct {
	Blob  *EncryptionService `json:"blob,omitempty"`
	File  *EncryptionService `json:"file,omitempty"`
	Queue *EncryptionService `json:"queue,omitempty"`
	Table *EncryptionService `json:"table,omitempty"`
}

type Endpoints

type Endpoints struct {
	Blob               *string                           `json:"blob,omitempty"`
	Dfs                *string                           `json:"dfs,omitempty"`
	File               *string                           `json:"file,omitempty"`
	InternetEndpoints  *StorageAccountInternetEndpoints  `json:"internetEndpoints,omitempty"`
	MicrosoftEndpoints *StorageAccountMicrosoftEndpoints `json:"microsoftEndpoints,omitempty"`
	Queue              *string                           `json:"queue,omitempty"`
	Table              *string                           `json:"table,omitempty"`
	Web                *string                           `json:"web,omitempty"`
}

type ExpirationAction

type ExpirationAction string
const (
	ExpirationActionBlock ExpirationAction = "Block"
	ExpirationActionLog   ExpirationAction = "Log"
)

func (*ExpirationAction) UnmarshalJSON

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

type FailoverOperationOptions

type FailoverOperationOptions struct {
	FailoverType *FailoverType
}

func DefaultFailoverOperationOptions

func DefaultFailoverOperationOptions() FailoverOperationOptions

func (FailoverOperationOptions) ToHeaders

func (o FailoverOperationOptions) ToHeaders() *client.Headers

func (FailoverOperationOptions) ToOData

func (o FailoverOperationOptions) ToOData() *odata.Query

func (FailoverOperationOptions) ToQuery

type FailoverOperationResponse

type FailoverOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type FailoverType

type FailoverType string
const (
	FailoverTypePlanned FailoverType = "Planned"
)

func (*FailoverType) UnmarshalJSON

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

type GeoReplicationStats

type GeoReplicationStats struct {
	CanFailover                   *bool                          `json:"canFailover,omitempty"`
	CanPlannedFailover            *bool                          `json:"canPlannedFailover,omitempty"`
	LastSyncTime                  *string                        `json:"lastSyncTime,omitempty"`
	PostFailoverRedundancy        *PostFailoverRedundancy        `json:"postFailoverRedundancy,omitempty"`
	PostPlannedFailoverRedundancy *PostPlannedFailoverRedundancy `json:"postPlannedFailoverRedundancy,omitempty"`
	Status                        *GeoReplicationStatus          `json:"status,omitempty"`
}

func (*GeoReplicationStats) GetLastSyncTimeAsTime

func (o *GeoReplicationStats) GetLastSyncTimeAsTime() (*time.Time, error)

func (*GeoReplicationStats) SetLastSyncTimeAsTime

func (o *GeoReplicationStats) SetLastSyncTimeAsTime(input time.Time)

type GeoReplicationStatus

type GeoReplicationStatus string
const (
	GeoReplicationStatusBootstrap   GeoReplicationStatus = "Bootstrap"
	GeoReplicationStatusLive        GeoReplicationStatus = "Live"
	GeoReplicationStatusUnavailable GeoReplicationStatus = "Unavailable"
)

func (*GeoReplicationStatus) UnmarshalJSON

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

type GetPropertiesOperationOptions

type GetPropertiesOperationOptions struct {
	Expand *StorageAccountExpand
}

func DefaultGetPropertiesOperationOptions

func DefaultGetPropertiesOperationOptions() GetPropertiesOperationOptions

func (GetPropertiesOperationOptions) ToHeaders

func (GetPropertiesOperationOptions) ToOData

func (GetPropertiesOperationOptions) ToQuery

type GetPropertiesOperationResponse

type GetPropertiesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StorageAccount
}

type HTTPProtocol

type HTTPProtocol string
const (
	HTTPProtocolHTTPS     HTTPProtocol = "https"
	HTTPProtocolHTTPSHttp HTTPProtocol = "https,http"
)

func (*HTTPProtocol) UnmarshalJSON

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

type HierarchicalNamespaceMigrationOperationOptions

type HierarchicalNamespaceMigrationOperationOptions struct {
	RequestType *string
}

func DefaultHierarchicalNamespaceMigrationOperationOptions

func DefaultHierarchicalNamespaceMigrationOperationOptions() HierarchicalNamespaceMigrationOperationOptions

func (HierarchicalNamespaceMigrationOperationOptions) ToHeaders

func (HierarchicalNamespaceMigrationOperationOptions) ToOData

func (HierarchicalNamespaceMigrationOperationOptions) ToQuery

type HierarchicalNamespaceMigrationOperationResponse

type HierarchicalNamespaceMigrationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type IPRule

type IPRule struct {
	Action *Action `json:"action,omitempty"`
	Value  string  `json:"value"`
}

type ImmutableStorageAccount

type ImmutableStorageAccount struct {
	Enabled            *bool                                `json:"enabled,omitempty"`
	ImmutabilityPolicy *AccountImmutabilityPolicyProperties `json:"immutabilityPolicy,omitempty"`
}

type KeyCreationTime

type KeyCreationTime struct {
	Key1 *string `json:"key1,omitempty"`
	Key2 *string `json:"key2,omitempty"`
}

func (*KeyCreationTime) GetKey1AsTime

func (o *KeyCreationTime) GetKey1AsTime() (*time.Time, error)

func (*KeyCreationTime) GetKey2AsTime

func (o *KeyCreationTime) GetKey2AsTime() (*time.Time, error)

func (*KeyCreationTime) SetKey1AsTime

func (o *KeyCreationTime) SetKey1AsTime(input time.Time)

func (*KeyCreationTime) SetKey2AsTime

func (o *KeyCreationTime) SetKey2AsTime(input time.Time)

type KeyPermission

type KeyPermission string
const (
	KeyPermissionFull KeyPermission = "Full"
	KeyPermissionRead KeyPermission = "Read"
)

func (*KeyPermission) UnmarshalJSON

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

type KeyPolicy

type KeyPolicy struct {
	KeyExpirationPeriodInDays int64 `json:"keyExpirationPeriodInDays"`
}

type KeySource

type KeySource string
const (
	KeySourceMicrosoftPointKeyvault KeySource = "Microsoft.Keyvault"
	KeySourceMicrosoftPointStorage  KeySource = "Microsoft.Storage"
)

func (*KeySource) UnmarshalJSON

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

type KeyType

type KeyType string
const (
	KeyTypeAccount KeyType = "Account"
	KeyTypeService KeyType = "Service"
)

func (*KeyType) UnmarshalJSON

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

type KeyVaultProperties

type KeyVaultProperties struct {
	CurrentVersionedKeyExpirationTimestamp *string `json:"currentVersionedKeyExpirationTimestamp,omitempty"`
	CurrentVersionedKeyIdentifier          *string `json:"currentVersionedKeyIdentifier,omitempty"`
	Keyname                                *string `json:"keyname,omitempty"`
	Keyvaulturi                            *string `json:"keyvaulturi,omitempty"`
	Keyversion                             *string `json:"keyversion,omitempty"`
	LastKeyRotationTimestamp               *string `json:"lastKeyRotationTimestamp,omitempty"`
}

func (*KeyVaultProperties) GetCurrentVersionedKeyExpirationTimestampAsTime

func (o *KeyVaultProperties) GetCurrentVersionedKeyExpirationTimestampAsTime() (*time.Time, error)

func (*KeyVaultProperties) GetLastKeyRotationTimestampAsTime

func (o *KeyVaultProperties) GetLastKeyRotationTimestampAsTime() (*time.Time, error)

func (*KeyVaultProperties) SetCurrentVersionedKeyExpirationTimestampAsTime

func (o *KeyVaultProperties) SetCurrentVersionedKeyExpirationTimestampAsTime(input time.Time)

func (*KeyVaultProperties) SetLastKeyRotationTimestampAsTime

func (o *KeyVaultProperties) SetLastKeyRotationTimestampAsTime(input time.Time)

type Kind

type Kind string
const (
	KindBlobStorage      Kind = "BlobStorage"
	KindBlockBlobStorage Kind = "BlockBlobStorage"
	KindFileStorage      Kind = "FileStorage"
	KindStorage          Kind = "Storage"
	KindStorageVTwo      Kind = "StorageV2"
)

func (*Kind) UnmarshalJSON

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

type LargeFileSharesState

type LargeFileSharesState string
const (
	LargeFileSharesStateDisabled LargeFileSharesState = "Disabled"
	LargeFileSharesStateEnabled  LargeFileSharesState = "Enabled"
)

func (*LargeFileSharesState) UnmarshalJSON

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

type ListAccountSASOperationResponse

type ListAccountSASOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListAccountSasResponse
}

type ListAccountSasResponse

type ListAccountSasResponse struct {
	AccountSasToken *string `json:"accountSasToken,omitempty"`
}

type ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []StorageAccount
}

type ListByResourceGroupCustomPager added in v0.20240628.1153531

type ListByResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]StorageAccount
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []StorageAccount
}

type ListCustomPager added in v0.20240628.1153531

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

type ListKeyExpand

type ListKeyExpand string
const (
	ListKeyExpandKerb ListKeyExpand = "kerb"
)

func (*ListKeyExpand) UnmarshalJSON

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

type ListKeysOperationOptions

type ListKeysOperationOptions struct {
	Expand *ListKeyExpand
}

func DefaultListKeysOperationOptions

func DefaultListKeysOperationOptions() ListKeysOperationOptions

func (ListKeysOperationOptions) ToHeaders

func (o ListKeysOperationOptions) ToHeaders() *client.Headers

func (ListKeysOperationOptions) ToOData

func (o ListKeysOperationOptions) ToOData() *odata.Query

func (ListKeysOperationOptions) ToQuery

type ListKeysOperationResponse

type ListKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StorageAccountListKeysResult
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]StorageAccount
}

type ListServiceSASOperationResponse

type ListServiceSASOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ListServiceSasResponse
}

type ListServiceSasResponse

type ListServiceSasResponse struct {
	ServiceSasToken *string `json:"serviceSasToken,omitempty"`
}

type MinimumTlsVersion

type MinimumTlsVersion string
const (
	MinimumTlsVersionTLSOneOne   MinimumTlsVersion = "TLS1_1"
	MinimumTlsVersionTLSOneThree MinimumTlsVersion = "TLS1_3"
	MinimumTlsVersionTLSOneTwo   MinimumTlsVersion = "TLS1_2"
	MinimumTlsVersionTLSOneZero  MinimumTlsVersion = "TLS1_0"
)

func (*MinimumTlsVersion) UnmarshalJSON

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

type NetworkRuleSet

type NetworkRuleSet struct {
	Bypass              *Bypass               `json:"bypass,omitempty"`
	DefaultAction       DefaultAction         `json:"defaultAction"`
	IPRules             *[]IPRule             `json:"ipRules,omitempty"`
	ResourceAccessRules *[]ResourceAccessRule `json:"resourceAccessRules,omitempty"`
	VirtualNetworkRules *[]VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
}

type Permissions

type Permissions string
const (
	PermissionsA Permissions = "a"
	PermissionsC Permissions = "c"
	PermissionsD Permissions = "d"
	PermissionsL Permissions = "l"
	PermissionsP Permissions = "p"
	PermissionsR Permissions = "r"
	PermissionsU Permissions = "u"
	PermissionsW Permissions = "w"
)

func (*Permissions) UnmarshalJSON

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

type PostFailoverRedundancy

type PostFailoverRedundancy string
const (
	PostFailoverRedundancyStandardLRS PostFailoverRedundancy = "Standard_LRS"
	PostFailoverRedundancyStandardZRS PostFailoverRedundancy = "Standard_ZRS"
)

func (*PostFailoverRedundancy) UnmarshalJSON

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

type PostPlannedFailoverRedundancy

type PostPlannedFailoverRedundancy string
const (
	PostPlannedFailoverRedundancyStandardGRS    PostPlannedFailoverRedundancy = "Standard_GRS"
	PostPlannedFailoverRedundancyStandardGZRS   PostPlannedFailoverRedundancy = "Standard_GZRS"
	PostPlannedFailoverRedundancyStandardRAGRS  PostPlannedFailoverRedundancy = "Standard_RAGRS"
	PostPlannedFailoverRedundancyStandardRAGZRS PostPlannedFailoverRedundancy = "Standard_RAGZRS"
)

func (*PostPlannedFailoverRedundancy) UnmarshalJSON

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

type PrivateEndpoint

type PrivateEndpoint struct {
	Id *string `json:"id,omitempty"`
}

type PrivateEndpointConnection

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

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	PrivateEndpoint                   *PrivateEndpoint                            `json:"privateEndpoint,omitempty"`
	PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState           `json:"privateLinkServiceConnectionState"`
	ProvisioningState                 *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"`
}

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string
const (
	PrivateEndpointConnectionProvisioningStateCreating  PrivateEndpointConnectionProvisioningState = "Creating"
	PrivateEndpointConnectionProvisioningStateDeleting  PrivateEndpointConnectionProvisioningState = "Deleting"
	PrivateEndpointConnectionProvisioningStateFailed    PrivateEndpointConnectionProvisioningState = "Failed"
	PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)

func (*PrivateEndpointConnectionProvisioningState) UnmarshalJSON

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

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string
const (
	PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
	PrivateEndpointServiceConnectionStatusPending  PrivateEndpointServiceConnectionStatus = "Pending"
	PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)

func (*PrivateEndpointServiceConnectionStatus) UnmarshalJSON

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

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	ActionRequired *string                                 `json:"actionRequired,omitempty"`
	Description    *string                                 `json:"description,omitempty"`
	Status         *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCreating     ProvisioningState = "Creating"
	ProvisioningStateResolvingDNS ProvisioningState = "ResolvingDNS"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

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

type PublicNetworkAccess

type PublicNetworkAccess string
const (
	PublicNetworkAccessDisabled           PublicNetworkAccess = "Disabled"
	PublicNetworkAccessEnabled            PublicNetworkAccess = "Enabled"
	PublicNetworkAccessSecuredByPerimeter PublicNetworkAccess = "SecuredByPerimeter"
)

func (*PublicNetworkAccess) UnmarshalJSON

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

type Reason

type Reason string
const (
	ReasonAccountNameInvalid Reason = "AccountNameInvalid"
	ReasonAlreadyExists      Reason = "AlreadyExists"
)

func (*Reason) UnmarshalJSON

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

type RegenerateKeyOperationResponse

type RegenerateKeyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StorageAccountListKeysResult
}

type ResourceAccessRule

type ResourceAccessRule struct {
	ResourceId *string `json:"resourceId,omitempty"`
	TenantId   *string `json:"tenantId,omitempty"`
}

type RestoreBlobRangesOperationResponse

type RestoreBlobRangesOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *BlobRestoreStatus
}

type RevokeUserDelegationKeysOperationResponse

type RevokeUserDelegationKeysOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type RoutingChoice

type RoutingChoice string
const (
	RoutingChoiceInternetRouting  RoutingChoice = "InternetRouting"
	RoutingChoiceMicrosoftRouting RoutingChoice = "MicrosoftRouting"
)

func (*RoutingChoice) UnmarshalJSON

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

type RoutingPreference

type RoutingPreference struct {
	PublishInternetEndpoints  *bool          `json:"publishInternetEndpoints,omitempty"`
	PublishMicrosoftEndpoints *bool          `json:"publishMicrosoftEndpoints,omitempty"`
	RoutingChoice             *RoutingChoice `json:"routingChoice,omitempty"`
}

type SasPolicy

type SasPolicy struct {
	ExpirationAction    ExpirationAction `json:"expirationAction"`
	SasExpirationPeriod string           `json:"sasExpirationPeriod"`
}

type ServiceSasParameters

type ServiceSasParameters struct {
	CanonicalizedResource string          `json:"canonicalizedResource"`
	EndPk                 *string         `json:"endPk,omitempty"`
	EndRk                 *string         `json:"endRk,omitempty"`
	KeyToSign             *string         `json:"keyToSign,omitempty"`
	Rscc                  *string         `json:"rscc,omitempty"`
	Rscd                  *string         `json:"rscd,omitempty"`
	Rsce                  *string         `json:"rsce,omitempty"`
	Rscl                  *string         `json:"rscl,omitempty"`
	Rsct                  *string         `json:"rsct,omitempty"`
	SignedExpiry          *string         `json:"signedExpiry,omitempty"`
	SignedIP              *string         `json:"signedIp,omitempty"`
	SignedIdentifier      *string         `json:"signedIdentifier,omitempty"`
	SignedPermission      *Permissions    `json:"signedPermission,omitempty"`
	SignedProtocol        *HTTPProtocol   `json:"signedProtocol,omitempty"`
	SignedResource        *SignedResource `json:"signedResource,omitempty"`
	SignedStart           *string         `json:"signedStart,omitempty"`
	StartPk               *string         `json:"startPk,omitempty"`
	StartRk               *string         `json:"startRk,omitempty"`
}

func (*ServiceSasParameters) GetSignedExpiryAsTime

func (o *ServiceSasParameters) GetSignedExpiryAsTime() (*time.Time, error)

func (*ServiceSasParameters) GetSignedStartAsTime

func (o *ServiceSasParameters) GetSignedStartAsTime() (*time.Time, error)

func (*ServiceSasParameters) SetSignedExpiryAsTime

func (o *ServiceSasParameters) SetSignedExpiryAsTime(input time.Time)

func (*ServiceSasParameters) SetSignedStartAsTime

func (o *ServiceSasParameters) SetSignedStartAsTime(input time.Time)

type Services

type Services string
const (
	ServicesB Services = "b"
	ServicesF Services = "f"
	ServicesQ Services = "q"
	ServicesT Services = "t"
)

func (*Services) UnmarshalJSON

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

type SignedResource

type SignedResource string
const (
	SignedResourceB SignedResource = "b"
	SignedResourceC SignedResource = "c"
	SignedResourceF SignedResource = "f"
	SignedResourceS SignedResource = "s"
)

func (*SignedResource) UnmarshalJSON

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

type SignedResourceTypes

type SignedResourceTypes string
const (
	SignedResourceTypesC SignedResourceTypes = "c"
	SignedResourceTypesO SignedResourceTypes = "o"
	SignedResourceTypesS SignedResourceTypes = "s"
)

func (*SignedResourceTypes) UnmarshalJSON

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

type Sku

type Sku struct {
	Name SkuName  `json:"name"`
	Tier *SkuTier `json:"tier,omitempty"`
}

type SkuConversionStatus

type SkuConversionStatus string
const (
	SkuConversionStatusFailed     SkuConversionStatus = "Failed"
	SkuConversionStatusInProgress SkuConversionStatus = "InProgress"
	SkuConversionStatusSucceeded  SkuConversionStatus = "Succeeded"
)

func (*SkuConversionStatus) UnmarshalJSON

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

type SkuName

type SkuName string
const (
	SkuNamePremiumLRS     SkuName = "Premium_LRS"
	SkuNamePremiumZRS     SkuName = "Premium_ZRS"
	SkuNameStandardGRS    SkuName = "Standard_GRS"
	SkuNameStandardGZRS   SkuName = "Standard_GZRS"
	SkuNameStandardLRS    SkuName = "Standard_LRS"
	SkuNameStandardRAGRS  SkuName = "Standard_RAGRS"
	SkuNameStandardRAGZRS SkuName = "Standard_RAGZRS"
	SkuNameStandardZRS    SkuName = "Standard_ZRS"
)

func (*SkuName) UnmarshalJSON

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

type SkuTier

type SkuTier string
const (
	SkuTierPremium  SkuTier = "Premium"
	SkuTierStandard SkuTier = "Standard"
)

func (*SkuTier) UnmarshalJSON

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

type State

type State string
const (
	StateDeprovisioning       State = "Deprovisioning"
	StateFailed               State = "Failed"
	StateNetworkSourceDeleted State = "NetworkSourceDeleted"
	StateProvisioning         State = "Provisioning"
	StateSucceeded            State = "Succeeded"
)

func (*State) UnmarshalJSON

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

type StorageAccount

type StorageAccount struct {
	ExtendedLocation *edgezones.Model                         `json:"extendedLocation,omitempty"`
	Id               *string                                  `json:"id,omitempty"`
	Identity         *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"`
	Kind             *Kind                                    `json:"kind,omitempty"`
	Location         string                                   `json:"location"`
	Name             *string                                  `json:"name,omitempty"`
	Properties       *StorageAccountProperties                `json:"properties,omitempty"`
	Sku              *Sku                                     `json:"sku,omitempty"`
	Tags             *map[string]string                       `json:"tags,omitempty"`
	Type             *string                                  `json:"type,omitempty"`
}

type StorageAccountCheckNameAvailabilityParameters

type StorageAccountCheckNameAvailabilityParameters struct {
	Name string `json:"name"`
	Type Type   `json:"type"`
}

type StorageAccountCreateParameters

type StorageAccountCreateParameters struct {
	ExtendedLocation *edgezones.Model                          `json:"extendedLocation,omitempty"`
	Identity         *identity.LegacySystemAndUserAssignedMap  `json:"identity,omitempty"`
	Kind             Kind                                      `json:"kind"`
	Location         string                                    `json:"location"`
	Properties       *StorageAccountPropertiesCreateParameters `json:"properties,omitempty"`
	Sku              Sku                                       `json:"sku"`
	Tags             *map[string]string                        `json:"tags,omitempty"`
}

type StorageAccountExpand

type StorageAccountExpand string
const (
	StorageAccountExpandBlobRestoreStatus   StorageAccountExpand = "blobRestoreStatus"
	StorageAccountExpandGeoReplicationStats StorageAccountExpand = "geoReplicationStats"
)

func (*StorageAccountExpand) UnmarshalJSON

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

type StorageAccountInternetEndpoints

type StorageAccountInternetEndpoints struct {
	Blob *string `json:"blob,omitempty"`
	Dfs  *string `json:"dfs,omitempty"`
	File *string `json:"file,omitempty"`
	Web  *string `json:"web,omitempty"`
}

type StorageAccountKey

type StorageAccountKey struct {
	CreationTime *string        `json:"creationTime,omitempty"`
	KeyName      *string        `json:"keyName,omitempty"`
	Permissions  *KeyPermission `json:"permissions,omitempty"`
	Value        *string        `json:"value,omitempty"`
}

func (*StorageAccountKey) GetCreationTimeAsTime

func (o *StorageAccountKey) GetCreationTimeAsTime() (*time.Time, error)

func (*StorageAccountKey) SetCreationTimeAsTime

func (o *StorageAccountKey) SetCreationTimeAsTime(input time.Time)

type StorageAccountListKeysResult

type StorageAccountListKeysResult struct {
	Keys *[]StorageAccountKey `json:"keys,omitempty"`
}

type StorageAccountMicrosoftEndpoints

type StorageAccountMicrosoftEndpoints struct {
	Blob  *string `json:"blob,omitempty"`
	Dfs   *string `json:"dfs,omitempty"`
	File  *string `json:"file,omitempty"`
	Queue *string `json:"queue,omitempty"`
	Table *string `json:"table,omitempty"`
	Web   *string `json:"web,omitempty"`
}

type StorageAccountOperationPredicate

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

func (StorageAccountOperationPredicate) Matches

type StorageAccountProperties

type StorageAccountProperties struct {
	AccessTier                            *AccessTier                            `json:"accessTier,omitempty"`
	AccountMigrationInProgress            *bool                                  `json:"accountMigrationInProgress,omitempty"`
	AllowBlobPublicAccess                 *bool                                  `json:"allowBlobPublicAccess,omitempty"`
	AllowCrossTenantReplication           *bool                                  `json:"allowCrossTenantReplication,omitempty"`
	AllowSharedKeyAccess                  *bool                                  `json:"allowSharedKeyAccess,omitempty"`
	AllowedCopyScope                      *AllowedCopyScope                      `json:"allowedCopyScope,omitempty"`
	AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"`
	BlobRestoreStatus                     *BlobRestoreStatus                     `json:"blobRestoreStatus,omitempty"`
	CreationTime                          *string                                `json:"creationTime,omitempty"`
	CustomDomain                          *CustomDomain                          `json:"customDomain,omitempty"`
	DefaultToOAuthAuthentication          *bool                                  `json:"defaultToOAuthAuthentication,omitempty"`
	DnsEndpointType                       *DnsEndpointType                       `json:"dnsEndpointType,omitempty"`
	EnableExtendedGroups                  *bool                                  `json:"enableExtendedGroups,omitempty"`
	Encryption                            *Encryption                            `json:"encryption,omitempty"`
	FailoverInProgress                    *bool                                  `json:"failoverInProgress,omitempty"`
	GeoReplicationStats                   *GeoReplicationStats                   `json:"geoReplicationStats,omitempty"`
	ImmutableStorageWithVersioning        *ImmutableStorageAccount               `json:"immutableStorageWithVersioning,omitempty"`
	IsHnsEnabled                          *bool                                  `json:"isHnsEnabled,omitempty"`
	IsLocalUserEnabled                    *bool                                  `json:"isLocalUserEnabled,omitempty"`
	IsNfsV3Enabled                        *bool                                  `json:"isNfsV3Enabled,omitempty"`
	IsSftpEnabled                         *bool                                  `json:"isSftpEnabled,omitempty"`
	IsSkuConversionBlocked                *bool                                  `json:"isSkuConversionBlocked,omitempty"`
	KeyCreationTime                       *KeyCreationTime                       `json:"keyCreationTime,omitempty"`
	KeyPolicy                             *KeyPolicy                             `json:"keyPolicy,omitempty"`
	LargeFileSharesState                  *LargeFileSharesState                  `json:"largeFileSharesState,omitempty"`
	LastGeoFailoverTime                   *string                                `json:"lastGeoFailoverTime,omitempty"`
	MinimumTlsVersion                     *MinimumTlsVersion                     `json:"minimumTlsVersion,omitempty"`
	NetworkAcls                           *NetworkRuleSet                        `json:"networkAcls,omitempty"`
	PrimaryEndpoints                      *Endpoints                             `json:"primaryEndpoints,omitempty"`
	PrimaryLocation                       *string                                `json:"primaryLocation,omitempty"`
	PrivateEndpointConnections            *[]PrivateEndpointConnection           `json:"privateEndpointConnections,omitempty"`
	ProvisioningState                     *ProvisioningState                     `json:"provisioningState,omitempty"`
	PublicNetworkAccess                   *PublicNetworkAccess                   `json:"publicNetworkAccess,omitempty"`
	RoutingPreference                     *RoutingPreference                     `json:"routingPreference,omitempty"`
	SasPolicy                             *SasPolicy                             `json:"sasPolicy,omitempty"`
	SecondaryEndpoints                    *Endpoints                             `json:"secondaryEndpoints,omitempty"`
	SecondaryLocation                     *string                                `json:"secondaryLocation,omitempty"`
	StatusOfPrimary                       *AccountStatus                         `json:"statusOfPrimary,omitempty"`
	StatusOfSecondary                     *AccountStatus                         `json:"statusOfSecondary,omitempty"`
	StorageAccountSkuConversionStatus     *StorageAccountSkuConversionStatus     `json:"storageAccountSkuConversionStatus,omitempty"`
	SupportsHTTPSTrafficOnly              *bool                                  `json:"supportsHttpsTrafficOnly,omitempty"`
}

func (*StorageAccountProperties) GetCreationTimeAsTime

func (o *StorageAccountProperties) GetCreationTimeAsTime() (*time.Time, error)

func (*StorageAccountProperties) GetLastGeoFailoverTimeAsTime

func (o *StorageAccountProperties) GetLastGeoFailoverTimeAsTime() (*time.Time, error)

func (*StorageAccountProperties) SetCreationTimeAsTime

func (o *StorageAccountProperties) SetCreationTimeAsTime(input time.Time)

func (*StorageAccountProperties) SetLastGeoFailoverTimeAsTime

func (o *StorageAccountProperties) SetLastGeoFailoverTimeAsTime(input time.Time)

type StorageAccountPropertiesCreateParameters

type StorageAccountPropertiesCreateParameters struct {
	AccessTier                            *AccessTier                            `json:"accessTier,omitempty"`
	AllowBlobPublicAccess                 *bool                                  `json:"allowBlobPublicAccess,omitempty"`
	AllowCrossTenantReplication           *bool                                  `json:"allowCrossTenantReplication,omitempty"`
	AllowSharedKeyAccess                  *bool                                  `json:"allowSharedKeyAccess,omitempty"`
	AllowedCopyScope                      *AllowedCopyScope                      `json:"allowedCopyScope,omitempty"`
	AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"`
	CustomDomain                          *CustomDomain                          `json:"customDomain,omitempty"`
	DefaultToOAuthAuthentication          *bool                                  `json:"defaultToOAuthAuthentication,omitempty"`
	DnsEndpointType                       *DnsEndpointType                       `json:"dnsEndpointType,omitempty"`
	EnableExtendedGroups                  *bool                                  `json:"enableExtendedGroups,omitempty"`
	Encryption                            *Encryption                            `json:"encryption,omitempty"`
	ImmutableStorageWithVersioning        *ImmutableStorageAccount               `json:"immutableStorageWithVersioning,omitempty"`
	IsHnsEnabled                          *bool                                  `json:"isHnsEnabled,omitempty"`
	IsLocalUserEnabled                    *bool                                  `json:"isLocalUserEnabled,omitempty"`
	IsNfsV3Enabled                        *bool                                  `json:"isNfsV3Enabled,omitempty"`
	IsSftpEnabled                         *bool                                  `json:"isSftpEnabled,omitempty"`
	KeyPolicy                             *KeyPolicy                             `json:"keyPolicy,omitempty"`
	LargeFileSharesState                  *LargeFileSharesState                  `json:"largeFileSharesState,omitempty"`
	MinimumTlsVersion                     *MinimumTlsVersion                     `json:"minimumTlsVersion,omitempty"`
	NetworkAcls                           *NetworkRuleSet                        `json:"networkAcls,omitempty"`
	PublicNetworkAccess                   *PublicNetworkAccess                   `json:"publicNetworkAccess,omitempty"`
	RoutingPreference                     *RoutingPreference                     `json:"routingPreference,omitempty"`
	SasPolicy                             *SasPolicy                             `json:"sasPolicy,omitempty"`
	SupportsHTTPSTrafficOnly              *bool                                  `json:"supportsHttpsTrafficOnly,omitempty"`
}

type StorageAccountPropertiesUpdateParameters

type StorageAccountPropertiesUpdateParameters struct {
	AccessTier                            *AccessTier                            `json:"accessTier,omitempty"`
	AllowBlobPublicAccess                 *bool                                  `json:"allowBlobPublicAccess,omitempty"`
	AllowCrossTenantReplication           *bool                                  `json:"allowCrossTenantReplication,omitempty"`
	AllowSharedKeyAccess                  *bool                                  `json:"allowSharedKeyAccess,omitempty"`
	AllowedCopyScope                      *AllowedCopyScope                      `json:"allowedCopyScope,omitempty"`
	AzureFilesIdentityBasedAuthentication *AzureFilesIdentityBasedAuthentication `json:"azureFilesIdentityBasedAuthentication,omitempty"`
	CustomDomain                          *CustomDomain                          `json:"customDomain,omitempty"`
	DefaultToOAuthAuthentication          *bool                                  `json:"defaultToOAuthAuthentication,omitempty"`
	DnsEndpointType                       *DnsEndpointType                       `json:"dnsEndpointType,omitempty"`
	EnableExtendedGroups                  *bool                                  `json:"enableExtendedGroups,omitempty"`
	Encryption                            *Encryption                            `json:"encryption,omitempty"`
	ImmutableStorageWithVersioning        *ImmutableStorageAccount               `json:"immutableStorageWithVersioning,omitempty"`
	IsLocalUserEnabled                    *bool                                  `json:"isLocalUserEnabled,omitempty"`
	IsSftpEnabled                         *bool                                  `json:"isSftpEnabled,omitempty"`
	KeyPolicy                             *KeyPolicy                             `json:"keyPolicy,omitempty"`
	LargeFileSharesState                  *LargeFileSharesState                  `json:"largeFileSharesState,omitempty"`
	MinimumTlsVersion                     *MinimumTlsVersion                     `json:"minimumTlsVersion,omitempty"`
	NetworkAcls                           *NetworkRuleSet                        `json:"networkAcls,omitempty"`
	PublicNetworkAccess                   *PublicNetworkAccess                   `json:"publicNetworkAccess,omitempty"`
	RoutingPreference                     *RoutingPreference                     `json:"routingPreference,omitempty"`
	SasPolicy                             *SasPolicy                             `json:"sasPolicy,omitempty"`
	SupportsHTTPSTrafficOnly              *bool                                  `json:"supportsHttpsTrafficOnly,omitempty"`
}

type StorageAccountRegenerateKeyParameters

type StorageAccountRegenerateKeyParameters struct {
	KeyName string `json:"keyName"`
}

type StorageAccountSkuConversionStatus

type StorageAccountSkuConversionStatus struct {
	EndTime             *string              `json:"endTime,omitempty"`
	SkuConversionStatus *SkuConversionStatus `json:"skuConversionStatus,omitempty"`
	StartTime           *string              `json:"startTime,omitempty"`
	TargetSkuName       *SkuName             `json:"targetSkuName,omitempty"`
}

type StorageAccountUpdateParameters

type StorageAccountUpdateParameters struct {
	Identity   *identity.LegacySystemAndUserAssignedMap  `json:"identity,omitempty"`
	Kind       *Kind                                     `json:"kind,omitempty"`
	Properties *StorageAccountPropertiesUpdateParameters `json:"properties,omitempty"`
	Sku        *Sku                                      `json:"sku,omitempty"`
	Tags       *map[string]string                        `json:"tags,omitempty"`
}

type StorageAccountsClient

type StorageAccountsClient struct {
	Client *resourcemanager.Client
}

func NewStorageAccountsClientWithBaseURI

func NewStorageAccountsClientWithBaseURI(sdkApi sdkEnv.Api) (*StorageAccountsClient, error)

func (StorageAccountsClient) AbortHierarchicalNamespaceMigration

AbortHierarchicalNamespaceMigration ...

func (StorageAccountsClient) AbortHierarchicalNamespaceMigrationThenPoll

func (c StorageAccountsClient) AbortHierarchicalNamespaceMigrationThenPoll(ctx context.Context, id commonids.StorageAccountId) error

AbortHierarchicalNamespaceMigrationThenPoll performs AbortHierarchicalNamespaceMigration then polls until it's completed

func (StorageAccountsClient) CheckNameAvailability

CheckNameAvailability ...

func (StorageAccountsClient) Create

Create ...

func (StorageAccountsClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (StorageAccountsClient) Delete

Delete ...

func (StorageAccountsClient) Failover

Failover ...

func (StorageAccountsClient) FailoverThenPoll

FailoverThenPoll performs Failover then polls until it's completed

func (StorageAccountsClient) GetProperties

GetProperties ...

func (StorageAccountsClient) HierarchicalNamespaceMigration

HierarchicalNamespaceMigration ...

func (StorageAccountsClient) HierarchicalNamespaceMigrationThenPoll

func (c StorageAccountsClient) HierarchicalNamespaceMigrationThenPoll(ctx context.Context, id commonids.StorageAccountId, options HierarchicalNamespaceMigrationOperationOptions) error

HierarchicalNamespaceMigrationThenPoll performs HierarchicalNamespaceMigration then polls until it's completed

func (StorageAccountsClient) List

List ...

func (StorageAccountsClient) ListAccountSAS

ListAccountSAS ...

func (StorageAccountsClient) ListByResourceGroup

ListByResourceGroup ...

func (StorageAccountsClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (StorageAccountsClient) ListByResourceGroupCompleteMatchingPredicate

func (c StorageAccountsClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate StorageAccountOperationPredicate) (result ListByResourceGroupCompleteResult, err error)

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (StorageAccountsClient) ListComplete

ListComplete retrieves all the results into a single object

func (StorageAccountsClient) ListCompleteMatchingPredicate

func (c StorageAccountsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate StorageAccountOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (StorageAccountsClient) ListKeys

ListKeys ...

func (StorageAccountsClient) ListServiceSAS

ListServiceSAS ...

func (StorageAccountsClient) RegenerateKey

RegenerateKey ...

func (StorageAccountsClient) RestoreBlobRanges

RestoreBlobRanges ...

func (StorageAccountsClient) RestoreBlobRangesThenPoll

func (c StorageAccountsClient) RestoreBlobRangesThenPoll(ctx context.Context, id commonids.StorageAccountId, input BlobRestoreParameters) error

RestoreBlobRangesThenPoll performs RestoreBlobRanges then polls until it's completed

func (StorageAccountsClient) RevokeUserDelegationKeys

RevokeUserDelegationKeys ...

func (StorageAccountsClient) Update

Update ...

type Type

type Type string
const (
	TypeMicrosoftPointStorageStorageAccounts Type = "Microsoft.Storage/storageAccounts"
)

func (*Type) UnmarshalJSON

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *StorageAccount
}

type VirtualNetworkRule

type VirtualNetworkRule struct {
	Action *Action `json:"action,omitempty"`
	Id     string  `json:"id"`
	State  *State  `json:"state,omitempty"`
}

Source Files

Jump to

Keyboard shortcuts

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