vendor: update all dependencies to latest versions
This commit is contained in:
+138
-54
@@ -14,9 +14,8 @@ package servermanagement
|
||||
// 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"
|
||||
)
|
||||
|
||||
// GatewayClient is the rEST API for Azure Server Management Service.
|
||||
// GatewayClient is the REST API for Azure Server Management Service.
|
||||
type GatewayClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -40,15 +39,13 @@ func NewGatewayClientWithBaseURI(baseURI string, subscriptionID string) GatewayC
|
||||
return GatewayClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create creates or updates a ManagementService gateway. 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.
|
||||
// Create creates or updates a ManagementService gateway. 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 the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum). gatewayParameters is parameters supplied to
|
||||
// the CreateOrUpdate operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum). gatewayParameters is parameters supplied to the
|
||||
// CreateOrUpdate operation.
|
||||
func (client GatewayClient) Create(resourceGroupName string, gatewayName string, gatewayParameters GatewayParameters, cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -70,8 +67,10 @@ func (client GatewayClient) Create(resourceGroupName string, gatewayName string,
|
||||
var err error
|
||||
var result GatewayResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -142,9 +141,8 @@ func (client GatewayClient) CreateResponder(resp *http.Response) (result Gateway
|
||||
|
||||
// Delete deletes a gateway from a resource group.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) Delete(resourceGroupName string, gatewayName string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -219,11 +217,9 @@ func (client GatewayClient) DeleteResponder(resp *http.Response) (result autores
|
||||
|
||||
// Get gets a gateway.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum) expand is gets subscription credentials which
|
||||
// uniquely identify Microsoft Azure subscription. The subscription ID forms
|
||||
// part of the URI for every service call.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum) expand is gets subscription credentials which uniquely
|
||||
// identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
|
||||
func (client GatewayClient) Get(resourceGroupName string, gatewayName string, expand GatewayExpandOption) (result GatewayResource, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -300,13 +296,11 @@ func (client GatewayClient) GetResponder(resp *http.Response) (result GatewayRes
|
||||
return
|
||||
}
|
||||
|
||||
// GetProfile gets a gateway profile. 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.
|
||||
// GetProfile gets a gateway profile. 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 the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) GetProfile(resourceGroupName string, gatewayName string, cancel <-chan struct{}) (<-chan GatewayProfile, <-chan error) {
|
||||
resultChan := make(chan GatewayProfile, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -328,8 +322,10 @@ func (client GatewayClient) GetProfile(resourceGroupName string, gatewayName str
|
||||
var err error
|
||||
var result GatewayProfile
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -481,10 +477,54 @@ func (client GatewayClient) ListNextResults(lastResults GatewayResources) (resul
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client GatewayClient) ListComplete(cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource)
|
||||
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
|
||||
}
|
||||
|
||||
// ListForResourceGroup returns gateways in a resource group.
|
||||
//
|
||||
// resourceGroupName is the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
func (client GatewayClient) ListForResourceGroup(resourceGroupName string) (result GatewayResources, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -577,14 +617,56 @@ func (client GatewayClient) ListForResourceGroupNextResults(lastResults GatewayR
|
||||
return
|
||||
}
|
||||
|
||||
// RegenerateProfile regenerate a gateway's profile 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.
|
||||
// ListForResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client GatewayClient) ListForResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListForResourceGroup(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.ListForResourceGroupNextResults(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
|
||||
}
|
||||
|
||||
// RegenerateProfile regenerate a gateway's profile 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 the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) RegenerateProfile(resourceGroupName string, gatewayName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -606,8 +688,10 @@ func (client GatewayClient) RegenerateProfile(resourceGroupName string, gatewayN
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -673,15 +757,13 @@ func (client GatewayClient) RegenerateProfileResponder(resp *http.Response) (res
|
||||
return
|
||||
}
|
||||
|
||||
// Update updates a gateway belonging to a resource group. 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.
|
||||
// Update updates a gateway belonging to a resource group. 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 the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum). gatewayParameters is parameters supplied to
|
||||
// the Update operation.
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum). gatewayParameters is parameters supplied to the Update
|
||||
// operation.
|
||||
func (client GatewayClient) Update(resourceGroupName string, gatewayName string, gatewayParameters GatewayParameters, cancel <-chan struct{}) (<-chan GatewayResource, <-chan error) {
|
||||
resultChan := make(chan GatewayResource, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -703,8 +785,10 @@ func (client GatewayClient) Update(resourceGroupName string, gatewayName string,
|
||||
var err error
|
||||
var result GatewayResource
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -773,13 +857,11 @@ func (client GatewayClient) UpdateResponder(resp *http.Response) (result Gateway
|
||||
return
|
||||
}
|
||||
|
||||
// Upgrade upgrades a gateway. 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.
|
||||
// Upgrade upgrades a gateway. 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 the resource group name uniquely identifies the
|
||||
// resource group within the user subscriptionId. gatewayName is the gateway
|
||||
// name (256 characters maximum).
|
||||
// resourceGroupName is the resource group name uniquely identifies the resource group within the user subscriptionId.
|
||||
// gatewayName is the gateway name (256 characters maximum).
|
||||
func (client GatewayClient) Upgrade(resourceGroupName string, gatewayName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -801,8 +883,10 @@ func (client GatewayClient) Upgrade(resourceGroupName string, gatewayName string
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user