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
73
vendor/github.com/Azure/azure-sdk-for-go/arm/automation/jobschedule.go
generated
vendored
73
vendor/github.com/Azure/azure-sdk-for-go/arm/automation/jobschedule.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"
|
||||
)
|
||||
|
||||
// JobScheduleClient is the composite Swagger json for Azure Automation Client
|
||||
// JobScheduleClient is the automation Client
|
||||
type JobScheduleClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
@ -36,17 +35,15 @@ func NewJobScheduleClient(subscriptionID string) JobScheduleClient {
|
|||
return NewJobScheduleClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewJobScheduleClientWithBaseURI creates an instance of the JobScheduleClient
|
||||
// client.
|
||||
// NewJobScheduleClientWithBaseURI creates an instance of the JobScheduleClient client.
|
||||
func NewJobScheduleClientWithBaseURI(baseURI string, subscriptionID string) JobScheduleClient {
|
||||
return JobScheduleClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// Create create a job schedule.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobScheduleID is the job schedule name. parameters
|
||||
// is the parameters supplied to the create job schedule operation.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobScheduleID is
|
||||
// the job schedule name. parameters is the parameters supplied to the create job schedule operation.
|
||||
func (client JobScheduleClient) Create(resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID, parameters JobScheduleCreateParameters) (result JobSchedule, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -125,8 +122,8 @@ func (client JobScheduleClient) CreateResponder(resp *http.Response) (result Job
|
|||
|
||||
// Delete delete the job schedule identified by job schedule name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobScheduleID is the job schedule name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobScheduleID is
|
||||
// the job schedule name.
|
||||
func (client JobScheduleClient) Delete(resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -197,8 +194,8 @@ func (client JobScheduleClient) DeleteResponder(resp *http.Response) (result aut
|
|||
|
||||
// Get retrieve the job schedule identified by job schedule name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. jobScheduleID is the job schedule name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. jobScheduleID is
|
||||
// the job schedule name.
|
||||
func (client JobScheduleClient) Get(resourceGroupName string, automationAccountName string, jobScheduleID uuid.UUID) (result JobSchedule, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -270,8 +267,7 @@ func (client JobScheduleClient) GetResponder(resp *http.Response) (result JobSch
|
|||
|
||||
// ListByAutomationAccount retrieve a list of job schedules.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name.
|
||||
func (client JobScheduleClient) ListByAutomationAccount(resourceGroupName string, automationAccountName string) (result JobScheduleListResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -363,3 +359,48 @@ func (client JobScheduleClient) ListByAutomationAccountNextResults(lastResults J
|
|||
|
||||
return
|
||||
}
|
||||
|
||||
// ListByAutomationAccountComplete gets all elements from the list without paging.
|
||||
func (client JobScheduleClient) ListByAutomationAccountComplete(resourceGroupName string, automationAccountName string, cancel <-chan struct{}) (<-chan JobSchedule, <-chan error) {
|
||||
resultChan := make(chan JobSchedule)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByAutomationAccount(resourceGroupName, automationAccountName)
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue