vendor: update all dependencies to latest versions
This commit is contained in:
+100
-16
@@ -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"
|
||||
)
|
||||
|
||||
// AccountClient is the composite Swagger json for Azure Automation Client
|
||||
// AccountClient is the automation Client
|
||||
type AccountClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
@@ -42,9 +41,8 @@ func NewAccountClientWithBaseURI(baseURI string, subscriptionID string) AccountC
|
||||
|
||||
// CreateOrUpdate create or update automation account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is
|
||||
// parameters supplied to the create or update automation account. parameters
|
||||
// is parameters supplied to the create or update automation account.
|
||||
// resourceGroupName is the resource group name. automationAccountName is parameters supplied to the create or update
|
||||
// automation account. parameters is parameters supplied to the create or update automation account.
|
||||
func (client AccountClient) CreateOrUpdate(resourceGroupName string, automationAccountName string, parameters AccountCreateOrUpdateParameters) (result Account, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -117,8 +115,7 @@ func (client AccountClient) CreateOrUpdateResponder(resp *http.Response) (result
|
||||
|
||||
// Delete delete an automation account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is
|
||||
// automation account name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is automation account name.
|
||||
func (client AccountClient) Delete(resourceGroupName string, automationAccountName string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -188,8 +185,7 @@ func (client AccountClient) DeleteResponder(resp *http.Response) (result autores
|
||||
|
||||
// Get get information about an Automation Account.
|
||||
//
|
||||
// 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 AccountClient) Get(resourceGroupName string, automationAccountName string) (result Account, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
@@ -343,8 +339,52 @@ func (client AccountClient) ListNextResults(lastResults AccountListResult) (resu
|
||||
return
|
||||
}
|
||||
|
||||
// ListByResourceGroup retrieve a list of accounts within a given resource
|
||||
// group.
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client AccountClient) ListComplete(cancel <-chan struct{}) (<-chan Account, <-chan error) {
|
||||
resultChan := make(chan Account)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.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
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
|
||||
// ListByResourceGroup retrieve a list of accounts within a given resource group.
|
||||
//
|
||||
// resourceGroupName is the resource group name.
|
||||
func (client AccountClient) ListByResourceGroup(resourceGroupName string) (result AccountListResult, err error) {
|
||||
@@ -438,11 +478,55 @@ func (client AccountClient) ListByResourceGroupNextResults(lastResults AccountLi
|
||||
return
|
||||
}
|
||||
|
||||
// ListByResourceGroupComplete gets all elements from the list without paging.
|
||||
func (client AccountClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Account, <-chan error) {
|
||||
resultChan := make(chan Account)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByResourceGroup(resourceGroupName)
|
||||
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
|
||||
}
|
||||
|
||||
// Update update an automation account.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is
|
||||
// automation account name. parameters is parameters supplied to the update
|
||||
// automation account.
|
||||
// resourceGroupName is the resource group name. automationAccountName is automation account name. parameters is
|
||||
// parameters supplied to the update automation account.
|
||||
func (client AccountClient) Update(resourceGroupName string, automationAccountName string, parameters AccountUpdateParameters) (result Account, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
||||
Reference in New Issue
Block a user