/// <summary> /// Initializes a new instance of the MediaGraphParameterDeclaration /// class. /// </summary> /// <param name="name">The name of the parameter.</param> /// <param name="type">Possible values include: 'String', /// 'SecretString', 'Int', 'Double', 'Bool'</param> /// <param name="description">Description of the parameter.</param> /// <param name="defaultProperty">The default value for the parameter, /// to be used if the graph instance does not specify a value.</param> public MediaGraphParameterDeclaration(string name, MediaGraphParameterType type, string description = default(string), string defaultProperty = default(string)) { Name = name; Type = type; Description = description; DefaultProperty = defaultProperty; CustomInit(); }
internal static string ToSerializedValue(this MediaGraphParameterType value) { switch (value) { case MediaGraphParameterType.String: return("String"); case MediaGraphParameterType.SecretString: return("SecretString"); case MediaGraphParameterType.Int: return("Int"); case MediaGraphParameterType.Double: return("Double"); case MediaGraphParameterType.Bool: return("Bool"); } return(null); }