From 6de7268c42da714d13a366b8d4e6c41a4628079c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 9 Dec 2020 00:46:36 +0000 Subject: [PATCH] CodeGen from PR 11576 in Azure/azure-rest-api-specs invalid dash char in mediaservices 2019-05-01-preview (#11576) --- .../2018-06-01-preview/media/CHANGELOG.md | 18 ++ .../mgmt/2018-06-01-preview/media/models.go | 155 +++++++++++------- 2 files changed, 118 insertions(+), 55 deletions(-) create mode 100644 services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md diff --git a/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md new file mode 100644 index 000000000000..eb2d4837d21d --- /dev/null +++ b/services/preview/mediaservices/mgmt/2018-06-01-preview/media/CHANGELOG.md @@ -0,0 +1,18 @@ +Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 + +Code generator @microsoft.azure/autorest.go@~2.1.161 + +## Breaking Changes + +- Function `NewStreamingEndpointListResultPage` parameter(s) have been changed from `(func(context.Context, StreamingEndpointListResult) (StreamingEndpointListResult, error))` to `(StreamingEndpointListResult, func(context.Context, StreamingEndpointListResult) (StreamingEndpointListResult, error))` +- Function `NewStreamingLocatorCollectionPage` parameter(s) have been changed from `(func(context.Context, StreamingLocatorCollection) (StreamingLocatorCollection, error))` to `(StreamingLocatorCollection, func(context.Context, StreamingLocatorCollection) (StreamingLocatorCollection, error))` +- Function `NewLiveOutputListResultPage` parameter(s) have been changed from `(func(context.Context, LiveOutputListResult) (LiveOutputListResult, error))` to `(LiveOutputListResult, func(context.Context, LiveOutputListResult) (LiveOutputListResult, error))` +- Function `NewServiceCollectionPage` parameter(s) have been changed from `(func(context.Context, ServiceCollection) (ServiceCollection, error))` to `(ServiceCollection, func(context.Context, ServiceCollection) (ServiceCollection, error))` +- Function `NewLiveEventListResultPage` parameter(s) have been changed from `(func(context.Context, LiveEventListResult) (LiveEventListResult, error))` to `(LiveEventListResult, func(context.Context, LiveEventListResult) (LiveEventListResult, error))` +- Function `NewSubscriptionMediaServiceCollectionPage` parameter(s) have been changed from `(func(context.Context, SubscriptionMediaServiceCollection) (SubscriptionMediaServiceCollection, error))` to `(SubscriptionMediaServiceCollection, func(context.Context, SubscriptionMediaServiceCollection) (SubscriptionMediaServiceCollection, error))` +- Function `NewContentKeyPolicyCollectionPage` parameter(s) have been changed from `(func(context.Context, ContentKeyPolicyCollection) (ContentKeyPolicyCollection, error))` to `(ContentKeyPolicyCollection, func(context.Context, ContentKeyPolicyCollection) (ContentKeyPolicyCollection, error))` +- Function `NewStreamingPolicyCollectionPage` parameter(s) have been changed from `(func(context.Context, StreamingPolicyCollection) (StreamingPolicyCollection, error))` to `(StreamingPolicyCollection, func(context.Context, StreamingPolicyCollection) (StreamingPolicyCollection, error))` +- Function `NewJobCollectionPage` parameter(s) have been changed from `(func(context.Context, JobCollection) (JobCollection, error))` to `(JobCollection, func(context.Context, JobCollection) (JobCollection, error))` +- Function `NewOperationCollectionPage` parameter(s) have been changed from `(func(context.Context, OperationCollection) (OperationCollection, error))` to `(OperationCollection, func(context.Context, OperationCollection) (OperationCollection, error))` +- Function `NewTransformCollectionPage` parameter(s) have been changed from `(func(context.Context, TransformCollection) (TransformCollection, error))` to `(TransformCollection, func(context.Context, TransformCollection) (TransformCollection, error))` +- Function `NewAssetCollectionPage` parameter(s) have been changed from `(func(context.Context, AssetCollection) (AssetCollection, error))` to `(AssetCollection, func(context.Context, AssetCollection) (AssetCollection, error))` 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 8f1c780ca83a..96886ddf56d9 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 @@ -390,8 +390,11 @@ func (page AssetCollectionPage) Values() []Asset { } // Creates a new instance of the AssetCollectionPage type. -func NewAssetCollectionPage(getNextPage func(context.Context, AssetCollection) (AssetCollection, error)) AssetCollectionPage { - return AssetCollectionPage{fn: getNextPage} +func NewAssetCollectionPage(cur AssetCollection, getNextPage func(context.Context, AssetCollection) (AssetCollection, error)) AssetCollectionPage { + return AssetCollectionPage{ + fn: getNextPage, + ac: cur, + } } // AssetContainerSas the Asset Storage container SAS URLs. @@ -820,7 +823,8 @@ func (bisep BuiltInStandardEncoderPreset) AsBasicPreset() (BasicPreset, bool) { return &bisep, true } -// CbcsDrmConfiguration class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming Policy +// CbcsDrmConfiguration class to specify DRM configurations of CommonEncryptionCbcs scheme in Streaming +// Policy type CbcsDrmConfiguration struct { // FairPlay - FairPlay configurations FairPlay *StreamingPolicyFairPlayConfiguration `json:"fairPlay,omitempty"` @@ -830,7 +834,8 @@ type CbcsDrmConfiguration struct { Widevine *StreamingPolicyWidevineConfiguration `json:"widevine,omitempty"` } -// CencDrmConfiguration class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming Policy +// CencDrmConfiguration class to specify DRM configurations of CommonEncryptionCenc scheme in Streaming +// Policy type CencDrmConfiguration struct { // PlayReady - PlayReady configurations PlayReady *StreamingPolicyPlayReadyConfiguration `json:"playReady,omitempty"` @@ -1322,8 +1327,11 @@ func (page ContentKeyPolicyCollectionPage) Values() []ContentKeyPolicy { } // Creates a new instance of the ContentKeyPolicyCollectionPage type. -func NewContentKeyPolicyCollectionPage(getNextPage func(context.Context, ContentKeyPolicyCollection) (ContentKeyPolicyCollection, error)) ContentKeyPolicyCollectionPage { - return ContentKeyPolicyCollectionPage{fn: getNextPage} +func NewContentKeyPolicyCollectionPage(cur ContentKeyPolicyCollection, getNextPage func(context.Context, ContentKeyPolicyCollection) (ContentKeyPolicyCollection, error)) ContentKeyPolicyCollectionPage { + return ContentKeyPolicyCollectionPage{ + fn: getNextPage, + ckpc: cur, + } } // BasicContentKeyPolicyConfiguration base class for Content Key Policy configuration. A derived class must be used to @@ -1518,8 +1526,8 @@ func (ckpfpc ContentKeyPolicyFairPlayConfiguration) AsBasicContentKeyPolicyConfi return &ckpfpc, true } -// ContentKeyPolicyOpenRestriction represents an open restriction. License or key will be delivered on every -// request. +// ContentKeyPolicyOpenRestriction represents an open restriction. License or key will be delivered on +// every request. type ContentKeyPolicyOpenRestriction struct { // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' OdataType OdataTypeBasicContentKeyPolicyRestriction `json:"@odata.type,omitempty"` @@ -2509,8 +2517,8 @@ func (ckptr *ContentKeyPolicyTokenRestriction) UnmarshalJSON(body []byte) error return nil } -// ContentKeyPolicyUnknownConfiguration represents a ContentKeyPolicyConfiguration that is unavailable in the -// current API version. +// ContentKeyPolicyUnknownConfiguration represents a ContentKeyPolicyConfiguration that is unavailable in +// the current API version. type ContentKeyPolicyUnknownConfiguration struct { // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"` @@ -2946,8 +2954,8 @@ type EnvelopeEncryption struct { CustomKeyAcquisitionURLTemplate *string `json:"customKeyAcquisitionUrlTemplate,omitempty"` } -// Filters describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied -// to the input media before encoding. +// Filters describes all the filtering operations, such as de-interlacing, rotation etc. that are to be +// applied to the input media before encoding. type Filters struct { // Deinterlace - The de-interlacing settings. Deinterlace *Deinterlace `json:"deinterlace,omitempty"` @@ -3693,8 +3701,8 @@ type IPRange struct { SubnetPrefixLength *int32 `json:"subnetPrefixLength,omitempty"` } -// Job a Job resource type. The progress and state can be obtained by polling a Job or subscribing to events -// using EventGrid. +// Job a Job resource type. The progress and state can be obtained by polling a Job or subscribing to +// events using EventGrid. type Job struct { autorest.Response `json:"-"` // JobProperties - The resource properties. @@ -3919,8 +3927,11 @@ func (page JobCollectionPage) Values() []Job { } // Creates a new instance of the JobCollectionPage type. -func NewJobCollectionPage(getNextPage func(context.Context, JobCollection) (JobCollection, error)) JobCollectionPage { - return JobCollectionPage{fn: getNextPage} +func NewJobCollectionPage(cur JobCollection, getNextPage func(context.Context, JobCollection) (JobCollection, error)) JobCollectionPage { + return JobCollectionPage{ + fn: getNextPage, + jc: cur, + } } // JobError details of JobOutput errors. @@ -5354,8 +5365,11 @@ func (page LiveEventListResultPage) Values() []LiveEvent { } // Creates a new instance of the LiveEventListResultPage type. -func NewLiveEventListResultPage(getNextPage func(context.Context, LiveEventListResult) (LiveEventListResult, error)) LiveEventListResultPage { - return LiveEventListResultPage{fn: getNextPage} +func NewLiveEventListResultPage(cur LiveEventListResult, getNextPage func(context.Context, LiveEventListResult) (LiveEventListResult, error)) LiveEventListResultPage { + return LiveEventListResultPage{ + fn: getNextPage, + lelr: cur, + } } // LiveEventPreview the Live Event preview. @@ -5431,7 +5445,8 @@ func (lep LiveEventProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// LiveEventsCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// LiveEventsCreateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type LiveEventsCreateFuture struct { azure.Future } @@ -5459,7 +5474,8 @@ func (future *LiveEventsCreateFuture) Result(client LiveEventsClient) (le LiveEv return } -// LiveEventsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// LiveEventsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type LiveEventsDeleteFuture struct { azure.Future } @@ -5481,7 +5497,8 @@ func (future *LiveEventsDeleteFuture) Result(client LiveEventsClient) (ar autore return } -// LiveEventsResetFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// LiveEventsResetFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type LiveEventsResetFuture struct { azure.Future } @@ -5503,7 +5520,8 @@ func (future *LiveEventsResetFuture) Result(client LiveEventsClient) (ar autores return } -// LiveEventsStartFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// LiveEventsStartFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type LiveEventsStartFuture struct { azure.Future } @@ -5525,7 +5543,8 @@ func (future *LiveEventsStartFuture) Result(client LiveEventsClient) (ar autores return } -// LiveEventsStopFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// LiveEventsStopFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type LiveEventsStopFuture struct { azure.Future } @@ -5547,7 +5566,8 @@ func (future *LiveEventsStopFuture) Result(client LiveEventsClient) (ar autorest return } -// LiveEventsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. +// LiveEventsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running +// operation. type LiveEventsUpdateFuture struct { azure.Future } @@ -5802,8 +5822,11 @@ func (page LiveOutputListResultPage) Values() []LiveOutput { } // Creates a new instance of the LiveOutputListResultPage type. -func NewLiveOutputListResultPage(getNextPage func(context.Context, LiveOutputListResult) (LiveOutputListResult, error)) LiveOutputListResultPage { - return LiveOutputListResultPage{fn: getNextPage} +func NewLiveOutputListResultPage(cur LiveOutputListResult, getNextPage func(context.Context, LiveOutputListResult) (LiveOutputListResult, error)) LiveOutputListResultPage { + return LiveOutputListResultPage{ + fn: getNextPage, + lolr: cur, + } } // LiveOutputProperties the JSON object that contains the properties required to create a Live Output. @@ -6293,8 +6316,11 @@ func (page OperationCollectionPage) Values() []Operation { } // Creates a new instance of the OperationCollectionPage type. -func NewOperationCollectionPage(getNextPage func(context.Context, OperationCollection) (OperationCollection, error)) OperationCollectionPage { - return OperationCollectionPage{fn: getNextPage} +func NewOperationCollectionPage(cur OperationCollection, getNextPage func(context.Context, OperationCollection) (OperationCollection, error)) OperationCollectionPage { + return OperationCollectionPage{ + fn: getNextPage, + oc: cur, + } } // OperationDisplay operation details. @@ -6815,7 +6841,8 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } -// Rectangle describes the properties of a rectangular window applied to the input media before processing it. +// Rectangle describes the properties of a rectangular window applied to the input media before processing +// it. type Rectangle struct { // Left - The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%). Left *string `json:"left,omitempty"` @@ -7090,8 +7117,11 @@ func (page ServiceCollectionPage) Values() []Service { } // Creates a new instance of the ServiceCollectionPage type. -func NewServiceCollectionPage(getNextPage func(context.Context, ServiceCollection) (ServiceCollection, error)) ServiceCollectionPage { - return ServiceCollectionPage{fn: getNextPage} +func NewServiceCollectionPage(cur ServiceCollection, getNextPage func(context.Context, ServiceCollection) (ServiceCollection, error)) ServiceCollectionPage { + return ServiceCollectionPage{ + fn: getNextPage, + sc: cur, + } } // ServiceProperties properties of the Media Services account. @@ -7111,8 +7141,8 @@ func (sp ServiceProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// StandardEncoderPreset describes all the settings to be used when encoding the input video with the Standard -// Encoder. +// StandardEncoderPreset describes all the settings to be used when encoding the input video with the +// Standard Encoder. type StandardEncoderPreset struct { // Filters - One or more filtering operations that are applied to the input media before encoding. Filters *Filters `json:"filters,omitempty"` @@ -7498,8 +7528,11 @@ func (page StreamingEndpointListResultPage) Values() []StreamingEndpoint { } // Creates a new instance of the StreamingEndpointListResultPage type. -func NewStreamingEndpointListResultPage(getNextPage func(context.Context, StreamingEndpointListResult) (StreamingEndpointListResult, error)) StreamingEndpointListResultPage { - return StreamingEndpointListResultPage{fn: getNextPage} +func NewStreamingEndpointListResultPage(cur StreamingEndpointListResult, getNextPage func(context.Context, StreamingEndpointListResult) (StreamingEndpointListResult, error)) StreamingEndpointListResultPage { + return StreamingEndpointListResultPage{ + fn: getNextPage, + selr: cur, + } } // StreamingEndpointProperties the StreamingEndpoint properties. @@ -7574,8 +7607,8 @@ func (sep StreamingEndpointProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// StreamingEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// StreamingEndpointsCreateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type StreamingEndpointsCreateFuture struct { azure.Future } @@ -7603,8 +7636,8 @@ func (future *StreamingEndpointsCreateFuture) Result(client StreamingEndpointsCl return } -// StreamingEndpointsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// StreamingEndpointsDeleteFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type StreamingEndpointsDeleteFuture struct { azure.Future } @@ -7695,8 +7728,8 @@ func (future *StreamingEndpointsStopFuture) Result(client StreamingEndpointsClie return } -// StreamingEndpointsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// StreamingEndpointsUpdateFuture an abstraction for monitoring and retrieving the results of a +// long-running operation. type StreamingEndpointsUpdateFuture struct { azure.Future } @@ -7954,8 +7987,11 @@ func (page StreamingLocatorCollectionPage) Values() []StreamingLocator { } // Creates a new instance of the StreamingLocatorCollectionPage type. -func NewStreamingLocatorCollectionPage(getNextPage func(context.Context, StreamingLocatorCollection) (StreamingLocatorCollection, error)) StreamingLocatorCollectionPage { - return StreamingLocatorCollectionPage{fn: getNextPage} +func NewStreamingLocatorCollectionPage(cur StreamingLocatorCollection, getNextPage func(context.Context, StreamingLocatorCollection) (StreamingLocatorCollection, error)) StreamingLocatorCollectionPage { + return StreamingLocatorCollectionPage{ + fn: getNextPage, + slc: cur, + } } // StreamingLocatorContentKey class for content key in Streaming Locator @@ -8278,8 +8314,11 @@ func (page StreamingPolicyCollectionPage) Values() []StreamingPolicy { } // Creates a new instance of the StreamingPolicyCollectionPage type. -func NewStreamingPolicyCollectionPage(getNextPage func(context.Context, StreamingPolicyCollection) (StreamingPolicyCollection, error)) StreamingPolicyCollectionPage { - return StreamingPolicyCollectionPage{fn: getNextPage} +func NewStreamingPolicyCollectionPage(cur StreamingPolicyCollection, getNextPage func(context.Context, StreamingPolicyCollection) (StreamingPolicyCollection, error)) StreamingPolicyCollectionPage { + return StreamingPolicyCollectionPage{ + fn: getNextPage, + spc: cur, + } } // StreamingPolicyContentKey class to specify properties of content key @@ -8469,8 +8508,8 @@ type SubscriptionMediaServiceCollection struct { OdataNextLink *string `json:"@odata.nextLink,omitempty"` } -// SubscriptionMediaServiceCollectionIterator provides access to a complete listing of SubscriptionMediaService -// values. +// SubscriptionMediaServiceCollectionIterator provides access to a complete listing of +// SubscriptionMediaService values. type SubscriptionMediaServiceCollectionIterator struct { i int page SubscriptionMediaServiceCollectionPage @@ -8613,8 +8652,11 @@ func (page SubscriptionMediaServiceCollectionPage) Values() []SubscriptionMediaS } // Creates a new instance of the SubscriptionMediaServiceCollectionPage type. -func NewSubscriptionMediaServiceCollectionPage(getNextPage func(context.Context, SubscriptionMediaServiceCollection) (SubscriptionMediaServiceCollection, error)) SubscriptionMediaServiceCollectionPage { - return SubscriptionMediaServiceCollectionPage{fn: getNextPage} +func NewSubscriptionMediaServiceCollectionPage(cur SubscriptionMediaServiceCollection, getNextPage func(context.Context, SubscriptionMediaServiceCollection) (SubscriptionMediaServiceCollection, error)) SubscriptionMediaServiceCollectionPage { + return SubscriptionMediaServiceCollectionPage{ + fn: getNextPage, + smsc: cur, + } } // SyncStorageKeysInput the input to the sync storage keys request. @@ -8666,8 +8708,8 @@ type TrackSelection struct { } // Transform a Transform encapsulates the rules or instructions for generating desired outputs from input -// media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied -// to input media by creating Jobs. +// media, such as by transcoding or by extracting insights. After the Transform is created, it can be +// applied to input media by creating Jobs. type Transform struct { autorest.Response `json:"-"` // TransformProperties - The resource properties. @@ -8892,8 +8934,11 @@ func (page TransformCollectionPage) Values() []Transform { } // Creates a new instance of the TransformCollectionPage type. -func NewTransformCollectionPage(getNextPage func(context.Context, TransformCollection) (TransformCollection, error)) TransformCollectionPage { - return TransformCollectionPage{fn: getNextPage} +func NewTransformCollectionPage(cur TransformCollection, getNextPage func(context.Context, TransformCollection) (TransformCollection, error)) TransformCollectionPage { + return TransformCollectionPage{ + fn: getNextPage, + tc: cur, + } } // TransformOutput describes the properties of a TransformOutput, which are the rules to be applied while @@ -8972,8 +9017,8 @@ func (tp TransformProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// TransportStreamFormat describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC 13818-1) -// output video file(s). +// TransportStreamFormat describes the properties for generating an MPEG-2 Transport Stream (ISO/IEC +// 13818-1) output video file(s). type TransportStreamFormat struct { // OutputFiles - The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be muxed together . OutputFiles *[]OutputFile `json:"outputFiles,omitempty"`