/// <summary>
 /// Initializes a new instance of the LiveEvent class.
 /// </summary>
 /// <param name="input">The Live Event input.</param>
 /// <param name="id">Fully qualified resource ID for the
 /// resource.</param>
 /// <param name="name">The name of the resource.</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="location">The Azure Region of the resource.</param>
 /// <param name="description">The Live Event description.</param>
 /// <param name="preview">The Live Event preview.</param>
 /// <param name="encoding">The Live Event encoding.</param>
 /// <param name="provisioningState">The provisioning state of the Live
 /// Event.</param>
 /// <param name="resourceState">The resource state of the Live Event.
 /// Possible values include: 'Stopped', 'Starting', 'Running',
 /// 'Stopping', 'Deleting'</param>
 /// <param name="crossSiteAccessPolicies">The Live Event access
 /// policies.</param>
 /// <param name="vanityUrl">Specifies whether to use a vanity url with
 /// the Live Event.  This value is specified at creation time and
 /// cannot be updated.</param>
 /// <param name="streamOptions">The options to use for the LiveEvent.
 /// This value is specified at creation time and cannot be
 /// updated.</param>
 /// <param name="created">The exact time the Live Event was
 /// created.</param>
 /// <param name="lastModified">The exact time the Live Event was last
 /// modified.</param>
 public LiveEvent(LiveEventInput input, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string location = default(string), string description = default(string), LiveEventPreview preview = default(LiveEventPreview), LiveEventEncoding encoding = default(LiveEventEncoding), string provisioningState = default(string), LiveEventResourceState?resourceState = default(LiveEventResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), bool?vanityUrl = default(bool?), IList <StreamOptionsFlag?> streamOptions = default(IList <StreamOptionsFlag?>), System.DateTime?created = default(System.DateTime?), System.DateTime?lastModified = default(System.DateTime?))
     : base(id, name, type, tags, location)
 {
     Description             = description;
     Input                   = input;
     Preview                 = preview;
     Encoding                = encoding;
     ProvisioningState       = provisioningState;
     ResourceState           = resourceState;
     CrossSiteAccessPolicies = crossSiteAccessPolicies;
     VanityUrl               = vanityUrl;
     StreamOptions           = streamOptions;
     Created                 = created;
     LastModified            = lastModified;
     CustomInit();
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the LiveEvent class.
 /// </summary>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="input">Live event input settings. It defines how the
 /// live event receives input from a contribution encoder.</param>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="description">A description for the live event.</param>
 /// <param name="preview">Live event preview settings. Preview allows
 /// live event producers to preview the live streaming content without
 /// creating any live output.</param>
 /// <param name="encoding">Encoding settings for the live event. It
 /// configures whether a live encoder is used for the live event and
 /// settings for the live encoder if it is used.</param>
 /// <param name="transcriptions">Live transcription settings for the
 /// live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for
 /// more information about the live transcription feature.</param>
 /// <param name="provisioningState">The provisioning state of the live
 /// event.</param>
 /// <param name="resourceState">The resource state of the live event.
 /// See https://go.microsoft.com/fwlink/?linkid=2139012 for more
 /// information. Possible values include: 'Stopped', 'Allocating',
 /// 'StandBy', 'Starting', 'Running', 'Stopping', 'Deleting'</param>
 /// <param name="crossSiteAccessPolicies">Live event cross site access
 /// policies.</param>
 /// <param name="useStaticHostname">Specifies whether a static hostname
 /// would be assigned to the live event preview and ingest endpoints.
 /// This value can only be updated if the live event is in Standby
 /// state</param>
 /// <param name="hostnamePrefix">When useStaticHostname is set to true,
 /// the hostnamePrefix specifies the first part of the hostname
 /// assigned to the live event preview and ingest endpoints. The final
 /// hostname would be a combination of this prefix, the media service
 /// account name and a short code for the Azure Media Services data
 /// center.</param>
 /// <param name="streamOptions">The options to use for the LiveEvent.
 /// This value is specified at creation time and cannot be updated. The
 /// valid values for the array entry values are 'Default' and
 /// 'LowLatency'.</param>
 /// <param name="created">The creation time for the live event</param>
 /// <param name="lastModified">The last modified time of the live
 /// event.</param>
 public LiveEvent(string location, LiveEventInput input, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string description = default(string), LiveEventPreview preview = default(LiveEventPreview), LiveEventEncoding encoding = default(LiveEventEncoding), IList <LiveEventTranscription> transcriptions = default(IList <LiveEventTranscription>), string provisioningState = default(string), LiveEventResourceState?resourceState = default(LiveEventResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), bool?useStaticHostname = default(bool?), string hostnamePrefix = default(string), IList <StreamOptionsFlag?> streamOptions = default(IList <StreamOptionsFlag?>), System.DateTime?created = default(System.DateTime?), System.DateTime?lastModified = default(System.DateTime?))
     : base(location, id, name, type, tags)
 {
     Description             = description;
     Input                   = input;
     Preview                 = preview;
     Encoding                = encoding;
     Transcriptions          = transcriptions;
     ProvisioningState       = provisioningState;
     ResourceState           = resourceState;
     CrossSiteAccessPolicies = crossSiteAccessPolicies;
     UseStaticHostname       = useStaticHostname;
     HostnamePrefix          = hostnamePrefix;
     StreamOptions           = streamOptions;
     Created                 = created;
     LastModified            = lastModified;
     CustomInit();
 }