vendor: update all dependencies to latest versions
This commit is contained in:
+208
-39
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user