vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2017-07-23 08:51:42 +01:00
parent 0b6fba34a3
commit eb87cf6f12
2008 changed files with 352617 additions and 1004734 deletions
+26 -17
View File
@@ -1167,12 +1167,12 @@ type Budget struct {
// BudgetLimit is a required field
BudgetLimit *Spend `type:"structure" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
// The type of a budget. Can be COST or USAGE.
// The type of a budget. It should be COST, USAGE, or RI_UTILIZATION.
//
// BudgetType is a required field
BudgetType *string `type:"string" required:"true" enum:"BudgetType"`
@@ -1193,7 +1193,7 @@ type Budget struct {
// TimePeriod is a required field
TimePeriod *TimePeriod `type:"structure" required:"true"`
// The time unit of the budget. e.g. weekly, monthly, etc.
// The time unit of the budget. e.g. MONTHLY, QUARTERLY, etc.
//
// TimeUnit is a required field
TimeUnit *string `type:"string" required:"true" enum:"TimeUnit"`
@@ -1536,7 +1536,7 @@ type CreateNotificationInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -1654,7 +1654,7 @@ type CreateSubscriberInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -1765,7 +1765,7 @@ type DeleteBudgetInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -1836,7 +1836,7 @@ type DeleteNotificationInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -1927,7 +1927,7 @@ type DeleteSubscriberInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -2038,7 +2038,7 @@ type DescribeBudgetInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -2215,7 +2215,7 @@ type DescribeNotificationsForBudgetInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -2326,7 +2326,7 @@ type DescribeSubscribersForNotificationInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -2604,10 +2604,10 @@ type Spend struct {
// Amount is a required field
Amount *string `type:"string" required:"true"`
// A generic String.
// A string to represent budget spend unit. It should be not null and not empty.
//
// Unit is a required field
Unit *string `type:"string" required:"true"`
Unit *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
@@ -2629,6 +2629,9 @@ func (s *Spend) Validate() error {
if s.Unit == nil {
invalidParams.Add(request.NewErrParamRequired("Unit"))
}
if s.Unit != nil && len(*s.Unit) < 1 {
invalidParams.Add(request.NewErrParamMinLen("Unit", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
@@ -2840,7 +2843,7 @@ type UpdateNotificationInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -2951,7 +2954,7 @@ type UpdateSubscriberInput struct {
// AccountId is a required field
AccountId *string `min:"12" type:"string" required:"true"`
// A string represents the budget name. No ":" character is allowed.
// A string represents the budget name. No ":" and "\" character is allowed.
//
// BudgetName is a required field
BudgetName *string `type:"string" required:"true"`
@@ -3073,13 +3076,16 @@ func (s UpdateSubscriberOutput) GoString() string {
return s.String()
}
// The type of a budget. Can be COST or USAGE.
// The type of a budget. It should be COST, USAGE, or RI_UTILIZATION.
const (
// BudgetTypeUsage is a BudgetType enum value
BudgetTypeUsage = "USAGE"
// BudgetTypeCost is a BudgetType enum value
BudgetTypeCost = "COST"
// BudgetTypeRiUtilization is a BudgetType enum value
BudgetTypeRiUtilization = "RI_UTILIZATION"
)
// The comparison operator of a notification. Currently we support less than,
@@ -3113,8 +3119,11 @@ const (
SubscriptionTypeEmail = "EMAIL"
)
// The time unit of the budget. e.g. weekly, monthly, etc.
// The time unit of the budget. e.g. MONTHLY, QUARTERLY, etc.
const (
// TimeUnitDaily is a TimeUnit enum value
TimeUnitDaily = "DAILY"
// TimeUnitMonthly is a TimeUnit enum value
TimeUnitMonthly = "MONTHLY"
-455
View File
@@ -1,455 +0,0 @@
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package budgets_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/budgets"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleBudgets_CreateBudget() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.CreateBudgetInput{
AccountId: aws.String("AccountId"), // Required
Budget: &budgets.Budget{ // Required
BudgetLimit: &budgets.Spend{ // Required
Amount: aws.String("NumericValue"), // Required
Unit: aws.String("GenericString"), // Required
},
BudgetName: aws.String("BudgetName"), // Required
BudgetType: aws.String("BudgetType"), // Required
CostTypes: &budgets.CostTypes{ // Required
IncludeSubscription: aws.Bool(true), // Required
IncludeTax: aws.Bool(true), // Required
UseBlended: aws.Bool(true), // Required
},
TimePeriod: &budgets.TimePeriod{ // Required
End: aws.Time(time.Now()), // Required
Start: aws.Time(time.Now()), // Required
},
TimeUnit: aws.String("TimeUnit"), // Required
CalculatedSpend: &budgets.CalculatedSpend{
ActualSpend: &budgets.Spend{ // Required
Amount: aws.String("NumericValue"), // Required
Unit: aws.String("GenericString"), // Required
},
ForecastedSpend: &budgets.Spend{
Amount: aws.String("NumericValue"), // Required
Unit: aws.String("GenericString"), // Required
},
},
CostFilters: map[string][]*string{
"Key": { // Required
aws.String("GenericString"), // Required
// More values...
},
// More values...
},
},
NotificationsWithSubscribers: []*budgets.NotificationWithSubscribers{
{ // Required
Notification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
Subscribers: []*budgets.Subscriber{ // Required
{ // Required
Address: aws.String("GenericString"), // Required
SubscriptionType: aws.String("SubscriptionType"), // Required
},
// More values...
},
},
// More values...
},
}
resp, err := svc.CreateBudget(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_CreateNotification() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.CreateNotificationInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
Notification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
Subscribers: []*budgets.Subscriber{ // Required
{ // Required
Address: aws.String("GenericString"), // Required
SubscriptionType: aws.String("SubscriptionType"), // Required
},
// More values...
},
}
resp, err := svc.CreateNotification(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_CreateSubscriber() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.CreateSubscriberInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
Notification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
Subscriber: &budgets.Subscriber{ // Required
Address: aws.String("GenericString"), // Required
SubscriptionType: aws.String("SubscriptionType"), // Required
},
}
resp, err := svc.CreateSubscriber(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_DeleteBudget() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.DeleteBudgetInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
}
resp, err := svc.DeleteBudget(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_DeleteNotification() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.DeleteNotificationInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
Notification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
}
resp, err := svc.DeleteNotification(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_DeleteSubscriber() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.DeleteSubscriberInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
Notification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
Subscriber: &budgets.Subscriber{ // Required
Address: aws.String("GenericString"), // Required
SubscriptionType: aws.String("SubscriptionType"), // Required
},
}
resp, err := svc.DeleteSubscriber(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_DescribeBudget() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.DescribeBudgetInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
}
resp, err := svc.DescribeBudget(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_DescribeBudgets() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.DescribeBudgetsInput{
AccountId: aws.String("AccountId"), // Required
MaxResults: aws.Int64(1),
NextToken: aws.String("GenericString"),
}
resp, err := svc.DescribeBudgets(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_DescribeNotificationsForBudget() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.DescribeNotificationsForBudgetInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
MaxResults: aws.Int64(1),
NextToken: aws.String("GenericString"),
}
resp, err := svc.DescribeNotificationsForBudget(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_DescribeSubscribersForNotification() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.DescribeSubscribersForNotificationInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
Notification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
MaxResults: aws.Int64(1),
NextToken: aws.String("GenericString"),
}
resp, err := svc.DescribeSubscribersForNotification(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_UpdateBudget() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.UpdateBudgetInput{
AccountId: aws.String("AccountId"), // Required
NewBudget: &budgets.Budget{ // Required
BudgetLimit: &budgets.Spend{ // Required
Amount: aws.String("NumericValue"), // Required
Unit: aws.String("GenericString"), // Required
},
BudgetName: aws.String("BudgetName"), // Required
BudgetType: aws.String("BudgetType"), // Required
CostTypes: &budgets.CostTypes{ // Required
IncludeSubscription: aws.Bool(true), // Required
IncludeTax: aws.Bool(true), // Required
UseBlended: aws.Bool(true), // Required
},
TimePeriod: &budgets.TimePeriod{ // Required
End: aws.Time(time.Now()), // Required
Start: aws.Time(time.Now()), // Required
},
TimeUnit: aws.String("TimeUnit"), // Required
CalculatedSpend: &budgets.CalculatedSpend{
ActualSpend: &budgets.Spend{ // Required
Amount: aws.String("NumericValue"), // Required
Unit: aws.String("GenericString"), // Required
},
ForecastedSpend: &budgets.Spend{
Amount: aws.String("NumericValue"), // Required
Unit: aws.String("GenericString"), // Required
},
},
CostFilters: map[string][]*string{
"Key": { // Required
aws.String("GenericString"), // Required
// More values...
},
// More values...
},
},
}
resp, err := svc.UpdateBudget(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_UpdateNotification() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.UpdateNotificationInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
NewNotification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
OldNotification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
}
resp, err := svc.UpdateNotification(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}
func ExampleBudgets_UpdateSubscriber() {
sess := session.Must(session.NewSession())
svc := budgets.New(sess)
params := &budgets.UpdateSubscriberInput{
AccountId: aws.String("AccountId"), // Required
BudgetName: aws.String("BudgetName"), // Required
NewSubscriber: &budgets.Subscriber{ // Required
Address: aws.String("GenericString"), // Required
SubscriptionType: aws.String("SubscriptionType"), // Required
},
Notification: &budgets.Notification{ // Required
ComparisonOperator: aws.String("ComparisonOperator"), // Required
NotificationType: aws.String("NotificationType"), // Required
Threshold: aws.Float64(1.0), // Required
},
OldSubscriber: &budgets.Subscriber{ // Required
Address: aws.String("GenericString"), // Required
SubscriptionType: aws.String("SubscriptionType"), // Required
},
}
resp, err := svc.UpdateSubscriber(params)
if err != nil {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
return
}
// Pretty-print the response data.
fmt.Println(resp)
}