blobcontainers

package
v0.20220610.104255 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAction

func PossibleValuesForAction() []string

func PossibleValuesForImmutabilityPolicyName

func PossibleValuesForImmutabilityPolicyName() []string

func PossibleValuesForImmutabilityPolicyState

func PossibleValuesForImmutabilityPolicyState() []string

func PossibleValuesForImmutabilityPolicyUpdateType

func PossibleValuesForImmutabilityPolicyUpdateType() []string

func PossibleValuesForLeaseDuration

func PossibleValuesForLeaseDuration() []string

func PossibleValuesForLeaseState

func PossibleValuesForLeaseState() []string

func PossibleValuesForLeaseStatus

func PossibleValuesForLeaseStatus() []string

func PossibleValuesForListContainersInclude

func PossibleValuesForListContainersInclude() []string

func PossibleValuesForMigrationState

func PossibleValuesForMigrationState() []string

func PossibleValuesForPublicAccess

func PossibleValuesForPublicAccess() []string

func ValidateContainerID

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

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

func ValidateImmutabilityPolicyID

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

ValidateImmutabilityPolicyID checks that 'input' can be parsed as a Immutability Policy ID

func ValidateStorageAccountID

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

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

Types

type Action

type Action string
const (
	ActionAcquire Action = "Acquire"
	ActionBreak   Action = "Break"
	ActionChange  Action = "Change"
	ActionRelease Action = "Release"
	ActionRenew   Action = "Renew"
)

type BlobContainer

type BlobContainer struct {
	Etag       *string              `json:"etag,omitempty"`
	Id         *string              `json:"id,omitempty"`
	Name       *string              `json:"name,omitempty"`
	Properties *ContainerProperties `json:"properties,omitempty"`
	Type       *string              `json:"type,omitempty"`
}

type BlobContainersClient

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

func NewBlobContainersClientWithBaseURI

func NewBlobContainersClientWithBaseURI(endpoint string) BlobContainersClient

func (BlobContainersClient) ClearLegalHold

func (c BlobContainersClient) ClearLegalHold(ctx context.Context, id ContainerId, input LegalHold) (result ClearLegalHoldOperationResponse, err error)

ClearLegalHold ...

func (BlobContainersClient) Create

Create ...

func (BlobContainersClient) CreateOrUpdateImmutabilityPolicy

CreateOrUpdateImmutabilityPolicy ...

func (BlobContainersClient) Delete

Delete ...

func (BlobContainersClient) DeleteImmutabilityPolicy

DeleteImmutabilityPolicy ...

func (BlobContainersClient) ExtendImmutabilityPolicy

ExtendImmutabilityPolicy ...

func (BlobContainersClient) Get

Get ...

func (BlobContainersClient) GetImmutabilityPolicy

GetImmutabilityPolicy ...

func (BlobContainersClient) Lease

Lease ...

func (BlobContainersClient) List

List ...

func (BlobContainersClient) ListComplete

ListComplete retrieves all of the results into a single object

func (BlobContainersClient) ListCompleteMatchingPredicate

func (c BlobContainersClient) ListCompleteMatchingPredicate(ctx context.Context, id StorageAccountId, options ListOperationOptions, predicate ListContainerItemOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (BlobContainersClient) LockImmutabilityPolicy

LockImmutabilityPolicy ...

func (BlobContainersClient) ObjectLevelWorm

func (c BlobContainersClient) ObjectLevelWorm(ctx context.Context, id ContainerId) (result ObjectLevelWormOperationResponse, err error)

ObjectLevelWorm ...

func (BlobContainersClient) ObjectLevelWormThenPoll

func (c BlobContainersClient) ObjectLevelWormThenPoll(ctx context.Context, id ContainerId) error

ObjectLevelWormThenPoll performs ObjectLevelWorm then polls until it's completed

func (BlobContainersClient) SetLegalHold

func (c BlobContainersClient) SetLegalHold(ctx context.Context, id ContainerId, input LegalHold) (result SetLegalHoldOperationResponse, err error)

SetLegalHold ...

func (BlobContainersClient) Update

Update ...

type ClearLegalHoldOperationResponse

type ClearLegalHoldOperationResponse struct {
	HttpResponse *http.Response
	Model        *LegalHold
}

type ContainerId

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

ContainerId is a struct representing the Resource ID for a Container

func NewContainerID

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

NewContainerID returns a new ContainerId struct

func ParseContainerID

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

ParseContainerID parses 'input' into a ContainerId

func ParseContainerIDInsensitively

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

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

func (ContainerId) ID

func (id ContainerId) ID() string

ID returns the formatted Container ID

func (ContainerId) Segments

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

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

func (ContainerId) String

func (id ContainerId) String() string

String returns a human-readable description of this Container ID

type ContainerProperties

type ContainerProperties struct {
	DefaultEncryptionScope         *string                         `json:"defaultEncryptionScope,omitempty"`
	Deleted                        *bool                           `json:"deleted,omitempty"`
	DeletedTime                    *string                         `json:"deletedTime,omitempty"`
	DenyEncryptionScopeOverride    *bool                           `json:"denyEncryptionScopeOverride,omitempty"`
	HasImmutabilityPolicy          *bool                           `json:"hasImmutabilityPolicy,omitempty"`
	HasLegalHold                   *bool                           `json:"hasLegalHold,omitempty"`
	ImmutabilityPolicy             *ImmutabilityPolicyProperties   `json:"immutabilityPolicy,omitempty"`
	ImmutableStorageWithVersioning *ImmutableStorageWithVersioning `json:"immutableStorageWithVersioning,omitempty"`
	LastModifiedTime               *string                         `json:"lastModifiedTime,omitempty"`
	LeaseDuration                  *LeaseDuration                  `json:"leaseDuration,omitempty"`
	LeaseState                     *LeaseState                     `json:"leaseState,omitempty"`
	LeaseStatus                    *LeaseStatus                    `json:"leaseStatus,omitempty"`
	LegalHold                      *LegalHoldProperties            `json:"legalHold,omitempty"`
	Metadata                       *map[string]string              `json:"metadata,omitempty"`
	PublicAccess                   *PublicAccess                   `json:"publicAccess,omitempty"`
	RemainingRetentionDays         *int64                          `json:"remainingRetentionDays,omitempty"`
	Version                        *string                         `json:"version,omitempty"`
}

func (*ContainerProperties) GetDeletedTimeAsTime

func (o *ContainerProperties) GetDeletedTimeAsTime() (*time.Time, error)

func (*ContainerProperties) GetLastModifiedTimeAsTime

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

func (*ContainerProperties) SetDeletedTimeAsTime

func (o *ContainerProperties) SetDeletedTimeAsTime(input time.Time)

func (*ContainerProperties) SetLastModifiedTimeAsTime

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

type CreateOperationResponse

type CreateOperationResponse struct {
	HttpResponse *http.Response
	Model        *BlobContainer
}

type CreateOrUpdateImmutabilityPolicyOperationOptions

type CreateOrUpdateImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultCreateOrUpdateImmutabilityPolicyOperationOptions

func DefaultCreateOrUpdateImmutabilityPolicyOperationOptions() CreateOrUpdateImmutabilityPolicyOperationOptions

type CreateOrUpdateImmutabilityPolicyOperationResponse

type CreateOrUpdateImmutabilityPolicyOperationResponse struct {
	HttpResponse *http.Response
	Model        *ImmutabilityPolicy
}

type DeleteImmutabilityPolicyOperationOptions

type DeleteImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteImmutabilityPolicyOperationOptions

func DefaultDeleteImmutabilityPolicyOperationOptions() DeleteImmutabilityPolicyOperationOptions

type DeleteImmutabilityPolicyOperationResponse

type DeleteImmutabilityPolicyOperationResponse struct {
	HttpResponse *http.Response
	Model        *ImmutabilityPolicy
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type ExtendImmutabilityPolicyOperationOptions

type ExtendImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultExtendImmutabilityPolicyOperationOptions

func DefaultExtendImmutabilityPolicyOperationOptions() ExtendImmutabilityPolicyOperationOptions

type ExtendImmutabilityPolicyOperationResponse

type ExtendImmutabilityPolicyOperationResponse struct {
	HttpResponse *http.Response
	Model        *ImmutabilityPolicy
}

type GetImmutabilityPolicyOperationOptions

type GetImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultGetImmutabilityPolicyOperationOptions

func DefaultGetImmutabilityPolicyOperationOptions() GetImmutabilityPolicyOperationOptions

type GetImmutabilityPolicyOperationResponse

type GetImmutabilityPolicyOperationResponse struct {
	HttpResponse *http.Response
	Model        *ImmutabilityPolicy
}

type GetOperationResponse

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

type ImmutabilityPolicy

type ImmutabilityPolicy struct {
	Etag       *string                    `json:"etag,omitempty"`
	Id         *string                    `json:"id,omitempty"`
	Name       *string                    `json:"name,omitempty"`
	Properties ImmutabilityPolicyProperty `json:"properties"`
	Type       *string                    `json:"type,omitempty"`
}

type ImmutabilityPolicyId

type ImmutabilityPolicyId struct {
	SubscriptionId         string
	ResourceGroupName      string
	AccountName            string
	ContainerName          string
	ImmutabilityPolicyName ImmutabilityPolicyName
}

ImmutabilityPolicyId is a struct representing the Resource ID for a Immutability Policy

func NewImmutabilityPolicyID

func NewImmutabilityPolicyID(subscriptionId string, resourceGroupName string, accountName string, containerName string, immutabilityPolicyName ImmutabilityPolicyName) ImmutabilityPolicyId

NewImmutabilityPolicyID returns a new ImmutabilityPolicyId struct

func ParseImmutabilityPolicyID

func ParseImmutabilityPolicyID(input string) (*ImmutabilityPolicyId, error)

ParseImmutabilityPolicyID parses 'input' into a ImmutabilityPolicyId

func ParseImmutabilityPolicyIDInsensitively

func ParseImmutabilityPolicyIDInsensitively(input string) (*ImmutabilityPolicyId, error)

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

func (ImmutabilityPolicyId) ID

func (id ImmutabilityPolicyId) ID() string

ID returns the formatted Immutability Policy ID

func (ImmutabilityPolicyId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Immutability Policy ID

func (ImmutabilityPolicyId) String

func (id ImmutabilityPolicyId) String() string

String returns a human-readable description of this Immutability Policy ID

type ImmutabilityPolicyName

type ImmutabilityPolicyName string
const (
	ImmutabilityPolicyNameDefault ImmutabilityPolicyName = "default"
)

type ImmutabilityPolicyProperties

type ImmutabilityPolicyProperties struct {
	Etag          *string                     `json:"etag,omitempty"`
	Properties    *ImmutabilityPolicyProperty `json:"properties,omitempty"`
	UpdateHistory *[]UpdateHistoryProperty    `json:"updateHistory,omitempty"`
}

type ImmutabilityPolicyProperty

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

type ImmutabilityPolicyState

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

type ImmutabilityPolicyUpdateType

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

type ImmutableStorageWithVersioning

type ImmutableStorageWithVersioning struct {
	Enabled        *bool           `json:"enabled,omitempty"`
	MigrationState *MigrationState `json:"migrationState,omitempty"`
	TimeStamp      *string         `json:"timeStamp,omitempty"`
}

func (*ImmutableStorageWithVersioning) GetTimeStampAsTime

func (o *ImmutableStorageWithVersioning) GetTimeStampAsTime() (*time.Time, error)

func (*ImmutableStorageWithVersioning) SetTimeStampAsTime

func (o *ImmutableStorageWithVersioning) SetTimeStampAsTime(input time.Time)

type LeaseContainerRequest

type LeaseContainerRequest struct {
	Action          Action  `json:"action"`
	BreakPeriod     *int64  `json:"breakPeriod,omitempty"`
	LeaseDuration   *int64  `json:"leaseDuration,omitempty"`
	LeaseId         *string `json:"leaseId,omitempty"`
	ProposedLeaseId *string `json:"proposedLeaseId,omitempty"`
}

type LeaseContainerResponse

type LeaseContainerResponse struct {
	LeaseId          *string `json:"leaseId,omitempty"`
	LeaseTimeSeconds *string `json:"leaseTimeSeconds,omitempty"`
}

type LeaseDuration

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

type LeaseOperationResponse

type LeaseOperationResponse struct {
	HttpResponse *http.Response
	Model        *LeaseContainerResponse
}

type LeaseState

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

type LeaseStatus

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

type LegalHold

type LegalHold struct {
	HasLegalHold *bool    `json:"hasLegalHold,omitempty"`
	Tags         []string `json:"tags"`
}

type LegalHoldProperties

type LegalHoldProperties struct {
	HasLegalHold *bool          `json:"hasLegalHold,omitempty"`
	Tags         *[]TagProperty `json:"tags,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []ListContainerItem
}

type ListContainerItem

type ListContainerItem struct {
	Etag       *string              `json:"etag,omitempty"`
	Id         *string              `json:"id,omitempty"`
	Name       *string              `json:"name,omitempty"`
	Properties *ContainerProperties `json:"properties,omitempty"`
	Type       *string              `json:"type,omitempty"`
}

type ListContainerItemOperationPredicate

type ListContainerItemOperationPredicate struct {
	Etag *string
	Id   *string
	Name *string
	Type *string
}

func (ListContainerItemOperationPredicate) Matches

type ListContainersInclude

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

type ListOperationOptions

type ListOperationOptions struct {
	Filter      *string
	Include     *ListContainersInclude
	Maxpagesize *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

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

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

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

type LockImmutabilityPolicyOperationOptions

type LockImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultLockImmutabilityPolicyOperationOptions

func DefaultLockImmutabilityPolicyOperationOptions() LockImmutabilityPolicyOperationOptions

type LockImmutabilityPolicyOperationResponse

type LockImmutabilityPolicyOperationResponse struct {
	HttpResponse *http.Response
	Model        *ImmutabilityPolicy
}

type MigrationState

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

type ObjectLevelWormOperationResponse

type ObjectLevelWormOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type PublicAccess

type PublicAccess string
const (
	PublicAccessBlob      PublicAccess = "Blob"
	PublicAccessContainer PublicAccess = "Container"
	PublicAccessNone      PublicAccess = "None"
)

type SetLegalHoldOperationResponse

type SetLegalHoldOperationResponse struct {
	HttpResponse *http.Response
	Model        *LegalHold
}

type StorageAccountId

type StorageAccountId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

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

func NewStorageAccountID

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

NewStorageAccountID returns a new StorageAccountId struct

func ParseStorageAccountID

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

ParseStorageAccountID parses 'input' into a StorageAccountId

func ParseStorageAccountIDInsensitively

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

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

func (StorageAccountId) ID

func (id StorageAccountId) ID() string

ID returns the formatted Storage Account ID

func (StorageAccountId) Segments

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

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

func (StorageAccountId) String

func (id StorageAccountId) String() string

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

type TagProperty

type TagProperty struct {
	ObjectIdentifier *string `json:"objectIdentifier,omitempty"`
	Tag              *string `json:"tag,omitempty"`
	TenantId         *string `json:"tenantId,omitempty"`
	Timestamp        *string `json:"timestamp,omitempty"`
	Upn              *string `json:"upn,omitempty"`
}

func (*TagProperty) GetTimestampAsTime

func (o *TagProperty) GetTimestampAsTime() (*time.Time, error)

func (*TagProperty) SetTimestampAsTime

func (o *TagProperty) SetTimestampAsTime(input time.Time)

type UpdateHistoryProperty

type UpdateHistoryProperty struct {
	ImmutabilityPeriodSinceCreationInDays *int64                        `json:"immutabilityPeriodSinceCreationInDays,omitempty"`
	ObjectIdentifier                      *string                       `json:"objectIdentifier,omitempty"`
	TenantId                              *string                       `json:"tenantId,omitempty"`
	Timestamp                             *string                       `json:"timestamp,omitempty"`
	Update                                *ImmutabilityPolicyUpdateType `json:"update,omitempty"`
	Upn                                   *string                       `json:"upn,omitempty"`
}

func (*UpdateHistoryProperty) GetTimestampAsTime

func (o *UpdateHistoryProperty) GetTimestampAsTime() (*time.Time, error)

func (*UpdateHistoryProperty) SetTimestampAsTime

func (o *UpdateHistoryProperty) SetTimestampAsTime(input time.Time)

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *BlobContainer
}

Jump to

Keyboard shortcuts

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