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"
)
// WebhookClient is the composite Swagger json for Azure Automation Client
// WebhookClient is the automation Client
type WebhookClient struct {
ManagementClient
}
@ -42,9 +41,8 @@ func NewWebhookClientWithBaseURI(baseURI string, subscriptionID string) WebhookC
// CreateOrUpdate create the webhook identified by webhook name.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. webhookName is the webhook name. parameters is the
// create or update parameters for webhook.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. webhookName is
// the webhook name. parameters is the create or update parameters for webhook.
func (client WebhookClient) CreateOrUpdate(resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookCreateOrUpdateParameters) (result Webhook, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -121,8 +119,8 @@ func (client WebhookClient) CreateOrUpdateResponder(resp *http.Response) (result
// Delete delete the webhook by name.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. webhookName is the webhook name.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. webhookName is
// the webhook name.
func (client WebhookClient) Delete(resourceGroupName string, automationAccountName string, webhookName string) (result autorest.Response, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -193,8 +191,7 @@ func (client WebhookClient) DeleteResponder(resp *http.Response) (result autores
// GenerateURI generates a Uri for use in creating a webhook.
//
// 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 WebhookClient) GenerateURI(resourceGroupName string, automationAccountName string) (result String, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -265,8 +262,8 @@ func (client WebhookClient) GenerateURIResponder(resp *http.Response) (result St
// Get retrieve the webhook identified by webhook name.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. webhookName is the webhook name.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. webhookName is
// the webhook name.
func (client WebhookClient) Get(resourceGroupName string, automationAccountName string, webhookName string) (result Webhook, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -338,8 +335,8 @@ func (client WebhookClient) GetResponder(resp *http.Response) (result Webhook, e
// ListByAutomationAccount retrieve a list of webhooks.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. filter is the filter to apply on the operation.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is the
// filter to apply on the operation.
func (client WebhookClient) ListByAutomationAccount(resourceGroupName string, automationAccountName string, filter string) (result WebhookListResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@ -435,11 +432,55 @@ func (client WebhookClient) ListByAutomationAccountNextResults(lastResults Webho
return
}
// ListByAutomationAccountComplete gets all elements from the list without paging.
func (client WebhookClient) ListByAutomationAccountComplete(resourceGroupName string, automationAccountName string, filter string, cancel <-chan struct{}) (<-chan Webhook, <-chan error) {
resultChan := make(chan Webhook)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByAutomationAccount(resourceGroupName, automationAccountName, 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.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 the webhook identified by webhook name.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. webhookName is the webhook name. parameters is the
// update parameters for webhook.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. webhookName is
// the webhook name. parameters is the update parameters for webhook.
func (client WebhookClient) Update(resourceGroupName string, automationAccountName string, webhookName string, parameters WebhookUpdateParameters) (result Webhook, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,