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
69
vendor/github.com/Azure/azure-sdk-for-go/arm/automation/dscnode.go
generated
vendored
69
vendor/github.com/Azure/azure-sdk-for-go/arm/automation/dscnode.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"
|
||||
)
|
||||
|
||||
// DscNodeClient is the composite Swagger json for Azure Automation Client
|
||||
// DscNodeClient is the automation Client
|
||||
type DscNodeClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
@ -42,8 +41,8 @@ func NewDscNodeClientWithBaseURI(baseURI string, subscriptionID string) DscNodeC
|
|||
|
||||
// Delete delete the dsc node identified by node id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is
|
||||
// automation account name. nodeID is the node id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is automation account name. nodeID is the node
|
||||
// id.
|
||||
func (client DscNodeClient) Delete(resourceGroupName string, automationAccountName string, nodeID string) (result DscNode, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -115,8 +114,8 @@ func (client DscNodeClient) DeleteResponder(resp *http.Response) (result DscNode
|
|||
|
||||
// Get retrieve the dsc node identified by node id.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. nodeID is the node id.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is the
|
||||
// node id.
|
||||
func (client DscNodeClient) Get(resourceGroupName string, automationAccountName string, nodeID string) (result DscNode, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -188,8 +187,8 @@ func (client DscNodeClient) GetResponder(resp *http.Response) (result DscNode, e
|
|||
|
||||
// ListByAutomationAccount retrieve a list of dsc nodes.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. filter is the filter to apply on the operation.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. filter is the
|
||||
// filter to apply on the operation.
|
||||
func (client DscNodeClient) ListByAutomationAccount(resourceGroupName string, automationAccountName string, filter string) (result DscNodeListResult, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
@ -285,11 +284,55 @@ func (client DscNodeClient) ListByAutomationAccountNextResults(lastResults DscNo
|
|||
return
|
||||
}
|
||||
|
||||
// ListByAutomationAccountComplete gets all elements from the list without paging.
|
||||
func (client DscNodeClient) ListByAutomationAccountComplete(resourceGroupName string, automationAccountName string, filter string, cancel <-chan struct{}) (<-chan DscNode, <-chan error) {
|
||||
resultChan := make(chan DscNode)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.ListByAutomationAccount(resourceGroupName, automationAccountName, filter)
|
||||
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 dsc node.
|
||||
//
|
||||
// resourceGroupName is the resource group name. automationAccountName is the
|
||||
// automation account name. nodeID is parameters supplied to the update dsc
|
||||
// node. parameters is parameters supplied to the update dsc node.
|
||||
// resourceGroupName is the resource group name. automationAccountName is the automation account name. nodeID is
|
||||
// parameters supplied to the update dsc node. parameters is parameters supplied to the update dsc node.
|
||||
func (client DscNodeClient) Update(resourceGroupName string, automationAccountName string, nodeID string, parameters DscNodeUpdateParameters) (result DscNode, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: resourceGroupName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue