mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-01 04:40:38 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+52
-4
@@ -13,7 +13,7 @@ const opDescribeJobExecution = "DescribeJobExecution"
|
||||
// DescribeJobExecutionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeJobExecution 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.
|
||||
@@ -109,7 +109,7 @@ const opGetPendingJobExecutions = "GetPendingJobExecutions"
|
||||
// GetPendingJobExecutionsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetPendingJobExecutions 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.
|
||||
@@ -202,7 +202,7 @@ const opStartNextPendingJobExecution = "StartNextPendingJobExecution"
|
||||
// StartNextPendingJobExecutionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StartNextPendingJobExecution 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.
|
||||
@@ -296,7 +296,7 @@ const opUpdateJobExecution = "UpdateJobExecution"
|
||||
// UpdateJobExecutionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateJobExecution 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.
|
||||
@@ -428,6 +428,9 @@ func (s *DescribeJobExecutionInput) Validate() error {
|
||||
if s.JobId == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("JobId"))
|
||||
}
|
||||
if s.JobId != nil && len(*s.JobId) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("JobId", 1))
|
||||
}
|
||||
if s.ThingName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("ThingName"))
|
||||
}
|
||||
@@ -565,6 +568,10 @@ func (s *GetPendingJobExecutionsOutput) SetQueuedJobs(v []*JobExecutionSummary)
|
||||
type JobExecution struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The estimated number of seconds that remain before the job execution status
|
||||
// will be changed to TIMED_OUT.
|
||||
ApproximateSecondsBeforeTimedOut *int64 `locationName:"approximateSecondsBeforeTimedOut" type:"long"`
|
||||
|
||||
// A number that identifies a particular job execution on a particular device.
|
||||
// It can be used later in commands that return or update job execution information.
|
||||
ExecutionNumber *int64 `locationName:"executionNumber" type:"long"`
|
||||
@@ -610,6 +617,12 @@ func (s JobExecution) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetApproximateSecondsBeforeTimedOut sets the ApproximateSecondsBeforeTimedOut field's value.
|
||||
func (s *JobExecution) SetApproximateSecondsBeforeTimedOut(v int64) *JobExecution {
|
||||
s.ApproximateSecondsBeforeTimedOut = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetExecutionNumber sets the ExecutionNumber field's value.
|
||||
func (s *JobExecution) SetExecutionNumber(v int64) *JobExecution {
|
||||
s.ExecutionNumber = &v
|
||||
@@ -792,6 +805,16 @@ type StartNextPendingJobExecutionInput struct {
|
||||
// If not specified, the statusDetails are unchanged.
|
||||
StatusDetails map[string]*string `locationName:"statusDetails" type:"map"`
|
||||
|
||||
// Specifies the amount of time this device has to finish execution of this
|
||||
// job. If the job execution status is not set to a terminal state before this
|
||||
// timer expires, or before the timer is reset (by calling UpdateJobExecution,
|
||||
// setting the status to IN_PROGRESS and specifying a new timeout value in field
|
||||
// stepTimeoutInMinutes) the job execution status will be automatically set
|
||||
// to TIMED_OUT. Note that setting this timeout has no effect on that job execution
|
||||
// timeout which may have been specified when the job was created (CreateJob
|
||||
// using field timeoutConfig).
|
||||
StepTimeoutInMinutes *int64 `locationName:"stepTimeoutInMinutes" type:"long"`
|
||||
|
||||
// The name of the thing associated with the device.
|
||||
//
|
||||
// ThingName is a required field
|
||||
@@ -830,6 +853,12 @@ func (s *StartNextPendingJobExecutionInput) SetStatusDetails(v map[string]*strin
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStepTimeoutInMinutes sets the StepTimeoutInMinutes field's value.
|
||||
func (s *StartNextPendingJobExecutionInput) SetStepTimeoutInMinutes(v int64) *StartNextPendingJobExecutionInput {
|
||||
s.StepTimeoutInMinutes = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetThingName sets the ThingName field's value.
|
||||
func (s *StartNextPendingJobExecutionInput) SetThingName(v string) *StartNextPendingJobExecutionInput {
|
||||
s.ThingName = &v
|
||||
@@ -898,6 +927,16 @@ type UpdateJobExecutionInput struct {
|
||||
// job execution. If not specified, the statusDetails are unchanged.
|
||||
StatusDetails map[string]*string `locationName:"statusDetails" type:"map"`
|
||||
|
||||
// Specifies the amount of time this device has to finish execution of this
|
||||
// job. If the job execution status is not set to a terminal state before this
|
||||
// timer expires, or before the timer is reset (by again calling UpdateJobExecution,
|
||||
// setting the status to IN_PROGRESS and specifying a new timeout value in this
|
||||
// field) the job execution status will be automatically set to TIMED_OUT. Note
|
||||
// that setting or resetting this timeout has no effect on that job execution
|
||||
// timeout which may have been specified when the job was created (CreateJob
|
||||
// using field timeoutConfig).
|
||||
StepTimeoutInMinutes *int64 `locationName:"stepTimeoutInMinutes" type:"long"`
|
||||
|
||||
// The name of the thing associated with the device.
|
||||
//
|
||||
// ThingName is a required field
|
||||
@@ -981,6 +1020,12 @@ func (s *UpdateJobExecutionInput) SetStatusDetails(v map[string]*string) *Update
|
||||
return s
|
||||
}
|
||||
|
||||
// SetStepTimeoutInMinutes sets the StepTimeoutInMinutes field's value.
|
||||
func (s *UpdateJobExecutionInput) SetStepTimeoutInMinutes(v int64) *UpdateJobExecutionInput {
|
||||
s.StepTimeoutInMinutes = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetThingName sets the ThingName field's value.
|
||||
func (s *UpdateJobExecutionInput) SetThingName(v string) *UpdateJobExecutionInput {
|
||||
s.ThingName = &v
|
||||
@@ -1032,6 +1077,9 @@ const (
|
||||
// JobExecutionStatusFailed is a JobExecutionStatus enum value
|
||||
JobExecutionStatusFailed = "FAILED"
|
||||
|
||||
// JobExecutionStatusTimedOut is a JobExecutionStatus enum value
|
||||
JobExecutionStatusTimedOut = "TIMED_OUT"
|
||||
|
||||
// JobExecutionStatusRejected is a JobExecutionStatus enum value
|
||||
JobExecutionStatusRejected = "REJECTED"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user