Esempio n. 1
0
 /// <summary>
 /// Lists the available SKUs supported by Microsoft.Storage for given
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <Sku> > ListAsync(this ISkusOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Gets the sku details for the given resource type and sku name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SkuResource> GetAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string sku, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(providerNamespace, resourceType, sku, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets all the Azure Lab Services resource SKUs.
 /// </summary>
 /// <remarks>
 /// Returns a list of all the Azure Lab Services resource SKUs.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='filter'>
 /// The filter to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <LabServicesSku> > ListAsync(this ISkusOperations operations, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Lists all of the available skus of the Microsoft.AppPlatform provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ResourceSku> > ListNextAsync(this ISkusOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations         = new Operations(this);
     Devices            = new DevicesOperations(this);
     Alerts             = new AlertsOperations(this);
     BandwidthSchedules = new BandwidthSchedulesOperations(this);
     Jobs                             = new JobsOperations(this);
     Nodes                            = new NodesOperations(this);
     OperationsStatus                 = new OperationsStatus(this);
     Orders                           = new OrdersOperations(this);
     Roles                            = new RolesOperations(this);
     Shares                           = new SharesOperations(this);
     StorageAccountCredentials        = new StorageAccountCredentialsOperations(this);
     StorageAccounts                  = new StorageAccountsOperations(this);
     Containers                       = new ContainersOperations(this);
     Triggers                         = new TriggersOperations(this);
     Users                            = new UsersOperations(this);
     Skus                             = new SkusOperations(this);
     BaseUri                          = new System.Uri("https://management.azure.com");
     ApiVersion                       = "2019-08-01";
     AcceptLanguage                   = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Role>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Role>("kind"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Trigger>("kind"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Trigger>("kind"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Images           = new ImagesOperations(this);
     LabPlans         = new LabPlansOperations(this);
     Operations       = new Operations(this);
     Labs             = new LabsOperations(this);
     OperationResults = new OperationResultsOperations(this);
     Schedules        = new SchedulesOperations(this);
     Users            = new UsersOperations(this);
     VirtualMachines  = new VirtualMachinesOperations(this);
     Usages           = new UsagesOperations(this);
     Skus             = new SkusOperations(this);
     BaseUri          = new System.Uri("https://management.azure.com");
     ApiVersion       = "2021-11-15-preview";
     AcceptLanguage   = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Services           = new ServicesOperations(this);
     ConfigServers      = new ConfigServersOperations(this);
     MonitoringSettings = new MonitoringSettingsOperations(this);
     Apps            = new AppsOperations(this);
     Bindings        = new BindingsOperations(this);
     Certificates    = new CertificatesOperations(this);
     CustomDomains   = new CustomDomainsOperations(this);
     Deployments     = new DeploymentsOperations(this);
     Operations      = new Operations(this);
     RuntimeVersions = new RuntimeVersionsOperations(this);
     Skus            = new SkusOperations(this);
     BaseUri         = new System.Uri("https://management.azure.com");
     ApiVersion      = "2020-11-01-preview";
     AcceptLanguage  = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     CustomRollouts            = new CustomRolloutsOperations(this);
     DefaultRollouts           = new DefaultRolloutsOperations(this);
     NotificationRegistrations = new NotificationRegistrationsOperations(this);
     Operations                = new Operations(this);
     ProviderRegistrations     = new ProviderRegistrationsOperations(this);
     ResourceTypeRegistrations = new ResourceTypeRegistrationsOperations(this);
     Skus           = new SkusOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2020-11-20";
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
Esempio n. 9
0
 /// <summary>
 /// Gets the list of skus for the given resource type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='nestedResourceTypeFirst'>
 /// The first child resource type.
 /// </param>
 /// <param name='nestedResourceTypeSecond'>
 /// The second child resource type.
 /// </param>
 /// <param name='nestedResourceTypeThird'>
 /// The third child resource type.
 /// </param>
 public static IPage <SkuResource> ListByResourceTypeRegistrationsNestedResourceTypeThird(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird)
 {
     return(operations.ListByResourceTypeRegistrationsNestedResourceTypeThirdAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird).GetAwaiter().GetResult());
 }
Esempio n. 10
0
 /// <summary>
 /// Gets the sku details for the given resource type and sku name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='nestedResourceTypeFirst'>
 /// The first child resource type.
 /// </param>
 /// <param name='nestedResourceTypeSecond'>
 /// The second child resource type.
 /// </param>
 /// <param name='nestedResourceTypeThird'>
 /// The third child resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 public static SkuResource GetNestedResourceTypeThird(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku)
 {
     return(operations.GetNestedResourceTypeThirdAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all the Azure Lab Services resource SKUs.
 /// </summary>
 /// <remarks>
 /// Returns a list of all the Azure Lab Services resource SKUs.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='filter'>
 /// The filter to apply to the operation.
 /// </param>
 public static IPage <LabServicesSku> List(this ISkusOperations operations, string filter = default(string))
 {
     return(operations.ListAsync(filter).GetAwaiter().GetResult());
 }
Esempio n. 12
0
 /// <summary>
 /// List all the available Skus in the region and information related to them
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='filter'>
 /// Specify $filter='location eq &lt;location&gt;' to filter on location.
 /// </param>
 public static IEnumerable <ResourceTypeSku> List(this ISkusOperations operations, string filter = default(string))
 {
     return(operations.ListAsync(filter).GetAwaiter().GetResult());
 }
Esempio n. 13
0
 /// <summary>
 /// Gets the sku details for the given resource type and sku name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 public static SkuResource Get(this ISkusOperations operations, string providerNamespace, string resourceType, string sku)
 {
     return(operations.GetAsync(providerNamespace, resourceType, sku).GetAwaiter().GetResult());
 }
Esempio n. 14
0
 /// <summary>
 /// Lists all of the available skus of the Microsoft.AppPlatform provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <ResourceSku> ListNext(this ISkusOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Esempio n. 15
0
 /// <summary>
 /// Creates or updates the resource type skus in the given resource type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='nestedResourceTypeFirst'>
 /// The first child resource type.
 /// </param>
 /// <param name='nestedResourceTypeSecond'>
 /// The second child resource type.
 /// </param>
 /// <param name='nestedResourceTypeThird'>
 /// The third child resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 /// <param name='skuSettings'>
 /// </param>
 public static SkuResource CreateOrUpdateNestedResourceTypeThird(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, IList <SkuSetting> skuSettings)
 {
     return(operations.CreateOrUpdateNestedResourceTypeThirdAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku, skuSettings).GetAwaiter().GetResult());
 }
Esempio n. 16
0
 /// <summary>
 /// Gets the list of skus for the given resource type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 public static IPage <SkuResource> ListByResourceTypeRegistrations(this ISkusOperations operations, string providerNamespace, string resourceType)
 {
     return(operations.ListByResourceTypeRegistrationsAsync(providerNamespace, resourceType).GetAwaiter().GetResult());
 }
Esempio n. 17
0
 /// <summary>
 /// Deletes a resource type sku.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='nestedResourceTypeFirst'>
 /// The first child resource type.
 /// </param>
 /// <param name='nestedResourceTypeSecond'>
 /// The second child resource type.
 /// </param>
 /// <param name='nestedResourceTypeThird'>
 /// The third child resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteNestedResourceTypeThirdAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteNestedResourceTypeThirdWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Esempio n. 18
0
 /// <summary>
 /// Deletes a resource type sku.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='nestedResourceTypeFirst'>
 /// The first child resource type.
 /// </param>
 /// <param name='nestedResourceTypeSecond'>
 /// The second child resource type.
 /// </param>
 /// <param name='nestedResourceTypeThird'>
 /// The third child resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 public static void DeleteNestedResourceTypeThird(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku)
 {
     operations.DeleteNestedResourceTypeThirdAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku).GetAwaiter().GetResult();
 }
Esempio n. 19
0
 /// <summary>
 /// Creates or updates the resource type skus in the given resource type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='nestedResourceTypeFirst'>
 /// The first child resource type.
 /// </param>
 /// <param name='nestedResourceTypeSecond'>
 /// The second child resource type.
 /// </param>
 /// <param name='nestedResourceTypeThird'>
 /// The third child resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 /// <param name='skuSettings'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SkuResource> CreateOrUpdateNestedResourceTypeThirdAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, string sku, IList <SkuSetting> skuSettings, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateNestedResourceTypeThirdWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, sku, skuSettings, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 20
0
 /// <summary>
 /// Lists the available SKUs supported by Microsoft.Storage for given
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IEnumerable <Sku> List(this ISkusOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Esempio n. 21
0
 /// <summary>
 /// Gets the list of skus for the given resource type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='nestedResourceTypeFirst'>
 /// The first child resource type.
 /// </param>
 /// <param name='nestedResourceTypeSecond'>
 /// The second child resource type.
 /// </param>
 /// <param name='nestedResourceTypeThird'>
 /// The third child resource type.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <SkuResource> > ListByResourceTypeRegistrationsNestedResourceTypeThirdAsync(this ISkusOperations operations, string providerNamespace, string resourceType, string nestedResourceTypeFirst, string nestedResourceTypeSecond, string nestedResourceTypeThird, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceTypeRegistrationsNestedResourceTypeThirdWithHttpMessagesAsync(providerNamespace, resourceType, nestedResourceTypeFirst, nestedResourceTypeSecond, nestedResourceTypeThird, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 22
0
 /// <summary>
 /// Lists all of the available skus of the Microsoft.AppPlatform provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <ResourceSku> List(this ISkusOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Esempio n. 23
0
 /// <summary>
 /// Creates or updates the resource type skus in the given resource type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 /// <param name='skuSettings'>
 /// </param>
 public static SkuResource CreateOrUpdate(this ISkusOperations operations, string providerNamespace, string resourceType, string sku, IList <SkuSetting> skuSettings)
 {
     return(operations.CreateOrUpdateAsync(providerNamespace, resourceType, sku, skuSettings).GetAwaiter().GetResult());
 }
Esempio n. 24
0
 /// <summary>
 /// Gets the list of skus for the given resource type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <SkuResource> ListByResourceTypeRegistrationsNestedResourceTypeThirdNext(this ISkusOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceTypeRegistrationsNestedResourceTypeThirdNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Esempio n. 25
0
 /// <summary>
 /// Deletes a resource type sku.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='providerNamespace'>
 /// The name of the resource provider hosted within ProviderHub.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='sku'>
 /// The SKU.
 /// </param>
 public static void Delete(this ISkusOperations operations, string providerNamespace, string resourceType, string sku)
 {
     operations.DeleteAsync(providerNamespace, resourceType, sku).GetAwaiter().GetResult();
 }