Documentation ¶
Index ¶
- func PossibleValuesForRuleType() []string
- func ValidateStorageAccountID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DateAfterCreation
- type DateAfterModification
- type DeleteOperationResponse
- type GetOperationResponse
- type ManagementPoliciesClient
- func (c ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, id StorageAccountId, input ManagementPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c ManagementPoliciesClient) Delete(ctx context.Context, id StorageAccountId) (result DeleteOperationResponse, err error)
- func (c ManagementPoliciesClient) Get(ctx context.Context, id StorageAccountId) (result GetOperationResponse, err error)
- type ManagementPolicy
- type ManagementPolicyAction
- type ManagementPolicyBaseBlob
- type ManagementPolicyDefinition
- type ManagementPolicyFilter
- type ManagementPolicyProperties
- type ManagementPolicyRule
- type ManagementPolicySchema
- type ManagementPolicySnapShot
- type ManagementPolicyVersion
- type RuleType
- type StorageAccountId
- type TagFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRuleType ¶
func PossibleValuesForRuleType() []string
func ValidateStorageAccountID ¶
ValidateStorageAccountID checks that 'input' can be parsed as a Storage Account ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *ManagementPolicy }
type DateAfterCreation ¶
type DateAfterModification ¶
type DateAfterModification struct { DaysAfterCreationGreaterThan *float64 `json:"daysAfterCreationGreaterThan,omitempty"` DaysAfterLastAccessTimeGreaterThan *float64 `json:"daysAfterLastAccessTimeGreaterThan,omitempty"` DaysAfterLastTierChangeGreaterThan *float64 `json:"daysAfterLastTierChangeGreaterThan,omitempty"` DaysAfterModificationGreaterThan *float64 `json:"daysAfterModificationGreaterThan,omitempty"` }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *ManagementPolicy }
type ManagementPoliciesClient ¶
type ManagementPoliciesClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewManagementPoliciesClientWithBaseURI ¶
func NewManagementPoliciesClientWithBaseURI(endpoint string) ManagementPoliciesClient
func (ManagementPoliciesClient) CreateOrUpdate ¶
func (c ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, id StorageAccountId, input ManagementPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ManagementPoliciesClient) Delete ¶
func (c ManagementPoliciesClient) Delete(ctx context.Context, id StorageAccountId) (result DeleteOperationResponse, err error)
Delete ...
func (ManagementPoliciesClient) Get ¶
func (c ManagementPoliciesClient) Get(ctx context.Context, id StorageAccountId) (result GetOperationResponse, err error)
Get ...
type ManagementPolicy ¶
type ManagementPolicy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ManagementPolicyProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type ManagementPolicyAction ¶
type ManagementPolicyAction struct { BaseBlob *ManagementPolicyBaseBlob `json:"baseBlob,omitempty"` Snapshot *ManagementPolicySnapShot `json:"snapshot,omitempty"` Version *ManagementPolicyVersion `json:"version,omitempty"` }
type ManagementPolicyBaseBlob ¶
type ManagementPolicyBaseBlob struct { Delete *DateAfterModification `json:"delete,omitempty"` EnableAutoTierToHotFromCool *bool `json:"enableAutoTierToHotFromCool,omitempty"` TierToArchive *DateAfterModification `json:"tierToArchive,omitempty"` TierToCold *DateAfterModification `json:"tierToCold,omitempty"` TierToCool *DateAfterModification `json:"tierToCool,omitempty"` TierToHot *DateAfterModification `json:"tierToHot,omitempty"` }
type ManagementPolicyDefinition ¶
type ManagementPolicyDefinition struct { Actions ManagementPolicyAction `json:"actions"` Filters *ManagementPolicyFilter `json:"filters,omitempty"` }
type ManagementPolicyFilter ¶
type ManagementPolicyProperties ¶
type ManagementPolicyProperties struct { LastModifiedTime *string `json:"lastModifiedTime,omitempty"` Policy ManagementPolicySchema `json:"policy"` }
func (*ManagementPolicyProperties) GetLastModifiedTimeAsTime ¶
func (o *ManagementPolicyProperties) GetLastModifiedTimeAsTime() (*time.Time, error)
func (*ManagementPolicyProperties) SetLastModifiedTimeAsTime ¶
func (o *ManagementPolicyProperties) SetLastModifiedTimeAsTime(input time.Time)
type ManagementPolicyRule ¶
type ManagementPolicyRule struct { Definition ManagementPolicyDefinition `json:"definition"` Enabled *bool `json:"enabled,omitempty"` Name string `json:"name"` Type RuleType `json:"type"` }
type ManagementPolicySchema ¶
type ManagementPolicySchema struct {
Rules []ManagementPolicyRule `json:"rules"`
}
type ManagementPolicySnapShot ¶
type ManagementPolicySnapShot struct { Delete *DateAfterCreation `json:"delete,omitempty"` TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"` TierToCold *DateAfterCreation `json:"tierToCold,omitempty"` TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` TierToHot *DateAfterCreation `json:"tierToHot,omitempty"` }
type ManagementPolicyVersion ¶
type ManagementPolicyVersion struct { Delete *DateAfterCreation `json:"delete,omitempty"` TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"` TierToCold *DateAfterCreation `json:"tierToCold,omitempty"` TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` TierToHot *DateAfterCreation `json:"tierToHot,omitempty"` }
type StorageAccountId ¶
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
Source Files ¶
- client.go
- constants.go
- id_storageaccount.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- model_dateaftercreation.go
- model_dateaftermodification.go
- model_managementpolicy.go
- model_managementpolicyaction.go
- model_managementpolicybaseblob.go
- model_managementpolicydefinition.go
- model_managementpolicyfilter.go
- model_managementpolicyproperties.go
- model_managementpolicyrule.go
- model_managementpolicyschema.go
- model_managementpolicysnapshot.go
- model_managementpolicyversion.go
- model_tagfilter.go
- version.go