vendor: update all dependencies to latest versions
This commit is contained in:
+114
-27
@@ -14,9 +14,8 @@ package devtestlabs
|
||||
// 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"
|
||||
@@ -35,16 +34,15 @@ func NewSchedulesClient(subscriptionID string) SchedulesClient {
|
||||
return NewSchedulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewSchedulesClientWithBaseURI creates an instance of the SchedulesClient
|
||||
// client.
|
||||
// NewSchedulesClientWithBaseURI creates an instance of the SchedulesClient client.
|
||||
func NewSchedulesClientWithBaseURI(baseURI string, subscriptionID string) SchedulesClient {
|
||||
return SchedulesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or replace an existing schedule.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the schedule. schedule is a schedule.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// schedule. schedule is a schedule.
|
||||
func (client SchedulesClient) CreateOrUpdate(resourceGroupName string, labName string, name string, schedule Schedule) (result Schedule, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: schedule,
|
||||
@@ -118,8 +116,8 @@ func (client SchedulesClient) CreateOrUpdateResponder(resp *http.Response) (resu
|
||||
|
||||
// Delete delete schedule.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the schedule.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// schedule.
|
||||
func (client SchedulesClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, labName, name)
|
||||
if err != nil {
|
||||
@@ -182,13 +180,12 @@ func (client SchedulesClient) DeleteResponder(resp *http.Response) (result autor
|
||||
return
|
||||
}
|
||||
|
||||
// Execute execute a schedule. This operation can take a while to complete.
|
||||
// This method may poll for completion. Polling can be canceled by passing the
|
||||
// cancel channel argument. The channel will be used to cancel polling and any
|
||||
// Execute execute a schedule. This operation can take a while to complete. This method may poll for completion.
|
||||
// Polling can be canceled by passing the cancel channel argument. The channel will be used to cancel polling and any
|
||||
// outstanding HTTP requests.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the schedule.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// schedule.
|
||||
func (client SchedulesClient) Execute(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -196,8 +193,10 @@ func (client SchedulesClient) Execute(resourceGroupName string, labName string,
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -266,9 +265,8 @@ func (client SchedulesClient) ExecuteResponder(resp *http.Response) (result auto
|
||||
|
||||
// Get get schedule.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the schedule. expand is specify the $expand
|
||||
// query. Example: 'properties($select=status)'
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// schedule. expand is specify the $expand query. Example: 'properties($select=status)'
|
||||
func (client SchedulesClient) Get(resourceGroupName string, labName string, name string, expand string) (result Schedule, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, labName, name, expand)
|
||||
if err != nil {
|
||||
@@ -337,11 +335,10 @@ func (client SchedulesClient) GetResponder(resp *http.Response) (result Schedule
|
||||
|
||||
// List list schedules in a given lab.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. expand is specify the $expand query. Example:
|
||||
// 'properties($select=status)' filter is the filter to apply to the operation.
|
||||
// top is the maximum number of resources to return from the operation. orderby
|
||||
// is the ordering expression for the results, using OData notation.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand
|
||||
// query. Example: 'properties($select=status)' filter is the filter to apply to the operation. top is the maximum
|
||||
// number of resources to return from the operation. orderby is the ordering expression for the results, using OData
|
||||
// notation.
|
||||
func (client SchedulesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error) {
|
||||
req, err := client.ListPreparer(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
if err != nil {
|
||||
@@ -440,10 +437,55 @@ func (client SchedulesClient) ListNextResults(lastResults ResponseWithContinuati
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client SchedulesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Schedule, <-chan error) {
|
||||
resultChan := make(chan Schedule)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
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
|
||||
}
|
||||
|
||||
// ListApplicable lists all applicable schedules
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the schedule.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// schedule.
|
||||
func (client SchedulesClient) ListApplicable(resourceGroupName string, labName string, name string) (result ResponseWithContinuationSchedule, err error) {
|
||||
req, err := client.ListApplicablePreparer(resourceGroupName, labName, name)
|
||||
if err != nil {
|
||||
@@ -531,10 +573,55 @@ func (client SchedulesClient) ListApplicableNextResults(lastResults ResponseWith
|
||||
return
|
||||
}
|
||||
|
||||
// ListApplicableComplete gets all elements from the list without paging.
|
||||
func (client SchedulesClient) ListApplicableComplete(resourceGroupName string, labName string, name string, cancel <-chan struct{}) (<-chan Schedule, <-chan error) {
|
||||
resultChan := make(chan Schedule)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListApplicable(resourceGroupName, labName, name)
|
||||
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.ListApplicableNextResults(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 modify properties of schedules.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the schedule. schedule is a schedule.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// schedule. schedule is a schedule.
|
||||
func (client SchedulesClient) Update(resourceGroupName string, labName string, name string, schedule ScheduleFragment) (result Schedule, err error) {
|
||||
req, err := client.UpdatePreparer(resourceGroupName, labName, name, schedule)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user