vendor: update all dependencies to latest versions
This commit is contained in:
+59
-18
@@ -14,9 +14,8 @@ 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"
|
||||
@@ -25,7 +24,7 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// RunbookClient is the composite Swagger json for Azure Automation Client
|
||||
// RunbookClient is the automation Client
|
||||
type RunbookClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -42,9 +41,8 @@ func NewRunbookClientWithBaseURI(baseURI string, subscriptionID string) RunbookC
|
||||
|
||||
// CreateOrUpdate create the runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. runbookName is the runbook name. parameters is the
|
||||
// create or update parameters for runbook. Provide either content link for a
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName is
|
||||
// the runbook name. parameters is the create or update parameters for runbook. Provide either content link for a
|
||||
// published runbook or draft, not both.
|
||||
func (client RunbookClient) CreateOrUpdate(resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookCreateOrUpdateParameters) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
@@ -135,8 +133,8 @@ func (client RunbookClient) CreateOrUpdateResponder(resp *http.Response) (result
|
||||
|
||||
// Delete delete the runbook by name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. runbookName is the runbook name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName is
|
||||
// the runbook name.
|
||||
func (client RunbookClient) Delete(resourceGroupName string, automationAccountName string, runbookName string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -207,8 +205,8 @@ func (client RunbookClient) DeleteResponder(resp *http.Response) (result autores
|
||||
|
||||
// Get retrieve the runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. runbookName is the runbook name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName is
|
||||
// the runbook name.
|
||||
func (client RunbookClient) Get(resourceGroupName string, automationAccountName string, runbookName string) (result Runbook, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -280,8 +278,8 @@ func (client RunbookClient) GetResponder(resp *http.Response) (result Runbook, e
|
||||
|
||||
// GetContent retrieve the content of runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. runbookName is the runbook name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName is
|
||||
// the runbook name.
|
||||
func (client RunbookClient) GetContent(resourceGroupName string, automationAccountName string, runbookName string) (result ReadCloser, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -352,8 +350,7 @@ func (client RunbookClient) GetContentResponder(resp *http.Response) (result Rea
|
||||
|
||||
// ListByAutomationAccount retrieve a list of runbooks.
|
||||
//
|
||||
// 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 RunbookClient) ListByAutomationAccount(resourceGroupName string, automationAccountName string) (result RunbookListResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -446,11 +443,55 @@ func (client RunbookClient) ListByAutomationAccountNextResults(lastResults Runbo
|
||||
return
|
||||
}
|
||||
|
||||
// ListByAutomationAccountComplete gets all elements from the list without paging.
|
||||
func (client RunbookClient) ListByAutomationAccountComplete(resourceGroupName string, automationAccountName string, cancel <-chan struct{}) (<-chan Runbook, <-chan error) {
|
||||
resultChan := make(chan Runbook)
|
||||
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
|
||||
}
|
||||
|
||||
// Update update the runbook identified by runbook name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. runbookName is the runbook name. parameters is the
|
||||
// update parameters for runbook.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. runbookName is
|
||||
// the runbook name. parameters is the update parameters for runbook.
|
||||
func (client RunbookClient) Update(resourceGroupName string, automationAccountName string, runbookName string, parameters RunbookUpdateParameters) (result Runbook, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
||||
Reference in New Issue
Block a user