blobcontainers

package
v0.20231212.1202820 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/storage/2022-09-01/blobcontainers Documentation

The blobcontainers SDK allows for interaction with the Azure Resource Manager Service storage (API Version 2022-09-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/storage/2022-09-01/blobcontainers"

Client Initialization

client := blobcontainers.NewBlobContainersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: BlobContainersClient.ClearLegalHold

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

payload := blobcontainers.LegalHold{
	// ...
}


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

Example Usage: BlobContainersClient.Create

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

payload := blobcontainers.BlobContainer{
	// ...
}


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

Example Usage: BlobContainersClient.CreateOrUpdateImmutabilityPolicy

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

payload := blobcontainers.ImmutabilityPolicy{
	// ...
}


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

Example Usage: BlobContainersClient.Delete

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

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

Example Usage: BlobContainersClient.DeleteImmutabilityPolicy

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

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

Example Usage: BlobContainersClient.ExtendImmutabilityPolicy

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

payload := blobcontainers.ImmutabilityPolicy{
	// ...
}


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

Example Usage: BlobContainersClient.Get

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

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

Example Usage: BlobContainersClient.GetImmutabilityPolicy

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

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

Example Usage: BlobContainersClient.Lease

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

payload := blobcontainers.LeaseContainerRequest{
	// ...
}


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

Example Usage: BlobContainersClient.List

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

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

Example Usage: BlobContainersClient.LockImmutabilityPolicy

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

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

Example Usage: BlobContainersClient.ObjectLevelWorm

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

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

Example Usage: BlobContainersClient.SetLegalHold

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

payload := blobcontainers.LegalHold{
	// ...
}


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

Example Usage: BlobContainersClient.Update

ctx := context.TODO()
id := blobcontainers.NewStorageContainerID("12345678-1234-9876-4563-123456789012", "example-resource-group", "storageAccountValue", "containerValue")

payload := blobcontainers.BlobContainer{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForImmutabilityPolicyState

func PossibleValuesForImmutabilityPolicyState() []string

func PossibleValuesForImmutabilityPolicyUpdateType

func PossibleValuesForImmutabilityPolicyUpdateType() []string

func PossibleValuesForLeaseContainerRequestAction

func PossibleValuesForLeaseContainerRequestAction() []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

Types

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 *resourcemanager.Client
}

func NewBlobContainersClientWithBaseURI

func NewBlobContainersClientWithBaseURI(sdkApi sdkEnv.Api) (*BlobContainersClient, error)

func (BlobContainersClient) ClearLegalHold

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 the results into a single object

func (BlobContainersClient) ListCompleteMatchingPredicate

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

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (BlobContainersClient) LockImmutabilityPolicy

LockImmutabilityPolicy ...

func (BlobContainersClient) ObjectLevelWorm

ObjectLevelWorm ...

func (BlobContainersClient) ObjectLevelWormThenPoll

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

ObjectLevelWormThenPoll performs ObjectLevelWorm then polls until it's completed

func (BlobContainersClient) SetLegalHold

SetLegalHold ...

func (BlobContainersClient) Update

Update ...

type ClearLegalHoldOperationResponse

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

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"`
	EnableNfsV3AllSquash           *bool                           `json:"enableNfsV3AllSquash,omitempty"`
	EnableNfsV3RootSquash          *bool                           `json:"enableNfsV3RootSquash,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
	OData        *odata.OData
	Model        *BlobContainer
}

type CreateOrUpdateImmutabilityPolicyOperationOptions

type CreateOrUpdateImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultCreateOrUpdateImmutabilityPolicyOperationOptions

func DefaultCreateOrUpdateImmutabilityPolicyOperationOptions() CreateOrUpdateImmutabilityPolicyOperationOptions

func (CreateOrUpdateImmutabilityPolicyOperationOptions) ToHeaders added in v0.20231114.1115341

func (CreateOrUpdateImmutabilityPolicyOperationOptions) ToOData added in v0.20231114.1115341

func (CreateOrUpdateImmutabilityPolicyOperationOptions) ToQuery added in v0.20231114.1115341

type CreateOrUpdateImmutabilityPolicyOperationResponse

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

type DeleteImmutabilityPolicyOperationOptions

type DeleteImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultDeleteImmutabilityPolicyOperationOptions

func DefaultDeleteImmutabilityPolicyOperationOptions() DeleteImmutabilityPolicyOperationOptions

func (DeleteImmutabilityPolicyOperationOptions) ToHeaders added in v0.20231114.1115341

func (DeleteImmutabilityPolicyOperationOptions) ToOData added in v0.20231114.1115341

func (DeleteImmutabilityPolicyOperationOptions) ToQuery added in v0.20231114.1115341

type DeleteImmutabilityPolicyOperationResponse

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

type DeleteOperationResponse

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

type ExtendImmutabilityPolicyOperationOptions

type ExtendImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultExtendImmutabilityPolicyOperationOptions

func DefaultExtendImmutabilityPolicyOperationOptions() ExtendImmutabilityPolicyOperationOptions

func (ExtendImmutabilityPolicyOperationOptions) ToHeaders added in v0.20231114.1115341

func (ExtendImmutabilityPolicyOperationOptions) ToOData added in v0.20231114.1115341

func (ExtendImmutabilityPolicyOperationOptions) ToQuery added in v0.20231114.1115341

type ExtendImmutabilityPolicyOperationResponse

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

type GetImmutabilityPolicyOperationOptions

type GetImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultGetImmutabilityPolicyOperationOptions

func DefaultGetImmutabilityPolicyOperationOptions() GetImmutabilityPolicyOperationOptions

func (GetImmutabilityPolicyOperationOptions) ToHeaders added in v0.20231114.1115341

func (GetImmutabilityPolicyOperationOptions) ToOData added in v0.20231114.1115341

func (GetImmutabilityPolicyOperationOptions) ToQuery added in v0.20231114.1115341

type GetImmutabilityPolicyOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	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 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"`
	AllowProtectedAppendWritesAll         *bool                    `json:"allowProtectedAppendWritesAll,omitempty"`
	ImmutabilityPeriodSinceCreationInDays *int64                   `json:"immutabilityPeriodSinceCreationInDays,omitempty"`
	State                                 *ImmutabilityPolicyState `json:"state,omitempty"`
}

type ImmutabilityPolicyState

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

func (*ImmutabilityPolicyState) UnmarshalJSON added in v0.20231114.1115341

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

type ImmutabilityPolicyUpdateType

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

func (*ImmutabilityPolicyUpdateType) UnmarshalJSON added in v0.20231114.1115341

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

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          LeaseContainerRequestAction `json:"action"`
	BreakPeriod     *int64                      `json:"breakPeriod,omitempty"`
	LeaseDuration   *int64                      `json:"leaseDuration,omitempty"`
	LeaseId         *string                     `json:"leaseId,omitempty"`
	ProposedLeaseId *string                     `json:"proposedLeaseId,omitempty"`
}

type LeaseContainerRequestAction

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

func (*LeaseContainerRequestAction) UnmarshalJSON added in v0.20231114.1115341

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

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"
)

func (*LeaseDuration) UnmarshalJSON added in v0.20231114.1115341

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

type LeaseOperationResponse

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

type LeaseState

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

func (*LeaseState) UnmarshalJSON added in v0.20231114.1115341

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

type LeaseStatus

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

func (*LeaseStatus) UnmarshalJSON added in v0.20231114.1115341

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

type LegalHold

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

type LegalHoldProperties

type LegalHoldProperties struct {
	HasLegalHold                 *bool                         `json:"hasLegalHold,omitempty"`
	ProtectedAppendWritesHistory *ProtectedAppendWritesHistory `json:"protectedAppendWritesHistory,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"
)

func (*ListContainersInclude) UnmarshalJSON added in v0.20231114.1115341

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

type ListOperationOptions

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

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders added in v0.20231114.1115341

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

func (ListOperationOptions) ToOData added in v0.20231114.1115341

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

func (ListOperationOptions) ToQuery added in v0.20231114.1115341

type ListOperationResponse

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

type LockImmutabilityPolicyOperationOptions

type LockImmutabilityPolicyOperationOptions struct {
	IfMatch *string
}

func DefaultLockImmutabilityPolicyOperationOptions

func DefaultLockImmutabilityPolicyOperationOptions() LockImmutabilityPolicyOperationOptions

func (LockImmutabilityPolicyOperationOptions) ToHeaders added in v0.20231114.1115341

func (LockImmutabilityPolicyOperationOptions) ToOData added in v0.20231114.1115341

func (LockImmutabilityPolicyOperationOptions) ToQuery added in v0.20231114.1115341

type LockImmutabilityPolicyOperationResponse

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

type MigrationState

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

func (*MigrationState) UnmarshalJSON added in v0.20231114.1115341

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

type ObjectLevelWormOperationResponse

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

type ProtectedAppendWritesHistory

type ProtectedAppendWritesHistory struct {
	AllowProtectedAppendWritesAll *bool   `json:"allowProtectedAppendWritesAll,omitempty"`
	Timestamp                     *string `json:"timestamp,omitempty"`
}

func (*ProtectedAppendWritesHistory) GetTimestampAsTime

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

func (*ProtectedAppendWritesHistory) SetTimestampAsTime

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

type PublicAccess

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

func (*PublicAccess) UnmarshalJSON added in v0.20231114.1115341

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

type SetLegalHoldOperationResponse

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

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 {
	AllowProtectedAppendWrites            *bool                         `json:"allowProtectedAppendWrites,omitempty"`
	AllowProtectedAppendWritesAll         *bool                         `json:"allowProtectedAppendWritesAll,omitempty"`
	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
	OData        *odata.OData
	Model        *BlobContainer
}

Jump to

Keyboard shortcuts

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