Documentation ¶
Overview ¶
Package mediaservices implements the Azure ARM Mediaservices service API version 2015-10-01.
Media Services resource management APIs.
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type APIEndpoint
- type APIError
- type CheckNameAvailabilityInput
- type CheckNameAvailabilityOutput
- type EntityNameUnavailabilityReason
- type KeyType
- type ManagementClient
- type MediaService
- type MediaServiceCollection
- type MediaServiceProperties
- type OperationsClient
- func (client OperationsClient) CheckNameAvailabilty(checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error)
- func (client OperationsClient) CheckNameAvailabiltyPreparer(checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error)
- func (client OperationsClient) CheckNameAvailabiltyResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error)
- func (client OperationsClient) CheckNameAvailabiltySender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) Create(resourceGroupName string, mediaServiceName string, mediaService MediaService) (result MediaService, err error)
- func (client OperationsClient) CreatePreparer(resourceGroupName string, mediaServiceName string, mediaService MediaService) (*http.Request, error)
- func (client OperationsClient) CreateResponder(resp *http.Response) (result MediaService, err error)
- func (client OperationsClient) CreateSender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) Delete(resourceGroupName string, mediaServiceName string) (result autorest.Response, err error)
- func (client OperationsClient) DeletePreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
- func (client OperationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client OperationsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) Get(resourceGroupName string, mediaServiceName string) (result MediaService, err error)
- func (client OperationsClient) GetPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
- func (client OperationsClient) GetResponder(resp *http.Response) (result MediaService, err error)
- func (client OperationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) ListByResourceGroup(resourceGroupName string) (result MediaServiceCollection, err error)
- func (client OperationsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client OperationsClient) ListByResourceGroupResponder(resp *http.Response) (result MediaServiceCollection, err error)
- func (client OperationsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) ListKeys(resourceGroupName string, mediaServiceName string) (result ServiceKeys, err error)
- func (client OperationsClient) ListKeysPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
- func (client OperationsClient) ListKeysResponder(resp *http.Response) (result ServiceKeys, err error)
- func (client OperationsClient) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) RegenerateKey(resourceGroupName string, mediaServiceName string, ...) (result RegenerateKeyOutput, err error)
- func (client OperationsClient) RegenerateKeyPreparer(resourceGroupName string, mediaServiceName string, ...) (*http.Request, error)
- func (client OperationsClient) RegenerateKeyResponder(resp *http.Response) (result RegenerateKeyOutput, err error)
- func (client OperationsClient) RegenerateKeySender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) SyncStorageKeys(resourceGroupName string, mediaServiceName string, ...) (result MediaService, err error)
- func (client OperationsClient) SyncStorageKeysPreparer(resourceGroupName string, mediaServiceName string, ...) (*http.Request, error)
- func (client OperationsClient) SyncStorageKeysResponder(resp *http.Response) (result MediaService, err error)
- func (client OperationsClient) SyncStorageKeysSender(req *http.Request) (*http.Response, error)
- func (client OperationsClient) Update(resourceGroupName string, mediaServiceName string, mediaService MediaService) (result MediaService, err error)
- func (client OperationsClient) UpdatePreparer(resourceGroupName string, mediaServiceName string, mediaService MediaService) (*http.Request, error)
- func (client OperationsClient) UpdateResponder(resp *http.Response) (result MediaService, err error)
- func (client OperationsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type RegenerateKeyInput
- type RegenerateKeyOutput
- type Resource
- type ServiceKeys
- type StorageAccount
- type SyncStorageKeysInput
- type TrackedResource
Constants ¶
const ( // APIVersion is the version of the Mediaservices APIVersion = "2015-10-01" // DefaultBaseURI is the default URI used for the service Mediaservices 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 ManagementClient ¶
type ManagementClient struct { autorest.Client BaseURI string APIVersion string SubscriptionID string }
ManagementClient is the base client for Mediaservices.
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 MediaService ¶
type MediaService 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"` Properties *MediaServiceProperties `json:"properties,omitempty"` }
MediaService is the properties of a Media Service resource.
type MediaServiceCollection ¶
type MediaServiceCollection struct { autorest.Response `json:"-"` Value *[]MediaService `json:"value,omitempty"` }
MediaServiceCollection is the collection of Media Service resources.
type MediaServiceProperties ¶
type MediaServiceProperties struct { APIEndpoints *[]APIEndpoint `json:"apiEndpoints,omitempty"` StorageAccounts *[]StorageAccount `json:"storageAccounts,omitempty"` }
MediaServiceProperties is the additional properties of a Media Service resource.
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) CheckNameAvailabilty ¶
func (client OperationsClient) CheckNameAvailabilty(checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error)
CheckNameAvailabilty sends the check name availabilty request.
checkNameAvailabilityInput is properties needed to check the availability of a name.
func (OperationsClient) CheckNameAvailabiltyPreparer ¶
func (client OperationsClient) CheckNameAvailabiltyPreparer(checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error)
CheckNameAvailabiltyPreparer prepares the CheckNameAvailabilty request.
func (OperationsClient) CheckNameAvailabiltyResponder ¶
func (client OperationsClient) CheckNameAvailabiltyResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error)
CheckNameAvailabiltyResponder handles the response to the CheckNameAvailabilty request. The method always closes the http.Response Body.
func (OperationsClient) CheckNameAvailabiltySender ¶
func (client OperationsClient) CheckNameAvailabiltySender(req *http.Request) (*http.Response, error)
CheckNameAvailabiltySender sends the CheckNameAvailabilty request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) Create ¶
func (client OperationsClient) Create(resourceGroupName string, mediaServiceName string, mediaService MediaService) (result MediaService, err error)
Create sends the create request.
resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. mediaService is media Service properties needed for creation.
func (OperationsClient) CreatePreparer ¶
func (client OperationsClient) CreatePreparer(resourceGroupName string, mediaServiceName string, mediaService MediaService) (*http.Request, error)
CreatePreparer prepares the Create request.
func (OperationsClient) CreateResponder ¶
func (client OperationsClient) CreateResponder(resp *http.Response) (result MediaService, err error)
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (OperationsClient) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) Delete ¶
func (client OperationsClient) Delete(resourceGroupName string, mediaServiceName string) (result autorest.Response, err error)
Delete sends the delete request.
resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service.
func (OperationsClient) DeletePreparer ¶
func (client OperationsClient) DeletePreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (OperationsClient) DeleteResponder ¶
func (client OperationsClient) 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 (OperationsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) Get ¶
func (client OperationsClient) Get(resourceGroupName string, mediaServiceName string) (result MediaService, err error)
Get sends the get request.
resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service.
func (OperationsClient) GetPreparer ¶
func (client OperationsClient) GetPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (OperationsClient) GetResponder ¶
func (client OperationsClient) GetResponder(resp *http.Response) (result MediaService, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (OperationsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) ListByResourceGroup ¶
func (client OperationsClient) ListByResourceGroup(resourceGroupName string) (result MediaServiceCollection, err error)
ListByResourceGroup sends the list by resource group request.
resourceGroupName is name of the resource group within the Azure subscription.
func (OperationsClient) ListByResourceGroupPreparer ¶
func (client OperationsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (OperationsClient) ListByResourceGroupResponder ¶
func (client OperationsClient) ListByResourceGroupResponder(resp *http.Response) (result MediaServiceCollection, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (OperationsClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) ListKeys ¶
func (client OperationsClient) ListKeys(resourceGroupName string, mediaServiceName string) (result ServiceKeys, err error)
ListKeys sends the list keys request.
resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service.
func (OperationsClient) ListKeysPreparer ¶
func (client OperationsClient) ListKeysPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (OperationsClient) ListKeysResponder ¶
func (client OperationsClient) 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 (OperationsClient) ListKeysSender ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) RegenerateKey ¶
func (client OperationsClient) RegenerateKey(resourceGroupName string, mediaServiceName string, regenerateKeyInput RegenerateKeyInput) (result RegenerateKeyOutput, err error)
RegenerateKey sends the regenerate key request.
resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. regenerateKeyInput is properties needed to regenerate the Media Service key.
func (OperationsClient) RegenerateKeyPreparer ¶
func (client OperationsClient) RegenerateKeyPreparer(resourceGroupName string, mediaServiceName string, regenerateKeyInput RegenerateKeyInput) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (OperationsClient) RegenerateKeyResponder ¶
func (client OperationsClient) 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 (OperationsClient) RegenerateKeySender ¶
RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) SyncStorageKeys ¶
func (client OperationsClient) SyncStorageKeys(resourceGroupName string, mediaServiceName string, syncStorageKeysInput SyncStorageKeysInput) (result MediaService, err error)
SyncStorageKeys sends the sync storage keys request.
resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. syncStorageKeysInput is properties needed to sycnronize the keys for a storage account to the Media Service.
func (OperationsClient) SyncStorageKeysPreparer ¶
func (client OperationsClient) SyncStorageKeysPreparer(resourceGroupName string, mediaServiceName string, syncStorageKeysInput SyncStorageKeysInput) (*http.Request, error)
SyncStorageKeysPreparer prepares the SyncStorageKeys request.
func (OperationsClient) SyncStorageKeysResponder ¶
func (client OperationsClient) SyncStorageKeysResponder(resp *http.Response) (result MediaService, err error)
SyncStorageKeysResponder handles the response to the SyncStorageKeys request. The method always closes the http.Response Body.
func (OperationsClient) SyncStorageKeysSender ¶
SyncStorageKeysSender sends the SyncStorageKeys request. The method will close the http.Response Body if it receives an error.
func (OperationsClient) Update ¶
func (client OperationsClient) Update(resourceGroupName string, mediaServiceName string, mediaService MediaService) (result MediaService, err error)
Update sends the update request.
resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media Service. mediaService is media Service properties needed for update.
func (OperationsClient) UpdatePreparer ¶
func (client OperationsClient) UpdatePreparer(resourceGroupName string, mediaServiceName string, mediaService MediaService) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (OperationsClient) UpdateResponder ¶
func (client OperationsClient) UpdateResponder(resp *http.Response) (result MediaService, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (OperationsClient) UpdateSender ¶
UpdateSender sends the Update 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 ¶
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"` }
Resource is
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 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.