accountfilters

package
v0.20240320.1144505 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/media/2021-11-01/accountfilters Documentation

The accountfilters SDK allows for interaction with the Azure Resource Manager Service media (API Version 2021-11-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/media/2021-11-01/accountfilters"

Client Initialization

client := accountfilters.NewAccountFiltersClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AccountFiltersClient.CreateOrUpdate

ctx := context.TODO()
id := accountfilters.NewAccountFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "accountFilterValue")

payload := accountfilters.AccountFilter{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccountFiltersClient.Delete

ctx := context.TODO()
id := accountfilters.NewAccountFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "accountFilterValue")

read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccountFiltersClient.Get

ctx := context.TODO()
id := accountfilters.NewAccountFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "accountFilterValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccountFiltersClient.List

ctx := context.TODO()
id := accountfilters.NewMediaServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AccountFiltersClient.Update

ctx := context.TODO()
id := accountfilters.NewAccountFilterID("12345678-1234-9876-4563-123456789012", "example-resource-group", "mediaServiceValue", "accountFilterValue")

payload := accountfilters.AccountFilter{
	// ...
}


read, err := client.Update(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForFilterTrackPropertyCompareOperation

func PossibleValuesForFilterTrackPropertyCompareOperation() []string

func PossibleValuesForFilterTrackPropertyType

func PossibleValuesForFilterTrackPropertyType() []string

func ValidateAccountFilterID

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

ValidateAccountFilterID checks that 'input' can be parsed as a Account Filter ID

func ValidateMediaServiceID

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

ValidateMediaServiceID checks that 'input' can be parsed as a Media Service ID

Types

type AccountFilter

type AccountFilter struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *MediaFilterProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type AccountFilterId

type AccountFilterId struct {
	SubscriptionId    string
	ResourceGroupName string
	MediaServiceName  string
	AccountFilterName string
}

AccountFilterId is a struct representing the Resource ID for a Account Filter

func NewAccountFilterID

func NewAccountFilterID(subscriptionId string, resourceGroupName string, mediaServiceName string, accountFilterName string) AccountFilterId

NewAccountFilterID returns a new AccountFilterId struct

func ParseAccountFilterID

func ParseAccountFilterID(input string) (*AccountFilterId, error)

ParseAccountFilterID parses 'input' into a AccountFilterId

func ParseAccountFilterIDInsensitively

func ParseAccountFilterIDInsensitively(input string) (*AccountFilterId, error)

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

func (*AccountFilterId) FromParseResult

func (id *AccountFilterId) FromParseResult(input resourceids.ParseResult) error

func (AccountFilterId) ID

func (id AccountFilterId) ID() string

ID returns the formatted Account Filter ID

func (AccountFilterId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Account Filter ID

func (AccountFilterId) String

func (id AccountFilterId) String() string

String returns a human-readable description of this Account Filter ID

type AccountFilterOperationPredicate

type AccountFilterOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (AccountFilterOperationPredicate) Matches

type AccountFiltersClient

type AccountFiltersClient struct {
	Client *resourcemanager.Client
}

func NewAccountFiltersClientWithBaseURI

func NewAccountFiltersClientWithBaseURI(sdkApi sdkEnv.Api) (*AccountFiltersClient, error)

func (AccountFiltersClient) CreateOrUpdate

CreateOrUpdate ...

func (AccountFiltersClient) Delete

Delete ...

func (AccountFiltersClient) Get

Get ...

func (AccountFiltersClient) List

List ...

func (AccountFiltersClient) ListComplete

ListComplete retrieves all the results into a single object

func (AccountFiltersClient) ListCompleteMatchingPredicate

func (c AccountFiltersClient) ListCompleteMatchingPredicate(ctx context.Context, id MediaServiceId, predicate AccountFilterOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AccountFiltersClient) Update

Update ...

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AccountFilter
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type FilterTrackPropertyCompareOperation

type FilterTrackPropertyCompareOperation string
const (
	FilterTrackPropertyCompareOperationEqual    FilterTrackPropertyCompareOperation = "Equal"
	FilterTrackPropertyCompareOperationNotEqual FilterTrackPropertyCompareOperation = "NotEqual"
)

func (*FilterTrackPropertyCompareOperation) UnmarshalJSON

func (s *FilterTrackPropertyCompareOperation) UnmarshalJSON(bytes []byte) error

type FilterTrackPropertyCondition

type FilterTrackPropertyCondition struct {
	Operation FilterTrackPropertyCompareOperation `json:"operation"`
	Property  FilterTrackPropertyType             `json:"property"`
	Value     string                              `json:"value"`
}

type FilterTrackPropertyType

type FilterTrackPropertyType string
const (
	FilterTrackPropertyTypeBitrate  FilterTrackPropertyType = "Bitrate"
	FilterTrackPropertyTypeFourCC   FilterTrackPropertyType = "FourCC"
	FilterTrackPropertyTypeLanguage FilterTrackPropertyType = "Language"
	FilterTrackPropertyTypeName     FilterTrackPropertyType = "Name"
	FilterTrackPropertyTypeType     FilterTrackPropertyType = "Type"
	FilterTrackPropertyTypeUnknown  FilterTrackPropertyType = "Unknown"
)

func (*FilterTrackPropertyType) UnmarshalJSON

func (s *FilterTrackPropertyType) UnmarshalJSON(bytes []byte) error

type FilterTrackSelection

type FilterTrackSelection struct {
	TrackSelections []FilterTrackPropertyCondition `json:"trackSelections"`
}

type FirstQuality

type FirstQuality struct {
	Bitrate int64 `json:"bitrate"`
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AccountFilter
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []AccountFilter
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AccountFilter
}

type MediaFilterProperties

type MediaFilterProperties struct {
	FirstQuality          *FirstQuality           `json:"firstQuality,omitempty"`
	PresentationTimeRange *PresentationTimeRange  `json:"presentationTimeRange,omitempty"`
	Tracks                *[]FilterTrackSelection `json:"tracks,omitempty"`
}

type MediaServiceId

type MediaServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	MediaServiceName  string
}

MediaServiceId is a struct representing the Resource ID for a Media Service

func NewMediaServiceID

func NewMediaServiceID(subscriptionId string, resourceGroupName string, mediaServiceName string) MediaServiceId

NewMediaServiceID returns a new MediaServiceId struct

func ParseMediaServiceID

func ParseMediaServiceID(input string) (*MediaServiceId, error)

ParseMediaServiceID parses 'input' into a MediaServiceId

func ParseMediaServiceIDInsensitively

func ParseMediaServiceIDInsensitively(input string) (*MediaServiceId, error)

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

func (*MediaServiceId) FromParseResult

func (id *MediaServiceId) FromParseResult(input resourceids.ParseResult) error

func (MediaServiceId) ID

func (id MediaServiceId) ID() string

ID returns the formatted Media Service ID

func (MediaServiceId) Segments

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

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

func (MediaServiceId) String

func (id MediaServiceId) String() string

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

type PresentationTimeRange

type PresentationTimeRange struct {
	EndTimestamp               *int64 `json:"endTimestamp,omitempty"`
	ForceEndTimestamp          *bool  `json:"forceEndTimestamp,omitempty"`
	LiveBackoffDuration        *int64 `json:"liveBackoffDuration,omitempty"`
	PresentationWindowDuration *int64 `json:"presentationWindowDuration,omitempty"`
	StartTimestamp             *int64 `json:"startTimestamp,omitempty"`
	Timescale                  *int64 `json:"timescale,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AccountFilter
}

Jump to

Keyboard shortcuts

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