/// <summary> /// Construct a new CreateAssetVersionOptions /// </summary> /// <param name="pathServiceSid"> Service Sid. </param> /// <param name="pathAssetSid"> Asset Sid. </param> /// <param name="path"> The URL-friendly string by which this Asset Version can be referenced. </param> /// <param name="visibility"> The access control which determines how the Asset Version can be accessed. </param> public CreateAssetVersionOptions(string pathServiceSid, string pathAssetSid, string path, AssetVersionResource.VisibilityEnum visibility) { PathServiceSid = pathServiceSid; PathAssetSid = pathAssetSid; Path = path; Visibility = visibility; }
/// <summary> /// Create a new Asset Version. /// </summary> /// <param name="pathServiceSid"> Service Sid. </param> /// <param name="pathAssetSid"> Asset Sid. </param> /// <param name="path"> The URL-friendly string by which this Asset Version can be referenced. </param> /// <param name="visibility"> The access control which determines how the Asset Version can be accessed. </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> A single instance of AssetVersion </returns> public static AssetVersionResource Create(string pathServiceSid, string pathAssetSid, string path, AssetVersionResource.VisibilityEnum visibility, ITwilioRestClient client = null) { var options = new CreateAssetVersionOptions(pathServiceSid, pathAssetSid, path, visibility); return(Create(options, client)); }
/// <summary> /// Create a new Asset Version. /// </summary> /// <param name="pathServiceSid"> Service Sid. </param> /// <param name="pathAssetSid"> Asset Sid. </param> /// <param name="path"> The URL-friendly string by which this Asset Version can be referenced. </param> /// <param name="visibility"> The access control which determines how the Asset Version can be accessed. </param> /// <param name="client"> Client to make requests to Twilio </param> /// <returns> Task that resolves to A single instance of AssetVersion </returns> public static async System.Threading.Tasks.Task <AssetVersionResource> CreateAsync(string pathServiceSid, string pathAssetSid, string path, AssetVersionResource.VisibilityEnum visibility, ITwilioRestClient client = null) { var options = new CreateAssetVersionOptions(pathServiceSid, pathAssetSid, path, visibility); return(await CreateAsync(options, client)); }