Ejemplo n.º 1
0
 ///GENMHASH:EC2A5EE0E9C0A186CA88677B91632991:73A8AB022E64791584A29A74AEF6C9C7
 public ComputeResourceType ResourceType()
 {
     if (this.inner.ResourceType != null)
     {
         return(ComputeResourceType.Parse(this.inner.ResourceType));
     }
     else
     {
         return(null);
     }
 }
 /// <summary>
 /// Lists all the skus with the specified resource type in the given region.
 /// </summary>
 /// <param name="region">The region.</param>
 /// <param name="resourceType">The resource type.</param>
 /// <return>An observable that emits skus.</return>
 async Task <IPagedCollection <Microsoft.Azure.Management.Compute.Fluent.IComputeSku> > Microsoft.Azure.Management.Compute.Fluent.IComputeSkus.ListbyRegionAndResourceTypeAsync(Region region, ComputeResourceType resourceType, CancellationToken cancellationToken)
 {
     return(await this.ListbyRegionAndResourceTypeAsync(region, resourceType, cancellationToken));
 }
 /// <summary>
 /// Lists all the skus with the specified resource type in the given region.
 /// </summary>
 /// <param name="region">The region.</param>
 /// <param name="resourceType">The resource type.</param>
 /// <return>The skus list.</return>
 System.Collections.Generic.IEnumerable <Microsoft.Azure.Management.Compute.Fluent.IComputeSku> Microsoft.Azure.Management.Compute.Fluent.IComputeSkus.ListbyRegionAndResourceType(Region region, ComputeResourceType resourceType)
 {
     return(this.ListbyRegionAndResourceType(region, resourceType));
 }
Ejemplo n.º 4
0
        ///GENMHASH:D37E1E7B14292953A9F1B5EFCE33BA48:69C6AC5876477147A7C1E8E476E33234
        public async Task <IPagedCollection <Microsoft.Azure.Management.Compute.Fluent.IComputeSku> > ListByResourceTypeAsync(ComputeResourceType resourceType, CancellationToken cancellationToken = default(CancellationToken))
        {
            var skus = new List <IComputeSku>();

            foreach (var computeSku in await ListAsync(true, cancellationToken))
            {
                if (computeSku.ResourceType != null && computeSku.ResourceType.Equals(resourceType))
                {
                    skus.Add(computeSku);
                }
            }
            return(PagedCollection <IComputeSku, ResourceSku> .CreateFromEnumerable(skus));
        }
Ejemplo n.º 5
0
 ///GENMHASH:0429C96B2B559250BBBC61B7966D5BAD:6A56FF83B3B2102411DAE30F95C25A54
 public IEnumerable <Microsoft.Azure.Management.Compute.Fluent.IComputeSku> ListByResourceType(ComputeResourceType resourceType)
 {
     return(Extensions.Synchronize(() => this.ListByResourceTypeAsync(resourceType, default(CancellationToken))));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Lists all the skus with the specified resource type.
 /// </summary>
 /// <param name="resourceType">The compute resource type.</param>
 /// <return>The skus list.</return>
 System.Collections.Generic.IEnumerable <Microsoft.Azure.Management.Compute.Fluent.IComputeSku> Microsoft.Azure.Management.Compute.Fluent.IComputeSkus.ListByResourceType(ComputeResourceType resourceType)
 {
     return(this.ListByResourceType(resourceType) as System.Collections.Generic.IEnumerable <Microsoft.Azure.Management.Compute.Fluent.IComputeSku>);
 }