Exemplo n.º 1
0
        public override void ExecuteCmdlet()
        {
            ExecuteCmdLetWrap(
                () =>
            {
                ApiManagement.RemoveRegion(Location);

                return(ApiManagement);
            },
                passThru: true);
        }
        public override void ExecuteCmdlet()
        {
            ExecuteCmdLetWrap(
                () =>
            {
                ApiManagement.AddRegion(Location, Sku ?? PsApiManagementSku.Developer, Capacity ?? 1, VirtualNetwork);

                return(ApiManagement);
            },
                passThru: true);
        }
        public override void ExecuteCmdlet()
        {
            ExecuteCmdLetWrap(
                () =>
            {
                ApiManagement.UpdateRegion(Location, Sku, Capacity, VirtualNetwork);

                return(ApiManagement);
            },
                passThru: true);
        }
Exemplo n.º 4
0
        protected override void ProcessRecord()
        {
            ExecuteCmdLetWrap(
                () =>
            {
                ApiManagement.RemoveRegion(Location);

                return(ApiManagement);
            },
                passThru: true);
        }
Exemplo n.º 5
0
        protected override void ProcessRecord()
        {
            ExecuteCmdLetWrap(
                () =>
            {
                ApiManagement.AddRegion(Location, Sku ?? PsApiManagementSku.Developer, Capacity ?? 1, VirtualNetwork);

                return(ApiManagement);
            },
                passThru: true);
        }
        protected override void ProcessRecord()
        {
            ExecuteCmdLetWrap(
                () =>
            {
                ApiManagement.UpdateRegion(Location, Sku, Capacity, VirtualNetwork);

                return(ApiManagement);
            },
                passThru: true);
        }
        public override void ExecuteCmdlet()
        {
            ExecuteCmdLetWrap(
                () =>
            {
                ApiManagement.AddRegion(
                    Location,
                    Sku ?? PsApiManagementSku.Premium,
                    Capacity ?? 1,
                    VirtualNetwork,
                    Zone,
                    DisableGateway);

                return(ApiManagement);
            },
                passThru: true);
        }
Exemplo n.º 8
0
        public override void ExecuteCmdlet()
        {
            ExecuteCmdLetWrap(
                () =>
                {
                    ApiManagement.UpdateRegion(
                        Location,
                        Sku,
                        Capacity, 
                        VirtualNetwork, 
                        Zone, 
                        DisableGateway,
                        PublicIpAddressId);

                    return ApiManagement;
                },
                passThru: true);
        }