vendor: update all dependencies to latest versions
This commit is contained in:
+60
-23
@@ -14,9 +14,8 @@ package devtestlabs
|
||||
// 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"
|
||||
@@ -30,23 +29,20 @@ type ArtifactSourcesClient struct {
|
||||
ManagementClient
|
||||
}
|
||||
|
||||
// NewArtifactSourcesClient creates an instance of the ArtifactSourcesClient
|
||||
// client.
|
||||
// NewArtifactSourcesClient creates an instance of the ArtifactSourcesClient client.
|
||||
func NewArtifactSourcesClient(subscriptionID string) ArtifactSourcesClient {
|
||||
return NewArtifactSourcesClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewArtifactSourcesClientWithBaseURI creates an instance of the
|
||||
// ArtifactSourcesClient client.
|
||||
// NewArtifactSourcesClientWithBaseURI creates an instance of the ArtifactSourcesClient client.
|
||||
func NewArtifactSourcesClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourcesClient {
|
||||
return ArtifactSourcesClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// CreateOrUpdate create or replace an existing artifact source.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the artifact source. artifactSource is
|
||||
// properties of an artifact source.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// artifact source. artifactSource is properties of an artifact source.
|
||||
func (client ArtifactSourcesClient) CreateOrUpdate(resourceGroupName string, labName string, name string, artifactSource ArtifactSource) (result ArtifactSource, err error) {
|
||||
if err := validation.Validate([]validation.Validation{
|
||||
{TargetValue: artifactSource,
|
||||
@@ -120,8 +116,8 @@ func (client ArtifactSourcesClient) CreateOrUpdateResponder(resp *http.Response)
|
||||
|
||||
// Delete delete artifact source.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the artifact source.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// artifact source.
|
||||
func (client ArtifactSourcesClient) Delete(resourceGroupName string, labName string, name string) (result autorest.Response, err error) {
|
||||
req, err := client.DeletePreparer(resourceGroupName, labName, name)
|
||||
if err != nil {
|
||||
@@ -186,9 +182,8 @@ func (client ArtifactSourcesClient) DeleteResponder(resp *http.Response) (result
|
||||
|
||||
// Get get artifact source.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the artifact source. expand is specify the
|
||||
// $expand query. Example: 'properties($select=displayName)'
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// artifact source. expand is specify the $expand query. Example: 'properties($select=displayName)'
|
||||
func (client ArtifactSourcesClient) Get(resourceGroupName string, labName string, name string, expand string) (result ArtifactSource, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, labName, name, expand)
|
||||
if err != nil {
|
||||
@@ -257,11 +252,9 @@ func (client ArtifactSourcesClient) GetResponder(resp *http.Response) (result Ar
|
||||
|
||||
// List list artifact sources in a given lab.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. expand is specify the $expand query. Example:
|
||||
// 'properties($select=displayName)' filter is the filter to apply to the
|
||||
// operation. top is the maximum number of resources to return from the
|
||||
// operation. orderby is the ordering expression for the results, using OData
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. expand is specify the $expand
|
||||
// query. Example: 'properties($select=displayName)' filter is the filter to apply to the operation. top is the maximum
|
||||
// number of resources to return from the operation. orderby is the ordering expression for the results, using OData
|
||||
// notation.
|
||||
func (client ArtifactSourcesClient) List(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArtifactSource, err error) {
|
||||
req, err := client.ListPreparer(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
@@ -361,11 +354,55 @@ func (client ArtifactSourcesClient) ListNextResults(lastResults ResponseWithCont
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client ArtifactSourcesClient) ListComplete(resourceGroupName string, labName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan ArtifactSource, <-chan error) {
|
||||
resultChan := make(chan ArtifactSource)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceGroupName, labName, expand, filter, top, orderby)
|
||||
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
|
||||
}
|
||||
|
||||
// Update modify properties of artifact sources.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. name is the name of the artifact source. artifactSource is
|
||||
// properties of an artifact source.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. name is the name of the
|
||||
// artifact source. artifactSource is properties of an artifact source.
|
||||
func (client ArtifactSourcesClient) Update(resourceGroupName string, labName string, name string, artifactSource ArtifactSourceFragment) (result ArtifactSource, err error) {
|
||||
req, err := client.UpdatePreparer(resourceGroupName, labName, name, artifactSource)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user