vendor: update all dependencies to latest versions
This commit is contained in:
+104
-21
@@ -14,9 +14,8 @@ package scheduler
|
||||
// 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"
|
||||
@@ -42,8 +41,8 @@ func NewJobsClientWithBaseURI(baseURI string, subscriptionID string) JobsClient
|
||||
|
||||
// CreateOrUpdate provisions a new job or updates an existing job.
|
||||
//
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job
|
||||
// collection name. jobName is the job name. job is the job definition.
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
|
||||
// job is the job definition.
|
||||
func (client JobsClient) CreateOrUpdate(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (result JobDefinition, err error) {
|
||||
req, err := client.CreateOrUpdatePreparer(resourceGroupName, jobCollectionName, jobName, job)
|
||||
if err != nil {
|
||||
@@ -111,8 +110,7 @@ func (client JobsClient) CreateOrUpdateResponder(resp *http.Response) (result Jo
|
||||
|
||||
// Delete deletes a job.
|
||||
//
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job
|
||||
// collection name. jobName is the job name.
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
|
||||
func (client JobsClient) Delete(resourceGroupName string, jobCollectionName string, jobName string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, jobCollectionName, jobName)
|
||||
if err != nil {
|
||||
@@ -177,8 +175,7 @@ func (client JobsClient) DeleteResponder(resp *http.Response) (result autorest.R
|
||||
|
||||
// Get gets a job.
|
||||
//
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job
|
||||
// collection name. jobName is the job name.
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
|
||||
func (client JobsClient) Get(resourceGroupName string, jobCollectionName string, jobName string) (result JobDefinition, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, jobCollectionName, jobName)
|
||||
if err != nil {
|
||||
@@ -244,9 +241,8 @@ func (client JobsClient) GetResponder(resp *http.Response) (result JobDefinition
|
||||
|
||||
// List lists all jobs under the specified job collection.
|
||||
//
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job
|
||||
// collection name. top is the number of jobs to request, in the of range of
|
||||
// [1..100]. skip is the (0-based) index of the job history list from which to
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job collection name. top is the number of
|
||||
// jobs to request, in the of range of [1..100]. skip is the (0-based) index of the job history list from which to
|
||||
// begin requesting entries. filter is the filter to apply on the job state.
|
||||
func (client JobsClient) List(resourceGroupName string, jobCollectionName string, top *int32, skip *int32, filter string) (result JobListResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
@@ -352,13 +348,56 @@ func (client JobsClient) ListNextResults(lastResults JobListResult) (result JobL
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client JobsClient) ListComplete(resourceGroupName string, jobCollectionName string, top *int32, skip *int32, filter string, cancel <-chan struct{}) (<-chan JobDefinition, <-chan error) {
|
||||
resultChan := make(chan JobDefinition)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceGroupName, jobCollectionName, top, skip, 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.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
|
||||
}
|
||||
|
||||
// ListJobHistory lists job history.
|
||||
//
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job
|
||||
// collection name. jobName is the job name. top is the number of job history
|
||||
// to request, in the of range of [1..100]. skip is the (0-based) index of the
|
||||
// job history list from which to begin requesting entries. filter is the
|
||||
// filter to apply on the job state.
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
|
||||
// top is the number of job history to request, in the of range of [1..100]. skip is the (0-based) index of the job
|
||||
// history list from which to begin requesting entries. filter is the filter to apply on the job state.
|
||||
func (client JobsClient) ListJobHistory(resourceGroupName string, jobCollectionName string, jobName string, top *int32, skip *int32, filter string) (result JobHistoryListResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: top,
|
||||
@@ -464,10 +503,55 @@ func (client JobsClient) ListJobHistoryNextResults(lastResults JobHistoryListRes
|
||||
return
|
||||
}
|
||||
|
||||
// ListJobHistoryComplete gets all elements from the list without paging.
|
||||
func (client JobsClient) ListJobHistoryComplete(resourceGroupName string, jobCollectionName string, jobName string, top *int32, skip *int32, filter string, cancel <-chan struct{}) (<-chan JobHistoryDefinition, <-chan error) {
|
||||
resultChan := make(chan JobHistoryDefinition)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListJobHistory(resourceGroupName, jobCollectionName, jobName, top, skip, 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.ListJobHistoryNextResults(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
|
||||
}
|
||||
|
||||
// Patch patches an existing job.
|
||||
//
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job
|
||||
// collection name. jobName is the job name. job is the job definition.
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
|
||||
// job is the job definition.
|
||||
func (client JobsClient) Patch(resourceGroupName string, jobCollectionName string, jobName string, job JobDefinition) (result JobDefinition, err error) {
|
||||
req, err := client.PatchPreparer(resourceGroupName, jobCollectionName, jobName, job)
|
||||
if err != nil {
|
||||
@@ -535,8 +619,7 @@ func (client JobsClient) PatchResponder(resp *http.Response) (result JobDefiniti
|
||||
|
||||
// Run runs a job.
|
||||
//
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job
|
||||
// collection name. jobName is the job name.
|
||||
// resourceGroupName is the resource group name. jobCollectionName is the job collection name. jobName is the job name.
|
||||
func (client JobsClient) Run(resourceGroupName string, jobCollectionName string, jobName string) (result autorest.Response, err error) {
|
||||
req, err := client.RunPreparer(resourceGroupName, jobCollectionName, jobName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user