armstorage

package module
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 12 Imported by: 0

README

Azure Storage Module for Go

PkgGoDev

The armstorage module provides operations for working with Azure storage resources.

Source code

Getting started

Prerequisites

Install the module

This project uses Go modules for versioning and dependency management.

Install the Azure Storage module:

go get github.com/Azure/azure-sdk-for-go/sdk/storage/armstorage

Authorization

When creating a client, you will need to provide a credential for authenticating with Azure Storage. The azidentity module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more.

cred, err := azidentity.NewDefaultAzureCredential(nil)

For more information on authentication, please see the documentation for azidentity at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity.

Connecting to Azure Storage

Once you have a credential, create a connection to the desired ARM endpoint. The armcore module provides facilities for connecting with ARM endpoints including public and sovereign clouds as well as Azure Stack.

con := armcore.NewDefaultConnection(cred, nil)

For more information on ARM connections, please see the documentation for armcore at pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/armcore.

Clients

Azure Storage modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your armcore.Connection.

client := armstorage.NewBlobContainersClient(con, "<subscription ID>")

Provide Feedback

If you encounter bugs or have suggestions, please open an issue and assign the Storage label.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessPolicy

type AccessPolicy struct {
	// Expiry time of the access policy
	Expiry *time.Time `json:"expiry,omitempty"`

	// List of abbreviated permissions.
	Permission *string `json:"permission,omitempty"`

	// Start time of the access policy
	Start *time.Time `json:"start,omitempty"`
}

func (AccessPolicy) MarshalJSON

func (a AccessPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccessPolicy.

func (*AccessPolicy) UnmarshalJSON

func (a *AccessPolicy) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccessPolicy.

type AccessTier

type AccessTier string

AccessTier - Required for storage accounts where kind = BlobStorage. The access tier used for billing.

const (
	AccessTierHot  AccessTier = "Hot"
	AccessTierCool AccessTier = "Cool"
)

func PossibleAccessTierValues

func PossibleAccessTierValues() []AccessTier

PossibleAccessTierValues returns the possible values for the AccessTier const type.

func (AccessTier) ToPtr

func (c AccessTier) ToPtr() *AccessTier

ToPtr returns a *AccessTier pointing to the current value.

type AccountSasParameters

type AccountSasParameters struct {
	// REQUIRED; The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update
	// (u) and Process (p).
	Permissions *Permissions `json:"signedPermission,omitempty"`

	// REQUIRED; The signed resource types that are accessible with the account SAS. Service (s): Access to service-level APIs; Container (c): Access to container-level
	// APIs; Object (o): Access to object-level APIs
	// for blobs, queue messages, table entities, and files.
	ResourceTypes *SignedResourceTypes `json:"signedResourceTypes,omitempty"`

	// REQUIRED; The signed services accessible with the account SAS. Possible values include: Blob (b), Queue (q), Table (t), File (f).
	Services *Services `json:"signedServices,omitempty"`

	// REQUIRED; The time at which the shared access signature becomes invalid.
	SharedAccessExpiryTime *time.Time `json:"signedExpiry,omitempty"`

	// An IP address or a range of IP addresses from which to accept requests.
	IPAddressOrRange *string `json:"signedIp,omitempty"`

	// The key to sign the account SAS token with.
	KeyToSign *string `json:"keyToSign,omitempty"`

	// The protocol permitted for a request made with the account SAS.
	Protocols *HTTPProtocol `json:"signedProtocol,omitempty"`

	// The time at which the SAS becomes valid.
	SharedAccessStartTime *time.Time `json:"signedStart,omitempty"`
}

AccountSasParameters - The parameters to list SAS credentials of a storage account.

func (AccountSasParameters) MarshalJSON

func (a AccountSasParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AccountSasParameters.

func (*AccountSasParameters) UnmarshalJSON

func (a *AccountSasParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type AccountSasParameters.

type AccountStatus

type AccountStatus string

AccountStatus - Gets the status indicating whether the primary location of the storage account is available or unavailable.

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

func PossibleAccountStatusValues

func PossibleAccountStatusValues() []AccountStatus

PossibleAccountStatusValues returns the possible values for the AccountStatus const type.

func (AccountStatus) ToPtr

func (c AccountStatus) ToPtr() *AccountStatus

ToPtr returns a *AccountStatus pointing to the current value.

type ActiveDirectoryProperties

type ActiveDirectoryProperties struct {
	// REQUIRED; Specifies the security identifier (SID) for Azure Storage.
	AzureStorageSid *string `json:"azureStorageSid,omitempty"`

	// REQUIRED; Specifies the domain GUID.
	DomainGUID *string `json:"domainGuid,omitempty"`

	// REQUIRED; Specifies the primary domain that the AD DNS server is authoritative for.
	DomainName *string `json:"domainName,omitempty"`

	// REQUIRED; Specifies the security identifier (SID).
	DomainSid *string `json:"domainSid,omitempty"`

	// REQUIRED; Specifies the Active Directory forest to get.
	ForestName *string `json:"forestName,omitempty"`

	// REQUIRED; Specifies the NetBIOS domain name.
	NetBiosDomainName *string `json:"netBiosDomainName,omitempty"`
}

ActiveDirectoryProperties - Settings properties for Active Directory (AD).

type AzureEntityResource

type AzureEntityResource struct {
	Resource
	// READ-ONLY; Resource Etag.
	Etag *string `json:"etag,omitempty" azure:"ro"`
}

AzureEntityResource - The resource model definition for an Azure Resource Manager resource with an etag.

func (AzureEntityResource) MarshalJSON

func (a AzureEntityResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type AzureEntityResource.

type AzureFilesIdentityBasedAuthentication

type AzureFilesIdentityBasedAuthentication struct {
	// REQUIRED; Indicates the directory service used.
	DirectoryServiceOptions *DirectoryServiceOptions `json:"directoryServiceOptions,omitempty"`

	// Required if choose AD.
	ActiveDirectoryProperties *ActiveDirectoryProperties `json:"activeDirectoryProperties,omitempty"`

	// Default share permission for users using Kerberos authentication if RBAC role is not assigned.
	DefaultSharePermission *DefaultSharePermission `json:"defaultSharePermission,omitempty"`
}

AzureFilesIdentityBasedAuthentication - Settings for Azure Files identity based authentication.

type BlobContainer

type BlobContainer struct {
	AzureEntityResource
	// Properties of the blob container.
	ContainerProperties *ContainerProperties `json:"properties,omitempty"`
}

BlobContainer - Properties of the blob container, including Id, resource name, resource type, Etag.

func (BlobContainer) MarshalJSON

func (b BlobContainer) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobContainer.

type BlobContainerResponse

type BlobContainerResponse struct {
	// Properties of the blob container, including Id, resource name, resource type, Etag.
	BlobContainer *BlobContainer

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

BlobContainerResponse is the response envelope for operations that return a BlobContainer type.

type BlobContainersBeginObjectLevelWormOptions

type BlobContainersBeginObjectLevelWormOptions struct {
}

BlobContainersBeginObjectLevelWormOptions contains the optional parameters for the BlobContainers.BeginObjectLevelWorm method.

type BlobContainersClearLegalHoldOptions

type BlobContainersClearLegalHoldOptions struct {
}

BlobContainersClearLegalHoldOptions contains the optional parameters for the BlobContainers.ClearLegalHold method.

type BlobContainersClient

type BlobContainersClient struct {
	// contains filtered or unexported fields
}

BlobContainersClient contains the methods for the BlobContainers group. Don't use this type directly, use NewBlobContainersClient() instead.

func NewBlobContainersClient

func NewBlobContainersClient(con *armcore.Connection, subscriptionID string) *BlobContainersClient

NewBlobContainersClient creates a new instance of BlobContainersClient with the specified values.

func (*BlobContainersClient) BeginObjectLevelWorm

func (client *BlobContainersClient) BeginObjectLevelWorm(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersBeginObjectLevelWormOptions) (HTTPPollerResponse, error)

BeginObjectLevelWorm - This operation migrates a blob container from container level WORM to object level immutability enabled container. Prerequisites require a container level immutability policy either in locked or unlocked state, Account level versioning must be enabled and there should be no Legal hold on the container. If the operation fails it returns the *CloudError error type.

func (*BlobContainersClient) ClearLegalHold

func (client *BlobContainersClient) ClearLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold, options *BlobContainersClearLegalHoldOptions) (LegalHoldResponse, error)

ClearLegalHold - Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. If the operation fails it returns a generic error.

func (*BlobContainersClient) Create

func (client *BlobContainersClient) Create(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer, options *BlobContainersCreateOptions) (BlobContainerResponse, error)

Create - Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. If the operation fails it returns a generic error.

Example
package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/armcore"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/storage/armstorage"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	client := armstorage.NewBlobContainersClient(armcore.NewDefaultConnection(cred, nil), "<subscription ID>")
	resp, err := client.Create(
		context.Background(),
		"<resource group name>",
		"<storage account name>",
		"<container name>",
		armstorage.BlobContainer{}, nil)
	if err != nil {
		log.Fatalf("failed to obtain a response: %v", err)
	}
	log.Printf("blob container ID: %v\n", *resp.BlobContainer.ID)
}
Output:

func (*BlobContainersClient) CreateOrUpdateImmutabilityPolicy

func (client *BlobContainersClient) CreateOrUpdateImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersCreateOrUpdateImmutabilityPolicyOptions) (ImmutabilityPolicyResponse, error)

CreateOrUpdateImmutabilityPolicy - Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not required for this operation. If the operation fails it returns a generic error.

func (*BlobContainersClient) Delete

func (client *BlobContainersClient) Delete(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersDeleteOptions) (*http.Response, error)

Delete - Deletes specified container under its account. If the operation fails it returns a generic error.

Example
package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/armcore"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/storage/armstorage"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	client := armstorage.NewBlobContainersClient(armcore.NewDefaultConnection(cred, nil), "<subscription ID>")
	_, err = client.Delete(
		context.Background(),
		"<resource group name>",
		"<storage account name>",
		"<container name>", nil)
	if err != nil {
		log.Fatalf("failed to obtain a response: %v", err)
	}
}
Output:

func (*BlobContainersClient) DeleteImmutabilityPolicy

func (client *BlobContainersClient) DeleteImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, options *BlobContainersDeleteImmutabilityPolicyOptions) (ImmutabilityPolicyResponse, error)

DeleteImmutabilityPolicy - Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, the only way is to delete the container after deleting all expired blobs inside the policy locked container. If the operation fails it returns a generic error.

func (*BlobContainersClient) ExtendImmutabilityPolicy

func (client *BlobContainersClient) ExtendImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, options *BlobContainersExtendImmutabilityPolicyOptions) (ImmutabilityPolicyResponse, error)

ExtendImmutabilityPolicy - Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. If the operation fails it returns a generic error.

func (*BlobContainersClient) Get

func (client *BlobContainersClient) Get(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersGetOptions) (BlobContainerResponse, error)

Get - Gets properties of a specified container. If the operation fails it returns a generic error.

Example
package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/armcore"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/storage/armstorage"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	client := armstorage.NewBlobContainersClient(armcore.NewDefaultConnection(cred, nil), "<subscription ID>")
	resp, err := client.Get(
		context.Background(),
		"<resource group name>",
		"<storage account name>",
		"<container name>", nil)
	if err != nil {
		log.Fatalf("failed to obtain a response: %v", err)
	}
	log.Printf("blob container ID: %v\n", *resp.BlobContainer.ID)
}
Output:

func (*BlobContainersClient) GetImmutabilityPolicy

func (client *BlobContainersClient) GetImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersGetImmutabilityPolicyOptions) (ImmutabilityPolicyResponse, error)

GetImmutabilityPolicy - Gets the existing immutability policy along with the corresponding ETag in response headers and body. If the operation fails it returns a generic error.

func (*BlobContainersClient) Lease

func (client *BlobContainersClient) Lease(ctx context.Context, resourceGroupName string, accountName string, containerName string, options *BlobContainersLeaseOptions) (LeaseContainerResponseResponse, error)

Lease - The Lease Container operation establishes and manages a lock on a container for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite. If the operation fails it returns a generic error.

func (*BlobContainersClient) List

func (client *BlobContainersClient) List(resourceGroupName string, accountName string, options *BlobContainersListOptions) ListContainerItemsPager

List - Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. If the operation fails it returns a generic error.

Example
package main

import (
	"context"
	"log"

	"github.com/Azure/azure-sdk-for-go/sdk/armcore"
	"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
	"github.com/Azure/azure-sdk-for-go/sdk/storage/armstorage"
)

func main() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	client := armstorage.NewBlobContainersClient(armcore.NewDefaultConnection(cred, nil), "<subscription ID>")
	pager := client.List("<resource group name>", "<storage account name>", nil)
	for pager.NextPage(context.Background()) {
		resp := pager.PageResponse()
		if len(resp.ListContainerItems.Value) == 0 {
			log.Fatal("missing payload")
		}
		for _, val := range resp.ListContainerItems.Value {
			log.Printf("container item: %v", *val.ID)
		}
	}
	if err := pager.Err(); err != nil {
		log.Fatal(err)
	}
}
Output:

func (*BlobContainersClient) LockImmutabilityPolicy

func (client *BlobContainersClient) LockImmutabilityPolicy(ctx context.Context, resourceGroupName string, accountName string, containerName string, ifMatch string, options *BlobContainersLockImmutabilityPolicyOptions) (ImmutabilityPolicyResponse, error)

LockImmutabilityPolicy - Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation. If the operation fails it returns a generic error.

func (*BlobContainersClient) ResumeObjectLevelWorm

func (client *BlobContainersClient) ResumeObjectLevelWorm(ctx context.Context, token string) (HTTPPollerResponse, error)

ResumeObjectLevelWorm creates a new HTTPPoller from the specified resume token. token - The value must come from a previous call to HTTPPoller.ResumeToken().

func (*BlobContainersClient) SetLegalHold

func (client *BlobContainersClient) SetLegalHold(ctx context.Context, resourceGroupName string, accountName string, containerName string, legalHold LegalHold, options *BlobContainersSetLegalHoldOptions) (LegalHoldResponse, error)

SetLegalHold - Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. If the operation fails it returns a generic error.

func (*BlobContainersClient) Update

func (client *BlobContainersClient) Update(ctx context.Context, resourceGroupName string, accountName string, containerName string, blobContainer BlobContainer, options *BlobContainersUpdateOptions) (BlobContainerResponse, error)

Update - Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. If the operation fails it returns a generic error.

type BlobContainersCreateOptions

type BlobContainersCreateOptions struct {
}

BlobContainersCreateOptions contains the optional parameters for the BlobContainers.Create method.

type BlobContainersCreateOrUpdateImmutabilityPolicyOptions

type BlobContainersCreateOrUpdateImmutabilityPolicyOptions struct {
	// The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy
	// already exists. If omitted, this operation will always be applied.
	IfMatch *string
	// The ImmutabilityPolicy Properties that will be created or updated to a blob container.
	Parameters *ImmutabilityPolicy
}

BlobContainersCreateOrUpdateImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.CreateOrUpdateImmutabilityPolicy method.

type BlobContainersDeleteImmutabilityPolicyOptions

type BlobContainersDeleteImmutabilityPolicyOptions struct {
}

BlobContainersDeleteImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.DeleteImmutabilityPolicy method.

type BlobContainersDeleteOptions

type BlobContainersDeleteOptions struct {
}

BlobContainersDeleteOptions contains the optional parameters for the BlobContainers.Delete method.

type BlobContainersExtendImmutabilityPolicyOptions

type BlobContainersExtendImmutabilityPolicyOptions struct {
	// The ImmutabilityPolicy Properties that will be extended for a blob container.
	Parameters *ImmutabilityPolicy
}

BlobContainersExtendImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.ExtendImmutabilityPolicy method.

type BlobContainersGetImmutabilityPolicyOptions

type BlobContainersGetImmutabilityPolicyOptions struct {
	// The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy
	// already exists. If omitted, this operation will always be applied.
	IfMatch *string
}

BlobContainersGetImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.GetImmutabilityPolicy method.

type BlobContainersGetOptions

type BlobContainersGetOptions struct {
}

BlobContainersGetOptions contains the optional parameters for the BlobContainers.Get method.

type BlobContainersLeaseOptions

type BlobContainersLeaseOptions struct {
	// Lease Container request body.
	Parameters *LeaseContainerRequest
}

BlobContainersLeaseOptions contains the optional parameters for the BlobContainers.Lease method.

type BlobContainersListOptions

type BlobContainersListOptions struct {
	// Optional. When specified, only container names starting with the filter will be listed.
	Filter *string
	// Optional, used to include the properties for soft deleted blob containers.
	Include *ListContainersInclude
	// Optional. Specified maximum number of containers that can be included in the list.
	Maxpagesize *string
}

BlobContainersListOptions contains the optional parameters for the BlobContainers.List method.

type BlobContainersLockImmutabilityPolicyOptions

type BlobContainersLockImmutabilityPolicyOptions struct {
}

BlobContainersLockImmutabilityPolicyOptions contains the optional parameters for the BlobContainers.LockImmutabilityPolicy method.

type BlobContainersSetLegalHoldOptions

type BlobContainersSetLegalHoldOptions struct {
}

BlobContainersSetLegalHoldOptions contains the optional parameters for the BlobContainers.SetLegalHold method.

type BlobContainersUpdateOptions

type BlobContainersUpdateOptions struct {
}

BlobContainersUpdateOptions contains the optional parameters for the BlobContainers.Update method.

type BlobInventoryPoliciesClient

type BlobInventoryPoliciesClient struct {
	// contains filtered or unexported fields
}

BlobInventoryPoliciesClient contains the methods for the BlobInventoryPolicies group. Don't use this type directly, use NewBlobInventoryPoliciesClient() instead.

func NewBlobInventoryPoliciesClient

func NewBlobInventoryPoliciesClient(con *armcore.Connection, subscriptionID string) *BlobInventoryPoliciesClient

NewBlobInventoryPoliciesClient creates a new instance of BlobInventoryPoliciesClient with the specified values.

func (*BlobInventoryPoliciesClient) CreateOrUpdate

func (client *BlobInventoryPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, blobInventoryPolicyName BlobInventoryPolicyName, properties BlobInventoryPolicy, options *BlobInventoryPoliciesCreateOrUpdateOptions) (BlobInventoryPolicyResponse, error)

CreateOrUpdate - Sets the blob inventory policy to the specified storage account. If the operation fails it returns the *ErrorResponse error type.

func (*BlobInventoryPoliciesClient) Delete

func (client *BlobInventoryPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, blobInventoryPolicyName BlobInventoryPolicyName, options *BlobInventoryPoliciesDeleteOptions) (*http.Response, error)

Delete - Deletes the blob inventory policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.

func (*BlobInventoryPoliciesClient) Get

func (client *BlobInventoryPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, blobInventoryPolicyName BlobInventoryPolicyName, options *BlobInventoryPoliciesGetOptions) (BlobInventoryPolicyResponse, error)

Get - Gets the blob inventory policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.

func (*BlobInventoryPoliciesClient) List

List - Gets the blob inventory policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.

type BlobInventoryPoliciesCreateOrUpdateOptions

type BlobInventoryPoliciesCreateOrUpdateOptions struct {
}

BlobInventoryPoliciesCreateOrUpdateOptions contains the optional parameters for the BlobInventoryPolicies.CreateOrUpdate method.

type BlobInventoryPoliciesDeleteOptions

type BlobInventoryPoliciesDeleteOptions struct {
}

BlobInventoryPoliciesDeleteOptions contains the optional parameters for the BlobInventoryPolicies.Delete method.

type BlobInventoryPoliciesGetOptions

type BlobInventoryPoliciesGetOptions struct {
}

BlobInventoryPoliciesGetOptions contains the optional parameters for the BlobInventoryPolicies.Get method.

type BlobInventoryPoliciesListOptions

type BlobInventoryPoliciesListOptions struct {
}

BlobInventoryPoliciesListOptions contains the optional parameters for the BlobInventoryPolicies.List method.

type BlobInventoryPolicy

type BlobInventoryPolicy struct {
	Resource
	// Returns the storage account blob inventory policy rules.
	Properties *BlobInventoryPolicyProperties `json:"properties,omitempty"`

	// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
	SystemData *SystemData `json:"systemData,omitempty" azure:"ro"`
}

BlobInventoryPolicy - The storage account blob inventory policy.

func (BlobInventoryPolicy) MarshalJSON

func (b BlobInventoryPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicy.

type BlobInventoryPolicyDefinition

type BlobInventoryPolicyDefinition struct {
	// REQUIRED; This is a required field, it specifies the format for the inventory files.
	Format *Format `json:"format,omitempty"`

	// REQUIRED; This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
	ObjectType *ObjectType `json:"objectType,omitempty"`

	// REQUIRED; This is a required field. This field is used to schedule an inventory formation.
	Schedule *Schedule `json:"schedule,omitempty"`

	// REQUIRED; This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value
	// 'Name' is always required. The valid values for this
	// field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime,
	// Expiry-Time, hdiisfolder, Owner, Group,
	// Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime'. The valid values for 'Container' definition.objectType include 'Name,
	// Last-Modified, Metadata, LeaseStatus,
	// LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold'. Schema field values 'Expiry-Time, hdiisfolder, Owner, Group, Permissions,
	// Acl' are valid only for Hns enabled accounts.
	SchemaFields []*string `json:"schemaFields,omitempty"`

	// An object that defines the filter set.
	Filters *BlobInventoryPolicyFilter `json:"filters,omitempty"`
}

BlobInventoryPolicyDefinition - An object that defines the blob inventory rule.

func (BlobInventoryPolicyDefinition) MarshalJSON

func (b BlobInventoryPolicyDefinition) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyDefinition.

type BlobInventoryPolicyFilter

type BlobInventoryPolicyFilter struct {
	// An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required
	// when definition.objectType property is set to
	// 'Blob'.
	BlobTypes []*string `json:"blobTypes,omitempty"`

	// Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required
	// if this property is set to true, else they must be
	// excluded.
	IncludeBlobVersions *bool `json:"includeBlobVersions,omitempty"`

	// Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set
	// to true, else it must be excluded.
	IncludeSnapshots *bool `json:"includeSnapshots,omitempty"`

	// An array of strings for blob prefixes to be matched.
	PrefixMatch []*string `json:"prefixMatch,omitempty"`
}

BlobInventoryPolicyFilter - An object that defines the blob inventory rule filter conditions. For 'Blob' definition.objectType all filter properties are applicable, 'blobTypes' is required and others are optional. For 'Container' definition.objectType only prefixMatch is applicable and is optional.

func (BlobInventoryPolicyFilter) MarshalJSON

func (b BlobInventoryPolicyFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyFilter.

type BlobInventoryPolicyName

type BlobInventoryPolicyName string
const (
	BlobInventoryPolicyNameDefault BlobInventoryPolicyName = "default"
)

func PossibleBlobInventoryPolicyNameValues

func PossibleBlobInventoryPolicyNameValues() []BlobInventoryPolicyName

PossibleBlobInventoryPolicyNameValues returns the possible values for the BlobInventoryPolicyName const type.

func (BlobInventoryPolicyName) ToPtr

ToPtr returns a *BlobInventoryPolicyName pointing to the current value.

type BlobInventoryPolicyProperties

type BlobInventoryPolicyProperties struct {
	// REQUIRED; The storage account blob inventory policy object. It is composed of policy rules.
	Policy *BlobInventoryPolicySchema `json:"policy,omitempty"`

	// READ-ONLY; Returns the last modified date and time of the blob inventory policy.
	LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"`
}

BlobInventoryPolicyProperties - The storage account blob inventory policy properties.

func (BlobInventoryPolicyProperties) MarshalJSON

func (b BlobInventoryPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicyProperties.

func (*BlobInventoryPolicyProperties) UnmarshalJSON

func (b *BlobInventoryPolicyProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobInventoryPolicyProperties.

type BlobInventoryPolicyResponse

type BlobInventoryPolicyResponse struct {
	// The storage account blob inventory policy.
	BlobInventoryPolicy *BlobInventoryPolicy

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

BlobInventoryPolicyResponse is the response envelope for operations that return a BlobInventoryPolicy type.

type BlobInventoryPolicyRule

type BlobInventoryPolicyRule struct {
	// REQUIRED; An object that defines the blob inventory policy rule.
	Definition *BlobInventoryPolicyDefinition `json:"definition,omitempty"`

	// REQUIRED; Container name where blob inventory files are stored. Must be pre-created.
	Destination *string `json:"destination,omitempty"`

	// REQUIRED; Rule is enabled when set to true.
	Enabled *bool `json:"enabled,omitempty"`

	// REQUIRED; A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
	Name *string `json:"name,omitempty"`
}

BlobInventoryPolicyRule - An object that wraps the blob inventory rule. Each rule is uniquely defined by name.

type BlobInventoryPolicySchema

type BlobInventoryPolicySchema struct {
	// REQUIRED; Policy is enabled if set to true.
	Enabled *bool `json:"enabled,omitempty"`

	// REQUIRED; The storage account blob inventory policy rules. The rule is applied when it is enabled.
	Rules []*BlobInventoryPolicyRule `json:"rules,omitempty"`

	// REQUIRED; The valid value is Inventory
	Type *InventoryRuleType `json:"type,omitempty"`
}

BlobInventoryPolicySchema - The storage account blob inventory policy rules.

func (BlobInventoryPolicySchema) MarshalJSON

func (b BlobInventoryPolicySchema) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobInventoryPolicySchema.

type BlobRestoreParameters

type BlobRestoreParameters struct {
	// REQUIRED; Blob ranges to restore.
	BlobRanges []*BlobRestoreRange `json:"blobRanges,omitempty"`

	// REQUIRED; Restore blob to the specified time.
	TimeToRestore *time.Time `json:"timeToRestore,omitempty"`
}

BlobRestoreParameters - Blob restore parameters

func (BlobRestoreParameters) MarshalJSON

func (b BlobRestoreParameters) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobRestoreParameters.

func (*BlobRestoreParameters) UnmarshalJSON

func (b *BlobRestoreParameters) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type BlobRestoreParameters.

type BlobRestoreProgressStatus

type BlobRestoreProgressStatus string

BlobRestoreProgressStatus - The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that blob restore has been completed successfully. - Failed: Indicates that blob restore is failed.

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

func PossibleBlobRestoreProgressStatusValues

func PossibleBlobRestoreProgressStatusValues() []BlobRestoreProgressStatus

PossibleBlobRestoreProgressStatusValues returns the possible values for the BlobRestoreProgressStatus const type.

func (BlobRestoreProgressStatus) ToPtr

ToPtr returns a *BlobRestoreProgressStatus pointing to the current value.

type BlobRestoreRange

type BlobRestoreRange struct {
	// REQUIRED; Blob end range. This is exclusive. Empty means account end.
	EndRange *string `json:"endRange,omitempty"`

	// REQUIRED; Blob start range. This is inclusive. Empty means account start.
	StartRange *string `json:"startRange,omitempty"`
}

BlobRestoreRange - Blob range

type BlobRestoreStatus

type BlobRestoreStatus struct {
	// READ-ONLY; Failure reason when blob restore is failed.
	FailureReason *string `json:"failureReason,omitempty" azure:"ro"`

	// READ-ONLY; Blob restore request parameters.
	Parameters *BlobRestoreParameters `json:"parameters,omitempty" azure:"ro"`

	// READ-ONLY; Id for tracking blob restore request.
	RestoreID *string `json:"restoreId,omitempty" azure:"ro"`

	// READ-ONLY; The status of blob restore progress. Possible values are: - InProgress: Indicates that blob restore is ongoing. - Complete: Indicates that
	// blob restore has been completed successfully. - Failed:
	// Indicates that blob restore is failed.
	Status *BlobRestoreProgressStatus `json:"status,omitempty" azure:"ro"`
}

BlobRestoreStatus - Blob restore status.

type BlobRestoreStatusPoller

type BlobRestoreStatusPoller interface {
	azcore.Poller
	// FinalResponse performs a final GET to the service and returns the final response
	// for the polling operation. If there is an error performing the final GET then an error is returned.
	// If the final GET succeeded then the final BlobRestoreStatusResponse will be returned.
	FinalResponse(ctx context.Context) (BlobRestoreStatusResponse, error)
}

BlobRestoreStatusPoller provides polling facilities until the operation reaches a terminal state.

type BlobRestoreStatusPollerResponse

type BlobRestoreStatusPollerResponse struct {
	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
	PollUntilDone func(ctx context.Context, frequency time.Duration) (BlobRestoreStatusResponse, error)

	// Poller contains an initialized poller.
	Poller BlobRestoreStatusPoller

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

BlobRestoreStatusPollerResponse is the response envelope for operations that asynchronously return a BlobRestoreStatus type.

type BlobRestoreStatusResponse

type BlobRestoreStatusResponse struct {
	// Blob restore status.
	BlobRestoreStatus *BlobRestoreStatus

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

BlobRestoreStatusResponse is the response envelope for operations that return a BlobRestoreStatus type.

type BlobServiceItems

type BlobServiceItems struct {
	// READ-ONLY; List of blob services returned.
	Value []*BlobServiceProperties `json:"value,omitempty" azure:"ro"`
}

func (BlobServiceItems) MarshalJSON

func (b BlobServiceItems) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobServiceItems.

type BlobServiceItemsResponse

type BlobServiceItemsResponse struct {
	BlobServiceItems *BlobServiceItems

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

BlobServiceItemsResponse is the response envelope for operations that return a BlobServiceItems type.

type BlobServiceProperties

type BlobServiceProperties struct {
	Resource
	// The properties of a storage account’s Blob service.
	BlobServiceProperties *BlobServicePropertiesAutoGenerated `json:"properties,omitempty"`

	// READ-ONLY; Sku name and tier.
	SKU *SKU `json:"sku,omitempty" azure:"ro"`
}

BlobServiceProperties - The properties of a storage account’s Blob service.

func (BlobServiceProperties) MarshalJSON

func (b BlobServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type BlobServiceProperties.

type BlobServicePropertiesAutoGenerated

type BlobServicePropertiesAutoGenerated struct {
	// Deprecated in favor of isVersioningEnabled property.
	AutomaticSnapshotPolicyEnabled *bool `json:"automaticSnapshotPolicyEnabled,omitempty"`

	// The blob service properties for change feed events.
	ChangeFeed *ChangeFeed `json:"changeFeed,omitempty"`

	// The blob service properties for container soft delete.
	ContainerDeleteRetentionPolicy *DeleteRetentionPolicy `json:"containerDeleteRetentionPolicy,omitempty"`

	// Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request
	// body, all CORS rules will be deleted, and
	// CORS will be disabled for the Blob service.
	Cors *CorsRules `json:"cors,omitempty"`

	// DefaultServiceVersion indicates the default version to use for requests to the Blob service if an incoming request’s version is not specified. Possible
	// values include version 2008-10-27 and all more
	// recent versions.
	DefaultServiceVersion *string `json:"defaultServiceVersion,omitempty"`

	// The blob service properties for blob soft delete.
	DeleteRetentionPolicy *DeleteRetentionPolicy `json:"deleteRetentionPolicy,omitempty"`

	// Versioning is enabled if set to true.
	IsVersioningEnabled *bool `json:"isVersioningEnabled,omitempty"`

	// The blob service property to configure last access time based tracking policy.
	LastAccessTimeTrackingPolicy *LastAccessTimeTrackingPolicy `json:"lastAccessTimeTrackingPolicy,omitempty"`

	// The blob service properties for blob restore policy.
	RestorePolicy *RestorePolicyProperties `json:"restorePolicy,omitempty"`
}

BlobServicePropertiesAutoGenerated - The properties of a storage account’s Blob service.

type BlobServicePropertiesResponse

type BlobServicePropertiesResponse struct {
	// The properties of a storage account’s Blob service.
	BlobServiceProperties *BlobServiceProperties

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

BlobServicePropertiesResponse is the response envelope for operations that return a BlobServiceProperties type.

type BlobServicesClient

type BlobServicesClient struct {
	// contains filtered or unexported fields
}

BlobServicesClient contains the methods for the BlobServices group. Don't use this type directly, use NewBlobServicesClient() instead.

func NewBlobServicesClient

func NewBlobServicesClient(con *armcore.Connection, subscriptionID string) *BlobServicesClient

NewBlobServicesClient creates a new instance of BlobServicesClient with the specified values.

func (*BlobServicesClient) GetServiceProperties

func (client *BlobServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, options *BlobServicesGetServicePropertiesOptions) (BlobServicePropertiesResponse, error)

GetServiceProperties - Gets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns a generic error.

func (*BlobServicesClient) List

func (client *BlobServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *BlobServicesListOptions) (BlobServiceItemsResponse, error)

List - List blob services of storage account. It returns a collection of one object named default. If the operation fails it returns a generic error.

func (*BlobServicesClient) SetServiceProperties

func (client *BlobServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters BlobServiceProperties, options *BlobServicesSetServicePropertiesOptions) (BlobServicePropertiesResponse, error)

SetServiceProperties - Sets the properties of a storage account’s Blob service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns a generic error.

type BlobServicesGetServicePropertiesOptions

type BlobServicesGetServicePropertiesOptions struct {
}

BlobServicesGetServicePropertiesOptions contains the optional parameters for the BlobServices.GetServiceProperties method.

type BlobServicesListOptions

type BlobServicesListOptions struct {
}

BlobServicesListOptions contains the optional parameters for the BlobServices.List method.

type BlobServicesSetServicePropertiesOptions

type BlobServicesSetServicePropertiesOptions struct {
}

BlobServicesSetServicePropertiesOptions contains the optional parameters for the BlobServices.SetServiceProperties method.

type Bypass

type Bypass string

Bypass - Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics.

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

func PossibleBypassValues

func PossibleBypassValues() []Bypass

PossibleBypassValues returns the possible values for the Bypass const type.

func (Bypass) ToPtr

func (c Bypass) ToPtr() *Bypass

ToPtr returns a *Bypass pointing to the current value.

type ChangeFeed

type ChangeFeed struct {
	// Indicates whether change feed event logging is enabled for the Blob service.
	Enabled *bool `json:"enabled,omitempty"`

	// Indicates the duration of changeFeed retention in days. Minimum value is 1 day and maximum value is 146000 days (400 years). A null value indicates an
	// infinite retention of the change feed.
	RetentionInDays *int32 `json:"retentionInDays,omitempty"`
}

ChangeFeed - The blob service properties for change feed events.

type CheckNameAvailabilityResult

type CheckNameAvailabilityResult struct {
	// READ-ONLY; Gets an error message explaining the Reason value in more detail.
	Message *string `json:"message,omitempty" azure:"ro"`

	// READ-ONLY; Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already
	// been taken or is invalid and cannot be used.
	NameAvailable *bool `json:"nameAvailable,omitempty" azure:"ro"`

	// READ-ONLY; Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.
	Reason *Reason `json:"reason,omitempty" azure:"ro"`
}

CheckNameAvailabilityResult - The CheckNameAvailability operation response.

type CheckNameAvailabilityResultResponse

type CheckNameAvailabilityResultResponse struct {
	// The CheckNameAvailability operation response.
	CheckNameAvailabilityResult *CheckNameAvailabilityResult

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

CheckNameAvailabilityResultResponse is the response envelope for operations that return a CheckNameAvailabilityResult type.

type CloudError

type CloudError struct {

	// An error response from the Storage service.
	InnerError *CloudErrorBody `json:"error,omitempty"`
	// contains filtered or unexported fields
}

CloudError - An error response from the Storage service. Implements the error and azcore.HTTPResponse interfaces.

func (CloudError) Error

func (e CloudError) Error() string

Error implements the error interface for type CloudError. The contents of the error text are not contractual and subject to change.

type CloudErrorAutoGenerated

type CloudErrorAutoGenerated struct {

	// An error response from the Storage service.
	InnerError *CloudErrorBodyAutoGenerated `json:"error,omitempty"`
	// contains filtered or unexported fields
}

CloudErrorAutoGenerated - An error response from the Storage service. Implements the error and azcore.HTTPResponse interfaces.

func (CloudErrorAutoGenerated) Error

func (e CloudErrorAutoGenerated) Error() string

Error implements the error interface for type CloudErrorAutoGenerated. The contents of the error text are not contractual and subject to change.

type CloudErrorBody

type CloudErrorBody struct {
	// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code *string `json:"code,omitempty"`

	// A list of additional details about the error.
	Details []*CloudErrorBody `json:"details,omitempty"`

	// A message describing the error, intended to be suitable for display in a user interface.
	Message *string `json:"message,omitempty"`

	// The target of the particular error. For example, the name of the property in error.
	Target *string `json:"target,omitempty"`
}

CloudErrorBody - An error response from the Storage service.

func (CloudErrorBody) MarshalJSON

func (c CloudErrorBody) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudErrorBody.

type CloudErrorBodyAutoGenerated

type CloudErrorBodyAutoGenerated struct {
	// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code *string `json:"code,omitempty"`

	// A list of additional details about the error.
	Details []*CloudErrorBodyAutoGenerated `json:"details,omitempty"`

	// A message describing the error, intended to be suitable for display in a user interface.
	Message *string `json:"message,omitempty"`

	// The target of the particular error. For example, the name of the property in error.
	Target *string `json:"target,omitempty"`
}

CloudErrorBodyAutoGenerated - An error response from the Storage service.

func (CloudErrorBodyAutoGenerated) MarshalJSON

func (c CloudErrorBodyAutoGenerated) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CloudErrorBodyAutoGenerated.

type ContainerProperties

type ContainerProperties struct {
	// Default the container to use specified encryption scope for all writes.
	DefaultEncryptionScope *string `json:"defaultEncryptionScope,omitempty"`

	// Block override of encryption scope from the container default.
	DenyEncryptionScopeOverride *bool `json:"denyEncryptionScopeOverride,omitempty"`

	// The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing
	// containers must undergo a migration process.
	ImmutableStorageWithVersioning *ImmutableStorageWithVersioning `json:"immutableStorageWithVersioning,omitempty"`

	// A name-value pair to associate with the container as metadata.
	Metadata map[string]*string `json:"metadata,omitempty"`

	// Specifies whether data in the container may be accessed publicly and the level of access.
	PublicAccess *PublicAccess `json:"publicAccess,omitempty"`

	// READ-ONLY; Indicates whether the blob container was deleted.
	Deleted *bool `json:"deleted,omitempty" azure:"ro"`

	// READ-ONLY; Blob container deletion time.
	DeletedTime *time.Time `json:"deletedTime,omitempty" azure:"ro"`

	// READ-ONLY; The hasImmutabilityPolicy public property is set to true by SRP if ImmutabilityPolicy has been created for this container. The hasImmutabilityPolicy
	// public property is set to false by SRP if
	// ImmutabilityPolicy has not been created for this container.
	HasImmutabilityPolicy *bool `json:"hasImmutabilityPolicy,omitempty" azure:"ro"`

	// READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to
	// false by SRP if all existing legal hold tags are cleared out.
	// There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
	HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"`

	// READ-ONLY; The ImmutabilityPolicy property of the container.
	ImmutabilityPolicy *ImmutabilityPolicyProperties `json:"immutabilityPolicy,omitempty" azure:"ro"`

	// READ-ONLY; Returns the date and time the container was last modified.
	LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"`

	// READ-ONLY; Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.
	LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty" azure:"ro"`

	// READ-ONLY; Lease state of the container.
	LeaseState *LeaseState `json:"leaseState,omitempty" azure:"ro"`

	// READ-ONLY; The lease status of the container.
	LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty" azure:"ro"`

	// READ-ONLY; The LegalHold property of the container.
	LegalHold *LegalHoldProperties `json:"legalHold,omitempty" azure:"ro"`

	// READ-ONLY; Remaining retention days for soft deleted blob container.
	RemainingRetentionDays *int32 `json:"remainingRetentionDays,omitempty" azure:"ro"`

	// READ-ONLY; The version of the deleted blob container.
	Version *string `json:"version,omitempty" azure:"ro"`
}

ContainerProperties - The properties of a container.

func (ContainerProperties) MarshalJSON

func (c ContainerProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ContainerProperties.

func (*ContainerProperties) UnmarshalJSON

func (c *ContainerProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ContainerProperties.

type CorsRule

type CorsRule struct {
	// REQUIRED; Required if CorsRule element is present. A list of headers allowed to be part of the cross-origin request.
	AllowedHeaders []*string `json:"allowedHeaders,omitempty"`

	// REQUIRED; Required if CorsRule element is present. A list of HTTP methods that are allowed to be executed by the origin.
	AllowedMethods []*CorsRuleAllowedMethodsItem `json:"allowedMethods,omitempty"`

	// REQUIRED; Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains
	AllowedOrigins []*string `json:"allowedOrigins,omitempty"`

	// REQUIRED; Required if CorsRule element is present. A list of response headers to expose to CORS clients.
	ExposedHeaders []*string `json:"exposedHeaders,omitempty"`

	// REQUIRED; Required if CorsRule element is present. The number of seconds that the client/browser should cache a preflight response.
	MaxAgeInSeconds *int32 `json:"maxAgeInSeconds,omitempty"`
}

CorsRule - Specifies a CORS rule for the Blob service.

func (CorsRule) MarshalJSON

func (c CorsRule) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CorsRule.

type CorsRuleAllowedMethodsItem

type CorsRuleAllowedMethodsItem string
const (
	CorsRuleAllowedMethodsItemDELETE  CorsRuleAllowedMethodsItem = "DELETE"
	CorsRuleAllowedMethodsItemGET     CorsRuleAllowedMethodsItem = "GET"
	CorsRuleAllowedMethodsItemHEAD    CorsRuleAllowedMethodsItem = "HEAD"
	CorsRuleAllowedMethodsItemMERGE   CorsRuleAllowedMethodsItem = "MERGE"
	CorsRuleAllowedMethodsItemOPTIONS CorsRuleAllowedMethodsItem = "OPTIONS"
	CorsRuleAllowedMethodsItemPOST    CorsRuleAllowedMethodsItem = "POST"
	CorsRuleAllowedMethodsItemPUT     CorsRuleAllowedMethodsItem = "PUT"
)

func PossibleCorsRuleAllowedMethodsItemValues

func PossibleCorsRuleAllowedMethodsItemValues() []CorsRuleAllowedMethodsItem

PossibleCorsRuleAllowedMethodsItemValues returns the possible values for the CorsRuleAllowedMethodsItem const type.

func (CorsRuleAllowedMethodsItem) ToPtr

ToPtr returns a *CorsRuleAllowedMethodsItem pointing to the current value.

type CorsRules

type CorsRules struct {
	// The List of CORS rules. You can include up to five CorsRule elements in the request.
	CorsRules []*CorsRule `json:"corsRules,omitempty"`
}

CorsRules - Sets the CORS rules. You can include up to five CorsRule elements in the request.

func (CorsRules) MarshalJSON

func (c CorsRules) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type CorsRules.

type CreatedByType

type CreatedByType string

CreatedByType - The type of identity that created the resource.

const (
	CreatedByTypeApplication     CreatedByType = "Application"
	CreatedByTypeKey             CreatedByType = "Key"
	CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
	CreatedByTypeUser            CreatedByType = "User"
)

func PossibleCreatedByTypeValues

func PossibleCreatedByTypeValues() []CreatedByType

PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.

func (CreatedByType) ToPtr

func (c CreatedByType) ToPtr() *CreatedByType

ToPtr returns a *CreatedByType pointing to the current value.

type CustomDomain

type CustomDomain struct {
	// REQUIRED; Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
	Name *string `json:"name,omitempty"`

	// Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates.
	UseSubDomainName *bool `json:"useSubDomainName,omitempty"`
}

CustomDomain - The custom domain assigned to this storage account. This can be set via Update.

type DateAfterCreation

type DateAfterCreation struct {
	// REQUIRED; Value indicating the age in days after creation
	DaysAfterCreationGreaterThan *float32 `json:"daysAfterCreationGreaterThan,omitempty"`
}

DateAfterCreation - Object to define the number of days after creation.

type DateAfterModification

type DateAfterModification struct {
	// Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
	DaysAfterLastAccessTimeGreaterThan *float32 `json:"daysAfterLastAccessTimeGreaterThan,omitempty"`

	// Value indicating the age in days after last modification
	DaysAfterModificationGreaterThan *float32 `json:"daysAfterModificationGreaterThan,omitempty"`
}

DateAfterModification - Object to define the number of days after object last modification Or last access. Properties daysAfterModificationGreaterThan and daysAfterLastAccessTimeGreaterThan are mutually exclusive.

type DefaultAction

type DefaultAction string

DefaultAction - Specifies the default action of allow or deny when no other rules match.

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

func PossibleDefaultActionValues

func PossibleDefaultActionValues() []DefaultAction

PossibleDefaultActionValues returns the possible values for the DefaultAction const type.

func (DefaultAction) ToPtr

func (c DefaultAction) ToPtr() *DefaultAction

ToPtr returns a *DefaultAction pointing to the current value.

type DefaultSharePermission

type DefaultSharePermission string

DefaultSharePermission - Default share permission for users using Kerberos authentication if RBAC role is not assigned.

const (
	DefaultSharePermissionNone                                       DefaultSharePermission = "None"
	DefaultSharePermissionStorageFileDataSmbShareContributor         DefaultSharePermission = "StorageFileDataSmbShareContributor"
	DefaultSharePermissionStorageFileDataSmbShareElevatedContributor DefaultSharePermission = "StorageFileDataSmbShareElevatedContributor"
	DefaultSharePermissionStorageFileDataSmbShareOwner               DefaultSharePermission = "StorageFileDataSmbShareOwner"
	DefaultSharePermissionStorageFileDataSmbShareReader              DefaultSharePermission = "StorageFileDataSmbShareReader"
)

func PossibleDefaultSharePermissionValues

func PossibleDefaultSharePermissionValues() []DefaultSharePermission

PossibleDefaultSharePermissionValues returns the possible values for the DefaultSharePermission const type.

func (DefaultSharePermission) ToPtr

ToPtr returns a *DefaultSharePermission pointing to the current value.

type DeleteRetentionPolicy

type DeleteRetentionPolicy struct {
	// Indicates the number of days that the deleted item should be retained. The minimum specified value can be 1 and the maximum value can be 365.
	Days *int32 `json:"days,omitempty"`

	// Indicates whether DeleteRetentionPolicy is enabled.
	Enabled *bool `json:"enabled,omitempty"`
}

DeleteRetentionPolicy - The service properties for soft delete.

type DeletedAccount

type DeletedAccount struct {
	ProxyResource
	// Properties of the deleted account.
	Properties *DeletedAccountProperties `json:"properties,omitempty"`
}

DeletedAccount - Deleted storage account

func (DeletedAccount) MarshalJSON

func (d DeletedAccount) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeletedAccount.

type DeletedAccountListResult

type DeletedAccountListResult struct {
	// READ-ONLY; Request URL that can be used to query next page of deleted accounts. Returned when total number of requested deleted accounts exceed maximum
	// page size.
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; Gets the list of deleted accounts and their properties.
	Value []*DeletedAccount `json:"value,omitempty" azure:"ro"`
}

DeletedAccountListResult - The response from the List Deleted Accounts operation.

func (DeletedAccountListResult) MarshalJSON

func (d DeletedAccountListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type DeletedAccountListResult.

type DeletedAccountListResultPager

type DeletedAccountListResultPager interface {
	azcore.Pager

	// Page returns the current DeletedAccountListResultResponse.
	PageResponse() DeletedAccountListResultResponse
}

DeletedAccountListResultPager provides iteration over DeletedAccountListResult pages.

type DeletedAccountListResultResponse

type DeletedAccountListResultResponse struct {
	// The response from the List Deleted Accounts operation.
	DeletedAccountListResult *DeletedAccountListResult

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

DeletedAccountListResultResponse is the response envelope for operations that return a DeletedAccountListResult type.

type DeletedAccountProperties

type DeletedAccountProperties struct {
	// READ-ONLY; Creation time of the deleted account.
	CreationTime *string `json:"creationTime,omitempty" azure:"ro"`

	// READ-ONLY; Deletion time of the deleted account.
	DeletionTime *string `json:"deletionTime,omitempty" azure:"ro"`

	// READ-ONLY; Location of the deleted account.
	Location *string `json:"location,omitempty" azure:"ro"`

	// READ-ONLY; Can be used to attempt recovering this deleted account via PutStorageAccount API.
	RestoreReference *string `json:"restoreReference,omitempty" azure:"ro"`

	// READ-ONLY; Full resource id of the original storage account.
	StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty" azure:"ro"`
}

DeletedAccountProperties - Attributes of a deleted storage account.

type DeletedAccountResponse

type DeletedAccountResponse struct {
	// Deleted storage account
	DeletedAccount *DeletedAccount

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

DeletedAccountResponse is the response envelope for operations that return a DeletedAccount type.

type DeletedAccountsClient

type DeletedAccountsClient struct {
	// contains filtered or unexported fields
}

DeletedAccountsClient contains the methods for the DeletedAccounts group. Don't use this type directly, use NewDeletedAccountsClient() instead.

func NewDeletedAccountsClient

func NewDeletedAccountsClient(con *armcore.Connection, subscriptionID string) *DeletedAccountsClient

NewDeletedAccountsClient creates a new instance of DeletedAccountsClient with the specified values.

func (*DeletedAccountsClient) Get

func (client *DeletedAccountsClient) Get(ctx context.Context, deletedAccountName string, location string, options *DeletedAccountsGetOptions) (DeletedAccountResponse, error)

Get - Get properties of specified deleted account resource. If the operation fails it returns the *ErrorResponse error type.

func (*DeletedAccountsClient) List

List - Lists deleted accounts under the subscription. If the operation fails it returns the *ErrorResponse error type.

type DeletedAccountsGetOptions

type DeletedAccountsGetOptions struct {
}

DeletedAccountsGetOptions contains the optional parameters for the DeletedAccounts.Get method.

type DeletedAccountsListOptions

type DeletedAccountsListOptions struct {
}

DeletedAccountsListOptions contains the optional parameters for the DeletedAccounts.List method.

type DeletedShare

type DeletedShare struct {
	// REQUIRED; Required. Identify the name of the deleted share that will be restored.
	DeletedShareName *string `json:"deletedShareName,omitempty"`

	// REQUIRED; Required. Identify the version of the deleted share that will be restored.
	DeletedShareVersion *string `json:"deletedShareVersion,omitempty"`
}

DeletedShare - The deleted share to be restored.

type Dimension

type Dimension struct {
	// Display name of dimension.
	DisplayName *string `json:"displayName,omitempty"`

	// Display name of dimension.
	Name *string `json:"name,omitempty"`
}

Dimension of blobs, possibly be blob type or access tier.

type DirectoryServiceOptions

type DirectoryServiceOptions string

DirectoryServiceOptions - Indicates the directory service used.

const (
	DirectoryServiceOptionsAADDS DirectoryServiceOptions = "AADDS"
	DirectoryServiceOptionsAD    DirectoryServiceOptions = "AD"
	DirectoryServiceOptionsNone  DirectoryServiceOptions = "None"
)

func PossibleDirectoryServiceOptionsValues

func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions

PossibleDirectoryServiceOptionsValues returns the possible values for the DirectoryServiceOptions const type.

func (DirectoryServiceOptions) ToPtr

ToPtr returns a *DirectoryServiceOptions pointing to the current value.

type EnabledProtocols

type EnabledProtocols string

EnabledProtocols - The authentication protocol that is used for the file share. Can only be specified when creating a share.

const (
	EnabledProtocolsNFS EnabledProtocols = "NFS"
	EnabledProtocolsSMB EnabledProtocols = "SMB"
)

func PossibleEnabledProtocolsValues

func PossibleEnabledProtocolsValues() []EnabledProtocols

PossibleEnabledProtocolsValues returns the possible values for the EnabledProtocols const type.

func (EnabledProtocols) ToPtr

ToPtr returns a *EnabledProtocols pointing to the current value.

type Encryption

type Encryption struct {
	// REQUIRED; The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault
	KeySource *KeySource `json:"keySource,omitempty"`

	// The identity to be used with service-side encryption at rest.
	EncryptionIdentity *EncryptionIdentity `json:"identity,omitempty"`

	// Properties provided by key vault.
	KeyVaultProperties *KeyVaultProperties `json:"keyvaultproperties,omitempty"`

	// A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
	RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"`

	// List of services which support encryption.
	Services *EncryptionServices `json:"services,omitempty"`
}

Encryption - The encryption settings on the storage account.

type EncryptionIdentity

type EncryptionIdentity struct {
	// Resource identifier of the UserAssigned identity to be associated with server-side encryption on the storage account.
	EncryptionUserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"`
}

EncryptionIdentity - Encryption identity for the storage account.

type EncryptionScope

type EncryptionScope struct {
	Resource
	// Properties of the encryption scope.
	EncryptionScopeProperties *EncryptionScopeProperties `json:"properties,omitempty"`
}

EncryptionScope - The Encryption Scope resource.

func (EncryptionScope) MarshalJSON

func (e EncryptionScope) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionScope.

type EncryptionScopeKeyVaultProperties

type EncryptionScopeKeyVaultProperties struct {
	// The object identifier for a key vault key object. When applied, the encryption scope will use the key referenced by the identifier to enable customer-managed
	// key support on this encryption scope.
	KeyURI *string `json:"keyUri,omitempty"`

	// READ-ONLY; The object identifier of the current versioned Key Vault Key in use.
	CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty" azure:"ro"`

	// READ-ONLY; Timestamp of last rotation of the Key Vault Key.
	LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"`
}

EncryptionScopeKeyVaultProperties - The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'.

func (EncryptionScopeKeyVaultProperties) MarshalJSON

func (e EncryptionScopeKeyVaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionScopeKeyVaultProperties.

func (*EncryptionScopeKeyVaultProperties) UnmarshalJSON

func (e *EncryptionScopeKeyVaultProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeKeyVaultProperties.

type EncryptionScopeListResult

type EncryptionScopeListResult struct {
	// READ-ONLY; Request URL that can be used to query next page of encryption scopes. Returned when total number of requested encryption scopes exceeds the
	// maximum page size.
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of encryption scopes requested.
	Value []*EncryptionScope `json:"value,omitempty" azure:"ro"`
}

EncryptionScopeListResult - List of encryption scopes requested, and if paging is required, a URL to the next page of encryption scopes.

func (EncryptionScopeListResult) MarshalJSON

func (e EncryptionScopeListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionScopeListResult.

type EncryptionScopeListResultPager

type EncryptionScopeListResultPager interface {
	azcore.Pager

	// Page returns the current EncryptionScopeListResultResponse.
	PageResponse() EncryptionScopeListResultResponse
}

EncryptionScopeListResultPager provides iteration over EncryptionScopeListResult pages.

type EncryptionScopeListResultResponse

type EncryptionScopeListResultResponse struct {
	// List of encryption scopes requested, and if paging is required, a URL to the next page of encryption scopes.
	EncryptionScopeListResult *EncryptionScopeListResult

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

EncryptionScopeListResultResponse is the response envelope for operations that return a EncryptionScopeListResult type.

type EncryptionScopeProperties

type EncryptionScopeProperties struct {
	// The key vault properties for the encryption scope. This is a required field if encryption scope 'source' attribute is set to 'Microsoft.KeyVault'.
	KeyVaultProperties *EncryptionScopeKeyVaultProperties `json:"keyVaultProperties,omitempty"`

	// A boolean indicating whether or not the service applies a secondary layer of encryption with platform managed keys for data at rest.
	RequireInfrastructureEncryption *bool `json:"requireInfrastructureEncryption,omitempty"`

	// The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault.
	Source *EncryptionScopeSource `json:"source,omitempty"`

	// The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled.
	State *EncryptionScopeState `json:"state,omitempty"`

	// READ-ONLY; Gets the creation date and time of the encryption scope in UTC.
	CreationTime *time.Time `json:"creationTime,omitempty" azure:"ro"`

	// READ-ONLY; Gets the last modification date and time of the encryption scope in UTC.
	LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"`
}

EncryptionScopeProperties - Properties of the encryption scope.

func (EncryptionScopeProperties) MarshalJSON

func (e EncryptionScopeProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionScopeProperties.

func (*EncryptionScopeProperties) UnmarshalJSON

func (e *EncryptionScopeProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionScopeProperties.

type EncryptionScopeResponse

type EncryptionScopeResponse struct {
	// The Encryption Scope resource.
	EncryptionScope *EncryptionScope

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

EncryptionScopeResponse is the response envelope for operations that return a EncryptionScope type.

type EncryptionScopeSource

type EncryptionScopeSource string

EncryptionScopeSource - The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault.

const (
	EncryptionScopeSourceMicrosoftKeyVault EncryptionScopeSource = "Microsoft.KeyVault"
	EncryptionScopeSourceMicrosoftStorage  EncryptionScopeSource = "Microsoft.Storage"
)

func PossibleEncryptionScopeSourceValues

func PossibleEncryptionScopeSourceValues() []EncryptionScopeSource

PossibleEncryptionScopeSourceValues returns the possible values for the EncryptionScopeSource const type.

func (EncryptionScopeSource) ToPtr

ToPtr returns a *EncryptionScopeSource pointing to the current value.

type EncryptionScopeState

type EncryptionScopeState string

EncryptionScopeState - The state of the encryption scope. Possible values (case-insensitive): Enabled, Disabled.

const (
	EncryptionScopeStateDisabled EncryptionScopeState = "Disabled"
	EncryptionScopeStateEnabled  EncryptionScopeState = "Enabled"
)

func PossibleEncryptionScopeStateValues

func PossibleEncryptionScopeStateValues() []EncryptionScopeState

PossibleEncryptionScopeStateValues returns the possible values for the EncryptionScopeState const type.

func (EncryptionScopeState) ToPtr

ToPtr returns a *EncryptionScopeState pointing to the current value.

type EncryptionScopesClient

type EncryptionScopesClient struct {
	// contains filtered or unexported fields
}

EncryptionScopesClient contains the methods for the EncryptionScopes group. Don't use this type directly, use NewEncryptionScopesClient() instead.

func NewEncryptionScopesClient

func NewEncryptionScopesClient(con *armcore.Connection, subscriptionID string) *EncryptionScopesClient

NewEncryptionScopesClient creates a new instance of EncryptionScopesClient with the specified values.

func (*EncryptionScopesClient) Get

func (client *EncryptionScopesClient) Get(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, options *EncryptionScopesGetOptions) (EncryptionScopeResponse, error)

Get - Returns the properties for the specified encryption scope. If the operation fails it returns the *ErrorResponse error type.

func (*EncryptionScopesClient) List

func (client *EncryptionScopesClient) List(resourceGroupName string, accountName string, options *EncryptionScopesListOptions) EncryptionScopeListResultPager

List - Lists all the encryption scopes available under the specified storage account. If the operation fails it returns a generic error.

func (*EncryptionScopesClient) Patch

func (client *EncryptionScopesClient) Patch(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope, options *EncryptionScopesPatchOptions) (EncryptionScopeResponse, error)

Patch - Update encryption scope properties as specified in the request body. Update fails if the specified encryption scope does not already exist. If the operation fails it returns the *ErrorResponse error type.

func (*EncryptionScopesClient) Put

func (client *EncryptionScopesClient) Put(ctx context.Context, resourceGroupName string, accountName string, encryptionScopeName string, encryptionScope EncryptionScope, options *EncryptionScopesPutOptions) (EncryptionScopeResponse, error)

Put - Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already created and a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified request. If the operation fails it returns the *ErrorResponse error type.

type EncryptionScopesGetOptions

type EncryptionScopesGetOptions struct {
}

EncryptionScopesGetOptions contains the optional parameters for the EncryptionScopes.Get method.

type EncryptionScopesListOptions

type EncryptionScopesListOptions struct {
}

EncryptionScopesListOptions contains the optional parameters for the EncryptionScopes.List method.

type EncryptionScopesPatchOptions

type EncryptionScopesPatchOptions struct {
}

EncryptionScopesPatchOptions contains the optional parameters for the EncryptionScopes.Patch method.

type EncryptionScopesPutOptions

type EncryptionScopesPutOptions struct {
}

EncryptionScopesPutOptions contains the optional parameters for the EncryptionScopes.Put method.

type EncryptionService

type EncryptionService struct {
	// A boolean indicating whether or not the service encrypts the data as it is stored.
	Enabled *bool `json:"enabled,omitempty"`

	// Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key
	// type implies that a default service key is used.
	KeyType *KeyType `json:"keyType,omitempty"`

	// READ-ONLY; Gets a rough estimate of the date/time when the encryption was last enabled by the user. Only returned when encryption is enabled. There might
	// be some unencrypted blobs which were written after this
	// time, as it is just a rough estimate.
	LastEnabledTime *time.Time `json:"lastEnabledTime,omitempty" azure:"ro"`
}

EncryptionService - A service that allows server-side encryption to be used.

func (EncryptionService) MarshalJSON

func (e EncryptionService) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type EncryptionService.

func (*EncryptionService) UnmarshalJSON

func (e *EncryptionService) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionService.

type EncryptionServices

type EncryptionServices struct {
	// The encryption function of the blob storage service.
	Blob *EncryptionService `json:"blob,omitempty"`

	// The encryption function of the file storage service.
	File *EncryptionService `json:"file,omitempty"`

	// The encryption function of the queue storage service.
	Queue *EncryptionService `json:"queue,omitempty"`

	// The encryption function of the table storage service.
	Table *EncryptionService `json:"table,omitempty"`
}

EncryptionServices - A list of services that support encryption.

type Endpoints

type Endpoints struct {
	// Gets the internet routing storage endpoints
	InternetEndpoints *StorageAccountInternetEndpoints `json:"internetEndpoints,omitempty"`

	// Gets the microsoft routing storage endpoints.
	MicrosoftEndpoints *StorageAccountMicrosoftEndpoints `json:"microsoftEndpoints,omitempty"`

	// READ-ONLY; Gets the blob endpoint.
	Blob *string `json:"blob,omitempty" azure:"ro"`

	// READ-ONLY; Gets the dfs endpoint.
	Dfs *string `json:"dfs,omitempty" azure:"ro"`

	// READ-ONLY; Gets the file endpoint.
	File *string `json:"file,omitempty" azure:"ro"`

	// READ-ONLY; Gets the queue endpoint.
	Queue *string `json:"queue,omitempty" azure:"ro"`

	// READ-ONLY; Gets the table endpoint.
	Table *string `json:"table,omitempty" azure:"ro"`

	// READ-ONLY; Gets the web endpoint.
	Web *string `json:"web,omitempty" azure:"ro"`
}

Endpoints - The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object.

type ErrorResponse

type ErrorResponse struct {

	// Azure Storage Resource Provider error response body.
	InnerError *ErrorResponseBody `json:"error,omitempty"`
	// contains filtered or unexported fields
}

ErrorResponse - An error response from the storage resource provider. Implements the error and azcore.HTTPResponse interfaces.

func (ErrorResponse) Error

func (e ErrorResponse) Error() string

Error implements the error interface for type ErrorResponse. The contents of the error text are not contractual and subject to change.

type ErrorResponseBody

type ErrorResponseBody struct {
	// An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
	Code *string `json:"code,omitempty"`

	// A message describing the error, intended to be suitable for display in a user interface.
	Message *string `json:"message,omitempty"`
}

ErrorResponseBody - Error response body contract.

type ExpirationAction

type ExpirationAction string

ExpirationAction - The SAS expiration action. Can only be Log.

const (
	ExpirationActionLog ExpirationAction = "Log"
)

func PossibleExpirationActionValues

func PossibleExpirationActionValues() []ExpirationAction

PossibleExpirationActionValues returns the possible values for the ExpirationAction const type.

func (ExpirationAction) ToPtr

ToPtr returns a *ExpirationAction pointing to the current value.

type ExtendedLocation

type ExtendedLocation struct {
	// The name of the extended location.
	Name *string `json:"name,omitempty"`

	// The type of the extended location.
	Type *ExtendedLocationTypes `json:"type,omitempty"`
}

ExtendedLocation - The complex type of the extended location.

type ExtendedLocationTypes

type ExtendedLocationTypes string

ExtendedLocationTypes - The type of extendedLocation.

const (
	ExtendedLocationTypesEdgeZone ExtendedLocationTypes = "EdgeZone"
)

func PossibleExtendedLocationTypesValues

func PossibleExtendedLocationTypesValues() []ExtendedLocationTypes

PossibleExtendedLocationTypesValues returns the possible values for the ExtendedLocationTypes const type.

func (ExtendedLocationTypes) ToPtr

ToPtr returns a *ExtendedLocationTypes pointing to the current value.

type FileServiceItems

type FileServiceItems struct {
	// READ-ONLY; List of file services returned.
	Value []*FileServiceProperties `json:"value,omitempty" azure:"ro"`
}

func (FileServiceItems) MarshalJSON

func (f FileServiceItems) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileServiceItems.

type FileServiceItemsResponse

type FileServiceItemsResponse struct {
	FileServiceItems *FileServiceItems

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

FileServiceItemsResponse is the response envelope for operations that return a FileServiceItems type.

type FileServiceProperties

type FileServiceProperties struct {
	Resource
	// The properties of File services in storage account.
	FileServiceProperties *FileServicePropertiesAutoGenerated `json:"properties,omitempty"`

	// READ-ONLY; Sku name and tier.
	SKU *SKU `json:"sku,omitempty" azure:"ro"`
}

FileServiceProperties - The properties of File services in storage account.

func (FileServiceProperties) MarshalJSON

func (f FileServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileServiceProperties.

type FileServicePropertiesAutoGenerated

type FileServicePropertiesAutoGenerated struct {
	// Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request
	// body, all CORS rules will be deleted, and
	// CORS will be disabled for the File service.
	Cors *CorsRules `json:"cors,omitempty"`

	// Protocol settings for file service
	ProtocolSettings *ProtocolSettings `json:"protocolSettings,omitempty"`

	// The file service properties for share soft delete.
	ShareDeleteRetentionPolicy *DeleteRetentionPolicy `json:"shareDeleteRetentionPolicy,omitempty"`
}

FileServicePropertiesAutoGenerated - The properties of File services in storage account.

type FileServicePropertiesResponse

type FileServicePropertiesResponse struct {
	// The properties of File services in storage account.
	FileServiceProperties *FileServiceProperties

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

FileServicePropertiesResponse is the response envelope for operations that return a FileServiceProperties type.

type FileServicesClient

type FileServicesClient struct {
	// contains filtered or unexported fields
}

FileServicesClient contains the methods for the FileServices group. Don't use this type directly, use NewFileServicesClient() instead.

func NewFileServicesClient

func NewFileServicesClient(con *armcore.Connection, subscriptionID string) *FileServicesClient

NewFileServicesClient creates a new instance of FileServicesClient with the specified values.

func (*FileServicesClient) GetServiceProperties

func (client *FileServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, options *FileServicesGetServicePropertiesOptions) (FileServicePropertiesResponse, error)

GetServiceProperties - Gets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileServicesClient) List

func (client *FileServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *FileServicesListOptions) (FileServiceItemsResponse, error)

List - List all file services in storage accounts If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileServicesClient) SetServiceProperties

func (client *FileServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters FileServiceProperties, options *FileServicesSetServicePropertiesOptions) (FileServicePropertiesResponse, error)

SetServiceProperties - Sets the properties of file services in storage accounts, including CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.

type FileServicesGetServicePropertiesOptions

type FileServicesGetServicePropertiesOptions struct {
}

FileServicesGetServicePropertiesOptions contains the optional parameters for the FileServices.GetServiceProperties method.

type FileServicesListOptions

type FileServicesListOptions struct {
}

FileServicesListOptions contains the optional parameters for the FileServices.List method.

type FileServicesSetServicePropertiesOptions

type FileServicesSetServicePropertiesOptions struct {
}

FileServicesSetServicePropertiesOptions contains the optional parameters for the FileServices.SetServiceProperties method.

type FileShare

type FileShare struct {
	AzureEntityResource
	// Properties of the file share.
	FileShareProperties *FileShareProperties `json:"properties,omitempty"`
}

FileShare - Properties of the file share, including Id, resource name, resource type, Etag.

func (FileShare) MarshalJSON

func (f FileShare) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileShare.

type FileShareItem

type FileShareItem struct {
	AzureEntityResource
	// The file share properties be listed out.
	Properties *FileShareProperties `json:"properties,omitempty"`
}

FileShareItem - The file share properties be listed out.

func (FileShareItem) MarshalJSON

func (f FileShareItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileShareItem.

type FileShareItems

type FileShareItems struct {
	// READ-ONLY; Request URL that can be used to query next page of shares. Returned when total number of requested shares exceed maximum page size.
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of file shares returned.
	Value []*FileShareItem `json:"value,omitempty" azure:"ro"`
}

FileShareItems - Response schema. Contains list of shares returned, and if paging is requested or required, a URL to next page of shares.

func (FileShareItems) MarshalJSON

func (f FileShareItems) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileShareItems.

type FileShareItemsPager

type FileShareItemsPager interface {
	azcore.Pager

	// Page returns the current FileShareItemsResponse.
	PageResponse() FileShareItemsResponse
}

FileShareItemsPager provides iteration over FileShareItems pages.

type FileShareItemsResponse

type FileShareItemsResponse struct {
	// Response schema. Contains list of shares returned, and if paging is requested or required, a URL to next page of shares.
	FileShareItems *FileShareItems

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

FileShareItemsResponse is the response envelope for operations that return a FileShareItems type.

type FileShareProperties

type FileShareProperties struct {
	// Access tier for specific share. GpV2 account can choose between TransactionOptimized (default), Hot, and Cool. FileStorage account can choose Premium.
	AccessTier *ShareAccessTier `json:"accessTier,omitempty"`

	// The authentication protocol that is used for the file share. Can only be specified when creating a share.
	EnabledProtocols *EnabledProtocols `json:"enabledProtocols,omitempty"`

	// A name-value pair to associate with the share as metadata.
	Metadata map[string]*string `json:"metadata,omitempty"`

	// The property is for NFS share only. The default is NoRootSquash.
	RootSquash *RootSquashType `json:"rootSquash,omitempty"`

	// The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5TB (5120). For Large File Shares, the maximum size is
	// 102400.
	ShareQuota *int32 `json:"shareQuota,omitempty"`

	// List of stored access policies specified on the share.
	SignedIdentifiers []*SignedIdentifier `json:"signedIdentifiers,omitempty"`

	// READ-ONLY; Indicates the last modification time for share access tier.
	AccessTierChangeTime *time.Time `json:"accessTierChangeTime,omitempty" azure:"ro"`

	// READ-ONLY; Indicates if there is a pending transition for access tier.
	AccessTierStatus *string `json:"accessTierStatus,omitempty" azure:"ro"`

	// READ-ONLY; Indicates whether the share was deleted.
	Deleted *bool `json:"deleted,omitempty" azure:"ro"`

	// READ-ONLY; The deleted time if the share was deleted.
	DeletedTime *time.Time `json:"deletedTime,omitempty" azure:"ro"`

	// READ-ONLY; Returns the date and time the share was last modified.
	LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"`

	// READ-ONLY; Specifies whether the lease on a share is of infinite or fixed duration, only when the share is leased.
	LeaseDuration *LeaseDuration `json:"leaseDuration,omitempty" azure:"ro"`

	// READ-ONLY; Lease state of the share.
	LeaseState *LeaseState `json:"leaseState,omitempty" azure:"ro"`

	// READ-ONLY; The lease status of the share.
	LeaseStatus *LeaseStatus `json:"leaseStatus,omitempty" azure:"ro"`

	// READ-ONLY; Remaining retention days for share that was soft deleted.
	RemainingRetentionDays *int32 `json:"remainingRetentionDays,omitempty" azure:"ro"`

	// READ-ONLY; The approximate size of the data stored on the share. Note that this value may not include all recently created or recently resized files.
	ShareUsageBytes *int64 `json:"shareUsageBytes,omitempty" azure:"ro"`

	// READ-ONLY; Creation time of share snapshot returned in the response of list shares with expand param "snapshots".
	SnapshotTime *time.Time `json:"snapshotTime,omitempty" azure:"ro"`

	// READ-ONLY; The version of the share.
	Version *string `json:"version,omitempty" azure:"ro"`
}

FileShareProperties - The properties of the file share.

func (FileShareProperties) MarshalJSON

func (f FileShareProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type FileShareProperties.

func (*FileShareProperties) UnmarshalJSON

func (f *FileShareProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type FileShareProperties.

type FileShareResponse

type FileShareResponse struct {
	// Properties of the file share, including Id, resource name, resource type, Etag.
	FileShare *FileShare

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

FileShareResponse is the response envelope for operations that return a FileShare type.

type FileSharesClient

type FileSharesClient struct {
	// contains filtered or unexported fields
}

FileSharesClient contains the methods for the FileShares group. Don't use this type directly, use NewFileSharesClient() instead.

func NewFileSharesClient

func NewFileSharesClient(con *armcore.Connection, subscriptionID string) *FileSharesClient

NewFileSharesClient creates a new instance of FileSharesClient with the specified values.

func (*FileSharesClient) Create

func (client *FileSharesClient) Create(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, options *FileSharesCreateOptions) (FileShareResponse, error)

Create - Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileSharesClient) Delete

func (client *FileSharesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, shareName string, options *FileSharesDeleteOptions) (*http.Response, error)

Delete - Deletes specified share under its account. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileSharesClient) Get

func (client *FileSharesClient) Get(ctx context.Context, resourceGroupName string, accountName string, shareName string, options *FileSharesGetOptions) (FileShareResponse, error)

Get - Gets properties of a specified share. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileSharesClient) Lease

func (client *FileSharesClient) Lease(ctx context.Context, resourceGroupName string, accountName string, shareName string, options *FileSharesLeaseOptions) (LeaseShareResponseResponse, error)

Lease - The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileSharesClient) List

func (client *FileSharesClient) List(resourceGroupName string, accountName string, options *FileSharesListOptions) FileShareItemsPager

List - Lists all shares. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileSharesClient) Restore

func (client *FileSharesClient) Restore(ctx context.Context, resourceGroupName string, accountName string, shareName string, deletedShare DeletedShare, options *FileSharesRestoreOptions) (*http.Response, error)

Restore - Restore a file share within a valid retention days if share soft delete is enabled If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*FileSharesClient) Update

func (client *FileSharesClient) Update(ctx context.Context, resourceGroupName string, accountName string, shareName string, fileShare FileShare, options *FileSharesUpdateOptions) (FileShareResponse, error)

Update - Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist. If the operation fails it returns the *CloudErrorAutoGenerated error type.

type FileSharesCreateOptions

type FileSharesCreateOptions struct {
	// Optional, used to expand the properties within share's properties. Valid values are: snapshots. Should be passed as a string with delimiter ','
	Expand *string
}

FileSharesCreateOptions contains the optional parameters for the FileShares.Create method.

type FileSharesDeleteOptions

type FileSharesDeleteOptions struct {
	// Optional. Valid values are: snapshots, leased-snapshots, none. The default value is snapshots. For 'snapshots', the file share is deleted including all
	// of its file share snapshots. If the file share contains leased-snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included
	// all of its file share snapshots (leased/unleased). For 'none', the file share is deleted if it has no share snapshots. If the file share contains any
	// snapshots (leased or unleased), the deletion fails.
	Include *string
	// Optional, used to delete a snapshot.
	XMSSnapshot *string
}

FileSharesDeleteOptions contains the optional parameters for the FileShares.Delete method.

type FileSharesGetOptions

type FileSharesGetOptions struct {
	// Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.
	Expand *string
	// Optional, used to retrieve properties of a snapshot.
	XMSSnapshot *string
}

FileSharesGetOptions contains the optional parameters for the FileShares.Get method.

type FileSharesLeaseOptions

type FileSharesLeaseOptions struct {
	// Lease Share request body.
	Parameters *LeaseShareRequest
	// Optional. Specify the snapshot time to lease a snapshot.
	XMSSnapshot *string
}

FileSharesLeaseOptions contains the optional parameters for the FileShares.Lease method.

type FileSharesListOptions

type FileSharesListOptions struct {
	// Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter
	// ','
	Expand *string
	// Optional. When specified, only share names starting with the filter will be listed.
	Filter *string
	// Optional. Specified maximum number of shares that can be included in the list.
	Maxpagesize *string
}

FileSharesListOptions contains the optional parameters for the FileShares.List method.

type FileSharesRestoreOptions

type FileSharesRestoreOptions struct {
}

FileSharesRestoreOptions contains the optional parameters for the FileShares.Restore method.

type FileSharesUpdateOptions

type FileSharesUpdateOptions struct {
}

FileSharesUpdateOptions contains the optional parameters for the FileShares.Update method.

type Format

type Format string

Format - This is a required field, it specifies the format for the inventory files.

const (
	FormatCSV     Format = "Csv"
	FormatParquet Format = "Parquet"
)

func PossibleFormatValues

func PossibleFormatValues() []Format

PossibleFormatValues returns the possible values for the Format const type.

func (Format) ToPtr

func (c Format) ToPtr() *Format

ToPtr returns a *Format pointing to the current value.

type GeoReplicationStats

type GeoReplicationStats struct {
	// READ-ONLY; A boolean flag which indicates whether or not account failover is supported for the account.
	CanFailover *bool `json:"canFailover,omitempty" azure:"ro"`

	// READ-ONLY; All primary writes preceding this UTC date/time value are guaranteed to be available for read operations. Primary writes following this point
	// in time may or may not be available for reads. Element may
	// be default value if value of LastSyncTime is not available, this can happen if secondary is offline or we are in bootstrap.
	LastSyncTime *time.Time `json:"lastSyncTime,omitempty" azure:"ro"`

	// READ-ONLY; The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap:
	// Indicates initial synchronization from the primary
	// location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary
	// location is temporarily unavailable.
	Status *GeoReplicationStatus `json:"status,omitempty" azure:"ro"`
}

GeoReplicationStats - Statistics related to replication for storage account's Blob, Table, Queue and File services. It is only available when geo-redundant replication is enabled for the storage account.

func (GeoReplicationStats) MarshalJSON

func (g GeoReplicationStats) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type GeoReplicationStats.

func (*GeoReplicationStats) UnmarshalJSON

func (g *GeoReplicationStats) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type GeoReplicationStats.

type GeoReplicationStatus

type GeoReplicationStatus string

GeoReplicationStatus - The status of the secondary location. Possible values are: - Live: Indicates that the secondary location is active and operational. - Bootstrap: Indicates initial synchronization from the primary location to the secondary location is in progress.This typically occurs when replication is first enabled. - Unavailable: Indicates that the secondary location is temporarily unavailable.

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

func PossibleGeoReplicationStatusValues

func PossibleGeoReplicationStatusValues() []GeoReplicationStatus

PossibleGeoReplicationStatusValues returns the possible values for the GeoReplicationStatus const type.

func (GeoReplicationStatus) ToPtr

ToPtr returns a *GeoReplicationStatus pointing to the current value.

type HTTPPoller

type HTTPPoller interface {
	azcore.Poller
	// FinalResponse performs a final GET to the service and returns the final response
	// for the polling operation. If there is an error performing the final GET then an error is returned.
	// If the final GET succeeded then the final *http.Response will be returned.
	FinalResponse(ctx context.Context) (*http.Response, error)
}

HTTPPoller provides polling facilities until the operation reaches a terminal state.

type HTTPPollerResponse

type HTTPPollerResponse struct {
	// PollUntilDone will poll the service endpoint until a terminal state is reached or an error is received
	PollUntilDone func(ctx context.Context, frequency time.Duration) (*http.Response, error)

	// Poller contains an initialized poller.
	Poller HTTPPoller

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

HTTPPollerResponse contains the asynchronous HTTP response from the call to the service endpoint.

type HTTPProtocol

type HTTPProtocol string

HTTPProtocol - The protocol permitted for a request made with the account SAS.

const (
	HTTPProtocolHTTPSHTTP HTTPProtocol = "https,http"
	HTTPProtocolHTTPS     HTTPProtocol = "https"
)

func PossibleHTTPProtocolValues

func PossibleHTTPProtocolValues() []HTTPProtocol

PossibleHTTPProtocolValues returns the possible values for the HTTPProtocol const type.

func (HTTPProtocol) ToPtr

func (c HTTPProtocol) ToPtr() *HTTPProtocol

ToPtr returns a *HTTPProtocol pointing to the current value.

type IPRule

type IPRule struct {
	// REQUIRED; Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
	IPAddressOrRange *string `json:"value,omitempty"`

	// The action of IP ACL rule.
	Action *string `json:"action,omitempty"`
}

IPRule - IP rule with specific IP or IP range in CIDR format.

type Identity

type Identity struct {
	// REQUIRED; The identity type.
	Type *IdentityType `json:"type,omitempty"`

	// Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this storage account. The key is the
	// ARM resource identifier of the identity. Only 1
	// User Assigned identity is permitted here.
	UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"`

	// READ-ONLY; The principal ID of resource identity.
	PrincipalID *string `json:"principalId,omitempty" azure:"ro"`

	// READ-ONLY; The tenant ID of resource.
	TenantID *string `json:"tenantId,omitempty" azure:"ro"`
}

Identity for the resource.

func (Identity) MarshalJSON

func (i Identity) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Identity.

type IdentityType

type IdentityType string

IdentityType - The identity type.

const (
	IdentityTypeNone                       IdentityType = "None"
	IdentityTypeSystemAssigned             IdentityType = "SystemAssigned"
	IdentityTypeSystemAssignedUserAssigned IdentityType = "SystemAssigned,UserAssigned"
	IdentityTypeUserAssigned               IdentityType = "UserAssigned"
)

func PossibleIdentityTypeValues

func PossibleIdentityTypeValues() []IdentityType

PossibleIdentityTypeValues returns the possible values for the IdentityType const type.

func (IdentityType) ToPtr

func (c IdentityType) ToPtr() *IdentityType

ToPtr returns a *IdentityType pointing to the current value.

type ImmutabilityPolicy

type ImmutabilityPolicy struct {
	AzureEntityResource
	// REQUIRED; The properties of an ImmutabilityPolicy of a blob container.
	Properties *ImmutabilityPolicyProperty `json:"properties,omitempty"`
}

ImmutabilityPolicy - The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

func (ImmutabilityPolicy) MarshalJSON

func (i ImmutabilityPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ImmutabilityPolicy.

type ImmutabilityPolicyProperties

type ImmutabilityPolicyProperties struct {
	// The properties of an ImmutabilityPolicy of a blob container.
	Properties *ImmutabilityPolicyProperty `json:"properties,omitempty"`

	// READ-ONLY; ImmutabilityPolicy Etag.
	Etag *string `json:"etag,omitempty" azure:"ro"`

	// READ-ONLY; The ImmutabilityPolicy update history of the blob container.
	UpdateHistory []*UpdateHistoryProperty `json:"updateHistory,omitempty" azure:"ro"`
}

ImmutabilityPolicyProperties - The properties of an ImmutabilityPolicy of a blob container.

func (ImmutabilityPolicyProperties) MarshalJSON

func (i ImmutabilityPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ImmutabilityPolicyProperties.

type ImmutabilityPolicyProperty

type ImmutabilityPolicyProperty struct {
	// This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining
	// immutability protection and compliance. Only
	// new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API
	AllowProtectedAppendWrites *bool `json:"allowProtectedAppendWrites,omitempty"`

	// The immutability period for the blobs in the container since the policy creation, in days.
	ImmutabilityPeriodSinceCreationInDays *int32 `json:"immutabilityPeriodSinceCreationInDays,omitempty"`

	// READ-ONLY; The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
	State *ImmutabilityPolicyState `json:"state,omitempty" azure:"ro"`
}

ImmutabilityPolicyProperty - The properties of an ImmutabilityPolicy of a blob container.

type ImmutabilityPolicyResponse

type ImmutabilityPolicyResponse struct {
	// ETag contains the information returned from the ETag header response.
	ETag *string

	// The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.
	ImmutabilityPolicy *ImmutabilityPolicy

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ImmutabilityPolicyResponse is the response envelope for operations that return a ImmutabilityPolicy type.

type ImmutabilityPolicyState

type ImmutabilityPolicyState string

ImmutabilityPolicyState - The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.

const (
	ImmutabilityPolicyStateLocked   ImmutabilityPolicyState = "Locked"
	ImmutabilityPolicyStateUnlocked ImmutabilityPolicyState = "Unlocked"
)

func PossibleImmutabilityPolicyStateValues

func PossibleImmutabilityPolicyStateValues() []ImmutabilityPolicyState

PossibleImmutabilityPolicyStateValues returns the possible values for the ImmutabilityPolicyState const type.

func (ImmutabilityPolicyState) ToPtr

ToPtr returns a *ImmutabilityPolicyState pointing to the current value.

type ImmutabilityPolicyUpdateType

type ImmutabilityPolicyUpdateType string

ImmutabilityPolicyUpdateType - The ImmutabilityPolicy update type of a blob container, possible values include: put, lock and extend.

const (
	ImmutabilityPolicyUpdateTypeExtend ImmutabilityPolicyUpdateType = "extend"
	ImmutabilityPolicyUpdateTypeLock   ImmutabilityPolicyUpdateType = "lock"
	ImmutabilityPolicyUpdateTypePut    ImmutabilityPolicyUpdateType = "put"
)

func PossibleImmutabilityPolicyUpdateTypeValues

func PossibleImmutabilityPolicyUpdateTypeValues() []ImmutabilityPolicyUpdateType

PossibleImmutabilityPolicyUpdateTypeValues returns the possible values for the ImmutabilityPolicyUpdateType const type.

func (ImmutabilityPolicyUpdateType) ToPtr

ToPtr returns a *ImmutabilityPolicyUpdateType pointing to the current value.

type ImmutableStorageWithVersioning

type ImmutableStorageWithVersioning struct {
	// This is an immutable property, when set to true it enables object level immutability at the container level.
	Enabled *bool `json:"enabled,omitempty"`

	// READ-ONLY; This property denotes the container level immutability to object level immutability migration state.
	MigrationState *MigrationState `json:"migrationState,omitempty" azure:"ro"`

	// READ-ONLY; Returns the date and time the object level immutability was enabled.
	TimeStamp *time.Time `json:"timeStamp,omitempty" azure:"ro"`
}

ImmutableStorageWithVersioning - Object level immutability properties of the container.

func (ImmutableStorageWithVersioning) MarshalJSON

func (i ImmutableStorageWithVersioning) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ImmutableStorageWithVersioning.

func (*ImmutableStorageWithVersioning) UnmarshalJSON

func (i *ImmutableStorageWithVersioning) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ImmutableStorageWithVersioning.

type InventoryRuleType

type InventoryRuleType string

InventoryRuleType - The valid value is Inventory

const (
	InventoryRuleTypeInventory InventoryRuleType = "Inventory"
)

func PossibleInventoryRuleTypeValues

func PossibleInventoryRuleTypeValues() []InventoryRuleType

PossibleInventoryRuleTypeValues returns the possible values for the InventoryRuleType const type.

func (InventoryRuleType) ToPtr

ToPtr returns a *InventoryRuleType pointing to the current value.

type KeyCreationTime

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

KeyCreationTime - Storage account keys creation time.

func (KeyCreationTime) MarshalJSON

func (k KeyCreationTime) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KeyCreationTime.

func (*KeyCreationTime) UnmarshalJSON

func (k *KeyCreationTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KeyCreationTime.

type KeyPermission

type KeyPermission string

KeyPermission - Permissions for the key -- read-only or full permissions.

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

func PossibleKeyPermissionValues

func PossibleKeyPermissionValues() []KeyPermission

PossibleKeyPermissionValues returns the possible values for the KeyPermission const type.

func (KeyPermission) ToPtr

func (c KeyPermission) ToPtr() *KeyPermission

ToPtr returns a *KeyPermission pointing to the current value.

type KeyPolicy

type KeyPolicy struct {
	// REQUIRED; The key expiration period in days.
	KeyExpirationPeriodInDays *int32 `json:"keyExpirationPeriodInDays,omitempty"`
}

KeyPolicy assigned to the storage account.

type KeySource

type KeySource string

KeySource - The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault

const (
	KeySourceMicrosoftKeyvault KeySource = "Microsoft.Keyvault"
	KeySourceMicrosoftStorage  KeySource = "Microsoft.Storage"
)

func PossibleKeySourceValues

func PossibleKeySourceValues() []KeySource

PossibleKeySourceValues returns the possible values for the KeySource const type.

func (KeySource) ToPtr

func (c KeySource) ToPtr() *KeySource

ToPtr returns a *KeySource pointing to the current value.

type KeyType

type KeyType string

KeyType - Encryption key type to be used for the encryption service. 'Account' key type implies that an account-scoped encryption key will be used. 'Service' key type implies that a default service key is used.

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

func PossibleKeyTypeValues

func PossibleKeyTypeValues() []KeyType

PossibleKeyTypeValues returns the possible values for the KeyType const type.

func (KeyType) ToPtr

func (c KeyType) ToPtr() *KeyType

ToPtr returns a *KeyType pointing to the current value.

type KeyVaultProperties

type KeyVaultProperties struct {
	// The name of KeyVault key.
	KeyName *string `json:"keyname,omitempty"`

	// The Uri of KeyVault.
	KeyVaultURI *string `json:"keyvaulturi,omitempty"`

	// The version of KeyVault key.
	KeyVersion *string `json:"keyversion,omitempty"`

	// READ-ONLY; The object identifier of the current versioned Key Vault Key in use.
	CurrentVersionedKeyIdentifier *string `json:"currentVersionedKeyIdentifier,omitempty" azure:"ro"`

	// READ-ONLY; Timestamp of last rotation of the Key Vault Key.
	LastKeyRotationTimestamp *time.Time `json:"lastKeyRotationTimestamp,omitempty" azure:"ro"`
}

KeyVaultProperties - Properties of key vault.

func (KeyVaultProperties) MarshalJSON

func (k KeyVaultProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties.

func (*KeyVaultProperties) UnmarshalJSON

func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties.

type Kind

type Kind string

Kind - Indicates the type of storage account.

const (
	KindBlobStorage      Kind = "BlobStorage"
	KindBlockBlobStorage Kind = "BlockBlobStorage"
	KindFileStorage      Kind = "FileStorage"
	KindStorage          Kind = "Storage"
	KindStorageV2        Kind = "StorageV2"
)

func PossibleKindValues

func PossibleKindValues() []Kind

PossibleKindValues returns the possible values for the Kind const type.

func (Kind) ToPtr

func (c Kind) ToPtr() *Kind

ToPtr returns a *Kind pointing to the current value.

type LargeFileSharesState

type LargeFileSharesState string

LargeFileSharesState - Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled.

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

func PossibleLargeFileSharesStateValues

func PossibleLargeFileSharesStateValues() []LargeFileSharesState

PossibleLargeFileSharesStateValues returns the possible values for the LargeFileSharesState const type.

func (LargeFileSharesState) ToPtr

ToPtr returns a *LargeFileSharesState pointing to the current value.

type LastAccessTimeTrackingPolicy

type LastAccessTimeTrackingPolicy struct {
	// REQUIRED; When set to true last access time based tracking is enabled.
	Enable *bool `json:"enable,omitempty"`

	// An array of predefined supported blob types. Only blockBlob is the supported value. This field is currently read only
	BlobType []*string `json:"blobType,omitempty"`

	// Name of the policy. The valid value is AccessTimeTracking. This field is currently read only
	Name *Name `json:"name,omitempty"`

	// The field specifies blob object tracking granularity in days, typically how often the blob object should be tracked.This field is currently read only
	// with value as 1
	TrackingGranularityInDays *int32 `json:"trackingGranularityInDays,omitempty"`
}

LastAccessTimeTrackingPolicy - The blob service properties for Last access time based tracking policy.

func (LastAccessTimeTrackingPolicy) MarshalJSON

func (l LastAccessTimeTrackingPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LastAccessTimeTrackingPolicy.

type LeaseContainerRequest

type LeaseContainerRequest struct {
	// REQUIRED; Specifies the lease action. Can be one of the available actions.
	Action *LeaseContainerRequestAction `json:"action,omitempty"`

	// Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.
	BreakPeriod *int32 `json:"breakPeriod,omitempty"`

	// Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.
	LeaseDuration *int32 `json:"leaseDuration,omitempty"`

	// Identifies the lease. Can be specified in any valid GUID string format.
	LeaseID *string `json:"leaseId,omitempty"`

	// Optional for acquire, required for change. Proposed lease ID, in a GUID string format.
	ProposedLeaseID *string `json:"proposedLeaseId,omitempty"`
}

LeaseContainerRequest - Lease Container request schema.

type LeaseContainerRequestAction

type LeaseContainerRequestAction string

LeaseContainerRequestAction - Specifies the lease action. Can be one of the available actions.

const (
	LeaseContainerRequestActionAcquire LeaseContainerRequestAction = "Acquire"
	LeaseContainerRequestActionBreak   LeaseContainerRequestAction = "Break"
	LeaseContainerRequestActionChange  LeaseContainerRequestAction = "Change"
	LeaseContainerRequestActionRelease LeaseContainerRequestAction = "Release"
	LeaseContainerRequestActionRenew   LeaseContainerRequestAction = "Renew"
)

func PossibleLeaseContainerRequestActionValues

func PossibleLeaseContainerRequestActionValues() []LeaseContainerRequestAction

PossibleLeaseContainerRequestActionValues returns the possible values for the LeaseContainerRequestAction const type.

func (LeaseContainerRequestAction) ToPtr

ToPtr returns a *LeaseContainerRequestAction pointing to the current value.

type LeaseContainerResponse

type LeaseContainerResponse struct {
	// Returned unique lease ID that must be included with any request to delete the container, or to renew, change, or release the lease.
	LeaseID *string `json:"leaseId,omitempty"`

	// Approximate time remaining in the lease period, in seconds.
	LeaseTimeSeconds *string `json:"leaseTimeSeconds,omitempty"`
}

LeaseContainerResponse - Lease Container response schema.

type LeaseContainerResponseResponse

type LeaseContainerResponseResponse struct {
	// Lease Container response schema.
	LeaseContainerResponse *LeaseContainerResponse

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

LeaseContainerResponseResponse is the response envelope for operations that return a LeaseContainerResponse type.

type LeaseDuration

type LeaseDuration string

LeaseDuration - Specifies whether the lease on a container is of infinite or fixed duration, only when the container is leased.

const (
	LeaseDurationFixed    LeaseDuration = "Fixed"
	LeaseDurationInfinite LeaseDuration = "Infinite"
)

func PossibleLeaseDurationValues

func PossibleLeaseDurationValues() []LeaseDuration

PossibleLeaseDurationValues returns the possible values for the LeaseDuration const type.

func (LeaseDuration) ToPtr

func (c LeaseDuration) ToPtr() *LeaseDuration

ToPtr returns a *LeaseDuration pointing to the current value.

type LeaseShareAction

type LeaseShareAction string

LeaseShareAction - Specifies the lease action. Can be one of the available actions.

const (
	LeaseShareActionAcquire LeaseShareAction = "Acquire"
	LeaseShareActionBreak   LeaseShareAction = "Break"
	LeaseShareActionChange  LeaseShareAction = "Change"
	LeaseShareActionRelease LeaseShareAction = "Release"
	LeaseShareActionRenew   LeaseShareAction = "Renew"
)

func PossibleLeaseShareActionValues

func PossibleLeaseShareActionValues() []LeaseShareAction

PossibleLeaseShareActionValues returns the possible values for the LeaseShareAction const type.

func (LeaseShareAction) ToPtr

ToPtr returns a *LeaseShareAction pointing to the current value.

type LeaseShareRequest

type LeaseShareRequest struct {
	// REQUIRED; Specifies the lease action. Can be one of the available actions.
	Action *LeaseShareAction `json:"action,omitempty"`

	// Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.
	BreakPeriod *int32 `json:"breakPeriod,omitempty"`

	// Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.
	LeaseDuration *int32 `json:"leaseDuration,omitempty"`

	// Identifies the lease. Can be specified in any valid GUID string format.
	LeaseID *string `json:"leaseId,omitempty"`

	// Optional for acquire, required for change. Proposed lease ID, in a GUID string format.
	ProposedLeaseID *string `json:"proposedLeaseId,omitempty"`
}

LeaseShareRequest - Lease Share request schema.

type LeaseShareResponse

type LeaseShareResponse struct {
	// Returned unique lease ID that must be included with any request to delete the share, or to renew, change, or release the lease.
	LeaseID *string `json:"leaseId,omitempty"`

	// Approximate time remaining in the lease period, in seconds.
	LeaseTimeSeconds *string `json:"leaseTimeSeconds,omitempty"`
}

LeaseShareResponse - Lease Share response schema.

type LeaseShareResponseResponse

type LeaseShareResponseResponse struct {
	// ETag contains the information returned from the ETag header response.
	ETag *string

	// Lease Share response schema.
	LeaseShareResponse *LeaseShareResponse

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

LeaseShareResponseResponse is the response envelope for operations that return a LeaseShareResponse type.

type LeaseState

type LeaseState string

LeaseState - Lease state of the container.

const (
	LeaseStateAvailable LeaseState = "Available"
	LeaseStateBreaking  LeaseState = "Breaking"
	LeaseStateBroken    LeaseState = "Broken"
	LeaseStateExpired   LeaseState = "Expired"
	LeaseStateLeased    LeaseState = "Leased"
)

func PossibleLeaseStateValues

func PossibleLeaseStateValues() []LeaseState

PossibleLeaseStateValues returns the possible values for the LeaseState const type.

func (LeaseState) ToPtr

func (c LeaseState) ToPtr() *LeaseState

ToPtr returns a *LeaseState pointing to the current value.

type LeaseStatus

type LeaseStatus string

LeaseStatus - The lease status of the container.

const (
	LeaseStatusLocked   LeaseStatus = "Locked"
	LeaseStatusUnlocked LeaseStatus = "Unlocked"
)

func PossibleLeaseStatusValues

func PossibleLeaseStatusValues() []LeaseStatus

PossibleLeaseStatusValues returns the possible values for the LeaseStatus const type.

func (LeaseStatus) ToPtr

func (c LeaseStatus) ToPtr() *LeaseStatus

ToPtr returns a *LeaseStatus pointing to the current value.

type LegalHold

type LegalHold struct {
	// REQUIRED; Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
	Tags []*string `json:"tags,omitempty"`

	// READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to
	// false by SRP if all existing legal hold tags are cleared out.
	// There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
	HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"`
}

LegalHold - The LegalHold property of a blob container.

func (LegalHold) MarshalJSON

func (l LegalHold) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LegalHold.

type LegalHoldProperties

type LegalHoldProperties struct {
	// The list of LegalHold tags of a blob container.
	Tags []*TagProperty `json:"tags,omitempty"`

	// READ-ONLY; The hasLegalHold public property is set to true by SRP if there are at least one existing tag. The hasLegalHold public property is set to
	// false by SRP if all existing legal hold tags are cleared out.
	// There can be a maximum of 1000 blob containers with hasLegalHold=true for a given account.
	HasLegalHold *bool `json:"hasLegalHold,omitempty" azure:"ro"`
}

LegalHoldProperties - The LegalHold property of a blob container.

func (LegalHoldProperties) MarshalJSON

func (l LegalHoldProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type LegalHoldProperties.

type LegalHoldResponse

type LegalHoldResponse struct {
	// The LegalHold property of a blob container.
	LegalHold *LegalHold

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

LegalHoldResponse is the response envelope for operations that return a LegalHold type.

type ListAccountSasResponse

type ListAccountSasResponse struct {
	// READ-ONLY; List SAS credentials of storage account.
	AccountSasToken *string `json:"accountSasToken,omitempty" azure:"ro"`
}

ListAccountSasResponse - The List SAS credentials operation response.

type ListAccountSasResponseResponse

type ListAccountSasResponseResponse struct {
	// The List SAS credentials operation response.
	ListAccountSasResponse *ListAccountSasResponse

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListAccountSasResponseResponse is the response envelope for operations that return a ListAccountSasResponse type.

type ListBlobInventoryPolicy

type ListBlobInventoryPolicy struct {
	// READ-ONLY; List of blob inventory policies.
	Value []*BlobInventoryPolicy `json:"value,omitempty" azure:"ro"`
}

ListBlobInventoryPolicy - List of blob inventory policies returned.

func (ListBlobInventoryPolicy) MarshalJSON

func (l ListBlobInventoryPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListBlobInventoryPolicy.

type ListBlobInventoryPolicyResponse

type ListBlobInventoryPolicyResponse struct {
	// List of blob inventory policies returned.
	ListBlobInventoryPolicy *ListBlobInventoryPolicy

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListBlobInventoryPolicyResponse is the response envelope for operations that return a ListBlobInventoryPolicy type.

type ListContainerItem

type ListContainerItem struct {
	AzureEntityResource
	// The blob container properties be listed out.
	Properties *ContainerProperties `json:"properties,omitempty"`
}

ListContainerItem - The blob container properties be listed out.

func (ListContainerItem) MarshalJSON

func (l ListContainerItem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListContainerItem.

type ListContainerItems

type ListContainerItems struct {
	// READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers exceed maximum page size.
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of blobs containers returned.
	Value []*ListContainerItem `json:"value,omitempty" azure:"ro"`
}

ListContainerItems - Response schema. Contains list of blobs returned, and if paging is requested or required, a URL to next page of containers.

func (ListContainerItems) MarshalJSON

func (l ListContainerItems) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListContainerItems.

type ListContainerItemsPager

type ListContainerItemsPager interface {
	azcore.Pager

	// Page returns the current ListContainerItemsResponse.
	PageResponse() ListContainerItemsResponse
}

ListContainerItemsPager provides iteration over ListContainerItems pages.

type ListContainerItemsResponse

type ListContainerItemsResponse struct {
	// Response schema. Contains list of blobs returned, and if paging is requested or required, a URL to next page of containers.
	ListContainerItems *ListContainerItems

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListContainerItemsResponse is the response envelope for operations that return a ListContainerItems type.

type ListContainersInclude

type ListContainersInclude string
const (
	ListContainersIncludeDeleted ListContainersInclude = "deleted"
)

func PossibleListContainersIncludeValues

func PossibleListContainersIncludeValues() []ListContainersInclude

PossibleListContainersIncludeValues returns the possible values for the ListContainersInclude const type.

func (ListContainersInclude) ToPtr

ToPtr returns a *ListContainersInclude pointing to the current value.

type ListQueue

type ListQueue struct {
	Resource
	// List Queue resource properties.
	QueueProperties *ListQueueProperties `json:"properties,omitempty"`
}

func (ListQueue) MarshalJSON

func (l ListQueue) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListQueue.

type ListQueueProperties

type ListQueueProperties struct {
	// A name-value pair that represents queue metadata.
	Metadata map[string]*string `json:"metadata,omitempty"`
}

func (ListQueueProperties) MarshalJSON

func (l ListQueueProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListQueueProperties.

type ListQueueResource

type ListQueueResource struct {
	// READ-ONLY; Request URL that can be used to list next page of queues
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of queues returned.
	Value []*ListQueue `json:"value,omitempty" azure:"ro"`
}

ListQueueResource - Response schema. Contains list of queues returned

func (ListQueueResource) MarshalJSON

func (l ListQueueResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListQueueResource.

type ListQueueResourcePager

type ListQueueResourcePager interface {
	azcore.Pager

	// Page returns the current ListQueueResourceResponse.
	PageResponse() ListQueueResourceResponse
}

ListQueueResourcePager provides iteration over ListQueueResource pages.

type ListQueueResourceResponse

type ListQueueResourceResponse struct {
	// Response schema. Contains list of queues returned
	ListQueueResource *ListQueueResource

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListQueueResourceResponse is the response envelope for operations that return a ListQueueResource type.

type ListQueueServices

type ListQueueServices struct {
	// READ-ONLY; List of queue services returned.
	Value []*QueueServiceProperties `json:"value,omitempty" azure:"ro"`
}

func (ListQueueServices) MarshalJSON

func (l ListQueueServices) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListQueueServices.

type ListQueueServicesResponse

type ListQueueServicesResponse struct {
	ListQueueServices *ListQueueServices

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListQueueServicesResponse is the response envelope for operations that return a ListQueueServices type.

type ListServiceSasResponse

type ListServiceSasResponse struct {
	// READ-ONLY; List service SAS credentials of specific resource.
	ServiceSasToken *string `json:"serviceSasToken,omitempty" azure:"ro"`
}

ListServiceSasResponse - The List service SAS credentials operation response.

type ListServiceSasResponseResponse

type ListServiceSasResponseResponse struct {
	// The List service SAS credentials operation response.
	ListServiceSasResponse *ListServiceSasResponse

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListServiceSasResponseResponse is the response envelope for operations that return a ListServiceSasResponse type.

type ListTableResource

type ListTableResource struct {
	// READ-ONLY; Request URL that can be used to query next page of tables
	NextLink *string `json:"nextLink,omitempty" azure:"ro"`

	// READ-ONLY; List of tables returned.
	Value []*Table `json:"value,omitempty" azure:"ro"`
}

ListTableResource - Response schema. Contains list of tables returned

func (ListTableResource) MarshalJSON

func (l ListTableResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListTableResource.

type ListTableResourcePager

type ListTableResourcePager interface {
	azcore.Pager

	// Page returns the current ListTableResourceResponse.
	PageResponse() ListTableResourceResponse
}

ListTableResourcePager provides iteration over ListTableResource pages.

type ListTableResourceResponse

type ListTableResourceResponse struct {
	// Response schema. Contains list of tables returned
	ListTableResource *ListTableResource

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListTableResourceResponse is the response envelope for operations that return a ListTableResource type.

type ListTableServices

type ListTableServices struct {
	// READ-ONLY; List of table services returned.
	Value []*TableServiceProperties `json:"value,omitempty" azure:"ro"`
}

func (ListTableServices) MarshalJSON

func (l ListTableServices) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ListTableServices.

type ListTableServicesResponse

type ListTableServicesResponse struct {
	ListTableServices *ListTableServices

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ListTableServicesResponse is the response envelope for operations that return a ListTableServices type.

type ManagementPoliciesClient

type ManagementPoliciesClient struct {
	// contains filtered or unexported fields
}

ManagementPoliciesClient contains the methods for the ManagementPolicies group. Don't use this type directly, use NewManagementPoliciesClient() instead.

func NewManagementPoliciesClient

func NewManagementPoliciesClient(con *armcore.Connection, subscriptionID string) *ManagementPoliciesClient

NewManagementPoliciesClient creates a new instance of ManagementPoliciesClient with the specified values.

func (*ManagementPoliciesClient) CreateOrUpdate

func (client *ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, managementPolicyName ManagementPolicyName, properties ManagementPolicy, options *ManagementPoliciesCreateOrUpdateOptions) (ManagementPolicyResponse, error)

CreateOrUpdate - Sets the managementpolicy to the specified storage account. If the operation fails it returns a generic error.

func (*ManagementPoliciesClient) Delete

func (client *ManagementPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, managementPolicyName ManagementPolicyName, options *ManagementPoliciesDeleteOptions) (*http.Response, error)

Delete - Deletes the managementpolicy associated with the specified storage account. If the operation fails it returns a generic error.

func (*ManagementPoliciesClient) Get

func (client *ManagementPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, managementPolicyName ManagementPolicyName, options *ManagementPoliciesGetOptions) (ManagementPolicyResponse, error)

Get - Gets the managementpolicy associated with the specified storage account. If the operation fails it returns a generic error.

type ManagementPoliciesCreateOrUpdateOptions

type ManagementPoliciesCreateOrUpdateOptions struct {
}

ManagementPoliciesCreateOrUpdateOptions contains the optional parameters for the ManagementPolicies.CreateOrUpdate method.

type ManagementPoliciesDeleteOptions

type ManagementPoliciesDeleteOptions struct {
}

ManagementPoliciesDeleteOptions contains the optional parameters for the ManagementPolicies.Delete method.

type ManagementPoliciesGetOptions

type ManagementPoliciesGetOptions struct {
}

ManagementPoliciesGetOptions contains the optional parameters for the ManagementPolicies.Get method.

type ManagementPolicy

type ManagementPolicy struct {
	Resource
	// Returns the Storage Account Data Policies Rules.
	Properties *ManagementPolicyProperties `json:"properties,omitempty"`
}

ManagementPolicy - The Get Storage Account ManagementPolicies operation response.

func (ManagementPolicy) MarshalJSON

func (m ManagementPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagementPolicy.

type ManagementPolicyAction

type ManagementPolicyAction struct {
	// The management policy action for base blob
	BaseBlob *ManagementPolicyBaseBlob `json:"baseBlob,omitempty"`

	// The management policy action for snapshot
	Snapshot *ManagementPolicySnapShot `json:"snapshot,omitempty"`

	// The management policy action for version
	Version *ManagementPolicyVersion `json:"version,omitempty"`
}

ManagementPolicyAction - Actions are applied to the filtered blobs when the execution condition is met.

type ManagementPolicyBaseBlob

type ManagementPolicyBaseBlob struct {
	// The function to delete the blob
	Delete *DateAfterModification `json:"delete,omitempty"`

	// This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
	EnableAutoTierToHotFromCool *bool `json:"enableAutoTierToHotFromCool,omitempty"`

	// The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
	TierToArchive *DateAfterModification `json:"tierToArchive,omitempty"`

	// The function to tier blobs to cool storage. Support blobs currently at Hot tier
	TierToCool *DateAfterModification `json:"tierToCool,omitempty"`
}

ManagementPolicyBaseBlob - Management policy action for base blob.

type ManagementPolicyDefinition

type ManagementPolicyDefinition struct {
	// REQUIRED; An object that defines the action set.
	Actions *ManagementPolicyAction `json:"actions,omitempty"`

	// An object that defines the filter set.
	Filters *ManagementPolicyFilter `json:"filters,omitempty"`
}

ManagementPolicyDefinition - An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set.

type ManagementPolicyFilter

type ManagementPolicyFilter struct {
	// REQUIRED; An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
	BlobTypes []*string `json:"blobTypes,omitempty"`

	// An array of blob index tag based filters, there can be at most 10 tag filters
	BlobIndexMatch []*TagFilter `json:"blobIndexMatch,omitempty"`

	// An array of strings for prefixes to be match.
	PrefixMatch []*string `json:"prefixMatch,omitempty"`
}

ManagementPolicyFilter - Filters limit rule actions to a subset of blobs within the storage account. If multiple filters are defined, a logical AND is performed on all filters.

func (ManagementPolicyFilter) MarshalJSON

func (m ManagementPolicyFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagementPolicyFilter.

type ManagementPolicyName

type ManagementPolicyName string
const (
	ManagementPolicyNameDefault ManagementPolicyName = "default"
)

func PossibleManagementPolicyNameValues

func PossibleManagementPolicyNameValues() []ManagementPolicyName

PossibleManagementPolicyNameValues returns the possible values for the ManagementPolicyName const type.

func (ManagementPolicyName) ToPtr

ToPtr returns a *ManagementPolicyName pointing to the current value.

type ManagementPolicyProperties

type ManagementPolicyProperties struct {
	// REQUIRED; The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
	Policy *ManagementPolicySchema `json:"policy,omitempty"`

	// READ-ONLY; Returns the date and time the ManagementPolicies was last modified.
	LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty" azure:"ro"`
}

ManagementPolicyProperties - The Storage Account ManagementPolicy properties.

func (ManagementPolicyProperties) MarshalJSON

func (m ManagementPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagementPolicyProperties.

func (*ManagementPolicyProperties) UnmarshalJSON

func (m *ManagementPolicyProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ManagementPolicyProperties.

type ManagementPolicyResponse

type ManagementPolicyResponse struct {
	// The Get Storage Account ManagementPolicies operation response.
	ManagementPolicy *ManagementPolicy

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ManagementPolicyResponse is the response envelope for operations that return a ManagementPolicy type.

type ManagementPolicyRule

type ManagementPolicyRule struct {
	// REQUIRED; An object that defines the Lifecycle rule.
	Definition *ManagementPolicyDefinition `json:"definition,omitempty"`

	// REQUIRED; A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
	Name *string `json:"name,omitempty"`

	// REQUIRED; The valid value is Lifecycle
	Type *RuleType `json:"type,omitempty"`

	// Rule is enabled if set to true.
	Enabled *bool `json:"enabled,omitempty"`
}

ManagementPolicyRule - An object that wraps the Lifecycle rule. Each rule is uniquely defined by name.

type ManagementPolicySchema

type ManagementPolicySchema struct {
	// REQUIRED; The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
	Rules []*ManagementPolicyRule `json:"rules,omitempty"`
}

ManagementPolicySchema - The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

func (ManagementPolicySchema) MarshalJSON

func (m ManagementPolicySchema) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ManagementPolicySchema.

type ManagementPolicySnapShot

type ManagementPolicySnapShot struct {
	// The function to delete the blob snapshot
	Delete *DateAfterCreation `json:"delete,omitempty"`

	// The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
	TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"`

	// The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
	TierToCool *DateAfterCreation `json:"tierToCool,omitempty"`
}

ManagementPolicySnapShot - Management policy action for snapshot.

type ManagementPolicyVersion

type ManagementPolicyVersion struct {
	// The function to delete the blob version
	Delete *DateAfterCreation `json:"delete,omitempty"`

	// The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
	TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"`

	// The function to tier blob version to cool storage. Support blob version currently at Hot tier
	TierToCool *DateAfterCreation `json:"tierToCool,omitempty"`
}

ManagementPolicyVersion - Management policy action for blob version.

type MetricSpecification

type MetricSpecification struct {
	// Aggregation type could be Average.
	AggregationType *string `json:"aggregationType,omitempty"`

	// The category this metric specification belong to, could be Capacity.
	Category *string `json:"category,omitempty"`

	// Dimensions of blobs, including blob type and access tier.
	Dimensions []*Dimension `json:"dimensions,omitempty"`

	// Display description of metric specification.
	DisplayDescription *string `json:"displayDescription,omitempty"`

	// Display name of metric specification.
	DisplayName *string `json:"displayName,omitempty"`

	// The property to decide fill gap with zero or not.
	FillGapWithZero *bool `json:"fillGapWithZero,omitempty"`

	// Name of metric specification.
	Name *string `json:"name,omitempty"`

	// Account Resource Id.
	ResourceIDDimensionNameOverride *string `json:"resourceIdDimensionNameOverride,omitempty"`

	// Unit could be Bytes or Count.
	Unit *string `json:"unit,omitempty"`
}

MetricSpecification - Metric specification of operation.

func (MetricSpecification) MarshalJSON

func (m MetricSpecification) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type MetricSpecification.

type MigrationState

type MigrationState string

MigrationState - This property denotes the container level immutability to object level immutability migration state.

const (
	MigrationStateCompleted  MigrationState = "Completed"
	MigrationStateInProgress MigrationState = "InProgress"
)

func PossibleMigrationStateValues

func PossibleMigrationStateValues() []MigrationState

PossibleMigrationStateValues returns the possible values for the MigrationState const type.

func (MigrationState) ToPtr

func (c MigrationState) ToPtr() *MigrationState

ToPtr returns a *MigrationState pointing to the current value.

type MinimumTLSVersion

type MinimumTLSVersion string

MinimumTLSVersion - Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property.

const (
	MinimumTLSVersionTLS10 MinimumTLSVersion = "TLS1_0"
	MinimumTLSVersionTLS11 MinimumTLSVersion = "TLS1_1"
	MinimumTLSVersionTLS12 MinimumTLSVersion = "TLS1_2"
)

func PossibleMinimumTLSVersionValues

func PossibleMinimumTLSVersionValues() []MinimumTLSVersion

PossibleMinimumTLSVersionValues returns the possible values for the MinimumTLSVersion const type.

func (MinimumTLSVersion) ToPtr

ToPtr returns a *MinimumTLSVersion pointing to the current value.

type Multichannel

type Multichannel struct {
	// Indicates whether multichannel is enabled
	Enabled *bool `json:"enabled,omitempty"`
}

Multichannel setting. Applies to Premium FileStorage only.

type Name

type Name string

Name - Name of the policy. The valid value is AccessTimeTracking. This field is currently read only

const (
	NameAccessTimeTracking Name = "AccessTimeTracking"
)

func PossibleNameValues

func PossibleNameValues() []Name

PossibleNameValues returns the possible values for the Name const type.

func (Name) ToPtr

func (c Name) ToPtr() *Name

ToPtr returns a *Name pointing to the current value.

type NetworkRuleSet

type NetworkRuleSet struct {
	// REQUIRED; Specifies the default action of allow or deny when no other rules match.
	DefaultAction *DefaultAction `json:"defaultAction,omitempty"`

	// Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example,
	// "Logging, Metrics"), or None to bypass none
	// of those traffics.
	Bypass *Bypass `json:"bypass,omitempty"`

	// Sets the IP ACL rules
	IPRules []*IPRule `json:"ipRules,omitempty"`

	// Sets the resource access rules
	ResourceAccessRules []*ResourceAccessRule `json:"resourceAccessRules,omitempty"`

	// Sets the virtual network rules
	VirtualNetworkRules []*VirtualNetworkRule `json:"virtualNetworkRules,omitempty"`
}

NetworkRuleSet - Network rule set

func (NetworkRuleSet) MarshalJSON

func (n NetworkRuleSet) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet.

type ObjectReplicationPolicies

type ObjectReplicationPolicies struct {
	// The replication policy between two storage accounts.
	Value []*ObjectReplicationPolicy `json:"value,omitempty"`
}

ObjectReplicationPolicies - List storage account object replication policies.

func (ObjectReplicationPolicies) MarshalJSON

func (o ObjectReplicationPolicies) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicies.

type ObjectReplicationPoliciesClient

type ObjectReplicationPoliciesClient struct {
	// contains filtered or unexported fields
}

ObjectReplicationPoliciesClient contains the methods for the ObjectReplicationPolicies group. Don't use this type directly, use NewObjectReplicationPoliciesClient() instead.

func NewObjectReplicationPoliciesClient

func NewObjectReplicationPoliciesClient(con *armcore.Connection, subscriptionID string) *ObjectReplicationPoliciesClient

NewObjectReplicationPoliciesClient creates a new instance of ObjectReplicationPoliciesClient with the specified values.

func (*ObjectReplicationPoliciesClient) CreateOrUpdate

func (client *ObjectReplicationPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, properties ObjectReplicationPolicy, options *ObjectReplicationPoliciesCreateOrUpdateOptions) (ObjectReplicationPolicyResponse, error)

CreateOrUpdate - Create or update the object replication policy of the storage account. If the operation fails it returns the *ErrorResponse error type.

func (*ObjectReplicationPoliciesClient) Delete

func (client *ObjectReplicationPoliciesClient) Delete(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, options *ObjectReplicationPoliciesDeleteOptions) (*http.Response, error)

Delete - Deletes the object replication policy associated with the specified storage account. If the operation fails it returns the *ErrorResponse error type.

func (*ObjectReplicationPoliciesClient) Get

func (client *ObjectReplicationPoliciesClient) Get(ctx context.Context, resourceGroupName string, accountName string, objectReplicationPolicyID string, options *ObjectReplicationPoliciesGetOptions) (ObjectReplicationPolicyResponse, error)

Get - Get the object replication policy of the storage account by policy ID. If the operation fails it returns the *ErrorResponse error type.

func (*ObjectReplicationPoliciesClient) List

List - List the object replication policies associated with the storage account. If the operation fails it returns the *ErrorResponse error type.

type ObjectReplicationPoliciesCreateOrUpdateOptions

type ObjectReplicationPoliciesCreateOrUpdateOptions struct {
}

ObjectReplicationPoliciesCreateOrUpdateOptions contains the optional parameters for the ObjectReplicationPolicies.CreateOrUpdate method.

type ObjectReplicationPoliciesDeleteOptions

type ObjectReplicationPoliciesDeleteOptions struct {
}

ObjectReplicationPoliciesDeleteOptions contains the optional parameters for the ObjectReplicationPolicies.Delete method.

type ObjectReplicationPoliciesGetOptions

type ObjectReplicationPoliciesGetOptions struct {
}

ObjectReplicationPoliciesGetOptions contains the optional parameters for the ObjectReplicationPolicies.Get method.

type ObjectReplicationPoliciesListOptions

type ObjectReplicationPoliciesListOptions struct {
}

ObjectReplicationPoliciesListOptions contains the optional parameters for the ObjectReplicationPolicies.List method.

type ObjectReplicationPoliciesResponse

type ObjectReplicationPoliciesResponse struct {
	// List storage account object replication policies.
	ObjectReplicationPolicies *ObjectReplicationPolicies

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ObjectReplicationPoliciesResponse is the response envelope for operations that return a ObjectReplicationPolicies type.

type ObjectReplicationPolicy

type ObjectReplicationPolicy struct {
	Resource
	// Returns the Storage Account Object Replication Policy.
	Properties *ObjectReplicationPolicyProperties `json:"properties,omitempty"`
}

ObjectReplicationPolicy - The replication policy between two storage accounts. Multiple rules can be defined in one policy.

func (ObjectReplicationPolicy) MarshalJSON

func (o ObjectReplicationPolicy) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicy.

type ObjectReplicationPolicyFilter

type ObjectReplicationPolicyFilter struct {
	// Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z
	MinCreationTime *string `json:"minCreationTime,omitempty"`

	// Optional. Filters the results to replicate only blobs whose names begin with the specified prefix.
	PrefixMatch []*string `json:"prefixMatch,omitempty"`
}

ObjectReplicationPolicyFilter - Filters limit replication to a subset of blobs within the storage account. A logical OR is performed on values in the filter. If multiple filters are defined, a logical AND is performed on all filters.

func (ObjectReplicationPolicyFilter) MarshalJSON

func (o ObjectReplicationPolicyFilter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyFilter.

type ObjectReplicationPolicyProperties

type ObjectReplicationPolicyProperties struct {
	// REQUIRED; Required. Destination account name. It should be full resource id if allowCrossTenantReplication set to false.
	DestinationAccount *string `json:"destinationAccount,omitempty"`

	// REQUIRED; Required. Source account name. It should be full resource id if allowCrossTenantReplication set to false.
	SourceAccount *string `json:"sourceAccount,omitempty"`

	// The storage account object replication rules.
	Rules []*ObjectReplicationPolicyRule `json:"rules,omitempty"`

	// READ-ONLY; Indicates when the policy is enabled on the source account.
	EnabledTime *time.Time `json:"enabledTime,omitempty" azure:"ro"`

	// READ-ONLY; A unique id for object replication policy.
	PolicyID *string `json:"policyId,omitempty" azure:"ro"`
}

ObjectReplicationPolicyProperties - The Storage Account ObjectReplicationPolicy properties.

func (ObjectReplicationPolicyProperties) MarshalJSON

func (o ObjectReplicationPolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type ObjectReplicationPolicyProperties.

func (*ObjectReplicationPolicyProperties) UnmarshalJSON

func (o *ObjectReplicationPolicyProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type ObjectReplicationPolicyProperties.

type ObjectReplicationPolicyResponse

type ObjectReplicationPolicyResponse struct {
	// The replication policy between two storage accounts. Multiple rules can be defined in one policy.
	ObjectReplicationPolicy *ObjectReplicationPolicy

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

ObjectReplicationPolicyResponse is the response envelope for operations that return a ObjectReplicationPolicy type.

type ObjectReplicationPolicyRule

type ObjectReplicationPolicyRule struct {
	// REQUIRED; Required. Destination container name.
	DestinationContainer *string `json:"destinationContainer,omitempty"`

	// REQUIRED; Required. Source container name.
	SourceContainer *string `json:"sourceContainer,omitempty"`

	// Optional. An object that defines the filter set.
	Filters *ObjectReplicationPolicyFilter `json:"filters,omitempty"`

	// Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
	RuleID *string `json:"ruleId,omitempty"`
}

ObjectReplicationPolicyRule - The replication policy rule between two containers.

type ObjectType

type ObjectType string

ObjectType - This is a required field. This field specifies the scope of the inventory created either at the blob or container level.

const (
	ObjectTypeBlob      ObjectType = "Blob"
	ObjectTypeContainer ObjectType = "Container"
)

func PossibleObjectTypeValues

func PossibleObjectTypeValues() []ObjectType

PossibleObjectTypeValues returns the possible values for the ObjectType const type.

func (ObjectType) ToPtr

func (c ObjectType) ToPtr() *ObjectType

ToPtr returns a *ObjectType pointing to the current value.

type Operation

type Operation struct {
	// Display metadata associated with the operation.
	Display *OperationDisplay `json:"display,omitempty"`

	// Operation name: {provider}/{resource}/{operation}
	Name *string `json:"name,omitempty"`

	// Properties of operation, include metric specifications.
	OperationProperties *OperationProperties `json:"properties,omitempty"`

	// The origin of operations.
	Origin *string `json:"origin,omitempty"`
}

Operation - Storage REST API operation definition.

type OperationDisplay

type OperationDisplay struct {
	// Description of the operation.
	Description *string `json:"description,omitempty"`

	// Type of operation: get, read, delete, etc.
	Operation *string `json:"operation,omitempty"`

	// Service provider: Microsoft Storage.
	Provider *string `json:"provider,omitempty"`

	// Resource on which the operation is performed etc.
	Resource *string `json:"resource,omitempty"`
}

OperationDisplay - Display metadata associated with the operation.

type OperationListResult

type OperationListResult struct {
	// List of Storage operations supported by the Storage resource provider.
	Value []*Operation `json:"value,omitempty"`
}

OperationListResult - Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.

func (OperationListResult) MarshalJSON

func (o OperationListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type OperationListResult.

type OperationListResultResponse

type OperationListResultResponse struct {
	// Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results.
	OperationListResult *OperationListResult

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

OperationListResultResponse is the response envelope for operations that return a OperationListResult type.

type OperationProperties

type OperationProperties struct {
	// One property of operation, include metric specifications.
	ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"`
}

OperationProperties - Properties of operation, include metric specifications.

type OperationsClient

type OperationsClient struct {
	// contains filtered or unexported fields
}

OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.

func NewOperationsClient

func NewOperationsClient(con *armcore.Connection) *OperationsClient

NewOperationsClient creates a new instance of OperationsClient with the specified values.

func (*OperationsClient) List

List - Lists all of the available Storage Rest API operations. If the operation fails it returns a generic error.

type OperationsListOptions

type OperationsListOptions struct {
}

OperationsListOptions contains the optional parameters for the Operations.List method.

type Permissions

type Permissions string

Permissions - The signed permissions for the account SAS. Possible values include: Read (r), Write (w), Delete (d), List (l), Add (a), Create (c), Update (u) and Process (p).

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 PossiblePermissionsValues

func PossiblePermissionsValues() []Permissions

PossiblePermissionsValues returns the possible values for the Permissions const type.

func (Permissions) ToPtr

func (c Permissions) ToPtr() *Permissions

ToPtr returns a *Permissions pointing to the current value.

type PrivateEndpoint

type PrivateEndpoint struct {
	// READ-ONLY; The ARM identifier for Private Endpoint
	ID *string `json:"id,omitempty" azure:"ro"`
}

PrivateEndpoint - The Private Endpoint resource.

type PrivateEndpointConnection

type PrivateEndpointConnection struct {
	Resource
	// Resource properties.
	Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"`
}

PrivateEndpointConnection - The Private Endpoint Connection resource.

func (PrivateEndpointConnection) MarshalJSON

func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection.

type PrivateEndpointConnectionListResult

type PrivateEndpointConnectionListResult struct {
	// Array of private endpoint connections
	Value []*PrivateEndpointConnection `json:"value,omitempty"`
}

PrivateEndpointConnectionListResult - List of private endpoint connection associated with the specified storage account

func (PrivateEndpointConnectionListResult) MarshalJSON

func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult.

type PrivateEndpointConnectionListResultResponse

type PrivateEndpointConnectionListResultResponse struct {
	// List of private endpoint connection associated with the specified storage account
	PrivateEndpointConnectionListResult *PrivateEndpointConnectionListResult

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

PrivateEndpointConnectionListResultResponse is the response envelope for operations that return a PrivateEndpointConnectionListResult type.

type PrivateEndpointConnectionProperties

type PrivateEndpointConnectionProperties struct {
	// REQUIRED; A collection of information about the state of the connection between service consumer and provider.
	PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"`

	// The resource of private end point.
	PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"`

	// READ-ONLY; The provisioning state of the private endpoint connection resource.
	ProvisioningState *PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty" azure:"ro"`
}

PrivateEndpointConnectionProperties - Properties of the PrivateEndpointConnectProperties.

type PrivateEndpointConnectionProvisioningState

type PrivateEndpointConnectionProvisioningState string

PrivateEndpointConnectionProvisioningState - The current provisioning state.

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

func PossiblePrivateEndpointConnectionProvisioningStateValues

func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState

PossiblePrivateEndpointConnectionProvisioningStateValues returns the possible values for the PrivateEndpointConnectionProvisioningState const type.

func (PrivateEndpointConnectionProvisioningState) ToPtr

ToPtr returns a *PrivateEndpointConnectionProvisioningState pointing to the current value.

type PrivateEndpointConnectionResponse

type PrivateEndpointConnectionResponse struct {
	// The Private Endpoint Connection resource.
	PrivateEndpointConnection *PrivateEndpointConnection

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

PrivateEndpointConnectionResponse is the response envelope for operations that return a PrivateEndpointConnection type.

type PrivateEndpointConnectionsClient

type PrivateEndpointConnectionsClient struct {
	// contains filtered or unexported fields
}

PrivateEndpointConnectionsClient contains the methods for the PrivateEndpointConnections group. Don't use this type directly, use NewPrivateEndpointConnectionsClient() instead.

func NewPrivateEndpointConnectionsClient

func NewPrivateEndpointConnectionsClient(con *armcore.Connection, subscriptionID string) *PrivateEndpointConnectionsClient

NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values.

func (*PrivateEndpointConnectionsClient) Delete

func (client *PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsDeleteOptions) (*http.Response, error)

Delete - Deletes the specified private endpoint connection associated with the storage account. If the operation fails it returns the *ErrorResponse error type.

func (*PrivateEndpointConnectionsClient) Get

func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsGetOptions) (PrivateEndpointConnectionResponse, error)

Get - Gets the specified private endpoint connection associated with the storage account. If the operation fails it returns the *ErrorResponse error type.

func (*PrivateEndpointConnectionsClient) List

List - List all the private endpoint connections associated with the storage account. If the operation fails it returns a generic error.

func (*PrivateEndpointConnectionsClient) Put

func (client *PrivateEndpointConnectionsClient) Put(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsPutOptions) (PrivateEndpointConnectionResponse, error)

Put - Update the state of specified private endpoint connection associated with the storage account. If the operation fails it returns the *ErrorResponse error type.

type PrivateEndpointConnectionsDeleteOptions

type PrivateEndpointConnectionsDeleteOptions struct {
}

PrivateEndpointConnectionsDeleteOptions contains the optional parameters for the PrivateEndpointConnections.Delete method.

type PrivateEndpointConnectionsGetOptions

type PrivateEndpointConnectionsGetOptions struct {
}

PrivateEndpointConnectionsGetOptions contains the optional parameters for the PrivateEndpointConnections.Get method.

type PrivateEndpointConnectionsListOptions

type PrivateEndpointConnectionsListOptions struct {
}

PrivateEndpointConnectionsListOptions contains the optional parameters for the PrivateEndpointConnections.List method.

type PrivateEndpointConnectionsPutOptions

type PrivateEndpointConnectionsPutOptions struct {
}

PrivateEndpointConnectionsPutOptions contains the optional parameters for the PrivateEndpointConnections.Put method.

type PrivateEndpointServiceConnectionStatus

type PrivateEndpointServiceConnectionStatus string

PrivateEndpointServiceConnectionStatus - The private endpoint connection status.

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

func PossiblePrivateEndpointServiceConnectionStatusValues

func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus

PossiblePrivateEndpointServiceConnectionStatusValues returns the possible values for the PrivateEndpointServiceConnectionStatus const type.

func (PrivateEndpointServiceConnectionStatus) ToPtr

ToPtr returns a *PrivateEndpointServiceConnectionStatus pointing to the current value.

type PrivateLinkResource

type PrivateLinkResource struct {
	Resource
	// Resource properties.
	Properties *PrivateLinkResourceProperties `json:"properties,omitempty"`
}

PrivateLinkResource - A private link resource

func (PrivateLinkResource) MarshalJSON

func (p PrivateLinkResource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource.

type PrivateLinkResourceListResult

type PrivateLinkResourceListResult struct {
	// Array of private link resources
	Value []*PrivateLinkResource `json:"value,omitempty"`
}

PrivateLinkResourceListResult - A list of private link resources

func (PrivateLinkResourceListResult) MarshalJSON

func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult.

type PrivateLinkResourceListResultResponse

type PrivateLinkResourceListResultResponse struct {
	// A list of private link resources
	PrivateLinkResourceListResult *PrivateLinkResourceListResult

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

PrivateLinkResourceListResultResponse is the response envelope for operations that return a PrivateLinkResourceListResult type.

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	// The private link resource Private link DNS zone name.
	RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"`

	// READ-ONLY; The private link resource group id.
	GroupID *string `json:"groupId,omitempty" azure:"ro"`

	// READ-ONLY; The private link resource required member names.
	RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"`
}

PrivateLinkResourceProperties - Properties of a private link resource.

func (PrivateLinkResourceProperties) MarshalJSON

func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties.

type PrivateLinkResourcesClient

type PrivateLinkResourcesClient struct {
	// contains filtered or unexported fields
}

PrivateLinkResourcesClient contains the methods for the PrivateLinkResources group. Don't use this type directly, use NewPrivateLinkResourcesClient() instead.

func NewPrivateLinkResourcesClient

func NewPrivateLinkResourcesClient(con *armcore.Connection, subscriptionID string) *PrivateLinkResourcesClient

NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values.

func (*PrivateLinkResourcesClient) ListByStorageAccount

func (client *PrivateLinkResourcesClient) ListByStorageAccount(ctx context.Context, resourceGroupName string, accountName string, options *PrivateLinkResourcesListByStorageAccountOptions) (PrivateLinkResourceListResultResponse, error)

ListByStorageAccount - Gets the private link resources that need to be created for a storage account. If the operation fails it returns a generic error.

type PrivateLinkResourcesListByStorageAccountOptions

type PrivateLinkResourcesListByStorageAccountOptions struct {
}

PrivateLinkResourcesListByStorageAccountOptions contains the optional parameters for the PrivateLinkResources.ListByStorageAccount method.

type PrivateLinkServiceConnectionState

type PrivateLinkServiceConnectionState struct {
	// A message indicating if changes on the service provider require any updates on the consumer.
	ActionRequired *string `json:"actionRequired,omitempty"`

	// The reason for approval/rejection of the connection.
	Description *string `json:"description,omitempty"`

	// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
	Status *PrivateEndpointServiceConnectionStatus `json:"status,omitempty"`
}

PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider.

type ProtocolSettings

type ProtocolSettings struct {
	// Setting for SMB protocol
	Smb *SmbSetting `json:"smb,omitempty"`
}

ProtocolSettings - Protocol settings for file service

type ProvisioningState

type ProvisioningState string

ProvisioningState - Gets the status of the storage account at the time the operation was called.

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

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.

func (ProvisioningState) ToPtr

ToPtr returns a *ProvisioningState pointing to the current value.

type ProxyResource

type ProxyResource struct {
	Resource
}

ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location

type PublicAccess

type PublicAccess string

PublicAccess - Specifies whether data in the container may be accessed publicly and the level of access.

const (
	PublicAccessContainer PublicAccess = "Container"
	PublicAccessBlob      PublicAccess = "Blob"
	PublicAccessNone      PublicAccess = "None"
)

func PossiblePublicAccessValues

func PossiblePublicAccessValues() []PublicAccess

PossiblePublicAccessValues returns the possible values for the PublicAccess const type.

func (PublicAccess) ToPtr

func (c PublicAccess) ToPtr() *PublicAccess

ToPtr returns a *PublicAccess pointing to the current value.

type QueueClient

type QueueClient struct {
	// contains filtered or unexported fields
}

QueueClient contains the methods for the Queue group. Don't use this type directly, use NewQueueClient() instead.

func NewQueueClient

func NewQueueClient(con *armcore.Connection, subscriptionID string) *QueueClient

NewQueueClient creates a new instance of QueueClient with the specified values.

func (*QueueClient) Create

func (client *QueueClient) Create(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue StorageQueue, options *QueueCreateOptions) (StorageQueueResponse, error)

Create - Creates a new queue with the specified queue name, under the specified account. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*QueueClient) Delete

func (client *QueueClient) Delete(ctx context.Context, resourceGroupName string, accountName string, queueName string, options *QueueDeleteOptions) (*http.Response, error)

Delete - Deletes the queue with the specified queue name, under the specified account if it exists. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*QueueClient) Get

func (client *QueueClient) Get(ctx context.Context, resourceGroupName string, accountName string, queueName string, options *QueueGetOptions) (StorageQueueResponse, error)

Get - Gets the queue with the specified queue name, under the specified account if it exists. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*QueueClient) List

func (client *QueueClient) List(resourceGroupName string, accountName string, options *QueueListOptions) ListQueueResourcePager

List - Gets a list of all the queues under the specified storage account If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*QueueClient) Update

func (client *QueueClient) Update(ctx context.Context, resourceGroupName string, accountName string, queueName string, queue StorageQueue, options *QueueUpdateOptions) (StorageQueueResponse, error)

Update - Creates a new queue with the specified queue name, under the specified account. If the operation fails it returns the *CloudErrorAutoGenerated error type.

type QueueCreateOptions

type QueueCreateOptions struct {
}

QueueCreateOptions contains the optional parameters for the Queue.Create method.

type QueueDeleteOptions

type QueueDeleteOptions struct {
}

QueueDeleteOptions contains the optional parameters for the Queue.Delete method.

type QueueGetOptions

type QueueGetOptions struct {
}

QueueGetOptions contains the optional parameters for the Queue.Get method.

type QueueListOptions

type QueueListOptions struct {
	// Optional, When specified, only the queues with a name starting with the given filter will be listed.
	Filter *string
	// Optional, a maximum number of queues that should be included in a list queue response
	Maxpagesize *string
}

QueueListOptions contains the optional parameters for the Queue.List method.

type QueueProperties

type QueueProperties struct {
	// A name-value pair that represents queue metadata.
	Metadata map[string]*string `json:"metadata,omitempty"`

	// READ-ONLY; Integer indicating an approximate number of messages in the queue. This number is not lower than the actual number of messages in the queue,
	// but could be higher.
	ApproximateMessageCount *int32 `json:"approximateMessageCount,omitempty" azure:"ro"`
}

func (QueueProperties) MarshalJSON

func (q QueueProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueueProperties.

type QueueServiceProperties

type QueueServiceProperties struct {
	Resource
	// The properties of a storage account’s Queue service.
	QueueServiceProperties *QueueServicePropertiesAutoGenerated `json:"properties,omitempty"`
}

QueueServiceProperties - The properties of a storage account’s Queue service.

func (QueueServiceProperties) MarshalJSON

func (q QueueServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type QueueServiceProperties.

type QueueServicePropertiesAutoGenerated

type QueueServicePropertiesAutoGenerated struct {
	// Specifies CORS rules for the Queue service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the
	// request body, all CORS rules will be deleted, and
	// CORS will be disabled for the Queue service.
	Cors *CorsRules `json:"cors,omitempty"`
}

QueueServicePropertiesAutoGenerated - The properties of a storage account’s Queue service.

type QueueServicePropertiesResponse

type QueueServicePropertiesResponse struct {
	// The properties of a storage account’s Queue service.
	QueueServiceProperties *QueueServiceProperties

	// RawResponse contains the underlying HTTP response.
	RawResponse *http.Response
}

QueueServicePropertiesResponse is the response envelope for operations that return a QueueServiceProperties type.

type QueueServicesClient

type QueueServicesClient struct {
	// contains filtered or unexported fields
}

QueueServicesClient contains the methods for the QueueServices group. Don't use this type directly, use NewQueueServicesClient() instead.

func NewQueueServicesClient

func NewQueueServicesClient(con *armcore.Connection, subscriptionID string) *QueueServicesClient

NewQueueServicesClient creates a new instance of QueueServicesClient with the specified values.

func (*QueueServicesClient) GetServiceProperties

func (client *QueueServicesClient) GetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, options *QueueServicesGetServicePropertiesOptions) (QueueServicePropertiesResponse, error)

GetServiceProperties - Gets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*QueueServicesClient) List

func (client *QueueServicesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *QueueServicesListOptions) (ListQueueServicesResponse, error)

List - List all queue services for the storage account If the operation fails it returns the *CloudErrorAutoGenerated error type.

func (*QueueServicesClient) SetServiceProperties

func (client *QueueServicesClient) SetServiceProperties(ctx context.Context, resourceGroupName string, accountName string, parameters QueueServiceProperties, options *QueueServicesSetServicePropertiesOptions) (QueueServicePropertiesResponse, error)

SetServiceProperties - Sets the properties of a storage account’s Queue service, including properties for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules. If the operation fails it returns the *CloudErrorAutoGenerated error type.

type QueueServicesGetServicePropertiesOptions

type QueueServicesGetServicePropertiesOptions struct {
}

QueueServicesGetServicePropertiesOptions contains the optional parameters for the QueueServices.GetServiceProperties method.

type QueueServicesListOptions

type QueueServicesListOptions struct {
}

QueueServicesListOptions contains the optional parameters for the QueueServices.List method.

type QueueServicesSetServicePropertiesOptions

type QueueServicesSetServicePropertiesOptions struct {
}

QueueServicesSetServicePropertiesOptions contains the optional parameters for the QueueServices.SetServiceProperties method.

type QueueUpdateOptions

type QueueUpdateOptions struct {
}

QueueUpdateOptions contains the optional parameters for the Queue.Update method.

type Reason

type Reason string

Reason - Gets the reason that a storage account name could not be used. The Reason element is only returned if NameAvailable is false.

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

func PossibleReasonValues

func PossibleReasonValues() []Reason

PossibleReasonValues returns the possible values for the Reason const type.

func (Reason) ToPtr

func (c Reason) ToPtr() *Reason

ToPtr returns a *Reason pointing to the current value.

type ReasonCode

type ReasonCode string

ReasonCode - The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The "NotAvailableForSubscription" is related to capacity at DC.

const (
	ReasonCodeNotAvailableForSubscription ReasonCode = "NotAvailableForSubscription"
	ReasonCodeQuotaID                     ReasonCode = "QuotaId"
)

func PossibleReasonCodeValues

func PossibleReasonCodeValues() []ReasonCode

PossibleReasonCodeValues returns the possible values for the ReasonCode const type.

func (ReasonCode) ToPtr

func (c ReasonCode) ToPtr() *ReasonCode

ToPtr returns a *ReasonCode pointing to the current value.

type Resource

type Resource struct {
	// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty" azure:"ro"`

	// READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty" azure:"ro"`

	// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
	Type *string `json:"type,omitempty" azure:"ro"`
}

Resource - Common fields that are returned in the response for all Azure Resource Manager resources

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type Resource.

type ResourceAccessRule

type ResourceAccessRule struct {
	// Resource Id
	ResourceID *string `json:"resourceId,omitempty"`

	// Tenant Id
	TenantID *string `json:"tenantId,omitempty"`
}

ResourceAccessRule - Resource Access Rule.

type RestorePolicyProperties

type RestorePolicyProperties struct {
	// REQUIRED; Blob restore is enabled if set to true.
	Enabled *bool `json:"enabled,omitempty"`

	// how long this blob can be restored. It should be great than zero and less than DeleteRetentionPolicy.days.
	Days *int32 `json:"days,omitempty"`

	// READ-ONLY; Deprecated in favor of minRestoreTime property.
	LastEnabledTime *time.Time `json:"lastEnabledTime,omitempty" azure:"ro"`

	// READ-ONLY; Returns the minimum date and time that the restore can be started.
	MinRestoreTime *time.Time `json:"minRestoreTime,omitempty" azure:"ro"`
}

RestorePolicyProperties - The blob service properties for blob restore policy

func (RestorePolicyProperties) MarshalJSON

func (r RestorePolicyProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaller interface for type RestorePolicyProperties.

func (*RestorePolicyProperties) UnmarshalJSON

func (r *RestorePolicyProperties) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaller interface for type RestorePolicyProperties.

type Restriction

type Restriction struct {
	// The reason for the restriction. As of now this can be "QuotaId" or "NotAvailableForSubscription". Quota Id is set when the SKU has requiredQuotas parameter
	// as the subscription does not belong to that
	// quota. The "NotAvailableForSubscription" is related to capacity at DC.
	ReasonCode *ReasonCode `json:"reasonCode,omitempty"`

	// READ-ONLY; The type of restrictions. As of now only possible value for this is location.
	Type *string `json:"type,omitempty" azure:"ro"`

	// READ-ONLY; The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.
	Values []*string `json:"values,omitempty" azure:"ro"`
}

Restriction - The restriction because of which SKU cannot be used.

func (Restriction)