private static ResourceManager.Resources.Models.Sku GetSku() { var sku = new ResourceManager.Resources.Models.Sku(); sku.Capacity = 10; sku.Family = "family"; sku.Name = "name"; sku.Size = "size"; sku.Tier = "tier"; return(sku); }
private static GenericResourceExpanded GetGenereicResource( Dictionary <string, string> tags, ResourceManager.Resources.Models.Sku sku, ResourceManager.Resources.Models.Plan plan, string kind, string managedBy, string location) { var resource = new GenericResourceExpanded(); resource.Location = location; resource.Tags = tags ?? new Dictionary <string, string>(); resource.Sku = sku; resource.Plan = plan; resource.Kind = kind; resource.ManagedBy = managedBy; return(resource); }
private static GenericResourceExpanded GetGenereicResource( Dictionary <string, string> tags, ResourceManager.Resources.Models.Sku sku, ResourceManager.Resources.Models.Plan plan, string kind, string managedBy, string location) { var resource = new GenericResourceExpanded(); // See TODO in GenericResourceOperations.Valide(). // resource.Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup"; resource.Location = location; resource.Tags = tags ?? new Dictionary <string, string>(); resource.Sku = sku; resource.Plan = plan; resource.Kind = kind; resource.ManagedBy = managedBy; return(resource); }
/// <summary> /// Initializes a new instance of the <see cref="Sku"/> class. /// </summary> /// <param name="sku"> The sku to copy from. </param> internal Sku(ResourceManager.Resources.Models.Sku sku) : this(sku.Name, sku.Tier, sku.Family, sku.Size, sku.Capacity) { }