streamingendpoints

package
v0.20221207.1121859 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

README

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

The streamingendpoints 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/streamingendpoints"

Client Initialization

client := streamingendpoints.NewStreamingEndpointsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StreamingEndpointsClient.AsyncOperation

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointOperationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "operationIdValue")

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

Example Usage: StreamingEndpointsClient.Create

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue")

payload := streamingendpoints.StreamingEndpoint{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload, streamingendpoints.DefaultCreateOperationOptions()); err != nil {
	// handle the error
}

Example Usage: StreamingEndpointsClient.Delete

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StreamingEndpointsClient.Get

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue")

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: StreamingEndpointsClient.List

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

// 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: StreamingEndpointsClient.OperationLocation

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointOperationLocationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue", "operationIdValue")

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

Example Usage: StreamingEndpointsClient.Scale

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue")

payload := streamingendpoints.StreamingEntityScaleUnit{
	// ...
}


if err := client.ScaleThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: StreamingEndpointsClient.Skus

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue")

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

Example Usage: StreamingEndpointsClient.Start

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue")

if err := client.StartThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: StreamingEndpointsClient.Stop

ctx := context.TODO()
id := streamingendpoints.NewStreamingEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "streamingEndpointValue")

if err := client.StopThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAsyncOperationStatus

func PossibleValuesForAsyncOperationStatus() []string

func PossibleValuesForStreamingEndpointResourceState

func PossibleValuesForStreamingEndpointResourceState() []string

func ValidateMediaServiceID

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

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

func ValidateStreamingEndpointID

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

ValidateStreamingEndpointID checks that 'input' can be parsed as a Streaming Endpoint ID

func ValidateStreamingEndpointOperationID

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

ValidateStreamingEndpointOperationID checks that 'input' can be parsed as a Streaming Endpoint Operation ID

func ValidateStreamingEndpointOperationLocationID

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

ValidateStreamingEndpointOperationLocationID checks that 'input' can be parsed as a Streaming Endpoint Operation Location ID

Types

type AkamaiAccessControl

type AkamaiAccessControl struct {
	AkamaiSignatureHeaderAuthenticationKeyList *[]AkamaiSignatureHeaderAuthenticationKey `json:"akamaiSignatureHeaderAuthenticationKeyList,omitempty"`
}

type AkamaiSignatureHeaderAuthenticationKey

type AkamaiSignatureHeaderAuthenticationKey struct {
	Base64Key  *string `json:"base64Key,omitempty"`
	Expiration *string `json:"expiration,omitempty"`
	Identifier *string `json:"identifier,omitempty"`
}

func (*AkamaiSignatureHeaderAuthenticationKey) GetExpirationAsTime

func (o *AkamaiSignatureHeaderAuthenticationKey) GetExpirationAsTime() (*time.Time, error)

func (*AkamaiSignatureHeaderAuthenticationKey) SetExpirationAsTime

func (o *AkamaiSignatureHeaderAuthenticationKey) SetExpirationAsTime(input time.Time)

type ArmStreamingEndpointCapacity

type ArmStreamingEndpointCapacity struct {
	Default   *int64  `json:"default,omitempty"`
	Maximum   *int64  `json:"maximum,omitempty"`
	Minimum   *int64  `json:"minimum,omitempty"`
	ScaleType *string `json:"scaleType,omitempty"`
}

type ArmStreamingEndpointCurrentSku

type ArmStreamingEndpointCurrentSku struct {
	Capacity *int64  `json:"capacity,omitempty"`
	Name     *string `json:"name,omitempty"`
}

type ArmStreamingEndpointSku

type ArmStreamingEndpointSku struct {
	Name *string `json:"name,omitempty"`
}

type ArmStreamingEndpointSkuInfo

type ArmStreamingEndpointSkuInfo struct {
	Capacity     *ArmStreamingEndpointCapacity `json:"capacity,omitempty"`
	ResourceType *string                       `json:"resourceType,omitempty"`
	Sku          *ArmStreamingEndpointSku      `json:"sku,omitempty"`
}

type AsyncOperationOperationResponse

type AsyncOperationOperationResponse struct {
	HttpResponse *http.Response
	Model        *AsyncOperationResult
}

type AsyncOperationResult

type AsyncOperationResult struct {
	Error  *ErrorDetail          `json:"error,omitempty"`
	Name   *string               `json:"name,omitempty"`
	Status *AsyncOperationStatus `json:"status,omitempty"`
}

type AsyncOperationStatus

type AsyncOperationStatus string
const (
	AsyncOperationStatusFailed     AsyncOperationStatus = "Failed"
	AsyncOperationStatusInProgress AsyncOperationStatus = "InProgress"
	AsyncOperationStatusSucceeded  AsyncOperationStatus = "Succeeded"
)

type CreateOperationOptions

type CreateOperationOptions struct {
	AutoStart *bool
}

func DefaultCreateOperationOptions

func DefaultCreateOperationOptions() CreateOperationOptions

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type CrossSiteAccessPolicies

type CrossSiteAccessPolicies struct {
	ClientAccessPolicy *string `json:"clientAccessPolicy,omitempty"`
	CrossDomainPolicy  *string `json:"crossDomainPolicy,omitempty"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type ErrorAdditionalInfo

type ErrorAdditionalInfo struct {
	Info *interface{} `json:"info,omitempty"`
	Type *string      `json:"type,omitempty"`
}

type ErrorDetail

type ErrorDetail struct {
	AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"`
	Code           *string                `json:"code,omitempty"`
	Details        *[]ErrorDetail         `json:"details,omitempty"`
	Message        *string                `json:"message,omitempty"`
	Target         *string                `json:"target,omitempty"`
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *StreamingEndpoint
}

type IPAccessControl

type IPAccessControl struct {
	Allow *[]IPRange `json:"allow,omitempty"`
}

type IPRange

type IPRange struct {
	Address            *string `json:"address,omitempty"`
	Name               *string `json:"name,omitempty"`
	SubnetPrefixLength *int64  `json:"subnetPrefixLength,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []StreamingEndpoint
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]StreamingEndpoint
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type MediaServiceId

type MediaServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

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

func NewMediaServiceID

func NewMediaServiceID(subscriptionId string, resourceGroupName string, accountName 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 OperationLocationOperationResponse

type OperationLocationOperationResponse struct {
	HttpResponse *http.Response
	Model        *StreamingEndpoint
}

type ScaleOperationResponse

type ScaleOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type SkusOperationResponse

type SkusOperationResponse struct {
	HttpResponse *http.Response
	Model        *StreamingEndpointSkuInfoListResult
}

type StartOperationResponse

type StartOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type StopOperationResponse

type StopOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type StreamingEndpoint

type StreamingEndpoint struct {
	Id         *string                         `json:"id,omitempty"`
	Location   string                          `json:"location"`
	Name       *string                         `json:"name,omitempty"`
	Properties *StreamingEndpointProperties    `json:"properties,omitempty"`
	Sku        *ArmStreamingEndpointCurrentSku `json:"sku,omitempty"`
	SystemData *systemdata.SystemData          `json:"systemData,omitempty"`
	Tags       *map[string]string              `json:"tags,omitempty"`
	Type       *string                         `json:"type,omitempty"`
}

type StreamingEndpointAccessControl

type StreamingEndpointAccessControl struct {
	Akamai *AkamaiAccessControl `json:"akamai,omitempty"`
	IP     *IPAccessControl     `json:"ip,omitempty"`
}

type StreamingEndpointId

type StreamingEndpointId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AccountName           string
	StreamingEndpointName string
}

StreamingEndpointId is a struct representing the Resource ID for a Streaming Endpoint

func NewStreamingEndpointID

func NewStreamingEndpointID(subscriptionId string, resourceGroupName string, accountName string, streamingEndpointName string) StreamingEndpointId

NewStreamingEndpointID returns a new StreamingEndpointId struct

func ParseStreamingEndpointID

func ParseStreamingEndpointID(input string) (*StreamingEndpointId, error)

ParseStreamingEndpointID parses 'input' into a StreamingEndpointId

func ParseStreamingEndpointIDInsensitively

func ParseStreamingEndpointIDInsensitively(input string) (*StreamingEndpointId, error)

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

func (StreamingEndpointId) ID

func (id StreamingEndpointId) ID() string

ID returns the formatted Streaming Endpoint ID

func (StreamingEndpointId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Streaming Endpoint ID

func (StreamingEndpointId) String

func (id StreamingEndpointId) String() string

String returns a human-readable description of this Streaming Endpoint ID

type StreamingEndpointOperationId

type StreamingEndpointOperationId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	OperationId       string
}

StreamingEndpointOperationId is a struct representing the Resource ID for a Streaming Endpoint Operation

func NewStreamingEndpointOperationID

func NewStreamingEndpointOperationID(subscriptionId string, resourceGroupName string, accountName string, operationId string) StreamingEndpointOperationId

NewStreamingEndpointOperationID returns a new StreamingEndpointOperationId struct

func ParseStreamingEndpointOperationID

func ParseStreamingEndpointOperationID(input string) (*StreamingEndpointOperationId, error)

ParseStreamingEndpointOperationID parses 'input' into a StreamingEndpointOperationId

func ParseStreamingEndpointOperationIDInsensitively

func ParseStreamingEndpointOperationIDInsensitively(input string) (*StreamingEndpointOperationId, error)

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

func (StreamingEndpointOperationId) ID

ID returns the formatted Streaming Endpoint Operation ID

func (StreamingEndpointOperationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Streaming Endpoint Operation ID

func (StreamingEndpointOperationId) String

String returns a human-readable description of this Streaming Endpoint Operation ID

type StreamingEndpointOperationLocationId

type StreamingEndpointOperationLocationId struct {
	SubscriptionId        string
	ResourceGroupName     string
	AccountName           string
	StreamingEndpointName string
	OperationId           string
}

StreamingEndpointOperationLocationId is a struct representing the Resource ID for a Streaming Endpoint Operation Location

func NewStreamingEndpointOperationLocationID

func NewStreamingEndpointOperationLocationID(subscriptionId string, resourceGroupName string, accountName string, streamingEndpointName string, operationId string) StreamingEndpointOperationLocationId

NewStreamingEndpointOperationLocationID returns a new StreamingEndpointOperationLocationId struct

func ParseStreamingEndpointOperationLocationID

func ParseStreamingEndpointOperationLocationID(input string) (*StreamingEndpointOperationLocationId, error)

ParseStreamingEndpointOperationLocationID parses 'input' into a StreamingEndpointOperationLocationId

func ParseStreamingEndpointOperationLocationIDInsensitively

func ParseStreamingEndpointOperationLocationIDInsensitively(input string) (*StreamingEndpointOperationLocationId, error)

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

func (StreamingEndpointOperationLocationId) ID

ID returns the formatted Streaming Endpoint Operation Location ID

func (StreamingEndpointOperationLocationId) Segments

Segments returns a slice of Resource ID Segments which comprise this Streaming Endpoint Operation Location ID

func (StreamingEndpointOperationLocationId) String

String returns a human-readable description of this Streaming Endpoint Operation Location ID

type StreamingEndpointOperationPredicate

type StreamingEndpointOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (StreamingEndpointOperationPredicate) Matches

type StreamingEndpointProperties

type StreamingEndpointProperties struct {
	AccessControl           *StreamingEndpointAccessControl `json:"accessControl,omitempty"`
	AvailabilitySetName     *string                         `json:"availabilitySetName,omitempty"`
	CdnEnabled              *bool                           `json:"cdnEnabled,omitempty"`
	CdnProfile              *string                         `json:"cdnProfile,omitempty"`
	CdnProvider             *string                         `json:"cdnProvider,omitempty"`
	Created                 *string                         `json:"created,omitempty"`
	CrossSiteAccessPolicies *CrossSiteAccessPolicies        `json:"crossSiteAccessPolicies,omitempty"`
	CustomHostNames         *[]string                       `json:"customHostNames,omitempty"`
	Description             *string                         `json:"description,omitempty"`
	FreeTrialEndTime        *string                         `json:"freeTrialEndTime,omitempty"`
	HostName                *string                         `json:"hostName,omitempty"`
	LastModified            *string                         `json:"lastModified,omitempty"`
	MaxCacheAge             *int64                          `json:"maxCacheAge,omitempty"`
	ProvisioningState       *string                         `json:"provisioningState,omitempty"`
	ResourceState           *StreamingEndpointResourceState `json:"resourceState,omitempty"`
	ScaleUnits              int64                           `json:"scaleUnits"`
}

func (*StreamingEndpointProperties) GetCreatedAsTime

func (o *StreamingEndpointProperties) GetCreatedAsTime() (*time.Time, error)

func (*StreamingEndpointProperties) GetFreeTrialEndTimeAsTime

func (o *StreamingEndpointProperties) GetFreeTrialEndTimeAsTime() (*time.Time, error)

func (*StreamingEndpointProperties) GetLastModifiedAsTime

func (o *StreamingEndpointProperties) GetLastModifiedAsTime() (*time.Time, error)

func (*StreamingEndpointProperties) SetCreatedAsTime

func (o *StreamingEndpointProperties) SetCreatedAsTime(input time.Time)

func (*StreamingEndpointProperties) SetFreeTrialEndTimeAsTime

func (o *StreamingEndpointProperties) SetFreeTrialEndTimeAsTime(input time.Time)

func (*StreamingEndpointProperties) SetLastModifiedAsTime

func (o *StreamingEndpointProperties) SetLastModifiedAsTime(input time.Time)

type StreamingEndpointResourceState

type StreamingEndpointResourceState string
const (
	StreamingEndpointResourceStateDeleting StreamingEndpointResourceState = "Deleting"
	StreamingEndpointResourceStateRunning  StreamingEndpointResourceState = "Running"
	StreamingEndpointResourceStateScaling  StreamingEndpointResourceState = "Scaling"
	StreamingEndpointResourceStateStarting StreamingEndpointResourceState = "Starting"
	StreamingEndpointResourceStateStopped  StreamingEndpointResourceState = "Stopped"
	StreamingEndpointResourceStateStopping StreamingEndpointResourceState = "Stopping"
)

type StreamingEndpointSkuInfoListResult

type StreamingEndpointSkuInfoListResult struct {
	Value *[]ArmStreamingEndpointSkuInfo `json:"value,omitempty"`
}

type StreamingEndpointsClient

type StreamingEndpointsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewStreamingEndpointsClientWithBaseURI

func NewStreamingEndpointsClientWithBaseURI(endpoint string) StreamingEndpointsClient

func (StreamingEndpointsClient) AsyncOperation

AsyncOperation ...

func (StreamingEndpointsClient) Create

Create ...

func (StreamingEndpointsClient) CreateThenPoll

CreateThenPoll performs Create then polls until it's completed

func (StreamingEndpointsClient) Delete

Delete ...

func (StreamingEndpointsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (StreamingEndpointsClient) Get

Get ...

func (StreamingEndpointsClient) List

List ...

func (StreamingEndpointsClient) ListComplete

ListComplete retrieves all of the results into a single object

func (StreamingEndpointsClient) ListCompleteMatchingPredicate

func (c StreamingEndpointsClient) ListCompleteMatchingPredicate(ctx context.Context, id MediaServiceId, predicate StreamingEndpointOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (StreamingEndpointsClient) OperationLocation

OperationLocation ...

func (StreamingEndpointsClient) Scale

Scale ...

func (StreamingEndpointsClient) ScaleThenPoll

ScaleThenPoll performs Scale then polls until it's completed

func (StreamingEndpointsClient) Skus

Skus ...

func (StreamingEndpointsClient) Start

Start ...

func (StreamingEndpointsClient) StartThenPoll

StartThenPoll performs Start then polls until it's completed

func (StreamingEndpointsClient) Stop

Stop ...

func (StreamingEndpointsClient) StopThenPoll

StopThenPoll performs Stop then polls until it's completed

type StreamingEntityScaleUnit

type StreamingEntityScaleUnit struct {
	ScaleUnit *int64 `json:"scaleUnit,omitempty"`
}

Jump to

Keyboard shortcuts

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