Documentation ¶
Index ¶
- func PossibleValuesForManagementPolicyName() []string
- func PossibleValuesForRuleType() []string
- func ValidateManagementPolicyID(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 ManagementPolicyId, input ManagementPolicy) (result CreateOrUpdateOperationResponse, err error)
- func (c ManagementPoliciesClient) Delete(ctx context.Context, id ManagementPolicyId) (result DeleteOperationResponse, err error)
- func (c ManagementPoliciesClient) Get(ctx context.Context, id ManagementPolicyId) (result GetOperationResponse, err error)
- type ManagementPolicy
- type ManagementPolicyAction
- type ManagementPolicyBaseBlob
- type ManagementPolicyDefinition
- type ManagementPolicyFilter
- type ManagementPolicyId
- type ManagementPolicyName
- 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 PossibleValuesForManagementPolicyName ¶
func PossibleValuesForManagementPolicyName() []string
func PossibleValuesForRuleType ¶
func PossibleValuesForRuleType() []string
func ValidateManagementPolicyID ¶
ValidateManagementPolicyID checks that 'input' can be parsed as a Management Policy ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *ManagementPolicy }
type DateAfterCreation ¶
type DateAfterCreation struct {
DaysAfterCreationGreaterThan float64 `json:"daysAfterCreationGreaterThan"`
}
type DateAfterModification ¶
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 ManagementPolicyId, input ManagementPolicy) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ManagementPoliciesClient) Delete ¶
func (c ManagementPoliciesClient) Delete(ctx context.Context, id ManagementPolicyId) (result DeleteOperationResponse, err error)
Delete ...
func (ManagementPoliciesClient) Get ¶
func (c ManagementPoliciesClient) Get(ctx context.Context, id ManagementPolicyId) (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 ManagementPolicyId ¶
type ManagementPolicyId struct { SubscriptionId string ResourceGroupName string AccountName string ManagementPolicyName ManagementPolicyName }
ManagementPolicyId is a struct representing the Resource ID for a Management Policy
func NewManagementPolicyID ¶
func NewManagementPolicyID(subscriptionId string, resourceGroupName string, accountName string, managementPolicyName ManagementPolicyName) ManagementPolicyId
NewManagementPolicyID returns a new ManagementPolicyId struct
func ParseManagementPolicyID ¶
func ParseManagementPolicyID(input string) (*ManagementPolicyId, error)
ParseManagementPolicyID parses 'input' into a ManagementPolicyId
func ParseManagementPolicyIDInsensitively ¶
func ParseManagementPolicyIDInsensitively(input string) (*ManagementPolicyId, error)
ParseManagementPolicyIDInsensitively parses 'input' case-insensitively into a ManagementPolicyId note: this method should only be used for API response data and not user input
func (ManagementPolicyId) ID ¶
func (id ManagementPolicyId) ID() string
ID returns the formatted Management Policy ID
func (ManagementPolicyId) Segments ¶
func (id ManagementPolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Management Policy ID
func (ManagementPolicyId) String ¶
func (id ManagementPolicyId) String() string
String returns a human-readable description of this Management Policy ID
type ManagementPolicyName ¶
type ManagementPolicyName string
const (
ManagementPolicyNameDefault ManagementPolicyName = "default"
)
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
- id_managementpolicy.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