accountfilters

package
v0.20230823.1052657 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/media/2022-08-01/accountfilters Documentation

The accountfilters SDK allows for interaction with the Azure Resource Manager Service media (API Version 2022-08-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/2022-08-01/accountfilters"

Client Initialization

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

Example Usage: AccountFiltersClient.AccountFiltersCreateOrUpdate

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

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


read, err := client.AccountFiltersCreateOrUpdate(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.AccountFiltersDelete

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

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

Example Usage: AccountFiltersClient.AccountFiltersGet

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

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

Example Usage: AccountFiltersClient.AccountFiltersList

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

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

Example Usage: AccountFiltersClient.AccountFiltersUpdate

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

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


read, err := client.AccountFiltersUpdate(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) 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) AccountFiltersCreateOrUpdate

func (c AccountFiltersClient) AccountFiltersCreateOrUpdate(ctx context.Context, id AccountFilterId, input AccountFilter) (result AccountFiltersCreateOrUpdateOperationResponse, err error)

AccountFiltersCreateOrUpdate ...

func (AccountFiltersClient) AccountFiltersDelete

AccountFiltersDelete ...

func (AccountFiltersClient) AccountFiltersGet

AccountFiltersGet ...

func (AccountFiltersClient) AccountFiltersList

AccountFiltersList ...

func (AccountFiltersClient) AccountFiltersListComplete

AccountFiltersListComplete retrieves all the results into a single object

func (AccountFiltersClient) AccountFiltersListCompleteMatchingPredicate

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

AccountFiltersListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AccountFiltersClient) AccountFiltersUpdate

AccountFiltersUpdate ...

type AccountFiltersCreateOrUpdateOperationResponse

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

type AccountFiltersDeleteOperationResponse

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

type AccountFiltersGetOperationResponse

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

type AccountFiltersListCompleteResult

type AccountFiltersListCompleteResult struct {
	Items []AccountFilter
}

type AccountFiltersListOperationResponse

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

type AccountFiltersUpdateOperationResponse

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

type FilterTrackPropertyCompareOperation

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

func (*FilterTrackPropertyCompareOperation) UnmarshalJSON added in v0.20230406.1124617

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 added in v0.20230406.1124617

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

Jump to

Keyboard shortcuts

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