managementpolicies

package
v0.20220623.1061522 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForManagementPolicyName

func PossibleValuesForManagementPolicyName() []string

func PossibleValuesForRuleType

func PossibleValuesForRuleType() []string

func ValidateManagementPolicyID

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

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 DateAfterModification struct {
	DaysAfterLastAccessTimeGreaterThan *float64 `json:"daysAfterLastAccessTimeGreaterThan,omitempty"`
	DaysAfterModificationGreaterThan   *float64 `json:"daysAfterModificationGreaterThan,omitempty"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
}

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

CreateOrUpdate ...

func (ManagementPoliciesClient) Delete

Delete ...

func (ManagementPoliciesClient) Get

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 ManagementPolicyFilter struct {
	BlobIndexMatch *[]TagFilter `json:"blobIndexMatch,omitempty"`
	BlobTypes      []string     `json:"blobTypes"`
	PrefixMatch    *[]string    `json:"prefixMatch,omitempty"`
}

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"`
}

type RuleType

type RuleType string
const (
	RuleTypeLifecycle RuleType = "Lifecycle"
)

type TagFilter

type TagFilter struct {
	Name  string `json:"name"`
	Op    string `json:"op"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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