vendor: update all dependencies to latest versions
This commit is contained in:
+118
-38
@@ -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"
|
||||
@@ -30,22 +29,19 @@ type GlobalSchedulesClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewGlobalSchedulesClient creates an instance of the GlobalSchedulesClient
|
||||
// client.
|
||||
// NewGlobalSchedulesClient creates an instance of the GlobalSchedulesClient client.
|
||||
func NewGlobalSchedulesClient(subscriptionID string) GlobalSchedulesClient {
|
||||
return NewGlobalSchedulesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewGlobalSchedulesClientWithBaseURI creates an instance of the
|
||||
// GlobalSchedulesClient client.
|
||||
// NewGlobalSchedulesClientWithBaseURI creates an instance of the GlobalSchedulesClient client.
|
||||
func NewGlobalSchedulesClientWithBaseURI(baseURI string, subscriptionID string) GlobalSchedulesClient {
|
||||
return GlobalSchedulesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or replace an existing schedule.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. name is the name of the
|
||||
// schedule. schedule is a schedule.
|
||||
// resourceGroupName is the name of the resource group. name is the name of the schedule. schedule is a schedule.
|
||||
func (client GlobalSchedulesClient) CreateOrUpdate(resourceGroupName string, name string, schedule Schedule) (result Schedule, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: schedule,
|
||||
@@ -118,8 +114,7 @@ func (client GlobalSchedulesClient) CreateOrUpdateResponder(resp *http.Response)
|
||||
|
||||
// Delete delete schedule.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. name is the name of the
|
||||
// schedule.
|
||||
// resourceGroupName is the name of the resource group. name is the name of the schedule.
|
||||
func (client GlobalSchedulesClient) Delete(resourceGroupName string, name string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, name)
|
||||
if err != nil {
|
||||
@@ -181,13 +176,11 @@ func (client GlobalSchedulesClient) DeleteResponder(resp *http.Response) (result
|
||||
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. name is the name of the
|
||||
// schedule.
|
||||
// resourceGroupName is the name of the resource group. name is the name of the schedule.
|
||||
func (client GlobalSchedulesClient) Execute(resourceGroupName string, name string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -195,8 +188,10 @@ func (client GlobalSchedulesClient) Execute(resourceGroupName string, name strin
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -264,9 +259,8 @@ func (client GlobalSchedulesClient) ExecuteResponder(resp *http.Response) (resul
|
||||
|
||||
// Get get schedule.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. 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. name is the name of the schedule. expand is specify the $expand
|
||||
// query. Example: 'properties($select=status)'
|
||||
func (client GlobalSchedulesClient) Get(resourceGroupName string, name string, expand string) (result Schedule, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, name, expand)
|
||||
if err != nil {
|
||||
@@ -334,11 +328,9 @@ func (client GlobalSchedulesClient) GetResponder(resp *http.Response) (result Sc
|
||||
|
||||
// ListByResourceGroup list schedules in a resource group.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. 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. 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 GlobalSchedulesClient) ListByResourceGroup(resourceGroupName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error) {
|
||||
req, err := client.ListByResourceGroupPreparer(resourceGroupName, expand, filter, top, orderby)
|
||||
if err != nil {
|
||||
@@ -436,11 +428,55 @@ func (client GlobalSchedulesClient) ListByResourceGroupNextResults(lastResults R
|
||||
return
|
||||
}
|
||||
|
||||
// ListByResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client GlobalSchedulesClient) ListByResourceGroupComplete(resourceGroupName 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.ListByResourceGroup(resourceGroupName, 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.ListByResourceGroupNextResults(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
|
||||
}
|
||||
|
||||
// ListBySubscription list schedules in a subscription.
|
||||
//
|
||||
// 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
|
||||
// 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 GlobalSchedulesClient) ListBySubscription(expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationSchedule, err error) {
|
||||
req, err := client.ListBySubscriptionPreparer(expand, filter, top, orderby)
|
||||
@@ -538,14 +574,57 @@ func (client GlobalSchedulesClient) ListBySubscriptionNextResults(lastResults Re
|
||||
return
|
||||
}
|
||||
|
||||
// Retarget updates a schedule's target resource Id. 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.
|
||||
// ListBySubscriptionComplete gets all elements from the list without paging.
|
||||
func (client GlobalSchedulesClient) ListBySubscriptionComplete(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.ListBySubscription(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.ListBySubscriptionNextResults(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
|
||||
}
|
||||
|
||||
// Retarget updates a schedule's target resource Id. 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. name is the name of the
|
||||
// schedule. retargetScheduleProperties is properties for retargeting a virtual
|
||||
// machine schedule.
|
||||
// resourceGroupName is the name of the resource group. name is the name of the schedule. retargetScheduleProperties is
|
||||
// properties for retargeting a virtual machine schedule.
|
||||
func (client GlobalSchedulesClient) Retarget(resourceGroupName string, name string, retargetScheduleProperties RetargetScheduleProperties, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
|
||||
resultChan := make(chan autorest.Response, 1)
|
||||
errChan := make(chan error, 1)
|
||||
@@ -553,8 +632,10 @@ func (client GlobalSchedulesClient) Retarget(resourceGroupName string, name stri
|
||||
var err error
|
||||
var result autorest.Response
|
||||
defer func() {
|
||||
if err != nil {
|
||||
errChan <- err
|
||||
}
|
||||
resultChan <- result
|
||||
errChan <- err
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
@@ -624,8 +705,7 @@ func (client GlobalSchedulesClient) RetargetResponder(resp *http.Response) (resu
|
||||
|
||||
// Update modify properties of schedules.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. name is the name of the
|
||||
// schedule. schedule is a schedule.
|
||||
// resourceGroupName is the name of the resource group. name is the name of the schedule. schedule is a schedule.
|
||||
func (client GlobalSchedulesClient) Update(resourceGroupName string, name string, schedule ScheduleFragment) (result Schedule, err error) {
|
||||
req, err := client.UpdatePreparer(resourceGroupName, name, schedule)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user