Update vendored dependencies
This includes github.com/kurin/blazer 0.2.0, which resolves #1291
This commit is contained in:
parent
ba23d24dd1
commit
61cb1cc6f8
1044 changed files with 203022 additions and 97709 deletions
90
vendor/github.com/Azure/azure-sdk-for-go/arm/automation/job.go
generated
vendored
90
vendor/github.com/Azure/azure-sdk-for-go/arm/automation/job.go
generated
vendored
|
@ -14,19 +14,18 @@ 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"
|
||||
"github.com/Azure/go-autorest/autorest/azure"
|
||||
"github.com/Azure/go-autorest/autorest/validation"
|
||||
"github.com/satori/uuid"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// JobClient is the composite Swagger json for Azure Automation Client
|
||||
// JobClient is the automation Client
|
||||
type JobClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
@ -43,9 +42,8 @@ func NewJobClientWithBaseURI(baseURI string, subscriptionID string) JobClient {
|
|||
|
||||
// Create create a job of the runbook.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobID is the job id. parameters is the parameters
|
||||
// supplied to the create job operation.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the job
|
||||
// id. parameters is the parameters supplied to the create job operation.
|
||||
func (client JobClient) Create(resourceGroupName string, automationAccountName string, jobID uuid.UUID, parameters JobCreateParameters) (result Job, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -122,8 +120,8 @@ func (client JobClient) CreateResponder(resp *http.Response) (result Job, err er
|
|||
|
||||
// Get retrieve the job identified by job id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobID is the job id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the job
|
||||
// id.
|
||||
func (client JobClient) Get(resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result Job, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -195,8 +193,8 @@ func (client JobClient) GetResponder(resp *http.Response) (result Job, err error
|
|||
|
||||
// GetOutput retrieve the job output identified by job id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobID is the job id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the job
|
||||
// id.
|
||||
func (client JobClient) GetOutput(resourceGroupName string, automationAccountName string, jobID string) (result ReadCloser, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -265,11 +263,10 @@ func (client JobClient) GetOutputResponder(resp *http.Response) (result ReadClos
|
|||
return
|
||||
}
|
||||
|
||||
// GetRunbookContent retrieve the runbook content of the job identified by job
|
||||
// id.
|
||||
// GetRunbookContent retrieve the runbook content of the job identified by job id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobID is the job id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the job
|
||||
// id.
|
||||
func (client JobClient) GetRunbookContent(resourceGroupName string, automationAccountName string, jobID string) (result ReadCloser, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -340,8 +337,8 @@ func (client JobClient) GetRunbookContentResponder(resp *http.Response) (result
|
|||
|
||||
// ListByAutomationAccount retrieve a list of jobs.
|
||||
//
|
||||
// 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 JobClient) ListByAutomationAccount(resourceGroupName string, automationAccountName string, filter string) (result JobListResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -437,10 +434,55 @@ func (client JobClient) ListByAutomationAccountNextResults(lastResults JobListRe
|
|||
return
|
||||
}
|
||||
|
||||
// ListByAutomationAccountComplete gets all elements from the list without paging.
|
||||
func (client JobClient) ListByAutomationAccountComplete(resourceGroupName string, automationAccountName string, filter string, cancel <-chan struct{}) (<-chan Job, <-chan error) {
|
||||
resultChan := make(chan Job)
|
||||
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
|
||||
}
|
||||
|
||||
// Resume resume the job identified by jobId.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobID is the job id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the job
|
||||
// id.
|
||||
func (client JobClient) Resume(resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -511,8 +553,8 @@ func (client JobClient) ResumeResponder(resp *http.Response) (result autorest.Re
|
|||
|
||||
// Stop stop the job identified by jobId.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobID is the job id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the job
|
||||
// id.
|
||||
func (client JobClient) Stop(resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -583,8 +625,8 @@ func (client JobClient) StopResponder(resp *http.Response) (result autorest.Resp
|
|||
|
||||
// Suspend suspend the job identified by jobId.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobID is the job id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobID is the job
|
||||
// id.
|
||||
func (client JobClient) Suspend(resourceGroupName string, automationAccountName string, jobID uuid.UUID) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue