vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
+52 -10
View File
@@ -14,9 +14,8 @@ package cdn
// 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"
@@ -24,9 +23,8 @@ import (
"net/http"
)
// EdgeNodesClient is the use these APIs to manage Azure CDN resources through
// the Azure Resource Manager. You must make sure that requests made to these
// resources are secure.
// EdgeNodesClient is the use these APIs to manage Azure CDN resources through the Azure Resource Manager. You must
// make sure that requests made to these resources are secure.
type EdgeNodesClient struct {
ManagementClient
}
@@ -36,13 +34,12 @@ func NewEdgeNodesClient(subscriptionID string) EdgeNodesClient {
return NewEdgeNodesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewEdgeNodesClientWithBaseURI creates an instance of the EdgeNodesClient
// client.
// NewEdgeNodesClientWithBaseURI creates an instance of the EdgeNodesClient client.
func NewEdgeNodesClientWithBaseURI(baseURI string, subscriptionID string) EdgeNodesClient {
return EdgeNodesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// List lists all the edge nodes of a CDN service.
// List edgenodes are the global Point of Presence (POP) locations used to deliver CDN content to end users.
func (client EdgeNodesClient) List() (result EdgenodeResult, err error) {
req, err := client.ListPreparer()
if err != nil {
@@ -67,7 +64,7 @@ func (client EdgeNodesClient) List() (result EdgenodeResult, err error) {
// ListPreparer prepares the List request.
func (client EdgeNodesClient) ListPreparer() (*http.Request, error) {
const APIVersion = "2016-10-02"
const APIVersion = "2017-04-02"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -122,3 +119,48 @@ func (client EdgeNodesClient) ListNextResults(lastResults EdgenodeResult) (resul
return
}
// ListComplete gets all elements from the list without paging.
func (client EdgeNodesClient) ListComplete(cancel <-chan struct{}) (<-chan EdgeNode, <-chan error) {
resultChan := make(chan EdgeNode)
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
}