/// <summary> /// Asynchronously archives the current <see cref="Application"/>. /// </summary> /// <returns> /// An object containing information about the newly created archive. /// </returns> /// <remarks> /// This method uses the <a href="http://goo.gl/DJkT7S">GET /// apps/local/{name}/package</a> endpoint to create an archive of the /// current <see cref="Application"/>. /// </remarks> public async Task <ApplicationArchiveInfo> PackageAsync() { var resource = new ApplicationArchiveInfo(this.Context, this.Namespace, this.Name); await resource.GetAsync(); return(resource); }
/// <summary> /// Asynchronously creates an application archive. /// </summary> /// <param name="name"> /// Name of the application to be archived. /// </param> /// <returns> /// An object containing information about the archive created. /// </returns> /// <remarks> /// This method uses the <a href="http://goo.gl/SzKzNX">GET /// apps/local/{name}/package</a> endpoint to create an archive of the /// application identified by <see cref="name"/> and construct the <see /// cref="ApplicationArchiveInfo"/> object it returns. /// </remarks> public async Task<ApplicationArchiveInfo> PackageApplication(string name) { //// TODO: Should this method be named CreateApplicationArchive? var resource = new ApplicationArchiveInfo(this.Context, this.Namespace, name); await resource.GetAsync(); return resource; }