Documentation ¶
Overview ¶
Package mediaservices implements the Azure ARM Mediaservices service API version 2015-10-01.
Media Services resource management APIs.
Deprecated: Please instead use github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2015-10-01/media
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type APIEndpoint
- type APIError
- type CheckNameAvailabilityInput
- type CheckNameAvailabilityOutput
- type Client
- func (client Client) CheckNameAvailability(parameters CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error)
- func (client Client) CheckNameAvailabilityPreparer(parameters CheckNameAvailabilityInput) (*http.Request, error)
- func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityOutput, err error)
- func (client Client) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error)
- func (client Client) Create(resourceGroupName string, mediaServiceName string, parameters MediaService) (result MediaService, err error)
- func (client Client) CreatePreparer(resourceGroupName string, mediaServiceName string, parameters MediaService) (*http.Request, error)
- func (client Client) CreateResponder(resp *http.Response) (result MediaService, err error)
- func (client Client) CreateSender(req *http.Request) (*http.Response, error)
- func (client Client) Delete(resourceGroupName string, mediaServiceName string) (result autorest.Response, err error)
- func (client Client) DeletePreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
- func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) DeleteSender(req *http.Request) (*http.Response, error)
- func (client Client) Get(resourceGroupName string, mediaServiceName string) (result MediaService, err error)
- func (client Client) GetPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
- func (client Client) GetResponder(resp *http.Response) (result MediaService, err error)
- func (client Client) GetSender(req *http.Request) (*http.Response, error)
- func (client Client) ListByResourceGroup(resourceGroupName string) (result Collection, err error)
- func (client Client) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)
- func (client Client) ListByResourceGroupResponder(resp *http.Response) (result Collection, err error)
- func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client Client) ListKeys(resourceGroupName string, mediaServiceName string) (result ServiceKeys, err error)
- func (client Client) ListKeysPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
- func (client Client) ListKeysResponder(resp *http.Response) (result ServiceKeys, err error)
- func (client Client) ListKeysSender(req *http.Request) (*http.Response, error)
- func (client Client) RegenerateKey(resourceGroupName string, mediaServiceName string, ...) (result RegenerateKeyOutput, err error)
- func (client Client) RegenerateKeyPreparer(resourceGroupName string, mediaServiceName string, ...) (*http.Request, error)
- func (client Client) RegenerateKeyResponder(resp *http.Response) (result RegenerateKeyOutput, err error)
- func (client Client) RegenerateKeySender(req *http.Request) (*http.Response, error)
- func (client Client) SyncStorageKeys(resourceGroupName string, mediaServiceName string, ...) (result autorest.Response, err error)
- func (client Client) SyncStorageKeysPreparer(resourceGroupName string, mediaServiceName string, ...) (*http.Request, error)
- func (client Client) SyncStorageKeysResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) SyncStorageKeysSender(req *http.Request) (*http.Response, error)
- func (client Client) Update(resourceGroupName string, mediaServiceName string, parameters MediaService) (result MediaService, err error)
- func (client Client) UpdatePreparer(resourceGroupName string, mediaServiceName string, parameters MediaService) (*http.Request, error)
- func (client Client) UpdateResponder(resp *http.Response) (result MediaService, err error)
- func (client Client) UpdateSender(req *http.Request) (*http.Response, error)
- type Collection
- type EntityNameUnavailabilityReason
- type KeyType
- type ManagementClient
- type MediaService
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- func (client OperationsClient) List() (result OperationListResult, err error)
- func (client OperationsClient) ListPreparer() (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Properties
- type RegenerateKeyInput
- type RegenerateKeyOutput
- type Resource
- type ResourceType
- type ServiceKeys
- type StorageAccount
- type SyncStorageKeysInput
Constants ¶
const (
// 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 Client ¶
type Client struct {
ManagementClient
}
Client is the media Services resource management APIs.
func NewClientWithBaseURI ¶
NewClientWithBaseURI creates an instance of the Client client.
func (Client) CheckNameAvailability ¶
func (client Client) 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 (Client) CheckNameAvailabilityPreparer ¶
func (client Client) CheckNameAvailabilityPreparer(parameters CheckNameAvailabilityInput) (*http.Request, error)
CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
func (Client) CheckNameAvailabilityResponder ¶
func (client Client) 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 (Client) CheckNameAvailabilitySender ¶
CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the http.Response Body if it receives an error.
func (Client) Create ¶
func (client Client) Create(resourceGroupName string, mediaServiceName string, parameters MediaService) (result MediaService, 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 (Client) CreatePreparer ¶
func (client Client) CreatePreparer(resourceGroupName string, mediaServiceName string, parameters MediaService) (*http.Request, error)
CreatePreparer prepares the Create request.
func (Client) CreateResponder ¶
func (client Client) 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 (Client) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (Client) Delete ¶
func (client Client) 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 (Client) DeletePreparer ¶
func (client Client) DeletePreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (Client) DeleteResponder ¶
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (Client) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (Client) Get ¶
func (client Client) Get(resourceGroupName string, mediaServiceName string) (result MediaService, 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 (Client) GetPreparer ¶
func (client Client) GetPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (Client) GetResponder ¶
func (client Client) 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 (Client) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (Client) ListByResourceGroup ¶
func (client Client) ListByResourceGroup(resourceGroupName string) (result Collection, 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 (Client) ListByResourceGroupPreparer ¶
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (Client) ListByResourceGroupResponder ¶
func (client Client) ListByResourceGroupResponder(resp *http.Response) (result Collection, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (Client) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (Client) ListKeys ¶
func (client Client) 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 (Client) ListKeysPreparer ¶
func (client Client) ListKeysPreparer(resourceGroupName string, mediaServiceName string) (*http.Request, error)
ListKeysPreparer prepares the ListKeys request.
func (Client) ListKeysResponder ¶
func (client Client) 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 (Client) ListKeysSender ¶
ListKeysSender sends the ListKeys request. The method will close the http.Response Body if it receives an error.
func (Client) RegenerateKey ¶
func (client Client) 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 (Client) RegenerateKeyPreparer ¶
func (client Client) RegenerateKeyPreparer(resourceGroupName string, mediaServiceName string, parameters RegenerateKeyInput) (*http.Request, error)
RegenerateKeyPreparer prepares the RegenerateKey request.
func (Client) RegenerateKeyResponder ¶
func (client Client) 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 (Client) RegenerateKeySender ¶
RegenerateKeySender sends the RegenerateKey request. The method will close the http.Response Body if it receives an error.
func (Client) SyncStorageKeys ¶
func (client Client) 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 (Client) SyncStorageKeysPreparer ¶
func (client Client) SyncStorageKeysPreparer(resourceGroupName string, mediaServiceName string, parameters SyncStorageKeysInput) (*http.Request, error)
SyncStorageKeysPreparer prepares the SyncStorageKeys request.
func (Client) SyncStorageKeysResponder ¶
func (client Client) 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 (Client) SyncStorageKeysSender ¶
SyncStorageKeysSender sends the SyncStorageKeys request. The method will close the http.Response Body if it receives an error.
func (Client) Update ¶
func (client Client) Update(resourceGroupName string, mediaServiceName string, parameters MediaService) (result MediaService, 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 (Client) UpdatePreparer ¶
func (client Client) UpdatePreparer(resourceGroupName string, mediaServiceName string, parameters MediaService) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (Client) UpdateResponder ¶
func (client Client) UpdateResponder(resp *http.Response) (result MediaService, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
type Collection ¶
type Collection struct { autorest.Response `json:"-"` Value *[]MediaService `json:"value,omitempty"` }
Collection is the collection of Media Service resources.
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 ¶
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 `json:"properties,omitempty"` }
MediaService is the properties of a Media Service resource.
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 ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Properties ¶
type Properties struct { APIEndpoints *[]APIEndpoint `json:"apiEndpoints,omitempty"` StorageAccounts *[]StorageAccount `json:"storageAccounts,omitempty"` }
Properties is the additional properties of a Media Service resource.
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"` 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 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.