forked from TrueCloudLab/restic
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/module.go
generated
vendored
73
vendor/github.com/Azure/azure-sdk-for-go/arm/automation/module.go
generated
vendored
|
@ -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"
|
||||
)
|
||||
|
||||
// ModuleClient is the composite Swagger json for Azure Automation Client
|
||||
// ModuleClient is the automation Client
|
||||
type ModuleClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
@ -42,9 +41,8 @@ func NewModuleClientWithBaseURI(baseURI string, subscriptionID string) ModuleCli
|
|||
|
||||
// CreateOrUpdate create or Update the module identified by module name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. moduleName is the name of module. parameters is the
|
||||
// create or update parameters for module.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName is
|
||||
// the name of module. parameters is the create or update parameters for module.
|
||||
func (client ModuleClient) CreateOrUpdate(resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleCreateOrUpdateParameters) (result Module, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -127,8 +125,8 @@ func (client ModuleClient) CreateOrUpdateResponder(resp *http.Response) (result
|
|||
|
||||
// Delete delete the module by name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. moduleName is the module name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName is
|
||||
// the module name.
|
||||
func (client ModuleClient) Delete(resourceGroupName string, automationAccountName string, moduleName string) (result autorest.Response, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -199,8 +197,8 @@ func (client ModuleClient) DeleteResponder(resp *http.Response) (result autorest
|
|||
|
||||
// Get retrieve the module identified by module name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. moduleName is the module name.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName is
|
||||
// the module name.
|
||||
func (client ModuleClient) Get(resourceGroupName string, automationAccountName string, moduleName string) (result Module, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -272,8 +270,7 @@ func (client ModuleClient) GetResponder(resp *http.Response) (result Module, err
|
|||
|
||||
// ListByAutomationAccount retrieve a list of modules.
|
||||
//
|
||||
// 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 ModuleClient) ListByAutomationAccount(resourceGroupName string, automationAccountName string) (result ModuleListResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -366,11 +363,55 @@ func (client ModuleClient) ListByAutomationAccountNextResults(lastResults Module
|
|||
return
|
||||
}
|
||||
|
||||
// ListByAutomationAccountComplete gets all elements from the list without paging.
|
||||
func (client ModuleClient) ListByAutomationAccountComplete(resourceGroupName string, automationAccountName string, cancel <-chan struct{}) (<-chan Module, <-chan error) {
|
||||
resultChan := make(chan Module)
|
||||
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 module identified by module name.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. moduleName is the name of module. parameters is the
|
||||
// update parameters for module.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. moduleName is
|
||||
// the name of module. parameters is the update parameters for module.
|
||||
func (client ModuleClient) Update(resourceGroupName string, automationAccountName string, moduleName string, parameters ModuleUpdateParameters) (result Module, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue