media

package
v11.2.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package media implements the Azure ARM Media service API version 2015-10-01.

Media Services resource management APIs.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Media
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIEndpoint

type APIEndpoint struct {
	Endpoint     *string `json:"endpoint,omitempty"`
	MajorVersion *string `json:"majorVersion,omitempty"`
}

APIEndpoint is the properties for a Media Services REST API endpoint.

type APIError

type APIError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

APIError is the error returned from a failed Media Services REST API call.

type CheckNameAvailabilityInput

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

CheckNameAvailabilityInput is the request body for CheckNameAvailability API.

type CheckNameAvailabilityOutput

type CheckNameAvailabilityOutput struct {
	autorest.Response `json:"-"`
	NameAvailable     *bool                          `json:"nameAvailable,omitempty"`
	Reason            EntityNameUnavailabilityReason `json:"reason,omitempty"`
	Message           *string                        `json:"message,omitempty"`
}

CheckNameAvailabilityOutput is the response body for CheckNameAvailability API.

type EntityNameUnavailabilityReason

type EntityNameUnavailabilityReason string

EntityNameUnavailabilityReason enumerates the values for entity name unavailability reason.

const (
	// AlreadyExists specifies the already exists state for entity name unavailability reason.
	AlreadyExists EntityNameUnavailabilityReason = "AlreadyExists"
	// Invalid specifies the invalid state for entity name unavailability reason.
	Invalid EntityNameUnavailabilityReason = "Invalid"
	// None specifies the none state for entity name unavailability reason.
	None EntityNameUnavailabilityReason = "None"
)

type KeyType

type KeyType string

KeyType enumerates the values for key type.

const (
	// Primary specifies the primary state for key type.
	Primary KeyType = "Primary"
	// Secondary specifies the secondary state for key type.
	Secondary KeyType = "Secondary"
)

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Media.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type Operation

type Operation struct {
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation is a Media Services REST API operation

type OperationDisplay

type OperationDisplay struct {
	Provider  *string `json:"provider,omitempty"`
	Resource  *string `json:"resource,omitempty"`
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay is the object that represents the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult is result of the request to list Media Services operations.

type OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient is the media Services resource management APIs.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List() (result OperationListResult, err error)

List lists all of the available Media Services REST API operations.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type RegenerateKeyInput

type RegenerateKeyInput struct {
	KeyType KeyType `json:"keyType,omitempty"`
}

RegenerateKeyInput is the request body for a RegenerateKey API.

type RegenerateKeyOutput

type RegenerateKeyOutput struct {
	autorest.Response `json:"-"`
	Key               *string `json:"key,omitempty"`
}

RegenerateKeyOutput is the response body for a RegenerateKey API.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is the Azure Resource Manager resource.

type ResourceType

type ResourceType string

ResourceType enumerates the values for resource type.

const (
	// Mediaservices specifies the mediaservices state for resource type.
	Mediaservices ResourceType = "mediaservices"
)

type Service

type Service struct {
	autorest.Response  `json:"-"`
	ID                 *string             `json:"id,omitempty"`
	Name               *string             `json:"name,omitempty"`
	Type               *string             `json:"type,omitempty"`
	Location           *string             `json:"location,omitempty"`
	Tags               *map[string]*string `json:"tags,omitempty"`
	*ServiceProperties `json:"properties,omitempty"`
}

Service is the properties of a Media Service resource.

type ServiceClient

type ServiceClient struct {
	ManagementClient
}

ServiceClient is the media Services resource management APIs.

func NewServiceClient

func NewServiceClient(subscriptionID string) ServiceClient

NewServiceClient creates an instance of the ServiceClient client.

func NewServiceClientWithBaseURI

func NewServiceClientWithBaseURI(baseURI string, subscriptionID string) ServiceClient

NewServiceClientWithBaseURI creates an instance of the ServiceClient client.

func (ServiceClient) CheckNameAvailability

func (client ServiceClient) CheckNameAvailability(parameters CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error)

CheckNameAvailability checks whether the Media Service resource name is available. The name must be globally unique.

parameters is properties needed to check the availability of a name.

func (ServiceClient) CheckNameAvailabilityPreparer

func (client ServiceClient) CheckNameAvailabilityPreparer(parameters CheckNameAvailabilityInput) (*http.Request, error)

CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.

func (ServiceClient) CheckNameAvailabilityResponder

func (client ServiceClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error)

CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always closes the http.Response Body.

func (ServiceClient) CheckNameAvailabilitySender

func (client ServiceClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)

CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Create

func (client ServiceClient) Create(resourceGroupName string, mediaServiceName string, parameters Service) (result Service, err error)

Create creates a Media Service.

resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. parameters is media Service properties needed for creation.

func (ServiceClient) CreatePreparer

func (client ServiceClient) CreatePreparer(resourceGroupName string, mediaServiceName string, parameters Service) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ServiceClient) CreateResponder

func (client ServiceClient) CreateResponder(resp *http.Response) (result Service, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ServiceClient) CreateSender

func (client ServiceClient) CreateSender(req *http.Request) (*http.Response, error)

CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Delete

func (client ServiceClient) Delete(resourceGroupName string, mediaServiceName string) (result autorest.Response, err error)

Delete deletes a Media Service.

resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service.

func (ServiceClient) DeletePreparer

func (client ServiceClient) DeletePreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServiceClient) DeleteResponder

func (client ServiceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServiceClient) DeleteSender

func (client ServiceClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Get

func (client ServiceClient) Get(resourceGroupName string, mediaServiceName string) (result Service, err error)

Get gets a Media Service.

resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service.

func (ServiceClient) GetPreparer

func (client ServiceClient) GetPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceClient) GetResponder

func (client ServiceClient) GetResponder(resp *http.Response) (result Service, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServiceClient) GetSender

func (client ServiceClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) ListByResourceGroup

func (client ServiceClient) ListByResourceGroup(resourceGroupName string) (result ServiceCollection, err error)

ListByResourceGroup lists all of the Media Services in a resource group.

resourceGroupName is name of the resource group within the Azure subscription.

func (ServiceClient) ListByResourceGroupPreparer

func (client ServiceClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServiceClient) ListByResourceGroupResponder

func (client ServiceClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceCollection, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ServiceClient) ListByResourceGroupSender

func (client ServiceClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) ListKeys

func (client ServiceClient) ListKeys(resourceGroupName string, mediaServiceName string) (result ServiceKeys, err error)

ListKeys lists the keys for a Media Service.

resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service.

func (ServiceClient) ListKeysPreparer

func (client ServiceClient) ListKeysPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)

ListKeysPreparer prepares the ListKeys request.

func (ServiceClient) ListKeysResponder

func (client ServiceClient) ListKeysResponder(resp *http.Response) (result ServiceKeys, err error)

ListKeysResponder handles the response to the ListKeys request. The method always closes the http.Response Body.

func (ServiceClient) ListKeysSender

func (client ServiceClient) ListKeysSender(req *http.Request) (*http.Response, error)

ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) RegenerateKey

func (client ServiceClient) RegenerateKey(resourceGroupName string, mediaServiceName string, parameters RegenerateKeyInput) (result RegenerateKeyOutput, err error)

RegenerateKey regenerates a primary or secondary key for a Media Service.

resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. parameters is properties needed to regenerate the Media Service key.

func (ServiceClient) RegenerateKeyPreparer

func (client ServiceClient) RegenerateKeyPreparer(resourceGroupName string, mediaServiceName string, parameters RegenerateKeyInput) (*http.Request, error)

RegenerateKeyPreparer prepares the RegenerateKey request.

func (ServiceClient) RegenerateKeyResponder

func (client ServiceClient) RegenerateKeyResponder(resp *http.Response) (result RegenerateKeyOutput, err error)

RegenerateKeyResponder handles the response to the RegenerateKey request. The method always closes the http.Response Body.

func (ServiceClient) RegenerateKeySender

func (client ServiceClient) RegenerateKeySender(req *http.Request) (*http.Response, error)

RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) SyncStorageKeys

func (client ServiceClient) SyncStorageKeys(resourceGroupName string, mediaServiceName string, parameters SyncStorageKeysInput) (result autorest.Response, err error)

SyncStorageKeys synchronizes storage account keys for a storage account associated with the Media Service account.

resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. parameters is properties needed to synchronize the keys for a storage account to the Media Service.

func (ServiceClient) SyncStorageKeysPreparer

func (client ServiceClient) SyncStorageKeysPreparer(resourceGroupName string, mediaServiceName string, parameters SyncStorageKeysInput) (*http.Request, error)

SyncStorageKeysPreparer prepares the SyncStorageKeys request.

func (ServiceClient) SyncStorageKeysResponder

func (client ServiceClient) SyncStorageKeysResponder(resp *http.Response) (result autorest.Response, err error)

SyncStorageKeysResponder handles the response to the SyncStorageKeys request. The method always closes the http.Response Body.

func (ServiceClient) SyncStorageKeysSender

func (client ServiceClient) SyncStorageKeysSender(req *http.Request) (*http.Response, error)

SyncStorageKeysSender sends the SyncStorageKeys request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Update

func (client ServiceClient) Update(resourceGroupName string, mediaServiceName string, parameters Service) (result Service, err error)

Update updates a Media Service.

resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. parameters is media Service properties needed for update.

func (ServiceClient) UpdatePreparer

func (client ServiceClient) UpdatePreparer(resourceGroupName string, mediaServiceName string, parameters Service) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServiceClient) UpdateResponder

func (client ServiceClient) UpdateResponder(resp *http.Response) (result Service, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServiceClient) UpdateSender

func (client ServiceClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ServiceCollection

type ServiceCollection struct {
	autorest.Response `json:"-"`
	Value             *[]Service `json:"value,omitempty"`
}

ServiceCollection is the collection of Media Service resources.

type ServiceKeys

type ServiceKeys struct {
	autorest.Response     `json:"-"`
	PrimaryAuthEndpoint   *string `json:"primaryAuthEndpoint,omitempty"`
	SecondaryAuthEndpoint *string `json:"secondaryAuthEndpoint,omitempty"`
	PrimaryKey            *string `json:"primaryKey,omitempty"`
	SecondaryKey          *string `json:"secondaryKey,omitempty"`
	Scope                 *string `json:"scope,omitempty"`
}

ServiceKeys is the response body for a ListKeys API.

type ServiceProperties

type ServiceProperties struct {
	APIEndpoints    *[]APIEndpoint    `json:"apiEndpoints,omitempty"`
	StorageAccounts *[]StorageAccount `json:"storageAccounts,omitempty"`
}

ServiceProperties is the additional properties of a Media Service resource.

type StorageAccount

type StorageAccount struct {
	ID        *string `json:"id,omitempty"`
	IsPrimary *bool   `json:"isPrimary,omitempty"`
}

StorageAccount is the properties of a storage account associated with this resource.

type SyncStorageKeysInput

type SyncStorageKeysInput struct {
	ID *string `json:"id,omitempty"`
}

SyncStorageKeysInput is the request body for a SyncStorageKeys API.

Jump to

Keyboard shortcuts

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