vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
+11220 -1443
View File
File diff suppressed because it is too large Load Diff
@@ -14,9 +14,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,33 +24,27 @@ import (
"net/http"
)
// AppServiceCertificateOrdersClient is the composite Swagger for WebSite
// Management Client
// AppServiceCertificateOrdersClient is the webSite Management Client
type AppServiceCertificateOrdersClient struct {
ManagementClient
}
// NewAppServiceCertificateOrdersClient creates an instance of the
// AppServiceCertificateOrdersClient client.
// NewAppServiceCertificateOrdersClient creates an instance of the AppServiceCertificateOrdersClient client.
func NewAppServiceCertificateOrdersClient(subscriptionID string) AppServiceCertificateOrdersClient {
return NewAppServiceCertificateOrdersClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewAppServiceCertificateOrdersClientWithBaseURI creates an instance of the
// AppServiceCertificateOrdersClient client.
// NewAppServiceCertificateOrdersClientWithBaseURI creates an instance of the AppServiceCertificateOrdersClient client.
func NewAppServiceCertificateOrdersClientWithBaseURI(baseURI string, subscriptionID string) AppServiceCertificateOrdersClient {
return AppServiceCertificateOrdersClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create or update a certificate purchase order. This method
// may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any
// outstanding HTTP requests.
// CreateOrUpdate create or update a certificate purchase order. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// certificateDistinguishedName is distinguished name to to use for the
// certificate order.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. certificateDistinguishedName is distinguished name to to use for the certificate order.
func (client AppServiceCertificateOrdersClient) CreateOrUpdate(resourceGroupName string, certificateOrderName string, certificateDistinguishedName AppServiceCertificateOrder, cancel <-chan struct{}) (<-chan AppServiceCertificateOrder, <-chan error) {
resultChan := make(chan AppServiceCertificateOrder, 1)
errChan := make(chan error, 1)
@@ -77,8 +70,10 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdate(resourceGroupName
var err error
var result AppServiceCertificateOrder
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -147,15 +142,12 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateResponder(resp *ht
return
}
// CreateOrUpdateCertificate creates or updates a certificate and associates
// with key vault secret. This method may poll for completion. Polling can be
// canceled by passing the cancel channel argument. The channel will be used to
// CreateOrUpdateCertificate creates or updates a certificate and associates with key vault secret. This method may
// poll for completion. Polling can be canceled by passing the cancel channel argument. The channel will be used to
// cancel polling and any outstanding HTTP requests.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order. name is name
// of the certificate. keyVaultCertificate is key vault certificate resource
// Id.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. name is name of the certificate. keyVaultCertificate is key vault certificate resource Id.
func (client AppServiceCertificateOrdersClient) CreateOrUpdateCertificate(resourceGroupName string, certificateOrderName string, name string, keyVaultCertificate AppServiceCertificateResource, cancel <-chan struct{}) (<-chan AppServiceCertificateResource, <-chan error) {
resultChan := make(chan AppServiceCertificateResource, 1)
errChan := make(chan error, 1)
@@ -174,8 +166,10 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateCertificate(resour
var err error
var result AppServiceCertificateResource
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -247,8 +241,8 @@ func (client AppServiceCertificateOrdersClient) CreateOrUpdateCertificateRespond
// Delete delete an existing certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order.
func (client AppServiceCertificateOrdersClient) Delete(resourceGroupName string, certificateOrderName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -318,12 +312,10 @@ func (client AppServiceCertificateOrdersClient) DeleteResponder(resp *http.Respo
return
}
// DeleteCertificate delete the certificate associated with a certificate
// order.
// DeleteCertificate delete the certificate associated with a certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order. name is name
// of the certificate.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. name is name of the certificate.
func (client AppServiceCertificateOrdersClient) DeleteCertificate(resourceGroupName string, certificateOrderName string, name string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -396,8 +388,8 @@ func (client AppServiceCertificateOrdersClient) DeleteCertificateResponder(resp
// Get get a certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order..
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order..
func (client AppServiceCertificateOrdersClient) Get(resourceGroupName string, certificateOrderName string) (result AppServiceCertificateOrder, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -470,9 +462,8 @@ func (client AppServiceCertificateOrdersClient) GetResponder(resp *http.Response
// GetCertificate get the certificate associated with a certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order. name is name
// of the certificate.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. name is name of the certificate.
func (client AppServiceCertificateOrdersClient) GetCertificate(resourceGroupName string, certificateOrderName string, name string) (result AppServiceCertificateResource, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -629,10 +620,54 @@ func (client AppServiceCertificateOrdersClient) ListNextResults(lastResults AppS
return
}
// ListComplete gets all elements from the list without paging.
func (client AppServiceCertificateOrdersClient) ListComplete(cancel <-chan struct{}) (<-chan AppServiceCertificateOrder, <-chan error) {
resultChan := make(chan AppServiceCertificateOrder)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListByResourceGroup get certificate orders in a resource group.
//
// resourceGroupName is name of the resource group to which the resource
// belongs.
// resourceGroupName is name of the resource group to which the resource belongs.
func (client AppServiceCertificateOrdersClient) ListByResourceGroup(resourceGroupName string) (result AppServiceCertificateOrderCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -726,10 +761,55 @@ func (client AppServiceCertificateOrdersClient) ListByResourceGroupNextResults(l
return
}
// ListByResourceGroupComplete gets all elements from the list without paging.
func (client AppServiceCertificateOrdersClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan AppServiceCertificateOrder, <-chan error) {
resultChan := make(chan AppServiceCertificateOrder)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByResourceGroup(resourceGroupName)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListByResourceGroupNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListCertificates list all certificates associated with a certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order.
func (client AppServiceCertificateOrdersClient) ListCertificates(resourceGroupName string, certificateOrderName string) (result AppServiceCertificateCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -824,11 +904,55 @@ func (client AppServiceCertificateOrdersClient) ListCertificatesNextResults(last
return
}
// ListCertificatesComplete gets all elements from the list without paging.
func (client AppServiceCertificateOrdersClient) ListCertificatesComplete(resourceGroupName string, certificateOrderName string, cancel <-chan struct{}) (<-chan AppServiceCertificateResource, <-chan error) {
resultChan := make(chan AppServiceCertificateResource)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListCertificates(resourceGroupName, certificateOrderName)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListCertificatesNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// Reissue reissue an existing certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// reissueCertificateOrderRequest is parameters for the reissue.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. reissueCertificateOrderRequest is parameters for the reissue.
func (client AppServiceCertificateOrdersClient) Reissue(resourceGroupName string, certificateOrderName string, reissueCertificateOrderRequest ReissueCertificateOrderRequest) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -902,9 +1026,8 @@ func (client AppServiceCertificateOrdersClient) ReissueResponder(resp *http.Resp
// Renew renew an existing certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// renewCertificateOrderRequest is renew parameters
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. renewCertificateOrderRequest is renew parameters
func (client AppServiceCertificateOrdersClient) Renew(resourceGroupName string, certificateOrderName string, renewCertificateOrderRequest RenewCertificateOrderRequest) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -978,8 +1101,8 @@ func (client AppServiceCertificateOrdersClient) RenewResponder(resp *http.Respon
// ResendEmail resend certificate email.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order.
func (client AppServiceCertificateOrdersClient) ResendEmail(resourceGroupName string, certificateOrderName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1051,9 +1174,8 @@ func (client AppServiceCertificateOrdersClient) ResendEmailResponder(resp *http.
// ResendRequestEmails verify domain ownership for this certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// nameIdentifier is email address
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. nameIdentifier is email address
func (client AppServiceCertificateOrdersClient) ResendRequestEmails(resourceGroupName string, certificateOrderName string, nameIdentifier NameIdentifier) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1127,8 +1249,8 @@ func (client AppServiceCertificateOrdersClient) ResendRequestEmailsResponder(res
// RetrieveCertificateActions retrieve the list of certificate actions.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the certificate order.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the certificate
// order.
func (client AppServiceCertificateOrdersClient) RetrieveCertificateActions(resourceGroupName string, name string) (result ListCertificateOrderAction, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1201,8 +1323,8 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateActionsRespon
// RetrieveCertificateEmailHistory retrieve email history.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the certificate order.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the certificate
// order.
func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistory(resourceGroupName string, name string) (result ListCertificateEmail, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1275,9 +1397,8 @@ func (client AppServiceCertificateOrdersClient) RetrieveCertificateEmailHistoryR
// RetrieveSiteSeal verify domain ownership for this certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// siteSealRequest is site seal request.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order. siteSealRequest is site seal request.
func (client AppServiceCertificateOrdersClient) RetrieveSiteSeal(resourceGroupName string, certificateOrderName string, siteSealRequest SiteSealRequest) (result SiteSeal, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1427,8 +1548,8 @@ func (client AppServiceCertificateOrdersClient) ValidatePurchaseInformationRespo
// VerifyDomainOwnership verify domain ownership for this certificate order.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. certificateOrderName is name of the certificate order.
// resourceGroupName is name of the resource group to which the resource belongs. certificateOrderName is name of the
// certificate order.
func (client AppServiceCertificateOrdersClient) VerifyDomainOwnership(resourceGroupName string, certificateOrderName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
File diff suppressed because it is too large Load Diff
+392 -122
View File
@@ -14,9 +14,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,31 +24,27 @@ import (
"net/http"
)
// AppServicePlansClient is the composite Swagger for WebSite Management Client
// AppServicePlansClient is the webSite Management Client
type AppServicePlansClient struct {
ManagementClient
}
// NewAppServicePlansClient creates an instance of the AppServicePlansClient
// client.
// NewAppServicePlansClient creates an instance of the AppServicePlansClient client.
func NewAppServicePlansClient(subscriptionID string) AppServicePlansClient {
return NewAppServicePlansClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewAppServicePlansClientWithBaseURI creates an instance of the
// AppServicePlansClient client.
// NewAppServicePlansClientWithBaseURI creates an instance of the AppServicePlansClient client.
func NewAppServicePlansClientWithBaseURI(baseURI string, subscriptionID string) AppServicePlansClient {
return AppServicePlansClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates an App Service Plan. This method may poll
// for completion. Polling can be canceled by passing the cancel channel
// argument. The channel will be used to cancel polling and any outstanding
// HTTP requests.
// CreateOrUpdate creates or updates an App Service Plan. This method may poll for completion. Polling can be canceled
// by passing the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP
// requests.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. appServicePlan is details of
// the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// appServicePlan is details of the App Service plan.
func (client AppServicePlansClient) CreateOrUpdate(resourceGroupName string, name string, appServicePlan AppServicePlan, cancel <-chan struct{}) (<-chan AppServicePlan, <-chan error) {
resultChan := make(chan AppServicePlan, 1)
errChan := make(chan error, 1)
@@ -68,8 +63,10 @@ func (client AppServicePlansClient) CreateOrUpdate(resourceGroupName string, nam
var err error
var result AppServicePlan
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -138,13 +135,11 @@ func (client AppServicePlansClient) CreateOrUpdateResponder(resp *http.Response)
return
}
// CreateOrUpdateVnetRoute create or update a Virtual Network route in an App
// Service plan.
// CreateOrUpdateVnetRoute create or update a Virtual Network route in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network. routeName is name of the Virtual Network route. route is
// definition of the Virtual Network route.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network. routeName is name of the Virtual Network route. route is definition of the
// Virtual Network route.
func (client AppServicePlansClient) CreateOrUpdateVnetRoute(resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute) (result VnetRoute, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -221,8 +216,7 @@ func (client AppServicePlansClient) CreateOrUpdateVnetRouteResponder(resp *http.
// Delete delete an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
func (client AppServicePlansClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -292,12 +286,10 @@ func (client AppServicePlansClient) DeleteResponder(resp *http.Response) (result
return
}
// DeleteHybridConnection delete a Hybrid Connection in use in an App Service
// plan.
// DeleteHybridConnection delete a Hybrid Connection in use in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. namespaceName is name of the
// Service Bus namespace. relayName is name of the Service Bus relay.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// namespaceName is name of the Service Bus namespace. relayName is name of the Service Bus relay.
func (client AppServicePlansClient) DeleteHybridConnection(resourceGroupName string, name string, namespaceName string, relayName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -371,9 +363,8 @@ func (client AppServicePlansClient) DeleteHybridConnectionResponder(resp *http.R
// DeleteVnetRoute delete a Virtual Network route in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network. routeName is name of the Virtual Network route.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network. routeName is name of the Virtual Network route.
func (client AppServicePlansClient) DeleteVnetRoute(resourceGroupName string, name string, vnetName string, routeName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -447,8 +438,7 @@ func (client AppServicePlansClient) DeleteVnetRouteResponder(resp *http.Response
// Get get an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
func (client AppServicePlansClient) Get(resourceGroupName string, name string) (result AppServicePlan, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -519,12 +509,10 @@ func (client AppServicePlansClient) GetResponder(resp *http.Response) (result Ap
return
}
// GetHybridConnection retrieve a Hybrid Connection in use in an App Service
// plan.
// GetHybridConnection retrieve a Hybrid Connection in use in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. namespaceName is name of the
// Service Bus namespace. relayName is name of the Service Bus relay.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// namespaceName is name of the Service Bus namespace. relayName is name of the Service Bus relay.
func (client AppServicePlansClient) GetHybridConnection(resourceGroupName string, name string, namespaceName string, relayName string) (result HybridConnection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -597,11 +585,9 @@ func (client AppServicePlansClient) GetHybridConnectionResponder(resp *http.Resp
return
}
// GetHybridConnectionPlanLimit get the maximum number of Hybrid Connections
// allowed in an App Service plan.
// GetHybridConnectionPlanLimit get the maximum number of Hybrid Connections allowed in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
func (client AppServicePlansClient) GetHybridConnectionPlanLimit(resourceGroupName string, name string) (result HybridConnectionLimits, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -674,9 +660,8 @@ func (client AppServicePlansClient) GetHybridConnectionPlanLimitResponder(resp *
// GetRouteForVnet get a Virtual Network route in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network. routeName is name of the Virtual Network route.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network. routeName is name of the Virtual Network route.
func (client AppServicePlansClient) GetRouteForVnet(resourceGroupName string, name string, vnetName string, routeName string) (result ListVnetRoute, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -749,12 +734,10 @@ func (client AppServicePlansClient) GetRouteForVnetResponder(resp *http.Response
return
}
// GetVnetFromServerFarm get a Virtual Network associated with an App Service
// plan.
// GetVnetFromServerFarm get a Virtual Network associated with an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network.
func (client AppServicePlansClient) GetVnetFromServerFarm(resourceGroupName string, name string, vnetName string) (result VnetInfo, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -828,10 +811,9 @@ func (client AppServicePlansClient) GetVnetFromServerFarmResponder(resp *http.Re
// GetVnetGateway get a Virtual Network gateway.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network. gatewayName is name of the gateway. Only the 'primary'
// gateway is supported.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network. gatewayName is name of the gateway. Only the 'primary' gateway is
// supported.
func (client AppServicePlansClient) GetVnetGateway(resourceGroupName string, name string, vnetName string, gatewayName string) (result VnetGateway, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -906,9 +888,8 @@ func (client AppServicePlansClient) GetVnetGatewayResponder(resp *http.Response)
// List get all App Service plans for a subcription.
//
// detailed is specify <code>true</code> to return all App Service plan
// properties. The default is <code>false</code>, which returns a subset of the
// properties.
// detailed is specify <code>true</code> to return all App Service plan properties. The default is <code>false</code>,
// which returns a subset of the properties.
// Retrieval of all properties may increase the API latency.
func (client AppServicePlansClient) List(detailed *bool) (result AppServicePlanCollection, err error) {
req, err := client.ListPreparer(detailed)
@@ -997,10 +978,54 @@ func (client AppServicePlansClient) ListNextResults(lastResults AppServicePlanCo
return
}
// ListComplete gets all elements from the list without paging.
func (client AppServicePlansClient) ListComplete(detailed *bool, cancel <-chan struct{}) (<-chan AppServicePlan, <-chan error) {
resultChan := make(chan AppServicePlan)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(detailed)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListByResourceGroup get all App Service plans in a resource group.
//
// resourceGroupName is name of the resource group to which the resource
// belongs.
// resourceGroupName is name of the resource group to which the resource belongs.
func (client AppServicePlansClient) ListByResourceGroup(resourceGroupName string) (result AppServicePlanCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1094,10 +1119,54 @@ func (client AppServicePlansClient) ListByResourceGroupNextResults(lastResults A
return
}
// ListByResourceGroupComplete gets all elements from the list without paging.
func (client AppServicePlansClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan AppServicePlan, <-chan error) {
resultChan := make(chan AppServicePlan)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByResourceGroup(resourceGroupName)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListByResourceGroupNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListCapabilities list all capabilities of an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
func (client AppServicePlansClient) ListCapabilities(resourceGroupName string, name string) (result ListCapability, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1168,12 +1237,10 @@ func (client AppServicePlansClient) ListCapabilitiesResponder(resp *http.Respons
return
}
// ListHybridConnectionKeys get the send key name and value of a Hybrid
// Connection.
// ListHybridConnectionKeys get the send key name and value of a Hybrid Connection.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. namespaceName is the name of
// the Service Bus namespace. relayName is the name of the Service Bus relay.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// namespaceName is the name of the Service Bus namespace. relayName is the name of the Service Bus relay.
func (client AppServicePlansClient) ListHybridConnectionKeys(resourceGroupName string, name string, namespaceName string, relayName string) (result HybridConnectionKey, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1246,11 +1313,9 @@ func (client AppServicePlansClient) ListHybridConnectionKeysResponder(resp *http
return
}
// ListHybridConnections retrieve all Hybrid Connections in use in an App
// Service plan.
// ListHybridConnections retrieve all Hybrid Connections in use in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
func (client AppServicePlansClient) ListHybridConnections(resourceGroupName string, name string) (result HybridConnectionCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1345,11 +1410,54 @@ func (client AppServicePlansClient) ListHybridConnectionsNextResults(lastResults
return
}
// ListMetricDefintions get metrics that can be queried for an App Service
// plan, and their definitions.
// ListHybridConnectionsComplete gets all elements from the list without paging.
func (client AppServicePlansClient) ListHybridConnectionsComplete(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan HybridConnection, <-chan error) {
resultChan := make(chan HybridConnection)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListHybridConnections(resourceGroupName, name)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListHybridConnectionsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListMetricDefintions get metrics that can be queried for an App Service plan, and their definitions.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
func (client AppServicePlansClient) ListMetricDefintions(resourceGroupName string, name string) (result ResourceMetricDefinitionCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1444,16 +1552,58 @@ func (client AppServicePlansClient) ListMetricDefintionsNextResults(lastResults
return
}
// ListMetricDefintionsComplete gets all elements from the list without paging.
func (client AppServicePlansClient) ListMetricDefintionsComplete(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan ResourceMetricDefinition, <-chan error) {
resultChan := make(chan ResourceMetricDefinition)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListMetricDefintions(resourceGroupName, name)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListMetricDefintionsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListMetrics get metrics for an App Serice plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. details is specify
// <code>true</code> to include instance details. The default is
// <code>false</code>. filter is return only usages/metrics specified in the
// filter. Filter conforms to odata syntax. Example: $filter=(name.value eq
// 'Metric1' or name.value eq 'Metric2') and startTime eq
// '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain
// eq duration'[Hour|Minute|Day]'.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// details is specify <code>true</code> to include instance details. The default is <code>false</code>. filter is
// return only usages/metrics specified in the filter. Filter conforms to odata syntax. Example: $filter=(name.value eq
// 'Metric1' or name.value eq 'Metric2') and startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z'
// and timeGrain eq duration'[Hour|Minute|Day]'.
func (client AppServicePlansClient) ListMetrics(resourceGroupName string, name string, details *bool, filter string) (result ResourceMetricCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1554,12 +1704,55 @@ func (client AppServicePlansClient) ListMetricsNextResults(lastResults ResourceM
return
}
// ListRoutesForVnet get all routes that are associated with a Virtual Network
// in an App Service plan.
// ListMetricsComplete gets all elements from the list without paging.
func (client AppServicePlansClient) ListMetricsComplete(resourceGroupName string, name string, details *bool, filter string, cancel <-chan struct{}) (<-chan ResourceMetric, <-chan error) {
resultChan := make(chan ResourceMetric)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListMetrics(resourceGroupName, name, details, filter)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListMetricsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListRoutesForVnet get all routes that are associated with a Virtual Network in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network.
func (client AppServicePlansClient) ListRoutesForVnet(resourceGroupName string, name string, vnetName string) (result ListVnetRoute, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1633,8 +1826,7 @@ func (client AppServicePlansClient) ListRoutesForVnetResponder(resp *http.Respon
// ListVnets get all Virtual Networks associated with an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
func (client AppServicePlansClient) ListVnets(resourceGroupName string, name string) (result ListVnetInfo, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1707,14 +1899,11 @@ func (client AppServicePlansClient) ListVnetsResponder(resp *http.Response) (res
// ListWebApps get all apps associated with an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. skipToken is skip to a web
// app in the list of webapps associated with app service plan. If specified,
// the resulting list will contain web apps starting from (including) the
// skipToken. Otherwise, the resulting list contains web apps from the start of
// the list filter is supported filter: $filter=state eq running. Returns only
// web apps that are currently running top is list page size. If specified,
// results are paged.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// skipToken is skip to a web app in the list of webapps associated with app service plan. If specified, the resulting
// list will contain web apps starting from (including) the skipToken. Otherwise, the resulting list contains web apps
// from the start of the list filter is supported filter: $filter=state eq running. Returns only web apps that are
// currently running top is list page size. If specified, results are paged.
func (client AppServicePlansClient) ListWebApps(resourceGroupName string, name string, skipToken string, filter string, top string) (result AppCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1818,13 +2007,55 @@ func (client AppServicePlansClient) ListWebAppsNextResults(lastResults AppCollec
return
}
// ListWebAppsByHybridConnection get all apps that use a Hybrid Connection in
// an App Service Plan.
// ListWebAppsComplete gets all elements from the list without paging.
func (client AppServicePlansClient) ListWebAppsComplete(resourceGroupName string, name string, skipToken string, filter string, top string, cancel <-chan struct{}) (<-chan Site, <-chan error) {
resultChan := make(chan Site)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListWebApps(resourceGroupName, name, skipToken, filter, top)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListWebAppsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListWebAppsByHybridConnection get all apps that use a Hybrid Connection in an App Service Plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. namespaceName is name of the
// Hybrid Connection namespace. relayName is name of the Hybrid Connection
// relay.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// namespaceName is name of the Hybrid Connection namespace. relayName is name of the Hybrid Connection relay.
func (client AppServicePlansClient) ListWebAppsByHybridConnection(resourceGroupName string, name string, namespaceName string, relayName string) (result ResourceCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1921,11 +2152,55 @@ func (client AppServicePlansClient) ListWebAppsByHybridConnectionNextResults(las
return
}
// ListWebAppsByHybridConnectionComplete gets all elements from the list without paging.
func (client AppServicePlansClient) ListWebAppsByHybridConnectionComplete(resourceGroupName string, name string, namespaceName string, relayName string, cancel <-chan struct{}) (<-chan string, <-chan error) {
resultChan := make(chan string)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListWebAppsByHybridConnection(resourceGroupName, name, namespaceName, relayName)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListWebAppsByHybridConnectionNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// RebootWorker reboot a worker machine in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. workerName is name of worker
// machine, which typically starts with RD.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// workerName is name of worker machine, which typically starts with RD.
func (client AppServicePlansClient) RebootWorker(resourceGroupName string, name string, workerName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -1998,11 +2273,9 @@ func (client AppServicePlansClient) RebootWorkerResponder(resp *http.Response) (
// RestartWebApps restart all apps in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. softRestart is specify
// <code>true</code> to performa a soft restart, applies the configuration
// settings and restarts the apps if necessary. The default is
// <code>false</code>, which always restarts and reprovisions the apps
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// softRestart is specify <code>true</code> to performa a soft restart, applies the configuration settings and restarts
// the apps if necessary. The default is <code>false</code>, which always restarts and reprovisions the apps
func (client AppServicePlansClient) RestartWebApps(resourceGroupName string, name string, softRestart *bool) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -2077,10 +2350,9 @@ func (client AppServicePlansClient) RestartWebAppsResponder(resp *http.Response)
// UpdateVnetGateway update a Virtual Network gateway.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network. gatewayName is name of the gateway. Only the 'primary'
// gateway is supported. connectionEnvelope is definition of the gateway.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network. gatewayName is name of the gateway. Only the 'primary' gateway is
// supported. connectionEnvelope is definition of the gateway.
func (client AppServicePlansClient) UpdateVnetGateway(resourceGroupName string, name string, vnetName string, gatewayName string, connectionEnvelope VnetGateway) (result VnetGateway, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -2155,13 +2427,11 @@ func (client AppServicePlansClient) UpdateVnetGatewayResponder(resp *http.Respon
return
}
// UpdateVnetRoute create or update a Virtual Network route in an App Service
// plan.
// UpdateVnetRoute create or update a Virtual Network route in an App Service plan.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the App Service plan. vnetName is name of the
// Virtual Network. routeName is name of the Virtual Network route. route is
// definition of the Virtual Network route.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the App Service plan.
// vnetName is name of the Virtual Network. routeName is name of the Virtual Network route. route is definition of the
// Virtual Network route.
func (client AppServicePlansClient) UpdateVnetRoute(resourceGroupName string, name string, vnetName string, routeName string, route VnetRoute) (result VnetRoute, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
+101 -18
View File
@@ -14,9 +14,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,7 +24,7 @@ import (
"net/http"
)
// CertificatesClient is the composite Swagger for WebSite Management Client
// CertificatesClient is the webSite Management Client
type CertificatesClient struct {
ManagementClient
}
@@ -35,17 +34,15 @@ func NewCertificatesClient(subscriptionID string) CertificatesClient {
return NewCertificatesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewCertificatesClientWithBaseURI creates an instance of the
// CertificatesClient client.
// NewCertificatesClientWithBaseURI creates an instance of the CertificatesClient client.
func NewCertificatesClientWithBaseURI(baseURI string, subscriptionID string) CertificatesClient {
return CertificatesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create or update a certificate.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the certificate. certificateEnvelope is details of
// certificate, if it exists already.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the certificate.
// certificateEnvelope is details of certificate, if it exists already.
func (client CertificatesClient) CreateOrUpdate(resourceGroupName string, name string, certificateEnvelope Certificate) (result Certificate, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -120,8 +117,7 @@ func (client CertificatesClient) CreateOrUpdateResponder(resp *http.Response) (r
// Delete delete a certificate.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the certificate.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the certificate.
func (client CertificatesClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -193,8 +189,7 @@ func (client CertificatesClient) DeleteResponder(resp *http.Response) (result au
// Get get a certificate.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the certificate.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the certificate.
func (client CertificatesClient) Get(resourceGroupName string, name string) (result Certificate, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -350,10 +345,54 @@ func (client CertificatesClient) ListNextResults(lastResults CertificateCollecti
return
}
// ListComplete gets all elements from the list without paging.
func (client CertificatesClient) ListComplete(cancel <-chan struct{}) (<-chan Certificate, <-chan error) {
resultChan := make(chan Certificate)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListByResourceGroup get all certificates in a resource group.
//
// resourceGroupName is name of the resource group to which the resource
// belongs.
// resourceGroupName is name of the resource group to which the resource belongs.
func (client CertificatesClient) ListByResourceGroup(resourceGroupName string) (result CertificateCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -447,11 +486,55 @@ func (client CertificatesClient) ListByResourceGroupNextResults(lastResults Cert
return
}
// ListByResourceGroupComplete gets all elements from the list without paging.
func (client CertificatesClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Certificate, <-chan error) {
resultChan := make(chan Certificate)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByResourceGroup(resourceGroupName)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListByResourceGroupNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// Update create or update a certificate.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. name is name of the certificate. certificateEnvelope is details of
// certificate, if it exists already.
// resourceGroupName is name of the resource group to which the resource belongs. name is name of the certificate.
// certificateEnvelope is details of certificate, if it exists already.
func (client CertificatesClient) Update(resourceGroupName string, name string, certificateEnvelope Certificate) (result Certificate, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
+213 -17
View File
@@ -1,6 +1,6 @@
// Package web implements the Azure ARM Web service API version .
//
// Composite Swagger for WebSite Management Client
// WebSite Management Client
package web
// Copyright (c) Microsoft and contributors. All rights reserved.
@@ -17,9 +17,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -184,9 +183,8 @@ func (client ManagementClient) GetPublishingUserResponder(resp *http.Response) (
// ListGeoRegions get a list of available geographical regions.
//
// sku is name of SKU used to filter the regions. linuxWorkersEnabled is
// specify <code>true</code> if you want to filter to only regions that support
// Linux workers.
// sku is name of SKU used to filter the regions. linuxWorkersEnabled is specify <code>true</code> if you want to
// filter to only regions that support Linux workers.
func (client ManagementClient) ListGeoRegions(sku SkuName, linuxWorkersEnabled *bool) (result GeoRegionCollection, err error) {
req, err := client.ListGeoRegionsPreparer(sku, linuxWorkersEnabled)
if err != nil {
@@ -277,6 +275,51 @@ func (client ManagementClient) ListGeoRegionsNextResults(lastResults GeoRegionCo
return
}
// ListGeoRegionsComplete gets all elements from the list without paging.
func (client ManagementClient) ListGeoRegionsComplete(sku SkuName, linuxWorkersEnabled *bool, cancel <-chan struct{}) (<-chan GeoRegion, <-chan error) {
resultChan := make(chan GeoRegion)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListGeoRegions(sku, linuxWorkersEnabled)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListGeoRegionsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListPremierAddOnOffers list all premier add-on offers.
func (client ManagementClient) ListPremierAddOnOffers() (result PremierAddOnOfferCollection, err error) {
req, err := client.ListPremierAddOnOffersPreparer()
@@ -362,6 +405,51 @@ func (client ManagementClient) ListPremierAddOnOffersNextResults(lastResults Pre
return
}
// ListPremierAddOnOffersComplete gets all elements from the list without paging.
func (client ManagementClient) ListPremierAddOnOffersComplete(cancel <-chan struct{}) (<-chan PremierAddOnOffer, <-chan error) {
resultChan := make(chan PremierAddOnOffer)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListPremierAddOnOffers()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListPremierAddOnOffersNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListSkus list all SKUs.
func (client ManagementClient) ListSkus() (result SkuInfos, err error) {
req, err := client.ListSkusPreparer()
@@ -504,11 +592,55 @@ func (client ManagementClient) ListSourceControlsNextResults(lastResults SourceC
return
}
// ListSourceControlsComplete gets all elements from the list without paging.
func (client ManagementClient) ListSourceControlsComplete(cancel <-chan struct{}) (<-chan SourceControl, <-chan error) {
resultChan := make(chan SourceControl)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListSourceControls()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListSourceControlsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// Move move resources between resource groups.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. moveResourceEnvelope is object that represents the resource to
// move.
// resourceGroupName is name of the resource group to which the resource belongs. moveResourceEnvelope is object that
// represents the resource to move.
func (client ManagementClient) Move(resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -648,8 +780,7 @@ func (client ManagementClient) UpdatePublishingUserResponder(resp *http.Response
// UpdateSourceControl updates source control token
//
// sourceControlType is type of source control requestMessage is source control
// token information
// sourceControlType is type of source control requestMessage is source control token information
func (client ManagementClient) UpdateSourceControl(sourceControlType string, requestMessage SourceControl) (result SourceControl, err error) {
req, err := client.UpdateSourceControlPreparer(sourceControlType, requestMessage)
if err != nil {
@@ -714,8 +845,8 @@ func (client ManagementClient) UpdateSourceControlResponder(resp *http.Response)
// Validate validate if a resource can be created.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. validateRequest is request with the resources to validate.
// resourceGroupName is name of the resource group to which the resource belongs. validateRequest is request with the
// resources to validate.
func (client ManagementClient) Validate(resourceGroupName string, validateRequest ValidateRequest) (result ValidateResponse, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -796,9 +927,8 @@ func (client ManagementClient) ValidateResponder(resp *http.Response) (result Va
// ValidateMove validate whether a resource can be moved.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. moveResourceEnvelope is object that represents the resource to
// move.
// resourceGroupName is name of the resource group to which the resource belongs. moveResourceEnvelope is object that
// represents the resource to move.
func (client ManagementClient) ValidateMove(resourceGroupName string, moveResourceEnvelope CsmMoveResourceEnvelope) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -874,3 +1004,69 @@ func (client ManagementClient) ValidateMoveResponder(resp *http.Response) (resul
result.Response = resp
return
}
// VerifyHostingEnvironmentVnet verifies if this VNET is compatible with an App Service Environment by analyzing the
// Network Security Group rules.
//
// parameters is VNET information
func (client ManagementClient) VerifyHostingEnvironmentVnet(parameters VnetParameters) (result VnetValidationFailureDetails, err error) {
req, err := client.VerifyHostingEnvironmentVnetPreparer(parameters)
if err != nil {
err = autorest.NewErrorWithError(err, "web.ManagementClient", "VerifyHostingEnvironmentVnet", nil, "Failure preparing request")
return
}
resp, err := client.VerifyHostingEnvironmentVnetSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "web.ManagementClient", "VerifyHostingEnvironmentVnet", resp, "Failure sending request")
return
}
result, err = client.VerifyHostingEnvironmentVnetResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "web.ManagementClient", "VerifyHostingEnvironmentVnet", resp, "Failure responding to request")
}
return
}
// VerifyHostingEnvironmentVnetPreparer prepares the VerifyHostingEnvironmentVnet request.
func (client ManagementClient) VerifyHostingEnvironmentVnetPreparer(parameters VnetParameters) (*http.Request, error) {
pathParameters := map[string]interface{}{
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2016-03-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsJSON(),
autorest.AsPost(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Web/verifyHostingEnvironmentVnet", pathParameters),
autorest.WithJSON(parameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare(&http.Request{})
}
// VerifyHostingEnvironmentVnetSender sends the VerifyHostingEnvironmentVnet request. The method will close the
// http.Response Body if it receives an error.
func (client ManagementClient) VerifyHostingEnvironmentVnetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
}
// VerifyHostingEnvironmentVnetResponder handles the response to the VerifyHostingEnvironmentVnet request. The method always
// closes the http.Response Body.
func (client ManagementClient) VerifyHostingEnvironmentVnetResponder(resp *http.Response) (result VnetValidationFailureDetails, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
+49 -105
View File
@@ -14,30 +14,26 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/azure"
"github.com/Azure/go-autorest/autorest/validation"
"net/http"
)
// DeletedWebAppsClient is the composite Swagger for WebSite Management Client
// DeletedWebAppsClient is the webSite Management Client
type DeletedWebAppsClient struct {
ManagementClient
}
// NewDeletedWebAppsClient creates an instance of the DeletedWebAppsClient
// client.
// NewDeletedWebAppsClient creates an instance of the DeletedWebAppsClient client.
func NewDeletedWebAppsClient(subscriptionID string) DeletedWebAppsClient {
return NewDeletedWebAppsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewDeletedWebAppsClientWithBaseURI creates an instance of the
// DeletedWebAppsClient client.
// NewDeletedWebAppsClientWithBaseURI creates an instance of the DeletedWebAppsClient client.
func NewDeletedWebAppsClientWithBaseURI(baseURI string, subscriptionID string) DeletedWebAppsClient {
return DeletedWebAppsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
@@ -77,7 +73,7 @@ func (client DeletedWebAppsClient) ListPreparer() (*http.Request, error) {
}
preparer := autorest.CreatePreparer(
autorest.AsPost(),
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites", pathParameters),
autorest.WithQueryParameters(queryParameters))
@@ -127,99 +123,47 @@ func (client DeletedWebAppsClient) ListNextResults(lastResults DeletedWebAppColl
return
}
// ListByResourceGroup gets deleted web apps in subscription.
//
// resourceGroupName is name of the resource group to which the resource
// belongs.
func (client DeletedWebAppsClient) ListByResourceGroup(resourceGroupName string) (result DeletedWebAppCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil},
{Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil},
{Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+[^\.]$`, Chain: nil}}}}); err != nil {
return result, validation.NewErrorWithValidationError(err, "web.DeletedWebAppsClient", "ListByResourceGroup")
}
req, err := client.ListByResourceGroupPreparer(resourceGroupName)
if err != nil {
err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByResourceGroup", nil, "Failure preparing request")
return
}
resp, err := client.ListByResourceGroupSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByResourceGroup", resp, "Failure sending request")
return
}
result, err = client.ListByResourceGroupResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByResourceGroup", resp, "Failure responding to request")
}
return
}
// ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client DeletedWebAppsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error) {
pathParameters := map[string]interface{}{
"resourceGroupName": autorest.Encode("path", resourceGroupName),
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2016-03-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/deletedSites", pathParameters),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare(&http.Request{})
}
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client DeletedWebAppsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
}
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
// closes the http.Response Body.
func (client DeletedWebAppsClient) ListByResourceGroupResponder(resp *http.Response) (result DeletedWebAppCollection, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// ListByResourceGroupNextResults retrieves the next set of results, if any.
func (client DeletedWebAppsClient) ListByResourceGroupNextResults(lastResults DeletedWebAppCollection) (result DeletedWebAppCollection, err error) {
req, err := lastResults.DeletedWebAppCollectionPreparer()
if err != nil {
return result, autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByResourceGroup", nil, "Failure preparing next results request")
}
if req == nil {
return
}
resp, err := client.ListByResourceGroupSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
return result, autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByResourceGroup", resp, "Failure sending next results request")
}
result, err = client.ListByResourceGroupResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "web.DeletedWebAppsClient", "ListByResourceGroup", resp, "Failure responding to next results request")
}
return
// ListComplete gets all elements from the list without paging.
func (client DeletedWebAppsClient) ListComplete(cancel <-chan struct{}) (<-chan DeletedSite, <-chan error) {
resultChan := make(chan DeletedSite)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
+208 -39
View File
@@ -14,9 +14,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,7 +24,7 @@ import (
"net/http"
)
// DomainsClient is the composite Swagger for WebSite Management Client
// DomainsClient is the webSite Management Client
type DomainsClient struct {
ManagementClient
}
@@ -105,14 +104,11 @@ func (client DomainsClient) CheckAvailabilityResponder(resp *http.Response) (res
return
}
// CreateOrUpdate creates or updates a domain. This method may poll for
// completion. Polling can be canceled by passing the cancel channel argument.
// The channel will be used to cancel polling and any outstanding HTTP
// requests.
// CreateOrUpdate creates or updates a domain. This method may poll for completion. Polling can be canceled by passing
// the cancel channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of the domain. domain is domain registration
// information.
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of the domain.
// domain is domain registration information.
func (client DomainsClient) CreateOrUpdate(resourceGroupName string, domainName string, domain Domain, cancel <-chan struct{}) (<-chan Domain, <-chan error) {
resultChan := make(chan Domain, 1)
errChan := make(chan error, 1)
@@ -188,8 +184,10 @@ func (client DomainsClient) CreateOrUpdate(resourceGroupName string, domainName
var err error
var result Domain
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -258,13 +256,11 @@ func (client DomainsClient) CreateOrUpdateResponder(resp *http.Response) (result
return
}
// CreateOrUpdateOwnershipIdentifier creates an ownership identifier for a
// domain or updates identifier details for an existing identifer
// CreateOrUpdateOwnershipIdentifier creates an ownership identifier for a domain or updates identifier details for an
// existing identifer
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of domain. name is name of identifier.
// domainOwnershipIdentifier is a JSON representation of the domain ownership
// properties.
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of domain. name is
// name of identifier. domainOwnershipIdentifier is a JSON representation of the domain ownership properties.
func (client DomainsClient) CreateOrUpdateOwnershipIdentifier(resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier) (result DomainOwnershipIdentifier, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -340,9 +336,8 @@ func (client DomainsClient) CreateOrUpdateOwnershipIdentifierResponder(resp *htt
// Delete delete a domain.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of the domain. forceHardDeleteDomain is specify
// <code>true</code> to delete the domain immediately. The default is
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of the domain.
// forceHardDeleteDomain is specify <code>true</code> to delete the domain immediately. The default is
// <code>false</code> which deletes the domain after 24 hours.
func (client DomainsClient) Delete(resourceGroupName string, domainName string, forceHardDeleteDomain *bool) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
@@ -418,8 +413,8 @@ func (client DomainsClient) DeleteResponder(resp *http.Response) (result autores
// DeleteOwnershipIdentifier delete ownership identifier for domain
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of domain. name is name of identifier.
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of domain. name is
// name of identifier.
func (client DomainsClient) DeleteOwnershipIdentifier(resourceGroupName string, domainName string, name string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -492,8 +487,7 @@ func (client DomainsClient) DeleteOwnershipIdentifierResponder(resp *http.Respon
// Get get a domain.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of the domain.
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of the domain.
func (client DomainsClient) Get(resourceGroupName string, domainName string) (result Domain, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -564,8 +558,7 @@ func (client DomainsClient) GetResponder(resp *http.Response) (result Domain, er
return
}
// GetControlCenterSsoRequest generate a single sign-on request for the domain
// management portal.
// GetControlCenterSsoRequest generate a single sign-on request for the domain management portal.
func (client DomainsClient) GetControlCenterSsoRequest() (result DomainControlCenterSsoRequest, err error) {
req, err := client.GetControlCenterSsoRequestPreparer()
if err != nil {
@@ -628,8 +621,8 @@ func (client DomainsClient) GetControlCenterSsoRequestResponder(resp *http.Respo
// GetOwnershipIdentifier get ownership identifier for domain
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of domain. name is name of identifier.
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of domain. name is
// name of identifier.
func (client DomainsClient) GetOwnershipIdentifier(resourceGroupName string, domainName string, name string) (result DomainOwnershipIdentifier, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -786,10 +779,54 @@ func (client DomainsClient) ListNextResults(lastResults DomainCollection) (resul
return
}
// ListComplete gets all elements from the list without paging.
func (client DomainsClient) ListComplete(cancel <-chan struct{}) (<-chan Domain, <-chan error) {
resultChan := make(chan Domain)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListByResourceGroup get all domains in a resource group.
//
// resourceGroupName is name of the resource group to which the resource
// belongs.
// resourceGroupName is name of the resource group to which the resource belongs.
func (client DomainsClient) ListByResourceGroup(resourceGroupName string) (result DomainCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -883,10 +920,54 @@ func (client DomainsClient) ListByResourceGroupNextResults(lastResults DomainCol
return
}
// ListByResourceGroupComplete gets all elements from the list without paging.
func (client DomainsClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Domain, <-chan error) {
resultChan := make(chan Domain)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByResourceGroup(resourceGroupName)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListByResourceGroupNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListOwnershipIdentifiers lists domain ownership identifiers.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of domain.
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of domain.
func (client DomainsClient) ListOwnershipIdentifiers(resourceGroupName string, domainName string) (result DomainOwnershipIdentifierCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -981,6 +1062,51 @@ func (client DomainsClient) ListOwnershipIdentifiersNextResults(lastResults Doma
return
}
// ListOwnershipIdentifiersComplete gets all elements from the list without paging.
func (client DomainsClient) ListOwnershipIdentifiersComplete(resourceGroupName string, domainName string, cancel <-chan struct{}) (<-chan DomainOwnershipIdentifier, <-chan error) {
resultChan := make(chan DomainOwnershipIdentifier)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListOwnershipIdentifiers(resourceGroupName, domainName)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListOwnershipIdentifiersNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListRecommendations get domain name recommendations based on keywords.
//
// parameters is search parameters for domain name recommendations.
@@ -1070,13 +1196,56 @@ func (client DomainsClient) ListRecommendationsNextResults(lastResults NameIdent
return
}
// UpdateOwnershipIdentifier creates an ownership identifier for a domain or
// updates identifier details for an existing identifer
// ListRecommendationsComplete gets all elements from the list without paging.
func (client DomainsClient) ListRecommendationsComplete(parameters DomainRecommendationSearchParameters, cancel <-chan struct{}) (<-chan NameIdentifier, <-chan error) {
resultChan := make(chan NameIdentifier)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListRecommendations(parameters)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListRecommendationsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// UpdateOwnershipIdentifier creates an ownership identifier for a domain or updates identifier details for an existing
// identifer
//
// resourceGroupName is name of the resource group to which the resource
// belongs. domainName is name of domain. name is name of identifier.
// domainOwnershipIdentifier is a JSON representation of the domain ownership
// properties.
// resourceGroupName is name of the resource group to which the resource belongs. domainName is name of domain. name is
// name of identifier. domainOwnershipIdentifier is a JSON representation of the domain ownership properties.
func (client DomainsClient) UpdateOwnershipIdentifier(resourceGroupName string, domainName string, name string, domainOwnershipIdentifier DomainOwnershipIdentifier) (result DomainOwnershipIdentifier, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
File diff suppressed because it is too large Load Diff
+131 -8
View File
@@ -14,9 +14,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -24,7 +23,7 @@ import (
"net/http"
)
// ProviderClient is the composite Swagger for WebSite Management Client
// ProviderClient is the webSite Management Client
type ProviderClient struct {
ManagementClient
}
@@ -34,8 +33,7 @@ func NewProviderClient(subscriptionID string) ProviderClient {
return NewProviderClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewProviderClientWithBaseURI creates an instance of the ProviderClient
// client.
// NewProviderClientWithBaseURI creates an instance of the ProviderClient client.
func NewProviderClientWithBaseURI(baseURI string, subscriptionID string) ProviderClient {
return ProviderClient{NewWithBaseURI(baseURI, subscriptionID)}
}
@@ -97,8 +95,7 @@ func (client ProviderClient) GetAvailableStacksResponder(resp *http.Response) (r
return
}
// GetAvailableStacksOnPrem get available application frameworks and their
// versions
// GetAvailableStacksOnPrem get available application frameworks and their versions
func (client ProviderClient) GetAvailableStacksOnPrem() (result SetObject, err error) {
req, err := client.GetAvailableStacksOnPremPreparer()
if err != nil {
@@ -158,3 +155,129 @@ func (client ProviderClient) GetAvailableStacksOnPremResponder(resp *http.Respon
result.Response = autorest.Response{Response: resp}
return
}
// ListOperations sends the list operations request.
func (client ProviderClient) ListOperations() (result CsmOperationCollection, err error) {
req, err := client.ListOperationsPreparer()
if err != nil {
err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", nil, "Failure preparing request")
return
}
resp, err := client.ListOperationsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure sending request")
return
}
result, err = client.ListOperationsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure responding to request")
}
return
}
// ListOperationsPreparer prepares the ListOperations request.
func (client ProviderClient) ListOperationsPreparer() (*http.Request, error) {
const APIVersion = "2016-03-01"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
preparer := autorest.CreatePreparer(
autorest.AsGet(),
autorest.WithBaseURL(client.BaseURI),
autorest.WithPath("/providers/Microsoft.Web/operations"),
autorest.WithQueryParameters(queryParameters))
return preparer.Prepare(&http.Request{})
}
// ListOperationsSender sends the ListOperations request. The method will close the
// http.Response Body if it receives an error.
func (client ProviderClient) ListOperationsSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
}
// ListOperationsResponder handles the response to the ListOperations request. The method always
// closes the http.Response Body.
func (client ProviderClient) ListOperationsResponder(resp *http.Response) (result CsmOperationCollection, err error) {
err = autorest.Respond(
resp,
client.ByInspecting(),
azure.WithErrorUnlessStatusCode(http.StatusOK),
autorest.ByUnmarshallingJSON(&result),
autorest.ByClosing())
result.Response = autorest.Response{Response: resp}
return
}
// ListOperationsNextResults retrieves the next set of results, if any.
func (client ProviderClient) ListOperationsNextResults(lastResults CsmOperationCollection) (result CsmOperationCollection, err error) {
req, err := lastResults.CsmOperationCollectionPreparer()
if err != nil {
return result, autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", nil, "Failure preparing next results request")
}
if req == nil {
return
}
resp, err := client.ListOperationsSender(req)
if err != nil {
result.Response = autorest.Response{Response: resp}
return result, autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure sending next results request")
}
result, err = client.ListOperationsResponder(resp)
if err != nil {
err = autorest.NewErrorWithError(err, "web.ProviderClient", "ListOperations", resp, "Failure responding to next results request")
}
return
}
// ListOperationsComplete gets all elements from the list without paging.
func (client ProviderClient) ListOperationsComplete(cancel <-chan struct{}) (<-chan CsmOperationDescription, <-chan error) {
resultChan := make(chan CsmOperationDescription)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListOperations()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListOperationsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
+24 -39
View File
@@ -14,9 +14,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -25,27 +24,24 @@ import (
"net/http"
)
// RecommendationsClient is the composite Swagger for WebSite Management Client
// RecommendationsClient is the webSite Management Client
type RecommendationsClient struct {
ManagementClient
}
// NewRecommendationsClient creates an instance of the RecommendationsClient
// client.
// NewRecommendationsClient creates an instance of the RecommendationsClient client.
func NewRecommendationsClient(subscriptionID string) RecommendationsClient {
return NewRecommendationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewRecommendationsClientWithBaseURI creates an instance of the
// RecommendationsClient client.
// NewRecommendationsClientWithBaseURI creates an instance of the RecommendationsClient client.
func NewRecommendationsClientWithBaseURI(baseURI string, subscriptionID string) RecommendationsClient {
return RecommendationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// DisableAllForWebApp disable all recommendations for an app.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. siteName is name of the app.
// resourceGroupName is name of the resource group to which the resource belongs. siteName is name of the app.
func (client RecommendationsClient) DisableAllForWebApp(resourceGroupName string, siteName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -117,10 +113,9 @@ func (client RecommendationsClient) DisableAllForWebAppResponder(resp *http.Resp
// GetRuleDetailsByWebApp get a recommendation rule for an app.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. siteName is name of the app. name is name of the recommendation.
// updateSeen is specify <code>true</code> to update the last-seen timestamp of
// the recommendation object.
// resourceGroupName is name of the resource group to which the resource belongs. siteName is name of the app. name is
// name of the recommendation. updateSeen is specify <code>true</code> to update the last-seen timestamp of the
// recommendation object.
func (client RecommendationsClient) GetRuleDetailsByWebApp(resourceGroupName string, siteName string, name string, updateSeen *bool) (result RecommendationRule, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -197,12 +192,10 @@ func (client RecommendationsClient) GetRuleDetailsByWebAppResponder(resp *http.R
// List list all recommendations for a subscription.
//
// featured is specify <code>true</code> to return only the most critical
// recommendations. The default is <code>false</code>, which returns all
// recommendations. filter is filter is specified by using OData syntax.
// Example: $filter=channels eq 'Api' or channel eq 'Notification' and
// startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z'
// and timeGrain eq duration'[PT1H|PT1M|P1D]
// featured is specify <code>true</code> to return only the most critical recommendations. The default is
// <code>false</code>, which returns all recommendations. filter is filter is specified by using OData syntax. Example:
// $filter=channels eq 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq
// '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D]
func (client RecommendationsClient) List(featured *bool, filter string) (result ListRecommendation, err error) {
req, err := client.ListPreparer(featured, filter)
if err != nil {
@@ -269,14 +262,11 @@ func (client RecommendationsClient) ListResponder(resp *http.Response) (result L
return
}
// ListHistoryForWebApp get past recommendations for an app, optionally
// specified by the time range.
// ListHistoryForWebApp get past recommendations for an app, optionally specified by the time range.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. siteName is name of the app. filter is filter is specified by using
// OData syntax. Example: $filter=channels eq 'Api' or channel eq
// 'Notification' and startTime eq '2014-01-01T00:00:00Z' and endTime eq
// '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D]
// resourceGroupName is name of the resource group to which the resource belongs. siteName is name of the app. filter
// is filter is specified by using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification' and
// startTime eq '2014-01-01T00:00:00Z' and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq duration'[PT1H|PT1M|P1D]
func (client RecommendationsClient) ListHistoryForWebApp(resourceGroupName string, siteName string, filter string) (result ListRecommendation, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -352,12 +342,10 @@ func (client RecommendationsClient) ListHistoryForWebAppResponder(resp *http.Res
// ListRecommendedRulesForWebApp get all recommendations for an app.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. siteName is name of the app. featured is specify <code>true</code>
// to return only the most critical recommendations. The default is
// <code>false</code>, which returns all recommendations. filter is return only
// channels specified in the filter. Filter is specified by using OData syntax.
// Example: $filter=channels eq 'Api' or channel eq 'Notification'
// resourceGroupName is name of the resource group to which the resource belongs. siteName is name of the app. featured
// is specify <code>true</code> to return only the most critical recommendations. The default is <code>false</code>,
// which returns all recommendations. filter is return only channels specified in the filter. Filter is specified by
// using OData syntax. Example: $filter=channels eq 'Api' or channel eq 'Notification'
func (client RecommendationsClient) ListRecommendedRulesForWebApp(resourceGroupName string, siteName string, featured *bool, filter string) (result ListRecommendation, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -434,8 +422,7 @@ func (client RecommendationsClient) ListRecommendedRulesForWebAppResponder(resp
return
}
// ResetAllFilters reset all recommendation opt-out settings for a
// subscription.
// ResetAllFilters reset all recommendation opt-out settings for a subscription.
func (client RecommendationsClient) ResetAllFilters() (result autorest.Response, err error) {
req, err := client.ResetAllFiltersPreparer()
if err != nil {
@@ -495,11 +482,9 @@ func (client RecommendationsClient) ResetAllFiltersResponder(resp *http.Response
return
}
// ResetAllFiltersForWebApp reset all recommendation opt-out settings for an
// app.
// ResetAllFiltersForWebApp reset all recommendation opt-out settings for an app.
//
// resourceGroupName is name of the resource group to which the resource
// belongs. siteName is name of the app.
// resourceGroupName is name of the resource group to which the resource belongs. siteName is name of the app.
func (client RecommendationsClient) ResetAllFiltersForWebApp(resourceGroupName string, siteName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
+97 -12
View File
@@ -14,9 +14,8 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -24,19 +23,17 @@ import (
"net/http"
)
// TopLevelDomainsClient is the composite Swagger for WebSite Management Client
// TopLevelDomainsClient is the webSite Management Client
type TopLevelDomainsClient struct {
ManagementClient
}
// NewTopLevelDomainsClient creates an instance of the TopLevelDomainsClient
// client.
// NewTopLevelDomainsClient creates an instance of the TopLevelDomainsClient client.
func NewTopLevelDomainsClient(subscriptionID string) TopLevelDomainsClient {
return NewTopLevelDomainsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewTopLevelDomainsClientWithBaseURI creates an instance of the
// TopLevelDomainsClient client.
// NewTopLevelDomainsClientWithBaseURI creates an instance of the TopLevelDomainsClient client.
func NewTopLevelDomainsClientWithBaseURI(baseURI string, subscriptionID string) TopLevelDomainsClient {
return TopLevelDomainsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
@@ -190,11 +187,54 @@ func (client TopLevelDomainsClient) ListNextResults(lastResults TopLevelDomainCo
return
}
// ListAgreements gets all legal agreements that user needs to accept before
// purchasing a domain.
// ListComplete gets all elements from the list without paging.
func (client TopLevelDomainsClient) ListComplete(cancel <-chan struct{}) (<-chan TopLevelDomain, <-chan error) {
resultChan := make(chan TopLevelDomain)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List()
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListAgreements gets all legal agreements that user needs to accept before purchasing a domain.
//
// name is name of the top-level domain. agreementOption is domain agreement
// options.
// name is name of the top-level domain. agreementOption is domain agreement options.
func (client TopLevelDomainsClient) ListAgreements(name string, agreementOption TopLevelDomainAgreementOption) (result TldLegalAgreementCollection, err error) {
req, err := client.ListAgreementsPreparer(name, agreementOption)
if err != nil {
@@ -281,3 +321,48 @@ func (client TopLevelDomainsClient) ListAgreementsNextResults(lastResults TldLeg
return
}
// ListAgreementsComplete gets all elements from the list without paging.
func (client TopLevelDomainsClient) ListAgreementsComplete(name string, agreementOption TopLevelDomainAgreementOption, cancel <-chan struct{}) (<-chan TldLegalAgreement, <-chan error) {
resultChan := make(chan TldLegalAgreement)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListAgreements(name, agreementOption)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListAgreementsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
+4 -5
View File
@@ -14,16 +14,15 @@ package web
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/v10.1.0-beta arm-web/"
return "Azure-SDK-For-Go/v11.0.0-beta arm-web/"
}
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return "v10.1.0-beta"
return "v11.0.0-beta"
}