vendor: update all dependencies to latest versions
This commit is contained in:
+55
-65
@@ -14,9 +14,8 @@ package mediaservices
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
|
||||
// Changes may cause incorrect behavior and will be lost if the code is
|
||||
// regenerated.
|
||||
// Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
import (
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
@@ -40,24 +39,22 @@ func NewClientWithBaseURI(baseURI string, subscriptionID string) Client {
|
||||
return Client{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CheckNameAvailability checks whether the Media Service resource name is
|
||||
// available. The name must be globally unique.
|
||||
// CheckNameAvailability checks whether the Media Service resource name is available. The name must be globally unique.
|
||||
//
|
||||
// checkNameAvailabilityInput is properties needed to check the availability of
|
||||
// a name.
|
||||
func (client Client) CheckNameAvailability(checkNameAvailabilityInput CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) {
|
||||
// parameters is properties needed to check the availability of a name.
|
||||
func (client Client) CheckNameAvailability(parameters CheckNameAvailabilityInput) (result CheckNameAvailabilityOutput, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: checkNameAvailabilityInput,
|
||||
Constraints: []validation.Constraint{{Target: "checkNameAvailabilityInput.Name", Name: validation.Null, Rule: true,
|
||||
Chain: []validation.Constraint{{Target: "checkNameAvailabilityInput.Name", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "checkNameAvailabilityInput.Name", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "checkNameAvailabilityInput.Name", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil},
|
||||
{TargetValue: parameters,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.Name", Name: validation.Null, Rule: true,
|
||||
Chain: []validation.Constraint{{Target: "parameters.Name", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "parameters.Name", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "parameters.Name", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil},
|
||||
}},
|
||||
{Target: "checkNameAvailabilityInput.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
|
||||
{Target: "parameters.Type", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "CheckNameAvailability")
|
||||
}
|
||||
|
||||
req, err := client.CheckNameAvailabilityPreparer(checkNameAvailabilityInput)
|
||||
req, err := client.CheckNameAvailabilityPreparer(parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "mediaservices.Client", "CheckNameAvailability", nil, "Failure preparing request")
|
||||
return
|
||||
@@ -79,7 +76,7 @@ func (client Client) CheckNameAvailability(checkNameAvailabilityInput CheckNameA
|
||||
}
|
||||
|
||||
// CheckNameAvailabilityPreparer prepares the CheckNameAvailability request.
|
||||
func (client Client) CheckNameAvailabilityPreparer(checkNameAvailabilityInput CheckNameAvailabilityInput) (*http.Request, error) {
|
||||
func (client Client) CheckNameAvailabilityPreparer(parameters CheckNameAvailabilityInput) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
|
||||
}
|
||||
@@ -94,7 +91,7 @@ func (client Client) CheckNameAvailabilityPreparer(checkNameAvailabilityInput Ch
|
||||
autorest.AsPost(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Media/CheckNameAvailability", pathParameters),
|
||||
autorest.WithJSON(checkNameAvailabilityInput),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare(&http.Request{})
|
||||
}
|
||||
@@ -120,19 +117,18 @@ func (client Client) CheckNameAvailabilityResponder(resp *http.Response) (result
|
||||
|
||||
// Create creates a Media Service.
|
||||
//
|
||||
// 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 (client Client) Create(resourceGroupName string, mediaServiceName string, mediaService MediaService) (result MediaService, err error) {
|
||||
// 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 Client) Create(resourceGroupName string, mediaServiceName string, parameters MediaService) (result MediaService, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: mediaServiceName,
|
||||
Constraints: []validation.Constraint{{Target: "mediaServiceName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil}}}}); err != nil {
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "Create")
|
||||
}
|
||||
|
||||
req, err := client.CreatePreparer(resourceGroupName, mediaServiceName, mediaService)
|
||||
req, err := client.CreatePreparer(resourceGroupName, mediaServiceName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "mediaservices.Client", "Create", nil, "Failure preparing request")
|
||||
return
|
||||
@@ -154,7 +150,7 @@ func (client Client) Create(resourceGroupName string, mediaServiceName string, m
|
||||
}
|
||||
|
||||
// CreatePreparer prepares the Create request.
|
||||
func (client Client) CreatePreparer(resourceGroupName string, mediaServiceName string, mediaService MediaService) (*http.Request, error) {
|
||||
func (client Client) CreatePreparer(resourceGroupName string, mediaServiceName string, parameters MediaService) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"mediaServiceName": autorest.Encode("path", mediaServiceName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
@@ -171,7 +167,7 @@ func (client Client) CreatePreparer(resourceGroupName string, mediaServiceName s
|
||||
autorest.AsPut(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}", pathParameters),
|
||||
autorest.WithJSON(mediaService),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare(&http.Request{})
|
||||
}
|
||||
@@ -197,14 +193,14 @@ func (client Client) CreateResponder(resp *http.Response) (result MediaService,
|
||||
|
||||
// Delete deletes a Media Service.
|
||||
//
|
||||
// resourceGroupName is name of the resource group within the Azure
|
||||
// subscription. mediaServiceName is name of the Media Service.
|
||||
// resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media
|
||||
// Service.
|
||||
func (client Client) Delete(resourceGroupName string, mediaServiceName string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: mediaServiceName,
|
||||
Constraints: []validation.Constraint{{Target: "mediaServiceName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil}}}}); err != nil {
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "Delete")
|
||||
}
|
||||
|
||||
@@ -270,14 +266,14 @@ func (client Client) DeleteResponder(resp *http.Response) (result autorest.Respo
|
||||
|
||||
// Get gets a Media Service.
|
||||
//
|
||||
// resourceGroupName is name of the resource group within the Azure
|
||||
// subscription. mediaServiceName is name of the Media Service.
|
||||
// resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media
|
||||
// Service.
|
||||
func (client Client) Get(resourceGroupName string, mediaServiceName string) (result MediaService, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: mediaServiceName,
|
||||
Constraints: []validation.Constraint{{Target: "mediaServiceName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil}}}}); err != nil {
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "Get")
|
||||
}
|
||||
|
||||
@@ -344,8 +340,7 @@ func (client Client) GetResponder(resp *http.Response) (result MediaService, err
|
||||
|
||||
// ListByResourceGroup lists all of the Media Services in a resource group.
|
||||
//
|
||||
// resourceGroupName is name of the resource group within the Azure
|
||||
// subscription.
|
||||
// resourceGroupName is name of the resource group within the Azure subscription.
|
||||
func (client Client) ListByResourceGroup(resourceGroupName string) (result Collection, err error) {
|
||||
req, err := client.ListByResourceGroupPreparer(resourceGroupName)
|
||||
if err != nil {
|
||||
@@ -409,14 +404,14 @@ func (client Client) ListByResourceGroupResponder(resp *http.Response) (result C
|
||||
|
||||
// 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.
|
||||
// resourceGroupName is name of the resource group within the Azure subscription. mediaServiceName is name of the Media
|
||||
// Service.
|
||||
func (client Client) ListKeys(resourceGroupName string, mediaServiceName string) (result ServiceKeys, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: mediaServiceName,
|
||||
Constraints: []validation.Constraint{{Target: "mediaServiceName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil}}}}); err != nil {
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "ListKeys")
|
||||
}
|
||||
|
||||
@@ -483,19 +478,18 @@ func (client Client) ListKeysResponder(resp *http.Response) (result ServiceKeys,
|
||||
|
||||
// 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.
|
||||
// regenerateKeyInput is properties needed to regenerate the Media Service key.
|
||||
func (client Client) RegenerateKey(resourceGroupName string, mediaServiceName string, regenerateKeyInput RegenerateKeyInput) (result RegenerateKeyOutput, err error) {
|
||||
// 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 Client) RegenerateKey(resourceGroupName string, mediaServiceName string, parameters RegenerateKeyInput) (result RegenerateKeyOutput, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: mediaServiceName,
|
||||
Constraints: []validation.Constraint{{Target: "mediaServiceName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil}}}}); err != nil {
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "RegenerateKey")
|
||||
}
|
||||
|
||||
req, err := client.RegenerateKeyPreparer(resourceGroupName, mediaServiceName, regenerateKeyInput)
|
||||
req, err := client.RegenerateKeyPreparer(resourceGroupName, mediaServiceName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "mediaservices.Client", "RegenerateKey", nil, "Failure preparing request")
|
||||
return
|
||||
@@ -517,7 +511,7 @@ func (client Client) RegenerateKey(resourceGroupName string, mediaServiceName st
|
||||
}
|
||||
|
||||
// RegenerateKeyPreparer prepares the RegenerateKey request.
|
||||
func (client Client) RegenerateKeyPreparer(resourceGroupName string, mediaServiceName string, regenerateKeyInput RegenerateKeyInput) (*http.Request, error) {
|
||||
func (client Client) RegenerateKeyPreparer(resourceGroupName string, mediaServiceName string, parameters RegenerateKeyInput) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"mediaServiceName": autorest.Encode("path", mediaServiceName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
@@ -534,7 +528,7 @@ func (client Client) RegenerateKeyPreparer(resourceGroupName string, mediaServic
|
||||
autorest.AsPost(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/regenerateKey", pathParameters),
|
||||
autorest.WithJSON(regenerateKeyInput),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare(&http.Request{})
|
||||
}
|
||||
@@ -558,25 +552,22 @@ func (client Client) RegenerateKeyResponder(resp *http.Response) (result Regener
|
||||
return
|
||||
}
|
||||
|
||||
// SyncStorageKeys synchronizes storage account keys for a storage account
|
||||
// associated with the Media Service account.
|
||||
// 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.
|
||||
// syncStorageKeysInput is properties needed to synchronize the keys for a
|
||||
// storage account to the Media Service.
|
||||
func (client Client) SyncStorageKeys(resourceGroupName string, mediaServiceName string, syncStorageKeysInput SyncStorageKeysInput) (result autorest.Response, err error) {
|
||||
// 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 Client) SyncStorageKeys(resourceGroupName string, mediaServiceName string, parameters SyncStorageKeysInput) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: mediaServiceName,
|
||||
Constraints: []validation.Constraint{{Target: "mediaServiceName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil}}},
|
||||
{TargetValue: syncStorageKeysInput,
|
||||
Constraints: []validation.Constraint{{Target: "syncStorageKeysInput.ID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil}}},
|
||||
{TargetValue: parameters,
|
||||
Constraints: []validation.Constraint{{Target: "parameters.ID", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "SyncStorageKeys")
|
||||
}
|
||||
|
||||
req, err := client.SyncStorageKeysPreparer(resourceGroupName, mediaServiceName, syncStorageKeysInput)
|
||||
req, err := client.SyncStorageKeysPreparer(resourceGroupName, mediaServiceName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "mediaservices.Client", "SyncStorageKeys", nil, "Failure preparing request")
|
||||
return
|
||||
@@ -598,7 +589,7 @@ func (client Client) SyncStorageKeys(resourceGroupName string, mediaServiceName
|
||||
}
|
||||
|
||||
// SyncStorageKeysPreparer prepares the SyncStorageKeys request.
|
||||
func (client Client) SyncStorageKeysPreparer(resourceGroupName string, mediaServiceName string, syncStorageKeysInput SyncStorageKeysInput) (*http.Request, error) {
|
||||
func (client Client) SyncStorageKeysPreparer(resourceGroupName string, mediaServiceName string, parameters SyncStorageKeysInput) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"mediaServiceName": autorest.Encode("path", mediaServiceName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
@@ -615,7 +606,7 @@ func (client Client) SyncStorageKeysPreparer(resourceGroupName string, mediaServ
|
||||
autorest.AsPost(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/syncStorageKeys", pathParameters),
|
||||
autorest.WithJSON(syncStorageKeysInput),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare(&http.Request{})
|
||||
}
|
||||
@@ -640,19 +631,18 @@ func (client Client) SyncStorageKeysResponder(resp *http.Response) (result autor
|
||||
|
||||
// Update updates a Media Service.
|
||||
//
|
||||
// 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 (client Client) Update(resourceGroupName string, mediaServiceName string, mediaService MediaService) (result MediaService, err error) {
|
||||
// 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 Client) Update(resourceGroupName string, mediaServiceName string, parameters MediaService) (result MediaService, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: mediaServiceName,
|
||||
Constraints: []validation.Constraint{{Target: "mediaServiceName", Name: validation.MaxLength, Rule: 24, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.MinLength, Rule: 3, Chain: nil},
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]`, Chain: nil}}}}); err != nil {
|
||||
{Target: "mediaServiceName", Name: validation.Pattern, Rule: `^[a-z0-9]{3,24}$`, Chain: nil}}}}); err != nil {
|
||||
return result, validation.NewErrorWithValidationError(err, "mediaservices.Client", "Update")
|
||||
}
|
||||
|
||||
req, err := client.UpdatePreparer(resourceGroupName, mediaServiceName, mediaService)
|
||||
req, err := client.UpdatePreparer(resourceGroupName, mediaServiceName, parameters)
|
||||
if err != nil {
|
||||
err = autorest.NewErrorWithError(err, "mediaservices.Client", "Update", nil, "Failure preparing request")
|
||||
return
|
||||
@@ -674,7 +664,7 @@ func (client Client) Update(resourceGroupName string, mediaServiceName string, m
|
||||
}
|
||||
|
||||
// UpdatePreparer prepares the Update request.
|
||||
func (client Client) UpdatePreparer(resourceGroupName string, mediaServiceName string, mediaService MediaService) (*http.Request, error) {
|
||||
func (client Client) UpdatePreparer(resourceGroupName string, mediaServiceName string, parameters MediaService) (*http.Request, error) {
|
||||
pathParameters := map[string]interface{}{
|
||||
"mediaServiceName": autorest.Encode("path", mediaServiceName),
|
||||
"resourceGroupName": autorest.Encode("path", resourceGroupName),
|
||||
@@ -691,7 +681,7 @@ func (client Client) UpdatePreparer(resourceGroupName string, mediaServiceName s
|
||||
autorest.AsPatch(),
|
||||
autorest.WithBaseURL(client.BaseURI),
|
||||
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}", pathParameters),
|
||||
autorest.WithJSON(mediaService),
|
||||
autorest.WithJSON(parameters),
|
||||
autorest.WithQueryParameters(queryParameters))
|
||||
return preparer.Prepare(&http.Request{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user