mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+34
-32
@@ -18,7 +18,7 @@ const opBulkPublish = "BulkPublish"
|
||||
// BulkPublishRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the BulkPublish operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -120,7 +120,7 @@ const opDeleteDataset = "DeleteDataset"
|
||||
// DeleteDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteDataset operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -221,7 +221,7 @@ const opDescribeDataset = "DescribeDataset"
|
||||
// DescribeDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeDataset operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -318,7 +318,7 @@ const opDescribeIdentityPoolUsage = "DescribeIdentityPoolUsage"
|
||||
// DescribeIdentityPoolUsageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeIdentityPoolUsage operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -413,7 +413,7 @@ const opDescribeIdentityUsage = "DescribeIdentityUsage"
|
||||
// DescribeIdentityUsageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeIdentityUsage operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -508,7 +508,7 @@ const opGetBulkPublishDetails = "GetBulkPublishDetails"
|
||||
// GetBulkPublishDetailsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetBulkPublishDetails operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -599,7 +599,7 @@ const opGetCognitoEvents = "GetCognitoEvents"
|
||||
// GetCognitoEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetCognitoEvents operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -694,7 +694,7 @@ const opGetIdentityPoolConfiguration = "GetIdentityPoolConfiguration"
|
||||
// GetIdentityPoolConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetIdentityPoolConfiguration operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -788,7 +788,7 @@ const opListDatasets = "ListDatasets"
|
||||
// ListDatasetsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListDatasets operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -882,7 +882,7 @@ const opListIdentityPoolUsage = "ListIdentityPoolUsage"
|
||||
// ListIdentityPoolUsageRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListIdentityPoolUsage operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -974,7 +974,7 @@ const opListRecords = "ListRecords"
|
||||
// ListRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ListRecords operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -1069,7 +1069,7 @@ const opRegisterDevice = "RegisterDevice"
|
||||
// RegisterDeviceRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RegisterDevice operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -1165,7 +1165,7 @@ const opSetCognitoEvents = "SetCognitoEvents"
|
||||
// SetCognitoEventsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetCognitoEvents operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -1199,8 +1199,7 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req
|
||||
|
||||
output = &SetCognitoEventsOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1264,7 +1263,7 @@ const opSetIdentityPoolConfiguration = "SetIdentityPoolConfiguration"
|
||||
// SetIdentityPoolConfigurationRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SetIdentityPoolConfiguration operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -1361,7 +1360,7 @@ const opSubscribeToDataset = "SubscribeToDataset"
|
||||
// SubscribeToDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the SubscribeToDataset operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -1395,6 +1394,7 @@ func (c *CognitoSync) SubscribeToDatasetRequest(input *SubscribeToDatasetInput)
|
||||
|
||||
output = &SubscribeToDatasetOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1458,7 +1458,7 @@ const opUnsubscribeFromDataset = "UnsubscribeFromDataset"
|
||||
// UnsubscribeFromDatasetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UnsubscribeFromDataset operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -1492,6 +1492,7 @@ func (c *CognitoSync) UnsubscribeFromDatasetRequest(input *UnsubscribeFromDatase
|
||||
|
||||
output = &UnsubscribeFromDatasetOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1555,7 +1556,7 @@ const opUpdateRecords = "UpdateRecords"
|
||||
// UpdateRecordsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateRecords operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -1750,8 +1751,8 @@ type CognitoStreams struct {
|
||||
// the developers account and in the same region as the identity pool.
|
||||
StreamName *string `min:"1" type:"string"`
|
||||
|
||||
// Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates
|
||||
// to identity pool is enabled.
|
||||
// Status of the Cognito streams. Valid values are:
|
||||
// ENABLED - Streaming of updates to identity pool is enabled.
|
||||
//
|
||||
// DISABLED - Streaming of updates to identity pool is disabled. Bulk publish
|
||||
// will also fail if StreamingStatus is DISABLED.
|
||||
@@ -1811,7 +1812,7 @@ type Dataset struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Date on which the dataset was created.
|
||||
CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
CreationDate *time.Time `type:"timestamp"`
|
||||
|
||||
// Total size in bytes of the records in this dataset.
|
||||
DataStorage *int64 `type:"long"`
|
||||
@@ -1828,7 +1829,7 @@ type Dataset struct {
|
||||
LastModifiedBy *string `type:"string"`
|
||||
|
||||
// Date when the dataset was last modified.
|
||||
LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
LastModifiedDate *time.Time `type:"timestamp"`
|
||||
|
||||
// Number of records in this dataset.
|
||||
NumRecords *int64 `type:"long"`
|
||||
@@ -2302,13 +2303,13 @@ type GetBulkPublishDetailsOutput struct {
|
||||
|
||||
// If BulkPublishStatus is SUCCEEDED, the time the last bulk publish operation
|
||||
// completed.
|
||||
BulkPublishCompleteTime *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
BulkPublishCompleteTime *time.Time `type:"timestamp"`
|
||||
|
||||
// The date/time at which the last bulk publish was initiated.
|
||||
BulkPublishStartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
BulkPublishStartTime *time.Time `type:"timestamp"`
|
||||
|
||||
// Status of the last bulk publish operation, valid values are: NOT_STARTED
|
||||
// - No bulk publish has been requested for this identity pool
|
||||
// Status of the last bulk publish operation, valid values are:
|
||||
// NOT_STARTED - No bulk publish has been requested for this identity pool
|
||||
//
|
||||
// IN_PROGRESS - Data is being published to the configured stream
|
||||
//
|
||||
@@ -2533,7 +2534,7 @@ type IdentityPoolUsage struct {
|
||||
IdentityPoolId *string `min:"1" type:"string"`
|
||||
|
||||
// Date on which the identity pool was last modified.
|
||||
LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
LastModifiedDate *time.Time `type:"timestamp"`
|
||||
|
||||
// Number of sync sessions for the identity pool.
|
||||
SyncSessionsCount *int64 `type:"long"`
|
||||
@@ -2592,7 +2593,7 @@ type IdentityUsage struct {
|
||||
IdentityPoolId *string `min:"1" type:"string"`
|
||||
|
||||
// Date on which the identity was last modified.
|
||||
LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
LastModifiedDate *time.Time `type:"timestamp"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
@@ -3102,7 +3103,7 @@ type Record struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The last modified date of the client device.
|
||||
DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
DeviceLastModifiedDate *time.Time `type:"timestamp"`
|
||||
|
||||
// The key for the record.
|
||||
Key *string `min:"1" type:"string"`
|
||||
@@ -3111,7 +3112,7 @@ type Record struct {
|
||||
LastModifiedBy *string `type:"string"`
|
||||
|
||||
// The date on which the record was last modified.
|
||||
LastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
LastModifiedDate *time.Time `type:"timestamp"`
|
||||
|
||||
// The server sync count for this record.
|
||||
SyncCount *int64 `type:"long"`
|
||||
@@ -3171,7 +3172,7 @@ type RecordPatch struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The last modified date of the client device.
|
||||
DeviceLastModifiedDate *time.Time `type:"timestamp" timestampFormat:"unix"`
|
||||
DeviceLastModifiedDate *time.Time `type:"timestamp"`
|
||||
|
||||
// The key associated with the record patch.
|
||||
//
|
||||
@@ -3368,6 +3369,7 @@ func (s *RegisterDeviceOutput) SetDeviceId(v string) *RegisterDeviceOutput {
|
||||
}
|
||||
|
||||
// A request to configure Cognito Events"
|
||||
// "
|
||||
type SetCognitoEventsInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
|
||||
+4
-3
@@ -29,8 +29,9 @@ var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "cognito-sync" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
ServiceName = "cognito-sync" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "Cognito Sync" // ServiceID is a unique identifer of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the CognitoSync client with a session.
|
||||
@@ -55,11 +56,11 @@ func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegio
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2014-06-30",
|
||||
JSONVersion: "1.1",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user