mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-03 05:00:56 +00:00
Update vendored deps, including AWS SDK, openpgp, ftp, ...
This commit is contained in:
+738
-212
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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.
|
||||
//
|
||||
|
||||
Generated
Vendored
+43
@@ -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"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Generated
Vendored
+8
@@ -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)
|
||||
|
||||
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user