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
+5 -8
View File
@@ -1,9 +1,7 @@
// Package billing implements the Azure ARM Billing service API version
// 2017-04-24-preview.
// Package billing implements the Azure ARM Billing service API version 2017-04-24-preview.
//
// Billing client provides access to billing resources for Azure Web-Direct
// subscriptions. Other subscription types which were not purchased directly
// through the Azure web portal are not supported through this preview API.
// Billing client provides access to billing resources for Azure Web-Direct subscriptions. Other subscription types
// which were not purchased directly through the Azure web portal are not supported through this preview API.
package billing
// Copyright (c) Microsoft and contributors. All rights reserved.
@@ -20,9 +18,8 @@ package billing
// 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"
+65 -28
View File
@@ -14,9 +14,8 @@ package billing
// 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,10 +24,9 @@ import (
"net/http"
)
// InvoicesClient is the billing client provides access to billing resources
// for Azure Web-Direct subscriptions. Other subscription types which were not
// purchased directly through the Azure web portal are not supported through
// this preview API.
// InvoicesClient is the billing client provides access to billing resources for Azure Web-Direct subscriptions. Other
// subscription types which were not purchased directly through the Azure web portal are not supported through this
// preview API.
type InvoicesClient struct {
ManagementClient
}
@@ -38,14 +36,13 @@ func NewInvoicesClient(subscriptionID string) InvoicesClient {
return NewInvoicesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewInvoicesClientWithBaseURI creates an instance of the InvoicesClient
// client.
// NewInvoicesClientWithBaseURI creates an instance of the InvoicesClient client.
func NewInvoicesClientWithBaseURI(baseURI string, subscriptionID string) InvoicesClient {
return InvoicesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Get gets a named invoice resource. When getting a single invoice, the
// downloadUrl property is expanded automatically.
// Get gets a named invoice resource. When getting a single invoice, the downloadUrl property is expanded
// automatically.
//
// invoiceName is the name of an invoice resource.
func (client InvoicesClient) Get(invoiceName string) (result Invoice, err error) {
@@ -109,8 +106,8 @@ func (client InvoicesClient) GetResponder(resp *http.Response) (result Invoice,
return
}
// GetLatest gets the most recent invoice. When getting a single invoice, the
// downloadUrl property is expanded automatically.
// GetLatest gets the most recent invoice. When getting a single invoice, the downloadUrl property is expanded
// automatically.
func (client InvoicesClient) GetLatest() (result Invoice, err error) {
req, err := client.GetLatestPreparer()
if err != nil {
@@ -171,22 +168,17 @@ func (client InvoicesClient) GetLatestResponder(resp *http.Response) (result Inv
return
}
// List lists the available invoices for a subscription in reverse
// chronological order beginning with the most recent invoice. In preview,
// invoices are available via this API only for invoice periods which end
// December 1, 2016 or later.
// List lists the available invoices for a subscription in reverse chronological order beginning with the most recent
// invoice. In preview, invoices are available via this API only for invoice periods which end December 1, 2016 or
// later.
//
// expand is may be used to expand the downloadUrl property within a list of
// invoices. This enables download links to be generated for multiple invoices
// at once. By default, downloadURLs are not included when listing invoices.
// filter is may be used to filter invoices by invoicePeriodEndDate. The filter
// supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently
// support 'ne', 'or', or 'not'. skiptoken is skiptoken is only used if a
// previous operation returned a partial result. If a previous response
// contains a nextLink element, the value of the nextLink element will include
// a skiptoken parameter that specifies a starting point to use for subsequent
// calls. top is may be used to limit the number of results to the most recent
// N invoices.
// expand is may be used to expand the downloadUrl property within a list of invoices. This enables download links to
// be generated for multiple invoices at once. By default, downloadURLs are not included when listing invoices. filter
// is may be used to filter invoices by invoicePeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and
// 'and'. It does not currently support 'ne', 'or', or 'not'. skiptoken is skiptoken is only used if a previous
// operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink
// element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top is may
// be used to limit the number of results to the most recent N invoices.
func (client InvoicesClient) List(expand string, filter string, skiptoken string, top *int32) (result InvoicesListResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: top,
@@ -291,3 +283,48 @@ func (client InvoicesClient) ListNextResults(lastResults InvoicesListResult) (re
return
}
// ListComplete gets all elements from the list without paging.
func (client InvoicesClient) ListComplete(expand string, filter string, skiptoken string, top *int32, cancel <-chan struct{}) (<-chan Invoice, <-chan error) {
resultChan := make(chan Invoice)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(expand, filter, skiptoken, top)
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
}
+12 -15
View File
@@ -14,9 +14,8 @@ package billing
// 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,8 +24,7 @@ import (
"net/http"
)
// DownloadURL is a secure URL that can be used to download a PDF invoice until
// the URL expires.
// DownloadURL is a secure URL that can be used to download a PDF invoice until the URL expires.
type DownloadURL struct {
ExpiryTime *date.Time `json:"expiryTime,omitempty"`
URL *string `json:"url,omitempty"`
@@ -39,14 +37,13 @@ type ErrorDetails struct {
Target *string `json:"target,omitempty"`
}
// ErrorResponse is error response indicates that the service is not able to
// process the incoming request. The reason is provided in the error message.
// ErrorResponse is error response indicates that the service is not able to process the incoming request. The reason
// is provided in the error message.
type ErrorResponse struct {
Error *ErrorDetails `json:"error,omitempty"`
}
// Invoice is an invoice resource can be used download a PDF version of an
// invoice.
// Invoice is an invoice resource can be used download a PDF version of an invoice.
type Invoice struct {
autorest.Response `json:"-"`
ID *string `json:"id,omitempty"`
@@ -63,8 +60,8 @@ type InvoiceProperties struct {
BillingPeriodIds *[]string `json:"billingPeriodIds,omitempty"`
}
// InvoicesListResult is result of listing invoices. It contains a list of
// available invoices in reverse chronological order.
// InvoicesListResult is result of listing invoices. It contains a list of available invoices in reverse chronological
// order.
type InvoicesListResult struct {
autorest.Response `json:"-"`
Value *[]Invoice `json:"value,omitempty"`
@@ -96,8 +93,8 @@ type OperationDisplay struct {
Operation *string `json:"operation,omitempty"`
}
// OperationListResult is result listing billing operations. It contains a list
// of operations and a URL link to get the next set of results.
// OperationListResult is result listing billing operations. It contains a list of operations and a URL link to get the
// next set of results.
type OperationListResult struct {
autorest.Response `json:"-"`
Value *[]Operation `json:"value,omitempty"`
@@ -132,8 +129,8 @@ type PeriodProperties struct {
InvoiceIds *[]string `json:"invoiceIds,omitempty"`
}
// PeriodsListResult is result of listing billing periods. It contains a list
// of available billing periods in reverse chronological order.
// PeriodsListResult is result of listing billing periods. It contains a list of available billing periods in reverse
// chronological order.
type PeriodsListResult struct {
autorest.Response `json:"-"`
Value *[]Period `json:"value,omitempty"`
+50 -8
View File
@@ -14,9 +14,8 @@ package billing
// 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"
)
// OperationsClient is the billing client provides access to billing resources
// for Azure Web-Direct subscriptions. Other subscription types which were not
// purchased directly through the Azure web portal are not supported through
// OperationsClient is the billing client provides access to billing resources for Azure Web-Direct subscriptions.
// Other subscription types which were not purchased directly through the Azure web portal are not supported through
// this preview API.
type OperationsClient struct {
ManagementClient
@@ -37,8 +35,7 @@ func NewOperationsClient(subscriptionID string) OperationsClient {
return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient
// client.
// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
@@ -123,3 +120,48 @@ func (client OperationsClient) ListNextResults(lastResults OperationListResult)
return
}
// ListComplete gets all elements from the list without paging.
func (client OperationsClient) ListComplete(cancel <-chan struct{}) (<-chan Operation, <-chan error) {
resultChan := make(chan Operation)
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
}
+56 -17
View File
@@ -14,9 +14,8 @@ package billing
// 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,10 +24,9 @@ import (
"net/http"
)
// PeriodsClient is the billing client provides access to billing resources for
// Azure Web-Direct subscriptions. Other subscription types which were not
// purchased directly through the Azure web portal are not supported through
// this preview API.
// PeriodsClient is the billing client provides access to billing resources for Azure Web-Direct subscriptions. Other
// subscription types which were not purchased directly through the Azure web portal are not supported through this
// preview API.
type PeriodsClient struct {
ManagementClient
}
@@ -107,17 +105,13 @@ func (client PeriodsClient) GetResponder(resp *http.Response) (result Period, er
return
}
// List lists the available billing periods for a subscription in reverse
// chronological order.
// List lists the available billing periods for a subscription in reverse chronological order.
//
// filter is may be used to filter billing periods by billingPeriodEndDate. The
// filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not
// currently support 'ne', 'or', or 'not'. skiptoken is skiptoken is only used
// if a previous operation returned a partial result. If a previous response
// contains a nextLink element, the value of the nextLink element will include
// a skiptoken parameter that specifies a starting point to use for subsequent
// calls. top is may be used to limit the number of results to the most recent
// N billing periods.
// filter is may be used to filter billing periods by billingPeriodEndDate. The filter supports 'eq', 'lt', 'gt', 'le',
// 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. skiptoken is skiptoken is only used if a
// previous operation returned a partial result. If a previous response contains a nextLink element, the value of the
// nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. top
// is may be used to limit the number of results to the most recent N billing periods.
func (client PeriodsClient) List(filter string, skiptoken string, top *int32) (result PeriodsListResult, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: top,
@@ -219,3 +213,48 @@ func (client PeriodsClient) ListNextResults(lastResults PeriodsListResult) (resu
return
}
// ListComplete gets all elements from the list without paging.
func (client PeriodsClient) ListComplete(filter string, skiptoken string, top *int32, cancel <-chan struct{}) (<-chan Period, <-chan error) {
resultChan := make(chan Period)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.List(filter, skiptoken, top)
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
}
+4 -5
View File
@@ -14,16 +14,15 @@ package billing
// 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.
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/v10.1.0-beta arm-billing/2017-04-24-preview"
return "Azure-SDK-For-Go/v11.0.0-beta arm-billing/2017-04-24-preview"
}
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return "v10.1.0-beta"
return "v11.0.0-beta"
}