C# Класс Elastacloud.AzureManagement.Fluent.Clients.WebsiteClient

A client used to manage all aspects of a windows azure website
Наследование: IWebsiteClient
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Create ( Website website, ScmType scm = ScmType.LocalGit ) : void

Creates a default website with nothing deployed

CreateFromBitBucket ( Website website, GitDetails gitDetails ) : void

As above but using BitBucket instead

CreateFromGithub ( Website website, GitDetails gitDetails ) : void

Creates a website given github credentials

Delete ( ) : void

Deletes a website with the current context

GetWebsiteMetricsPerInterval ( System.TimeSpan span ) : List

Gets the website metrics in the requested interval backwards from datetime.now

List ( ) : List

Returns a list of websites

Restart ( ) : void

Restarts the website from a stopped state

Stop ( ) : void

Stops the website if it is currently running

Update ( ) : void

Updates the config with the current compute config

WebsiteClient ( string subscriptionId, X509Certificate2 certificate, string siteName = null ) : System

Used to construct a windows azure website client

Приватные методы

Метод Описание
GetWebsiteIfExists ( ) : Website
SetScalePotential ( Website website ) : void
ValidateWebSpace ( string webSpace ) : void

Описание методов

Create() публичный Метод

Creates a default website with nothing deployed
public Create ( Website website, ScmType scm = ScmType.LocalGit ) : void
website Elastacloud.AzureManagement.Fluent.Types.Websites.Website the website which will be created
scm ScmType
Результат void

CreateFromBitBucket() публичный Метод

As above but using BitBucket instead
public CreateFromBitBucket ( Website website, GitDetails gitDetails ) : void
website Elastacloud.AzureManagement.Fluent.Types.Websites.Website
gitDetails Elastacloud.AzureManagement.Fluent.Types.Websites.GitDetails
Результат void

CreateFromGithub() публичный Метод

Creates a website given github credentials
public CreateFromGithub ( Website website, GitDetails gitDetails ) : void
website Elastacloud.AzureManagement.Fluent.Types.Websites.Website
gitDetails Elastacloud.AzureManagement.Fluent.Types.Websites.GitDetails the details of the github repo
Результат void

Delete() публичный Метод

Deletes a website with the current context
public Delete ( ) : void
Результат void

GetWebsiteMetricsPerInterval() публичный Метод

Gets the website metrics in the requested interval backwards from datetime.now
public GetWebsiteMetricsPerInterval ( System.TimeSpan span ) : List
span System.TimeSpan
Результат List

List() публичный Метод

Returns a list of websites
public List ( ) : List
Результат List

Restart() публичный Метод

Restarts the website from a stopped state
public Restart ( ) : void
Результат void

Stop() публичный Метод

Stops the website if it is currently running
public Stop ( ) : void
Результат void

Update() публичный Метод

Updates the config with the current compute config
public Update ( ) : void
Результат void

WebsiteClient() публичный Метод

Used to construct a windows azure website client
public WebsiteClient ( string subscriptionId, X509Certificate2 certificate, string siteName = null ) : System
subscriptionId string the subscription id
certificate System.Security.Cryptography.X509Certificates.X509Certificate2 The management certificate
siteName string The sitename used to get a context for
Результат System