Documentation ¶
Index ¶
- func PossibleValuesForRuleType() []string
- type CreateOrUpdateOperationResponse
- type DateAfterCreation
- type DateAfterModification
- type DeleteOperationResponse
- type GetOperationResponse
- type ManagementPoliciesClient
- func (c ManagementPoliciesClient) CreateOrUpdate(ctx context.Context, id commonids.StorageAccountId, input ManagementPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c ManagementPoliciesClient) Delete(ctx context.Context, id commonids.StorageAccountId) (result DeleteOperationResponse, err error)
- func (c ManagementPoliciesClient) Get(ctx context.Context, id commonids.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 TagFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForRuleType ¶
func PossibleValuesForRuleType() []string
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 commonids.StorageAccountId, input ManagementPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ManagementPoliciesClient) Delete ¶
func (c ManagementPoliciesClient) Delete(ctx context.Context, id commonids.StorageAccountId) (result DeleteOperationResponse, err error)
Delete ...
func (ManagementPoliciesClient) Get ¶
func (c ManagementPoliciesClient) Get(ctx context.Context, id commonids.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"` TierToCool *DateAfterModification `json:"tierToCool,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"` TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` }
type ManagementPolicyVersion ¶
type ManagementPolicyVersion struct { Delete *DateAfterCreation `json:"delete,omitempty"` TierToArchive *DateAfterCreation `json:"tierToArchive,omitempty"` TierToCool *DateAfterCreation `json:"tierToCool,omitempty"` }
Source Files ¶
- client.go
- constants.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
Click to show internal directories.
Click to hide internal directories.