示例#1
0
 /// <summary>
 /// Returns list of permissions this app has on a team.
 /// <see href="https://api.slack.com/methods/apps.permissions.info" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `none`
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <InfoOKResponse> InfoAsync(this IApps operations, string token = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.InfoWithHttpMessagesAsync(token, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <summary>
 /// Returns the specified installed app.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: App.Read.All&lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The app id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <App> GetAppAsync(this IApps operations, string appId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAppWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#3
0
 /// <summary>
 /// Return a specific app with the given app name which belongs to the given
 /// owner.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AppResponse> GetAsync(this IApps operations, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(ownerName, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#4
0
        /// <summary>
        /// package - Gets trained LUIS application package in binary stream GZip
        /// format
        /// </summary>
        /// <remarks>
        /// Packages trained LUIS application as GZip.
        /// </remarks>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='appId'>
        /// The application ID.
        /// </param>
        /// <param name='versionId'>
        /// The version ID.
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Stream> PackageTrainedApplicationAsGzipAsync(this IApps operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken))
        {
            var _result = await operations.PackageTrainedApplicationAsGzipWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false);

            _result.Request.Dispose();
            return(_result.Body);
        }
示例#5
0
 /// <summary>
 /// Returns a list of installed apps.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: App.Read.All&lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ODataResponseListApp> GetAppsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAppsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#6
0
 /// <summary>
 /// Gets the application available usage scenarios.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <string> > ListUsageScenariosAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#7
0
 /// <summary>
 /// Deletes an application.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The application ID.
 /// </param>
 /// <param name='force'>
 /// A flag to indicate whether to force an operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OperationStatus> DeleteAsync(this IApps operations, System.Guid appId, bool?force = false, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, force, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#8
0
 /// <summary>
 /// Gets the application info.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
 /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
 /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
 /// </param>
 /// <param name='azureCloud'>
 /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
 /// include: 'com', 'us'
 /// </param>
 /// <param name='appId'>
 /// The application ID.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ApplicationInfoResponse> GetAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#9
0
 /// <summary>
 /// Updates the application settings including 'UseAllTrainingData'.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
 /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
 /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
 /// </param>
 /// <param name='azureCloud'>
 /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
 /// include: 'com', 'us'
 /// </param>
 /// <param name='appId'>
 /// The application ID.
 /// </param>
 /// <param name='applicationSettingUpdateObject'>
 /// An object containing the new application settings.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OperationStatus> UpdateSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Imports an application to LUIS, the application's JSON should be included
 /// in in the request body.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope'
 /// </param>
 /// <param name='appName'>
 /// The imported application name.
 /// </param>
 /// <param name='jSONApp'>
 /// A JSON representing the LUIS application structure.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> ImportApplicationAsync(this IApps operations, AzureRegions azureRegion, string appName = default(string), JSONApp jSONApp = default(JSONApp), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ImportApplicationWithHttpMessagesAsync(azureRegion, appName, jSONApp, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#11
0
 /// <summary>
 /// Gets the available application domains.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
 /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
 /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
 /// </param>
 /// <param name='azureCloud'>
 /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
 /// include: 'com', 'us'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <string> > ListDomainsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListDomainsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Adds a prebuilt domain along with its models as a new application.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope'
 /// </param>
 /// <param name='prebuiltDomainCreateObject'>
 /// A prebuilt domain create object containing the name and culture of the
 /// domain
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> AddCustomPrebuiltApplicationAsync(this IApps operations, AzureRegions azureRegion, PrebuiltDomainCreateObject prebuiltDomainCreateObject = default(PrebuiltDomainCreateObject), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddCustomPrebuiltApplicationWithHttpMessagesAsync(azureRegion, prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns the available endpoint deployment regions and urls
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope'
 /// </param>
 /// <param name='appId'>
 /// Format - guid. The application ID.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AvailableEndpoints> GetEndpointsAsync(this IApps operations, AzureRegions azureRegion, string appId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetEndpointsWithHttpMessagesAsync(azureRegion, appId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#14
0
 /// <summary>
 /// Allows an app to request additional scopes
 /// <see href="https://api.slack.com/methods/apps.permissions.request" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='scopes'>
 /// A comma separated list of scopes to request for
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `none`
 /// </param>
 /// <param name='triggerId'>
 /// Token used to trigger the permissions API
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RequestOKResponse> RequestAsync(this IApps operations, string scopes = default(string), string token = default(string), string triggerId = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.RequestWithHttpMessagesAsync(scopes, token, triggerId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#15
0
 /// <summary>
 /// Creates a new app and returns it to the caller
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='app'>
 /// The data for the app
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AppResponse> CreateAsync(this IApps operations, AppRequest app, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(app, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#16
0
        /// <summary>
        /// package - Gets published LUIS application package in binary stream GZip
        /// format
        /// </summary>
        /// <remarks>
        /// Packages a published LUIS application as a GZip file to be used in the LUIS
        /// container.
        /// </remarks>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='azureRegion'>
        /// Supported Azure regions for Cognitive Services endpoints. Possible values
        /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
        /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
        /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
        /// </param>
        /// <param name='azureCloud'>
        /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
        /// include: 'com', 'us'
        /// </param>
        /// <param name='appId'>
        /// The application ID.
        /// </param>
        /// <param name='slotName'>
        /// The publishing slot name.
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Stream> PackagePublishedApplicationAsGzipAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, CancellationToken cancellationToken = default(CancellationToken))
        {
            var _result = await operations.PackagePublishedApplicationAsGzipWithHttpMessagesAsync(azureRegion, azureCloud, appId, slotName, null, cancellationToken).ConfigureAwait(false);

            _result.Request.Dispose();
            return(_result.Body);
        }
示例#17
0
 /// <summary>
 /// Returns a list of apps for the organization
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orgName'>
 /// The organization's name
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <AppResponse> > ListForOrgAsync(this IApps operations, string orgName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListForOrgWithHttpMessagesAsync(orgName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#18
0
 /// <summary>
 /// Partially updates a single app
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='app'>
 /// The partial data for the app
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AppResponse> UpdateAsync(this IApps operations, string appName, string ownerName, AppPatchRequest app = default(AppPatchRequest), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(appName, ownerName, app, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#19
0
 /// <summary>
 /// Imports an application to LUIS, the application's structure should be
 /// included in in the request body.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='luisApp'>
 /// A LUIS application structure.
 /// </param>
 /// <param name='appName'>
 /// The application name to create. If not specified, the application name will
 /// be read from the imported object.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <System.Guid> ImportAsync(this IApps operations, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ImportWithHttpMessagesAsync(luisApp, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#20
0
 /// <summary>
 /// Lists all of the user applications.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='skip'>
 /// The number of entries to skip. Default value is 0.
 /// </param>
 /// <param name='take'>
 /// The number of entries to return. Maximum page size is 500. Default is 100.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <ApplicationInfoResponse> > ListAsync(this IApps operations, int?skip = 0, int?take = 100, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(skip, take, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#21
0
 /// <summary>
 /// Returns list of resource grants this app has on a team.
 /// <see href="https://api.slack.com/methods/apps.permissions.resources.list" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cursor'>
 /// Paginate through collections of data by setting the `cursor` parameter to a
 /// `next_cursor` attribute returned by a previous request's
 /// `response_metadata`. Default value fetches the first "page" of the
 /// collection. See [pagination](/docs/pagination) for more detail.
 /// </param>
 /// <param name='token'>
 /// Authentication token. Requires scope: `none`
 /// </param>
 /// <param name='limit'>
 /// The maximum number of items to return.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ListOKResponse> ListAsync(this IApps operations, string cursor = default(string), string token = default(string), int?limit = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(cursor, token, limit, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#22
0
 /// <summary>
 /// Adds a prebuilt domain along with its models as a new application.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='prebuiltDomainCreateObject'>
 /// A prebuilt domain create object containing the name and culture of the
 /// domain.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <System.Guid> AddCustomPrebuiltDomainAsync(this IApps operations, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#23
0
 /// <summary>
 /// Returns the available endpoint deployment regions and URLs.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The application ID.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IDictionary <string, string> > ListEndpointsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#24
0
 /// <summary>
 /// Creates a new LUIS app.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='applicationCreateObject'>
 /// A model containing Name, Description (optional), Culture, Usage Scenario
 /// (optional), Domain (optional) and initial version ID (optional) of the
 /// application. Default value for the version ID is 0.1. Note: the culture
 /// cannot be changed after the app is created.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <System.Guid> AddAsync(this IApps operations, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddWithHttpMessagesAsync(applicationCreateObject, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#25
0
 /// <summary>
 /// Updates the application publish settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The application ID.
 /// </param>
 /// <param name='publishSettingUpdateObject'>
 /// An object containing the new publish application settings.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OperationStatus> UpdatePublishSettingsAsync(this IApps operations, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdatePublishSettingsWithHttpMessagesAsync(appId, publishSettingUpdateObject, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#26
0
 /// <summary>
 /// Get the application publish settings.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The application ID.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PublishSettings> GetPublishSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetPublishSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#27
0
 /// <summary>
 /// Publishes a specific version of the application.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The application ID.
 /// </param>
 /// <param name='applicationPublishObject'>
 /// The application publish object. The region is the target region that the
 /// application is published to.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ProductionOrStagingEndpointInfo> PublishAsync(this IApps operations, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PublishWithHttpMessagesAsync(appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#28
0
        /// <summary>
        /// Gets the query logs of the past month for the application.
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='appId'>
        /// The application ID.
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Stream> DownloadQueryLogsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
        {
            var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false);

            _result.Request.Dispose();
            return(_result.Body);
        }
示例#29
0
 /// <summary>
 /// Gets all the available custom prebuilt domains for a specific culture.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='culture'>
 /// Culture.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <PrebuiltDomain> > ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, string culture, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(culture, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#30
0
 /// <summary>
 /// Gets the supported application cultures.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <AvailableCulture> > ListSupportedCulturesAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }