Update vendored dependencies

This includes github.com/kurin/blazer 0.2.0, which resolves #1291
This commit is contained in:
Alexander Neumann 2017-10-01 10:13:39 +02:00
parent ba23d24dd1
commit 61cb1cc6f8
1044 changed files with 203022 additions and 97709 deletions

View file

@ -14,9 +14,8 @@ package automation
// 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"
)
// VariableClient is the composite Swagger json for Azure Automation Client
// VariableClient is the automation Client
type VariableClient struct {
ManagementClient
}
@ -35,17 +34,15 @@ func NewVariableClient(subscriptionID string) VariableClient {
return NewVariableClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewVariableClientWithBaseURI creates an instance of the VariableClient
// client.
// NewVariableClientWithBaseURI creates an instance of the VariableClient client.
func NewVariableClientWithBaseURI(baseURI string, subscriptionID string) VariableClient {
return VariableClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate create a variable.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. variableName is the variable name. parameters is
// the parameters supplied to the create or update variable operation.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. variableName is
// the variable name. parameters is the parameters supplied to the create or update variable operation.
func (client VariableClient) CreateOrUpdate(resourceGroupName string, automationAccountName string, variableName string, parameters VariableCreateOrUpdateParameters) (result Variable, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -122,8 +119,8 @@ func (client VariableClient) CreateOrUpdateResponder(resp *http.Response) (resul
// Delete delete the variable.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. variableName is the name of variable.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. variableName is
// the name of variable.
func (client VariableClient) Delete(resourceGroupName string, automationAccountName string, variableName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -194,8 +191,8 @@ func (client VariableClient) DeleteResponder(resp *http.Response) (result autore
// Get retrieve the variable identified by variable name.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. variableName is the name of variable.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. variableName is
// the name of variable.
func (client VariableClient) Get(resourceGroupName string, automationAccountName string, variableName string) (result Variable, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -267,8 +264,7 @@ func (client VariableClient) GetResponder(resp *http.Response) (result Variable,
// ListByAutomationAccount retrieve a list of variables.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name.
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
func (client VariableClient) ListByAutomationAccount(resourceGroupName string, automationAccountName string) (result VariableListResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -361,11 +357,55 @@ func (client VariableClient) ListByAutomationAccountNextResults(lastResults Vari
return
}
// ListByAutomationAccountComplete gets all elements from the list without paging.
func (client VariableClient) ListByAutomationAccountComplete(resourceGroupName string, automationAccountName string, cancel <-chan struct{}) (<-chan Variable, <-chan error) {
resultChan := make(chan Variable)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByAutomationAccount(resourceGroupName, automationAccountName)
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.ListByAutomationAccountNextResults(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 update a variable.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. variableName is the variable name. parameters is
// the parameters supplied to the update variable operation.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. variableName is
// the variable name. parameters is the parameters supplied to the update variable operation.
func (client VariableClient) Update(resourceGroupName string, automationAccountName string, variableName string, parameters VariableUpdateParameters) (result Variable, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,