vendor: update all dependencies to latest versions
This commit is contained in:
+59
-21
@@ -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"
|
||||
@@ -34,20 +33,17 @@ func NewArtifactsClient(subscriptionID string) ArtifactsClient {
|
||||
return NewArtifactsClientWithBaseURI(DefaultBaseURI, subscriptionID)
|
||||
}
|
||||
|
||||
// NewArtifactsClientWithBaseURI creates an instance of the ArtifactsClient
|
||||
// client.
|
||||
// NewArtifactsClientWithBaseURI creates an instance of the ArtifactsClient client.
|
||||
func NewArtifactsClientWithBaseURI(baseURI string, subscriptionID string) ArtifactsClient {
|
||||
return ArtifactsClient{NewWithBaseURI(baseURI, subscriptionID)}
|
||||
}
|
||||
|
||||
// GenerateArmTemplate generates an ARM template for the given artifact,
|
||||
// uploads the required files to a storage account, and validates the generated
|
||||
// artifact.
|
||||
// GenerateArmTemplate generates an ARM template for the given artifact, uploads the required files to a storage
|
||||
// account, and validates the generated artifact.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. artifactSourceName is the name of the artifact source. name is the
|
||||
// name of the artifact. generateArmTemplateRequest is parameters for
|
||||
// generating an ARM template for deploying artifacts.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name
|
||||
// of the artifact source. name is the name of the artifact. generateArmTemplateRequest is parameters for generating an
|
||||
// ARM template for deploying artifacts.
|
||||
func (client ArtifactsClient) GenerateArmTemplate(resourceGroupName string, labName string, artifactSourceName string, name string, generateArmTemplateRequest GenerateArmTemplateRequest) (result ArmTemplateInfo, err error) {
|
||||
req, err := client.GenerateArmTemplatePreparer(resourceGroupName, labName, artifactSourceName, name, generateArmTemplateRequest)
|
||||
if err != nil {
|
||||
@@ -116,9 +112,8 @@ func (client ArtifactsClient) GenerateArmTemplateResponder(resp *http.Response)
|
||||
|
||||
// Get get artifact.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. artifactSourceName is the name of the artifact source. name is the
|
||||
// name of the artifact. expand is specify the $expand query. Example:
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name
|
||||
// of the artifact source. name is the name of the artifact. expand is specify the $expand query. Example:
|
||||
// 'properties($select=title)'
|
||||
func (client ArtifactsClient) Get(resourceGroupName string, labName string, artifactSourceName string, name string, expand string) (result Artifact, err error) {
|
||||
req, err := client.GetPreparer(resourceGroupName, labName, artifactSourceName, name, expand)
|
||||
@@ -189,12 +184,10 @@ func (client ArtifactsClient) GetResponder(resp *http.Response) (result Artifact
|
||||
|
||||
// List list artifacts in a given artifact source.
|
||||
//
|
||||
// resourceGroupName is the name of the resource group. labName is the name of
|
||||
// the lab. artifactSourceName is the name of the artifact source. expand is
|
||||
// specify the $expand query. Example: 'properties($select=title)' 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.
|
||||
// resourceGroupName is the name of the resource group. labName is the name of the lab. artifactSourceName is the name
|
||||
// of the artifact source. expand is specify the $expand query. Example: 'properties($select=title)' 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 ArtifactsClient) List(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string) (result ResponseWithContinuationArtifact, err error) {
|
||||
req, err := client.ListPreparer(resourceGroupName, labName, artifactSourceName, expand, filter, top, orderby)
|
||||
if err != nil {
|
||||
@@ -293,3 +286,48 @@ func (client ArtifactsClient) ListNextResults(lastResults ResponseWithContinuati
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// ListComplete gets all elements from the list without paging.
|
||||
func (client ArtifactsClient) ListComplete(resourceGroupName string, labName string, artifactSourceName string, expand string, filter string, top *int32, orderby string, cancel <-chan struct{}) (<-chan Artifact, <-chan error) {
|
||||
resultChan := make(chan Artifact)
|
||||
errChan := make(chan error, 1)
|
||||
go func() {
|
||||
defer func() {
|
||||
close(resultChan)
|
||||
close(errChan)
|
||||
}()
|
||||
list, err := client.List(resourceGroupName, labName, artifactSourceName, 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user