Update vendored deps, including AWS SDK, openpgp, ftp, ...

This commit is contained in:
Andrey Smirnov
2018-04-05 17:46:45 +03:00
parent cef4fefc40
commit 0e6ee35942
1497 changed files with 450721 additions and 68034 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -14,7 +14,7 @@
//
// Using the Client
//
// To Amazon Lex Model Building Service with the SDK use the New function to create
// To contact Amazon Lex Model Building Service with the SDK use the New function to create
// a new service client. With that client you can make API requests to the service.
// These clients are safe to use concurrently.
//
@@ -378,6 +378,23 @@ func ExampleLexModelBuildingService_PutIntent_shared00() {
SlotConstraint: aws.String("Required"),
SlotType: aws.String("DocPizzaType"),
SlotTypeVersion: aws.String("$LATEST"),
ValueElicitationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("What type of pizza would you like?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("Vegie or cheese pizza?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("I can get you a vegie or a cheese pizza."),
ContentType: aws.String("PlainText"),
},
},
},
},
{
Description: aws.String("The type of pizza crust to order."),
@@ -390,6 +407,19 @@ func ExampleLexModelBuildingService_PutIntent_shared00() {
SlotConstraint: aws.String("Required"),
SlotType: aws.String("DocPizzaCrustType"),
SlotTypeVersion: aws.String("$LATEST"),
ValueElicitationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("What type of crust would you like?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("Thick or thin crust?"),
ContentType: aws.String("PlainText"),
},
},
},
},
{
Description: aws.String("The type of sauce to use on the pizza."),
@@ -402,6 +432,19 @@ func ExampleLexModelBuildingService_PutIntent_shared00() {
SlotConstraint: aws.String("Required"),
SlotType: aws.String("DocPizzaSauceType"),
SlotTypeVersion: aws.String("$LATEST"),
ValueElicitationPrompt: &lexmodelbuildingservice.Prompt{
MaxAttempts: aws.Int64(1),
Messages: []*lexmodelbuildingservice.Message{
{
Content: aws.String("White or red sauce?"),
ContentType: aws.String("PlainText"),
},
{
Content: aws.String("Garlic or tomato sauce?"),
ContentType: aws.String("PlainText"),
},
},
},
},
},
}
@@ -170,6 +170,10 @@ type LexModelBuildingServiceAPI interface {
GetExportWithContext(aws.Context, *lexmodelbuildingservice.GetExportInput, ...request.Option) (*lexmodelbuildingservice.GetExportOutput, error)
GetExportRequest(*lexmodelbuildingservice.GetExportInput) (*request.Request, *lexmodelbuildingservice.GetExportOutput)
GetImport(*lexmodelbuildingservice.GetImportInput) (*lexmodelbuildingservice.GetImportOutput, error)
GetImportWithContext(aws.Context, *lexmodelbuildingservice.GetImportInput, ...request.Option) (*lexmodelbuildingservice.GetImportOutput, error)
GetImportRequest(*lexmodelbuildingservice.GetImportInput) (*request.Request, *lexmodelbuildingservice.GetImportOutput)
GetIntent(*lexmodelbuildingservice.GetIntentInput) (*lexmodelbuildingservice.GetIntentOutput, error)
GetIntentWithContext(aws.Context, *lexmodelbuildingservice.GetIntentInput, ...request.Option) (*lexmodelbuildingservice.GetIntentOutput, error)
GetIntentRequest(*lexmodelbuildingservice.GetIntentInput) (*request.Request, *lexmodelbuildingservice.GetIntentOutput)
@@ -225,6 +229,10 @@ type LexModelBuildingServiceAPI interface {
PutSlotType(*lexmodelbuildingservice.PutSlotTypeInput) (*lexmodelbuildingservice.PutSlotTypeOutput, error)
PutSlotTypeWithContext(aws.Context, *lexmodelbuildingservice.PutSlotTypeInput, ...request.Option) (*lexmodelbuildingservice.PutSlotTypeOutput, error)
PutSlotTypeRequest(*lexmodelbuildingservice.PutSlotTypeInput) (*request.Request, *lexmodelbuildingservice.PutSlotTypeOutput)
StartImport(*lexmodelbuildingservice.StartImportInput) (*lexmodelbuildingservice.StartImportOutput, error)
StartImportWithContext(aws.Context, *lexmodelbuildingservice.StartImportInput, ...request.Option) (*lexmodelbuildingservice.StartImportOutput, error)
StartImportRequest(*lexmodelbuildingservice.StartImportInput) (*request.Request, *lexmodelbuildingservice.StartImportOutput)
}
var _ LexModelBuildingServiceAPI = (*lexmodelbuildingservice.LexModelBuildingService)(nil)
@@ -45,14 +45,14 @@ const (
// svc := lexmodelbuildingservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func New(p client.ConfigProvider, cfgs ...*aws.Config) *LexModelBuildingService {
c := p.ClientConfig(EndpointsID, cfgs...)
if c.SigningNameDerived || len(c.SigningName) == 0 {
c.SigningName = "lex"
}
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
}
// newClient creates, initializes and returns a new service client instance.
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *LexModelBuildingService {
if len(signingName) == 0 {
signingName = "lex"
}
svc := &LexModelBuildingService{
Client: client.New(
cfg,