vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood 2018-06-17 17:59:12 +01:00
parent 3f0789e2db
commit 08021c4636
2474 changed files with 435818 additions and 282709 deletions

View file

@ -388,7 +388,7 @@ func (c *CodeBuild) CreateWebhookRequest(input *CreateWebhookInput) (req *reques
// AWS CodePipeline. Because billing is on a per-build basis, you will be billed
// for both builds. Therefore, if you are using AWS CodePipeline, we recommend
// that you disable webhooks in CodeBuild. In the AWS CodeBuild console, clear
// the Webhook box. For more information, see step 9 in Change a Build Project's
// the Webhook box. For more information, see step 5 in Change a Build Project's
// Settings (http://docs.aws.amazon.com/codebuild/latest/userguide/change-project.html#change-project-console).
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@ -1619,6 +1619,9 @@ type Build struct {
// The name of the AWS CodeBuild project.
ProjectName *string `locationName:"projectName" min:"1" type:"string"`
// The name of a service role used for this build.
ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"`
// Information about the source code to be built.
Source *ProjectSource `locationName:"source" type:"structure"`
@ -1733,6 +1736,12 @@ func (s *Build) SetProjectName(v string) *Build {
return s
}
// SetServiceRole sets the ServiceRole field's value.
func (s *Build) SetServiceRole(v string) *Build {
s.ServiceRole = &v
return s
}
// SetSource sets the Source field's value.
func (s *Build) SetSource(v *ProjectSource) *Build {
s.Source = v
@ -3256,10 +3265,21 @@ type ProjectArtifacts struct {
// because no build output will be produced.
//
// * If type is set to S3, this is the name of the output artifact object.
// If you set the name to be a forward slash ("/"), then the artifact is
// stored in the root of the output bucket.
//
// For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID,
// and name is set to MyArtifact.zip, then the output artifact would be stored
// in MyArtifacts/build-ID/MyArtifact.zip.
// For example:
//
// * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and
// name is set to MyArtifact.zip, then the output artifact would be stored
// in MyArtifacts/build-ID/MyArtifact.zip.
//
// * If path is empty, namespaceType is set to NONE, and name is set to
// "/", then the output artifact would be stored in the root of the output
// bucket.
//
// * If path is set to MyArtifacts, namespaceType is set to BUILD_ID, and
// name is set to "/", then the output artifact would be stored in MyArtifacts/build-ID.
Name *string `locationName:"name" type:"string"`
// Along with path and name, the pattern that AWS CodeBuild will use to determine
@ -3825,6 +3845,22 @@ type StartBuildInput struct {
// one already defined in the build project.
BuildspecOverride *string `locationName:"buildspecOverride" type:"string"`
// A ProjectCache object specified for this build that overrides the one defined
// in the build project.
CacheOverride *ProjectCache `locationName:"cacheOverride" type:"structure"`
// The name of a certificate for this build that overrides the one specified
// in the build project.
CertificateOverride *string `locationName:"certificateOverride" type:"string"`
// The name of a compute type for this build that overrides the one specified
// in the build project.
ComputeTypeOverride *string `locationName:"computeTypeOverride" type:"string" enum:"ComputeType"`
// A container type for this build that overrides the one specified in the build
// project.
EnvironmentTypeOverride *string `locationName:"environmentTypeOverride" type:"string" enum:"EnvironmentType"`
// A set of environment variables that overrides, for this build only, the latest
// ones already defined in the build project.
EnvironmentVariablesOverride []*EnvironmentVariable `locationName:"environmentVariablesOverride" type:"list"`
@ -3833,11 +3869,48 @@ type StartBuildInput struct {
// for this build only, any previous depth of history defined in the build project.
GitCloneDepthOverride *int64 `locationName:"gitCloneDepthOverride" type:"integer"`
// A unique, case sensitive identifier you provide to ensure the idempotency
// of the StartBuild request. The token is included in the StartBuild request
// and is valid for 12 hours. If you repeat the StartBuild request with the
// same token, but change a parameter, AWS CodeBuild returns a parameter mismatch
// error.
IdempotencyToken *string `locationName:"idempotencyToken" type:"string"`
// The name of an image for this build that overrides the one specified in the
// build project.
ImageOverride *string `locationName:"imageOverride" min:"1" type:"string"`
// Enable this flag to override the insecure SSL setting that is specified in
// the build project. The insecure SSL setting determines whether to ignore
// SSL warnings while connecting to the project source code. This override applies
// only if the build's source is GitHub Enterprise.
InsecureSslOverride *bool `locationName:"insecureSslOverride" type:"boolean"`
// Enable this flag to override privileged mode in the build project.
PrivilegedModeOverride *bool `locationName:"privilegedModeOverride" type:"boolean"`
// The name of the AWS CodeBuild build project to start running a build.
//
// ProjectName is a required field
ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"`
// The name of a service role for this build that overrides the one specified
// in the build project.
ServiceRoleOverride *string `locationName:"serviceRoleOverride" min:"1" type:"string"`
// An authorization type for this build that overrides the one defined in the
// build project. This override applies only if the build project's source is
// BitBucket or GitHub.
SourceAuthOverride *SourceAuth `locationName:"sourceAuthOverride" type:"structure"`
// A location that overrides for this build the source location for the one
// defined in the build project.
SourceLocationOverride *string `locationName:"sourceLocationOverride" type:"string"`
// A source input type for this build that overrides the source input defined
// in the build project
SourceTypeOverride *string `locationName:"sourceTypeOverride" type:"string" enum:"SourceType"`
// A version of the build input to be built, for this build only. If not specified,
// the latest version will be used. If specified, must be one of:
//
@ -3877,12 +3950,18 @@ func (s StartBuildInput) GoString() string {
// Validate inspects the fields of the type to determine if they are valid.
func (s *StartBuildInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "StartBuildInput"}
if s.ImageOverride != nil && len(*s.ImageOverride) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ImageOverride", 1))
}
if s.ProjectName == nil {
invalidParams.Add(request.NewErrParamRequired("ProjectName"))
}
if s.ProjectName != nil && len(*s.ProjectName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ProjectName", 1))
}
if s.ServiceRoleOverride != nil && len(*s.ServiceRoleOverride) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ServiceRoleOverride", 1))
}
if s.TimeoutInMinutesOverride != nil && *s.TimeoutInMinutesOverride < 5 {
invalidParams.Add(request.NewErrParamMinValue("TimeoutInMinutesOverride", 5))
}
@ -3891,6 +3970,11 @@ func (s *StartBuildInput) Validate() error {
invalidParams.AddNested("ArtifactsOverride", err.(request.ErrInvalidParams))
}
}
if s.CacheOverride != nil {
if err := s.CacheOverride.Validate(); err != nil {
invalidParams.AddNested("CacheOverride", err.(request.ErrInvalidParams))
}
}
if s.EnvironmentVariablesOverride != nil {
for i, v := range s.EnvironmentVariablesOverride {
if v == nil {
@ -3901,6 +3985,11 @@ func (s *StartBuildInput) Validate() error {
}
}
}
if s.SourceAuthOverride != nil {
if err := s.SourceAuthOverride.Validate(); err != nil {
invalidParams.AddNested("SourceAuthOverride", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
@ -3920,6 +4009,30 @@ func (s *StartBuildInput) SetBuildspecOverride(v string) *StartBuildInput {
return s
}
// SetCacheOverride sets the CacheOverride field's value.
func (s *StartBuildInput) SetCacheOverride(v *ProjectCache) *StartBuildInput {
s.CacheOverride = v
return s
}
// SetCertificateOverride sets the CertificateOverride field's value.
func (s *StartBuildInput) SetCertificateOverride(v string) *StartBuildInput {
s.CertificateOverride = &v
return s
}
// SetComputeTypeOverride sets the ComputeTypeOverride field's value.
func (s *StartBuildInput) SetComputeTypeOverride(v string) *StartBuildInput {
s.ComputeTypeOverride = &v
return s
}
// SetEnvironmentTypeOverride sets the EnvironmentTypeOverride field's value.
func (s *StartBuildInput) SetEnvironmentTypeOverride(v string) *StartBuildInput {
s.EnvironmentTypeOverride = &v
return s
}
// SetEnvironmentVariablesOverride sets the EnvironmentVariablesOverride field's value.
func (s *StartBuildInput) SetEnvironmentVariablesOverride(v []*EnvironmentVariable) *StartBuildInput {
s.EnvironmentVariablesOverride = v
@ -3932,12 +4045,60 @@ func (s *StartBuildInput) SetGitCloneDepthOverride(v int64) *StartBuildInput {
return s
}
// SetIdempotencyToken sets the IdempotencyToken field's value.
func (s *StartBuildInput) SetIdempotencyToken(v string) *StartBuildInput {
s.IdempotencyToken = &v
return s
}
// SetImageOverride sets the ImageOverride field's value.
func (s *StartBuildInput) SetImageOverride(v string) *StartBuildInput {
s.ImageOverride = &v
return s
}
// SetInsecureSslOverride sets the InsecureSslOverride field's value.
func (s *StartBuildInput) SetInsecureSslOverride(v bool) *StartBuildInput {
s.InsecureSslOverride = &v
return s
}
// SetPrivilegedModeOverride sets the PrivilegedModeOverride field's value.
func (s *StartBuildInput) SetPrivilegedModeOverride(v bool) *StartBuildInput {
s.PrivilegedModeOverride = &v
return s
}
// SetProjectName sets the ProjectName field's value.
func (s *StartBuildInput) SetProjectName(v string) *StartBuildInput {
s.ProjectName = &v
return s
}
// SetServiceRoleOverride sets the ServiceRoleOverride field's value.
func (s *StartBuildInput) SetServiceRoleOverride(v string) *StartBuildInput {
s.ServiceRoleOverride = &v
return s
}
// SetSourceAuthOverride sets the SourceAuthOverride field's value.
func (s *StartBuildInput) SetSourceAuthOverride(v *SourceAuth) *StartBuildInput {
s.SourceAuthOverride = v
return s
}
// SetSourceLocationOverride sets the SourceLocationOverride field's value.
func (s *StartBuildInput) SetSourceLocationOverride(v string) *StartBuildInput {
s.SourceLocationOverride = &v
return s
}
// SetSourceTypeOverride sets the SourceTypeOverride field's value.
func (s *StartBuildInput) SetSourceTypeOverride(v string) *StartBuildInput {
s.SourceTypeOverride = &v
return s
}
// SetSourceVersion sets the SourceVersion field's value.
func (s *StartBuildInput) SetSourceVersion(v string) *StartBuildInput {
s.SourceVersion = &v
@ -4596,6 +4757,9 @@ const (
)
const (
// EnvironmentTypeWindowsContainer is a EnvironmentType enum value
EnvironmentTypeWindowsContainer = "WINDOWS_CONTAINER"
// EnvironmentTypeLinuxContainer is a EnvironmentType enum value
EnvironmentTypeLinuxContainer = "LINUX_CONTAINER"
)
@ -4646,6 +4810,9 @@ const (
// PlatformTypeUbuntu is a PlatformType enum value
PlatformTypeUbuntu = "UBUNTU"
// PlatformTypeWindowsServer is a PlatformType enum value
PlatformTypeWindowsServer = "WINDOWS_SERVER"
)
const (