Пример #1
0
 ///GENMHASH:2EDD4B59BAFACBDD881E1EB427AFB76D:6899DBE410B89E7D8EEB69725B8CE588
 public FluentImplT WithPricingTier(PricingTier pricingTier)
 {
     appServicePlan.WithRegion(RegionName);
     appServicePlan.WithPricingTier(pricingTier);
     if (newGroup != null && IsInCreateMode)
     {
         appServicePlan.WithNewResourceGroup(ResourceGroupName);
         ((IndexableRefreshableWrapper <IResourceGroup, ResourceGroupInner>)newGroup).Inner.Location = RegionName;
     }
     else
     {
         appServicePlan.WithExistingResourceGroup(ResourceGroupName);
     }
     AddCreatableDependency(appServicePlan);
     return((FluentImplT)this);
 }
Пример #2
0
        private AppServicePlanImpl NewDefaultAppServicePlan()
        {
            String             planName       = SdkContext.RandomResourceName(Name + "plan", 32);
            AppServicePlanImpl appServicePlan = (AppServicePlanImpl)(this.Manager.AppServicePlans
                                                                     .Define(planName))
                                                .WithRegion(RegionName);

            if (newGroup != null && IsInCreateMode)
            {
                appServicePlan = appServicePlan.WithNewResourceGroup(newGroup) as AppServicePlanImpl;
            }
            else
            {
                appServicePlan = appServicePlan.WithExistingResourceGroup(ResourceGroupName) as AppServicePlanImpl;
            }
            return(appServicePlan);
        }