diff --git a/profiles/preview/mediaservices/mgmt/media/models.go b/profiles/preview/mediaservices/mgmt/media/models.go index ebcf475d31aa..9f6d1ed6a1f8 100644 --- a/profiles/preview/mediaservices/mgmt/media/models.go +++ b/profiles/preview/mediaservices/mgmt/media/models.go @@ -230,8 +230,9 @@ const ( type LiveEventEncodingType = original.LiveEventEncodingType const ( - LiveEventEncodingTypeBasic LiveEventEncodingType = original.LiveEventEncodingTypeBasic - LiveEventEncodingTypeNone LiveEventEncodingType = original.LiveEventEncodingTypeNone + LiveEventEncodingTypeBasic LiveEventEncodingType = original.LiveEventEncodingTypeBasic + LiveEventEncodingTypeNone LiveEventEncodingType = original.LiveEventEncodingTypeNone + LiveEventEncodingTypeStandard LiveEventEncodingType = original.LiveEventEncodingTypeStandard ) type LiveEventInputProtocol = original.LiveEventInputProtocol diff --git a/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go b/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go index acab6090ad5e..b3f842a5f23e 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go +++ b/services/mediaservices/mgmt/2018-07-01/media/accountfilters.go @@ -61,16 +61,8 @@ func (client AccountFiltersClient) CreateOrUpdate(ctx context.Context, resourceG if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, Constraints: []validation.Constraint{{Target: "parameters.FilterProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.FilterProperties.PresentationTimeRange", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.FilterProperties.PresentationTimeRange.StartTimestamp", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.EndTimestamp", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.PresentationWindowDuration", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.LiveBackoffDuration", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.Timescale", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.ForceEndTimestamp", Name: validation.Null, Rule: true, Chain: nil}, - }}, - {Target: "parameters.FilterProperties.FirstQuality", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.FilterProperties.FirstQuality.Bitrate", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "parameters.FilterProperties.FirstQuality", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FilterProperties.FirstQuality.Bitrate", Name: validation.Null, Rule: true, Chain: nil}}}, }}}}}); err != nil { return result, validation.NewError("media.AccountFiltersClient", "CreateOrUpdate", err.Error()) } diff --git a/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go b/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go index f75be42769e3..a3cc34537bae 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go +++ b/services/mediaservices/mgmt/2018-07-01/media/assetfilters.go @@ -62,16 +62,8 @@ func (client AssetFiltersClient) CreateOrUpdate(ctx context.Context, resourceGro if err := validation.Validate([]validation.Validation{ {TargetValue: parameters, Constraints: []validation.Constraint{{Target: "parameters.FilterProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.FilterProperties.PresentationTimeRange", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.FilterProperties.PresentationTimeRange.StartTimestamp", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.EndTimestamp", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.PresentationWindowDuration", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.LiveBackoffDuration", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.Timescale", Name: validation.Null, Rule: true, Chain: nil}, - {Target: "parameters.FilterProperties.PresentationTimeRange.ForceEndTimestamp", Name: validation.Null, Rule: true, Chain: nil}, - }}, - {Target: "parameters.FilterProperties.FirstQuality", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.FilterProperties.FirstQuality.Bitrate", Name: validation.Null, Rule: true, Chain: nil}}}, + Chain: []validation.Constraint{{Target: "parameters.FilterProperties.FirstQuality", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.FilterProperties.FirstQuality.Bitrate", Name: validation.Null, Rule: true, Chain: nil}}}, }}}}}); err != nil { return result, validation.NewError("media.AssetFiltersClient", "CreateOrUpdate", err.Error()) } diff --git a/services/mediaservices/mgmt/2018-07-01/media/assets.go b/services/mediaservices/mgmt/2018-07-01/media/assets.go index 3d950441f722..5bd151be3461 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/assets.go +++ b/services/mediaservices/mgmt/2018-07-01/media/assets.go @@ -366,7 +366,7 @@ func (client AssetsClient) GetEncryptionKeyResponder(resp *http.Response) (resul // filter - restricts the set of items returned. // top - specifies a non-negative integer n that limits the number of items returned from a collection. The // service returns the number of available items up to but not greater than the specified value n. -// orderby - specifies the the key by which the result collection should be ordered. +// orderby - specifies the key by which the result collection should be ordered. func (client AssetsClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result AssetCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AssetsClient.List") diff --git a/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go b/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go index ff94e0ecf00c..e845d850d0b7 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go +++ b/services/mediaservices/mgmt/2018-07-01/media/contentkeypolicies.go @@ -373,7 +373,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsResponder(r // filter - restricts the set of items returned. // top - specifies a non-negative integer n that limits the number of items returned from a collection. The // service returns the number of available items up to but not greater than the specified value n. -// orderby - specifies the the key by which the result collection should be ordered. +// orderby - specifies the key by which the result collection should be ordered. func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result ContentKeyPolicyCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ContentKeyPoliciesClient.List") diff --git a/services/mediaservices/mgmt/2018-07-01/media/jobs.go b/services/mediaservices/mgmt/2018-07-01/media/jobs.go index a0e82b89b606..fddea0c65b46 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/jobs.go +++ b/services/mediaservices/mgmt/2018-07-01/media/jobs.go @@ -381,11 +381,8 @@ func (client JobsClient) GetResponder(resp *http.Response) (result Job, err erro // accountName - the Media Services account name. // transformName - the Transform name. // filter - restricts the set of items returned. -// top - specifies a non-negative integer n that limits the number of items returned from a collection. The -// service returns the number of available items up to but not greater than the specified value n. -// skip - specifies a non-negative integer n that excludes the first n items of the queried collection from the -// result. The service returns items starting at position n+1. -func (client JobsClient) List(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, top *int32, skip *int32) (result JobCollectionPage, err error) { +// orderby - specifies the key by which the result collection should be ordered. +func (client JobsClient) List(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, orderby string) (result JobCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.List") defer func() { @@ -397,7 +394,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, acc }() } result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, accountName, transformName, filter, top, skip) + req, err := client.ListPreparer(ctx, resourceGroupName, accountName, transformName, filter, orderby) if err != nil { err = autorest.NewErrorWithError(err, "media.JobsClient", "List", nil, "Failure preparing request") return @@ -419,7 +416,7 @@ func (client JobsClient) List(ctx context.Context, resourceGroupName string, acc } // ListPreparer prepares the List request. -func (client JobsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, top *int32, skip *int32) (*http.Request, error) { +func (client JobsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, orderby string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -434,11 +431,8 @@ func (client JobsClient) ListPreparer(ctx context.Context, resourceGroupName str if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) + if len(orderby) > 0 { + queryParameters["$orderby"] = autorest.Encode("query", orderby) } preparer := autorest.CreatePreparer( @@ -491,7 +485,7 @@ func (client JobsClient) listNextResults(ctx context.Context, lastResults JobCol } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client JobsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, top *int32, skip *int32) (result JobCollectionIterator, err error) { +func (client JobsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, orderby string) (result JobCollectionIterator, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/JobsClient.List") defer func() { @@ -502,11 +496,12 @@ func (client JobsClient) ListComplete(ctx context.Context, resourceGroupName str tracing.EndSpan(ctx, sc, err) }() } - result.page, err = client.List(ctx, resourceGroupName, accountName, transformName, filter, top, skip) + result.page, err = client.List(ctx, resourceGroupName, accountName, transformName, filter, orderby) return } -// Update updates a Job. +// Update update is only supported for description and priority. Updating Priority will take effect when the Job state +// is Queued or Scheduled and depending on the timing the priority update may be ignored. // Parameters: // resourceGroupName - the name of the resource group within the Azure subscription. // accountName - the Media Services account name. diff --git a/services/mediaservices/mgmt/2018-07-01/media/mediaapi/interfaces.go b/services/mediaservices/mgmt/2018-07-01/media/mediaapi/interfaces.go index e9cb2e36abcb..b693ec999289 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/mediaapi/interfaces.go +++ b/services/mediaservices/mgmt/2018-07-01/media/mediaapi/interfaces.go @@ -104,7 +104,7 @@ type TransformsClientAPI interface { CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, transformName string, parameters media.Transform) (result media.Transform, err error) Delete(ctx context.Context, resourceGroupName string, accountName string, transformName string) (result autorest.Response, err error) Get(ctx context.Context, resourceGroupName string, accountName string, transformName string) (result media.Transform, err error) - List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, skip *int32) (result media.TransformCollectionPage, err error) + List(ctx context.Context, resourceGroupName string, accountName string, filter string, orderby string) (result media.TransformCollectionPage, err error) Update(ctx context.Context, resourceGroupName string, accountName string, transformName string, parameters media.Transform) (result media.Transform, err error) } @@ -116,7 +116,7 @@ type JobsClientAPI interface { Create(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string, parameters media.Job) (result media.Job, err error) Delete(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (result autorest.Response, err error) Get(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string) (result media.Job, err error) - List(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, top *int32, skip *int32) (result media.JobCollectionPage, err error) + List(ctx context.Context, resourceGroupName string, accountName string, transformName string, filter string, orderby string) (result media.JobCollectionPage, err error) Update(ctx context.Context, resourceGroupName string, accountName string, transformName string, jobName string, parameters media.Job) (result media.Job, err error) } diff --git a/services/mediaservices/mgmt/2018-07-01/media/models.go b/services/mediaservices/mgmt/2018-07-01/media/models.go index caf5af79298a..0d816718aefb 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/models.go +++ b/services/mediaservices/mgmt/2018-07-01/media/models.go @@ -220,7 +220,7 @@ func PossibleDeinterlaceParityValues() []DeinterlaceParity { type EncoderNamedPreset string const ( - // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 kbps. + // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 Kbps. AACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio" // AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. // Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset @@ -228,23 +228,23 @@ const ( // will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and // audio in separate MP4 files, which is optimal for adaptive streaming. AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" - // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, + // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 Kbps to 400 Kbps, // and stereo AAC audio. Resolution starts at 1080p and goes down to 360p. H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" - // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, + // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 Kbps to 400 Kbps, // and stereo AAC audio. Resolution starts at 720p and goes down to 360p. H264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p" - // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and + // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600Kbps to 400 Kbps, and // stereo AAC audio. Resolution starts at 480p and goes down to 360p. H264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD" - // H264SingleBitrate1080p Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and - // a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. + // H264SingleBitrate1080p Produces an MP4 file where the video is encoded with H.264 codec at 6750 Kbps and + // a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 64 Kbps. H264SingleBitrate1080p EncoderNamedPreset = "H264SingleBitrate1080p" - // H264SingleBitrate720p Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and - // a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. + // H264SingleBitrate720p Produces an MP4 file where the video is encoded with H.264 codec at 4500 Kbps and + // a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 64 Kbps. H264SingleBitrate720p EncoderNamedPreset = "H264SingleBitrate720p" - // H264SingleBitrateSD Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a - // picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. + // H264SingleBitrateSD Produces an MP4 file where the video is encoded with H.264 codec at 2200 Kbps and a + // picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 64 Kbps. H264SingleBitrateSD EncoderNamedPreset = "H264SingleBitrateSD" ) @@ -494,11 +494,13 @@ const ( LiveEventEncodingTypeBasic LiveEventEncodingType = "Basic" // LiveEventEncodingTypeNone ... LiveEventEncodingTypeNone LiveEventEncodingType = "None" + // LiveEventEncodingTypeStandard ... + LiveEventEncodingTypeStandard LiveEventEncodingType = "Standard" ) // PossibleLiveEventEncodingTypeValues returns an array of possible values for the LiveEventEncodingType const type. func PossibleLiveEventEncodingTypeValues() []LiveEventEncodingType { - return []LiveEventEncodingType{LiveEventEncodingTypeBasic, LiveEventEncodingTypeNone} + return []LiveEventEncodingType{LiveEventEncodingTypeBasic, LiveEventEncodingTypeNone, LiveEventEncodingTypeStandard} } // LiveEventInputProtocol enumerates the values for live event input protocol. @@ -2481,7 +2483,7 @@ type CommonEncryptionCbcs struct { ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"` // ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"` - // Drm - Configuration of DRMs for current encryption scheme + // Drm - Configuration of DRM for current encryption scheme Drm *CbcsDrmConfiguration `json:"drm,omitempty"` } @@ -2493,7 +2495,7 @@ type CommonEncryptionCenc struct { ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"` // ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"` - // Drm - Configuration of DRMs for CommonEncryptionCenc encryption scheme + // Drm - Configuration of DRM for CommonEncryptionCenc encryption scheme Drm *CencDrmConfiguration `json:"drm,omitempty"` } @@ -4449,7 +4451,7 @@ func (f *Filters) UnmarshalJSON(body []byte) error { type FilterTrackPropertyCondition struct { // Property - The track property type. Possible values include: 'FilterTrackPropertyTypeUnknown', 'FilterTrackPropertyTypeType', 'FilterTrackPropertyTypeName', 'FilterTrackPropertyTypeLanguage', 'FilterTrackPropertyTypeFourCC', 'FilterTrackPropertyTypeBitrate' Property FilterTrackPropertyType `json:"property,omitempty"` - // Value - The track proprty value. + // Value - The track property value. Value *string `json:"value,omitempty"` // Operation - The track property condition operation. Possible values include: 'Equal', 'NotEqual' Operation FilterTrackPropertyCompareOperation `json:"operation,omitempty"` @@ -6666,7 +6668,7 @@ type LiveEventActionInput struct { // LiveEventEncoding the Live Event encoding. type LiveEventEncoding struct { - // EncodingType - The encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'LiveEventEncodingTypeNone', 'LiveEventEncodingTypeBasic' + // EncodingType - The encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'LiveEventEncodingTypeNone', 'LiveEventEncodingTypeBasic', 'LiveEventEncodingTypeStandard' EncodingType LiveEventEncodingType `json:"encodingType,omitempty"` // PresetName - The encoding preset name. This value is specified at creation time and cannot be updated. PresetName *string `json:"presetName,omitempty"` @@ -8170,7 +8172,7 @@ type PresentationTimeRange struct { LiveBackoffDuration *int64 `json:"liveBackoffDuration,omitempty"` // Timescale - The time scale of time stamps. Timescale *int64 `json:"timescale,omitempty"` - // ForceEndTimestamp - The indicator of forcing exsiting of end time stamp. + // ForceEndTimestamp - The indicator of forcing existing of end time stamp. ForceEndTimestamp *bool `json:"forceEndTimestamp,omitempty"` } diff --git a/services/mediaservices/mgmt/2018-07-01/media/transforms.go b/services/mediaservices/mgmt/2018-07-01/media/transforms.go index a5d9a99c945d..58ab7c1a2fdb 100644 --- a/services/mediaservices/mgmt/2018-07-01/media/transforms.go +++ b/services/mediaservices/mgmt/2018-07-01/media/transforms.go @@ -292,11 +292,8 @@ func (client TransformsClient) GetResponder(resp *http.Response) (result Transfo // resourceGroupName - the name of the resource group within the Azure subscription. // accountName - the Media Services account name. // filter - restricts the set of items returned. -// top - specifies a non-negative integer n that limits the number of items returned from a collection. The -// service returns the number of available items up to but not greater than the specified value n. -// skip - specifies a non-negative integer n that excludes the first n items of the queried collection from the -// result. The service returns items starting at position n+1. -func (client TransformsClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, skip *int32) (result TransformCollectionPage, err error) { +// orderby - specifies the key by which the result collection should be ordered. +func (client TransformsClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, orderby string) (result TransformCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/TransformsClient.List") defer func() { @@ -308,7 +305,7 @@ func (client TransformsClient) List(ctx context.Context, resourceGroupName strin }() } result.fn = client.listNextResults - req, err := client.ListPreparer(ctx, resourceGroupName, accountName, filter, top, skip) + req, err := client.ListPreparer(ctx, resourceGroupName, accountName, filter, orderby) if err != nil { err = autorest.NewErrorWithError(err, "media.TransformsClient", "List", nil, "Failure preparing request") return @@ -330,7 +327,7 @@ func (client TransformsClient) List(ctx context.Context, resourceGroupName strin } // ListPreparer prepares the List request. -func (client TransformsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, skip *int32) (*http.Request, error) { +func (client TransformsClient) ListPreparer(ctx context.Context, resourceGroupName string, accountName string, filter string, orderby string) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -344,11 +341,8 @@ func (client TransformsClient) ListPreparer(ctx context.Context, resourceGroupNa if len(filter) > 0 { queryParameters["$filter"] = autorest.Encode("query", filter) } - if top != nil { - queryParameters["$top"] = autorest.Encode("query", *top) - } - if skip != nil { - queryParameters["$skip"] = autorest.Encode("query", *skip) + if len(orderby) > 0 { + queryParameters["$orderby"] = autorest.Encode("query", orderby) } preparer := autorest.CreatePreparer( @@ -401,7 +395,7 @@ func (client TransformsClient) listNextResults(ctx context.Context, lastResults } // ListComplete enumerates all values, automatically crossing page boundaries as required. -func (client TransformsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, skip *int32) (result TransformCollectionIterator, err error) { +func (client TransformsClient) ListComplete(ctx context.Context, resourceGroupName string, accountName string, filter string, orderby string) (result TransformCollectionIterator, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/TransformsClient.List") defer func() { @@ -412,7 +406,7 @@ func (client TransformsClient) ListComplete(ctx context.Context, resourceGroupNa tracing.EndSpan(ctx, sc, err) }() } - result.page, err = client.List(ctx, resourceGroupName, accountName, filter, top, skip) + result.page, err = client.List(ctx, resourceGroupName, accountName, filter, orderby) return } diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go index 1fb8e1866053..55a64ad3a5c4 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/assets.go @@ -366,7 +366,7 @@ func (client AssetsClient) GetEncryptionKeyResponder(resp *http.Response) (resul // filter - restricts the set of items returned. // top - specifies a non-negative integer n that limits the number of items returned from a collection. The // service returns the number of available items up to but not greater than the specified value n. -// orderby - specifies the the key by which the result collection should be ordered. +// orderby - specifies the key by which the result collection should be ordered. func (client AssetsClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result AssetCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AssetsClient.List") diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go index 7829532d1b1c..406fede75c13 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/contentkeypolicies.go @@ -373,7 +373,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsResponder(r // filter - restricts the set of items returned. // top - specifies a non-negative integer n that limits the number of items returned from a collection. The // service returns the number of available items up to but not greater than the specified value n. -// orderby - specifies the the key by which the result collection should be ordered. +// orderby - specifies the key by which the result collection should be ordered. func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result ContentKeyPolicyCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ContentKeyPoliciesClient.List") diff --git a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go index 302b611b3f99..497d7cafa89b 100644 --- a/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go +++ b/services/preview/mediaservices/mgmt/2018-03-30-preview/media/models.go @@ -220,7 +220,7 @@ func PossibleDeinterlaceParityValues() []DeinterlaceParity { type EncoderNamedPreset string const ( - // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 kbps. + // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 Kbps. AACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio" // AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. // Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset @@ -228,13 +228,13 @@ const ( // will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and // audio in separate MP4 files, which is optimal for adaptive streaming. AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" - // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, + // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 Kbps to 400 Kbps, // and stereo AAC audio. Resolution starts at 1080p and goes down to 360p. H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" - // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, + // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 Kbps to 400 Kbps, // and stereo AAC audio. Resolution starts at 720p and goes down to 360p. H264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p" - // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and + // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600Kbps to 400 Kbps, and // stereo AAC audio. Resolution starts at 480p and goes down to 360p. H264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD" ) @@ -1692,7 +1692,7 @@ func (bisep BuiltInStandardEncoderPreset) AsBasicPreset() (BasicPreset, bool) { return &bisep, true } -// CbcsDrmConfiguration class to specify drm configurations of CommonEncryptionCbcs scheme in Streaming +// CbcsDrmConfiguration class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming // Policy type CbcsDrmConfiguration struct { // FairPlay - Fairplay configurations @@ -1703,7 +1703,7 @@ type CbcsDrmConfiguration struct { Widevine *StreamingPolicyWidevineConfiguration `json:"widevine,omitempty"` } -// CencDrmConfiguration class to specify drm configurations of CommonEncryptionCenc scheme in Streaming +// CencDrmConfiguration class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming // Policy type CencDrmConfiguration struct { // PlayReady - PlayReady configurations @@ -1905,7 +1905,7 @@ type CommonEncryptionCbcs struct { ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"` // ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"` - // Drm - Configuration of DRMs for current encryption scheme + // Drm - Configuration of DRM for current encryption scheme Drm *CbcsDrmConfiguration `json:"drm,omitempty"` } @@ -1917,7 +1917,7 @@ type CommonEncryptionCenc struct { ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"` // ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"` - // Drm - Configuration of DRMs for CommonEncryptionCenc encryption scheme + // Drm - Configuration of DRM for CommonEncryptionCenc encryption scheme Drm *CencDrmConfiguration `json:"drm,omitempty"` } @@ -5878,7 +5878,7 @@ func (l Layer) AsBasicLayer() (BasicLayer, bool) { return &l, true } -// ListContainerSasInput the parameters to the list SAS requet. +// ListContainerSasInput the parameters to the list SAS request. type ListContainerSasInput struct { // Permissions - The permissions to set on the SAS URL. Possible values include: 'Read', 'ReadWrite', 'ReadWriteDelete' Permissions AssetContainerPermission `json:"permissions,omitempty"` diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go index ae7f59e3eb48..83a722e8b8e4 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/assets.go @@ -366,7 +366,7 @@ func (client AssetsClient) GetEncryptionKeyResponder(resp *http.Response) (resul // filter - restricts the set of items returned. // top - specifies a non-negative integer n that limits the number of items returned from a collection. The // service returns the number of available items up to but not greater than the specified value n. -// orderby - specifies the the key by which the result collection should be ordered. +// orderby - specifies the key by which the result collection should be ordered. func (client AssetsClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result AssetCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/AssetsClient.List") diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go index 14e0dec88762..c63c8c09a3d9 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/contentkeypolicies.go @@ -373,7 +373,7 @@ func (client ContentKeyPoliciesClient) GetPolicyPropertiesWithSecretsResponder(r // filter - restricts the set of items returned. // top - specifies a non-negative integer n that limits the number of items returned from a collection. The // service returns the number of available items up to but not greater than the specified value n. -// orderby - specifies the the key by which the result collection should be ordered. +// orderby - specifies the key by which the result collection should be ordered. func (client ContentKeyPoliciesClient) List(ctx context.Context, resourceGroupName string, accountName string, filter string, top *int32, orderby string) (result ContentKeyPolicyCollectionPage, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ContentKeyPoliciesClient.List") diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go index dcda2078e228..1356475ec84e 100644 --- a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/models.go @@ -220,7 +220,7 @@ func PossibleDeinterlaceParityValues() []DeinterlaceParity { type EncoderNamedPreset string const ( - // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 kbps. + // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 Kbps. AACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio" // AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. // Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset @@ -228,13 +228,13 @@ const ( // will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and // audio in separate MP4 files, which is optimal for adaptive streaming. AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" - // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, + // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 Kbps to 400 Kbps, // and stereo AAC audio. Resolution starts at 1080p and goes down to 360p. H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" - // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, + // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 Kbps to 400 Kbps, // and stereo AAC audio. Resolution starts at 720p and goes down to 360p. H264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p" - // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and + // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1600Kbps to 400 Kbps, and // stereo AAC audio. Resolution starts at 480p and goes down to 360p. H264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD" ) @@ -1905,7 +1905,7 @@ type CommonEncryptionCbcs struct { ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"` // ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"` - // Drm - Configuration of DRMs for current encryption scheme + // Drm - Configuration of DRM for current encryption scheme Drm *CbcsDrmConfiguration `json:"drm,omitempty"` } @@ -1917,7 +1917,7 @@ type CommonEncryptionCenc struct { ClearTracks *[]TrackSelection `json:"clearTracks,omitempty"` // ContentKeys - Representing default content key for each encryption scheme and separate content keys for specific tracks ContentKeys *StreamingPolicyContentKeys `json:"contentKeys,omitempty"` - // Drm - Configuration of DRMs for CommonEncryptionCenc encryption scheme + // Drm - Configuration of DRM for CommonEncryptionCenc encryption scheme Drm *CencDrmConfiguration `json:"drm,omitempty"` } @@ -5917,7 +5917,7 @@ func (l Layer) AsBasicLayer() (BasicLayer, bool) { return &l, true } -// ListContainerSasInput the parameters to the list SAS requet. +// ListContainerSasInput the parameters to the list SAS request. type ListContainerSasInput struct { // Permissions - The permissions to set on the SAS URL. Possible values include: 'Read', 'ReadWrite', 'ReadWriteDelete' Permissions AssetContainerPermission `json:"permissions,omitempty"`