mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-30 04:20:53 +00:00
Update vendored deps, including AWS SDK, openpgp, ftp, ...
This commit is contained in:
+9
-16
@@ -12,7 +12,7 @@ const opDeleteReportDefinition = "DeleteReportDefinition"
|
||||
|
||||
// DeleteReportDefinitionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteReportDefinition operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -33,7 +33,7 @@ const opDeleteReportDefinition = "DeleteReportDefinition"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition
|
||||
func (c *CostandUsageReportService) DeleteReportDefinitionRequest(input *DeleteReportDefinitionInput) (req *request.Request, output *DeleteReportDefinitionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDeleteReportDefinition,
|
||||
@@ -70,7 +70,7 @@ func (c *CostandUsageReportService) DeleteReportDefinitionRequest(input *DeleteR
|
||||
// preference with an invalid report name, or Delete a report preference with
|
||||
// an empty report name.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition
|
||||
func (c *CostandUsageReportService) DeleteReportDefinition(input *DeleteReportDefinitionInput) (*DeleteReportDefinitionOutput, error) {
|
||||
req, out := c.DeleteReportDefinitionRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -96,7 +96,7 @@ const opDescribeReportDefinitions = "DescribeReportDefinitions"
|
||||
|
||||
// DescribeReportDefinitionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeReportDefinitions operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -117,7 +117,7 @@ const opDescribeReportDefinitions = "DescribeReportDefinitions"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions
|
||||
func (c *CostandUsageReportService) DescribeReportDefinitionsRequest(input *DescribeReportDefinitionsInput) (req *request.Request, output *DescribeReportDefinitionsOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opDescribeReportDefinitions,
|
||||
@@ -155,7 +155,7 @@ func (c *CostandUsageReportService) DescribeReportDefinitionsRequest(input *Desc
|
||||
// * ErrCodeInternalErrorException "InternalErrorException"
|
||||
// This exception is thrown on a known dependency failure.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitions
|
||||
func (c *CostandUsageReportService) DescribeReportDefinitions(input *DescribeReportDefinitionsInput) (*DescribeReportDefinitionsOutput, error) {
|
||||
req, out := c.DescribeReportDefinitionsRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -231,7 +231,7 @@ const opPutReportDefinition = "PutReportDefinition"
|
||||
|
||||
// PutReportDefinitionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the PutReportDefinition operation. The "output" return
|
||||
// value will be populated with the request's response once the request complets
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
@@ -252,7 +252,7 @@ const opPutReportDefinition = "PutReportDefinition"
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition
|
||||
func (c *CostandUsageReportService) PutReportDefinitionRequest(input *PutReportDefinitionInput) (req *request.Request, output *PutReportDefinitionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opPutReportDefinition,
|
||||
@@ -297,7 +297,7 @@ func (c *CostandUsageReportService) PutReportDefinitionRequest(input *PutReportD
|
||||
// preference with an invalid report name, or Delete a report preference with
|
||||
// an empty report name.
|
||||
//
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition
|
||||
func (c *CostandUsageReportService) PutReportDefinition(input *PutReportDefinitionInput) (*PutReportDefinitionOutput, error) {
|
||||
req, out := c.PutReportDefinitionRequest(input)
|
||||
return out, req.Send()
|
||||
@@ -320,7 +320,6 @@ func (c *CostandUsageReportService) PutReportDefinitionWithContext(ctx aws.Conte
|
||||
}
|
||||
|
||||
// Request of DeleteReportDefinition
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinitionRequest
|
||||
type DeleteReportDefinitionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -346,7 +345,6 @@ func (s *DeleteReportDefinitionInput) SetReportName(v string) *DeleteReportDefin
|
||||
}
|
||||
|
||||
// Response of DeleteReportDefinition
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinitionResponse
|
||||
type DeleteReportDefinitionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -371,7 +369,6 @@ func (s *DeleteReportDefinitionOutput) SetResponseMessage(v string) *DeleteRepor
|
||||
}
|
||||
|
||||
// Request of DescribeReportDefinitions
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitionsRequest
|
||||
type DescribeReportDefinitionsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -418,7 +415,6 @@ func (s *DescribeReportDefinitionsInput) SetNextToken(v string) *DescribeReportD
|
||||
}
|
||||
|
||||
// Response of DescribeReportDefinitions
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DescribeReportDefinitionsResponse
|
||||
type DescribeReportDefinitionsOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -452,7 +448,6 @@ func (s *DescribeReportDefinitionsOutput) SetReportDefinitions(v []*ReportDefini
|
||||
}
|
||||
|
||||
// Request of PutReportDefinition
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinitionRequest
|
||||
type PutReportDefinitionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@@ -499,7 +494,6 @@ func (s *PutReportDefinitionInput) SetReportDefinition(v *ReportDefinition) *Put
|
||||
}
|
||||
|
||||
// Response of PutReportDefinition
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinitionResponse
|
||||
type PutReportDefinitionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
@@ -517,7 +511,6 @@ func (s PutReportDefinitionOutput) GoString() string {
|
||||
// The definition of AWS Cost and Usage Report. Customer can specify the report
|
||||
// name, time unit, report format, compression format, S3 bucket and additional
|
||||
// artifacts and schema elements in the definition.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ReportDefinition
|
||||
type ReportDefinition struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS Cost and Usage Report Service with the SDK use the New function to create
|
||||
// To contact AWS Cost and Usage Report 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.
|
||||
//
|
||||
|
||||
+3
-3
@@ -45,14 +45,14 @@ const (
|
||||
// svc := costandusagereportservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CostandUsageReportService {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "cur"
|
||||
}
|
||||
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) *CostandUsageReportService {
|
||||
if len(signingName) == 0 {
|
||||
signingName = "cur"
|
||||
}
|
||||
svc := &CostandUsageReportService{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
|
||||
Reference in New Issue
Block a user