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
+55 -17
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,29 +24,25 @@ import (
"net/http"
)
// TestJobStreamsClient is the composite Swagger json for Azure Automation
// Client
// TestJobStreamsClient is the automation Client
type TestJobStreamsClient struct {
ManagementClient
}
// NewTestJobStreamsClient creates an instance of the TestJobStreamsClient
// client.
// NewTestJobStreamsClient creates an instance of the TestJobStreamsClient client.
func NewTestJobStreamsClient(subscriptionID string) TestJobStreamsClient {
return NewTestJobStreamsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewTestJobStreamsClientWithBaseURI creates an instance of the
// TestJobStreamsClient client.
// NewTestJobStreamsClientWithBaseURI creates an instance of the TestJobStreamsClient client.
func NewTestJobStreamsClientWithBaseURI(baseURI string, subscriptionID string) TestJobStreamsClient {
return TestJobStreamsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Get retrieve a test job streams identified by runbook name and stream id.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. runbookName is the runbook name. jobStreamID is the
// job stream id.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName is
// the runbook name. jobStreamID is the job stream id.
func (client TestJobStreamsClient) Get(resourceGroupName string, automationAccountName string, runbookName string, jobStreamID string) (result JobStream, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -118,12 +113,10 @@ func (client TestJobStreamsClient) GetResponder(resp *http.Response) (result Job
return
}
// ListByTestJob retrieve a list of test job streams identified by runbook
// name.
// ListByTestJob retrieve a list of test job streams identified by runbook name.
//
// resourceGroupName is the resource group name. automationAccountName is the
// automation account name. runbookName is the runbook name. filter is the
// filter to apply on the operation.
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName is
// the runbook name. filter is the filter to apply on the operation.
func (client TestJobStreamsClient) ListByTestJob(resourceGroupName string, automationAccountName string, runbookName string, filter string) (result JobStreamListResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -219,3 +212,48 @@ func (client TestJobStreamsClient) ListByTestJobNextResults(lastResults JobStrea
return
}
// ListByTestJobComplete gets all elements from the list without paging.
func (client TestJobStreamsClient) ListByTestJobComplete(resourceGroupName string, automationAccountName string, runbookName string, filter string, cancel <-chan struct{}) (<-chan JobStream, <-chan error) {
resultChan := make(chan JobStream)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByTestJob(resourceGroupName, automationAccountName, runbookName, 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.ListByTestJobNextResults(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
}