blobservice

package
v0.20220624.1152631 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAllowedMethods

func PossibleValuesForAllowedMethods() []string

func PossibleValuesForBlobServicesName

func PossibleValuesForBlobServicesName() []string

func PossibleValuesForName

func PossibleValuesForName() []string

func PossibleValuesForSkuName

func PossibleValuesForSkuName() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

func ValidateBlobServiceID

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

ValidateBlobServiceID checks that 'input' can be parsed as a Blob Service 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 AllowedMethods

type AllowedMethods string
const (
	AllowedMethodsDELETE  AllowedMethods = "DELETE"
	AllowedMethodsGET     AllowedMethods = "GET"
	AllowedMethodsHEAD    AllowedMethods = "HEAD"
	AllowedMethodsMERGE   AllowedMethods = "MERGE"
	AllowedMethodsOPTIONS AllowedMethods = "OPTIONS"
	AllowedMethodsPOST    AllowedMethods = "POST"
	AllowedMethodsPUT     AllowedMethods = "PUT"
)

type BlobServiceClient

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

func NewBlobServiceClientWithBaseURI

func NewBlobServiceClientWithBaseURI(endpoint string) BlobServiceClient

func (BlobServiceClient) GetServiceProperties

func (c BlobServiceClient) GetServiceProperties(ctx context.Context, id BlobServiceId) (result GetServicePropertiesOperationResponse, err error)

GetServiceProperties ...

func (BlobServiceClient) List

List ...

func (BlobServiceClient) SetServiceProperties

SetServiceProperties ...

type BlobServiceId

type BlobServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	BlobServicesName  BlobServicesName
}

BlobServiceId is a struct representing the Resource ID for a Blob Service

func NewBlobServiceID

func NewBlobServiceID(subscriptionId string, resourceGroupName string, accountName string, blobServicesName BlobServicesName) BlobServiceId

NewBlobServiceID returns a new BlobServiceId struct

func ParseBlobServiceID

func ParseBlobServiceID(input string) (*BlobServiceId, error)

ParseBlobServiceID parses 'input' into a BlobServiceId

func ParseBlobServiceIDInsensitively

func ParseBlobServiceIDInsensitively(input string) (*BlobServiceId, error)

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

func (BlobServiceId) ID

func (id BlobServiceId) ID() string

ID returns the formatted Blob Service ID

func (BlobServiceId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Blob Service ID

func (BlobServiceId) String

func (id BlobServiceId) String() string

String returns a human-readable description of this Blob Service ID

type BlobServiceItems

type BlobServiceItems struct {
	Value *[]BlobServiceProperties `json:"value,omitempty"`
}

type BlobServiceProperties

type BlobServiceProperties struct {
	Id         *string                          `json:"id,omitempty"`
	Name       *string                          `json:"name,omitempty"`
	Properties *BlobServicePropertiesProperties `json:"properties,omitempty"`
	Sku        *Sku                             `json:"sku,omitempty"`
	Type       *string                          `json:"type,omitempty"`
}

type BlobServicePropertiesProperties

type BlobServicePropertiesProperties struct {
	AutomaticSnapshotPolicyEnabled *bool                         `json:"automaticSnapshotPolicyEnabled,omitempty"`
	ChangeFeed                     *ChangeFeed                   `json:"changeFeed,omitempty"`
	ContainerDeleteRetentionPolicy *DeleteRetentionPolicy        `json:"containerDeleteRetentionPolicy,omitempty"`
	Cors                           *CorsRules                    `json:"cors,omitempty"`
	DefaultServiceVersion          *string                       `json:"defaultServiceVersion,omitempty"`
	DeleteRetentionPolicy          *DeleteRetentionPolicy        `json:"deleteRetentionPolicy,omitempty"`
	IsVersioningEnabled            *bool                         `json:"isVersioningEnabled,omitempty"`
	LastAccessTimeTrackingPolicy   *LastAccessTimeTrackingPolicy `json:"lastAccessTimeTrackingPolicy,omitempty"`
	RestorePolicy                  *RestorePolicyProperties      `json:"restorePolicy,omitempty"`
}

type BlobServicesName

type BlobServicesName string
const (
	BlobServicesNameDefault BlobServicesName = "default"
)

type ChangeFeed

type ChangeFeed struct {
	Enabled         *bool  `json:"enabled,omitempty"`
	RetentionInDays *int64 `json:"retentionInDays,omitempty"`
}

type CorsRule

type CorsRule struct {
	AllowedHeaders  []string         `json:"allowedHeaders"`
	AllowedMethods  []AllowedMethods `json:"allowedMethods"`
	AllowedOrigins  []string         `json:"allowedOrigins"`
	ExposedHeaders  []string         `json:"exposedHeaders"`
	MaxAgeInSeconds int64            `json:"maxAgeInSeconds"`
}

type CorsRules

type CorsRules struct {
	CorsRules *[]CorsRule `json:"corsRules,omitempty"`
}

type DeleteRetentionPolicy

type DeleteRetentionPolicy struct {
	Days    *int64 `json:"days,omitempty"`
	Enabled *bool  `json:"enabled,omitempty"`
}

type GetServicePropertiesOperationResponse

type GetServicePropertiesOperationResponse struct {
	HttpResponse *http.Response
	Model        *BlobServiceProperties
}

type LastAccessTimeTrackingPolicy

type LastAccessTimeTrackingPolicy struct {
	BlobType                  *[]string `json:"blobType,omitempty"`
	Enable                    bool      `json:"enable"`
	Name                      *Name     `json:"name,omitempty"`
	TrackingGranularityInDays *int64    `json:"trackingGranularityInDays,omitempty"`
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *BlobServiceItems
}

type Name

type Name string
const (
	NameAccessTimeTracking Name = "AccessTimeTracking"
)

type RestorePolicyProperties

type RestorePolicyProperties struct {
	Days            *int64  `json:"days,omitempty"`
	Enabled         bool    `json:"enabled"`
	LastEnabledTime *string `json:"lastEnabledTime,omitempty"`
	MinRestoreTime  *string `json:"minRestoreTime,omitempty"`
}

func (*RestorePolicyProperties) GetLastEnabledTimeAsTime

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

func (*RestorePolicyProperties) GetMinRestoreTimeAsTime

func (o *RestorePolicyProperties) GetMinRestoreTimeAsTime() (*time.Time, error)

func (*RestorePolicyProperties) SetLastEnabledTimeAsTime

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

func (*RestorePolicyProperties) SetMinRestoreTimeAsTime

func (o *RestorePolicyProperties) SetMinRestoreTimeAsTime(input time.Time)

type SetServicePropertiesOperationResponse

type SetServicePropertiesOperationResponse struct {
	HttpResponse *http.Response
	Model        *BlobServiceProperties
}

type Sku

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

type SkuName

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

type SkuTier

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

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

Jump to

Keyboard shortcuts

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