forked from TrueCloudLab/rclone
vendor: update all dependencies
This commit is contained in:
parent
3f0789e2db
commit
08021c4636
2474 changed files with 435818 additions and 282709 deletions
186
vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go
generated
vendored
186
vendor/github.com/aws/aws-sdk-go/service/directoryservice/api.go
generated
vendored
|
@ -3239,6 +3239,105 @@ func (c *DirectoryService) RemoveTagsFromResourceWithContext(ctx aws.Context, in
|
|||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opResetUserPassword = "ResetUserPassword"
|
||||
|
||||
// ResetUserPasswordRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ResetUserPassword operation. The "output" return
|
||||
// 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.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// See ResetUserPassword for more information on using the ResetUserPassword
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
//
|
||||
// // Example sending a request using the ResetUserPasswordRequest method.
|
||||
// req, resp := client.ResetUserPasswordRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ResetUserPassword
|
||||
func (c *DirectoryService) ResetUserPasswordRequest(input *ResetUserPasswordInput) (req *request.Request, output *ResetUserPasswordOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opResetUserPassword,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &ResetUserPasswordInput{}
|
||||
}
|
||||
|
||||
output = &ResetUserPasswordOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// ResetUserPassword API operation for AWS Directory Service.
|
||||
//
|
||||
// Resets the password for any user in your AWS Managed Microsoft AD or Simple
|
||||
// AD directory.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for AWS Directory Service's
|
||||
// API operation ResetUserPassword for usage and error information.
|
||||
//
|
||||
// Returned Error Codes:
|
||||
// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException"
|
||||
// The specified directory is unavailable or could not be found.
|
||||
//
|
||||
// * ErrCodeUserDoesNotExistException "UserDoesNotExistException"
|
||||
// The user provided a username that does not exist in your directory.
|
||||
//
|
||||
// * ErrCodeInvalidPasswordException "InvalidPasswordException"
|
||||
// The new password provided by the user does not meet the password complexity
|
||||
// requirements defined in your directory.
|
||||
//
|
||||
// * ErrCodeUnsupportedOperationException "UnsupportedOperationException"
|
||||
// The operation is not supported.
|
||||
//
|
||||
// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException"
|
||||
// The specified entity could not be found.
|
||||
//
|
||||
// * ErrCodeClientException "ClientException"
|
||||
// A client exception has occurred.
|
||||
//
|
||||
// * ErrCodeServiceException "ServiceException"
|
||||
// An exception has occurred in AWS Directory Service.
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ResetUserPassword
|
||||
func (c *DirectoryService) ResetUserPassword(input *ResetUserPasswordInput) (*ResetUserPasswordOutput, error) {
|
||||
req, out := c.ResetUserPasswordRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// ResetUserPasswordWithContext is the same as ResetUserPassword with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See ResetUserPassword for details on how to use this API operation.
|
||||
//
|
||||
// The context must be non-nil and will be used for request cancellation. If
|
||||
// the context is nil a panic will occur. In the future the SDK may create
|
||||
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
||||
// for more information on using Contexts.
|
||||
func (c *DirectoryService) ResetUserPasswordWithContext(ctx aws.Context, input *ResetUserPasswordInput, opts ...request.Option) (*ResetUserPasswordOutput, error) {
|
||||
req, out := c.ResetUserPasswordRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opRestoreFromSnapshot = "RestoreFromSnapshot"
|
||||
|
||||
// RestoreFromSnapshotRequest generates a "aws/request.Request" representing the
|
||||
|
@ -7812,6 +7911,93 @@ func (s RemoveTagsFromResourceOutput) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
type ResetUserPasswordInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Identifier of the AWS Managed Microsoft AD or Simple AD directory in which
|
||||
// the user resides.
|
||||
//
|
||||
// DirectoryId is a required field
|
||||
DirectoryId *string `type:"string" required:"true"`
|
||||
|
||||
// The new password that will be reset.
|
||||
//
|
||||
// NewPassword is a required field
|
||||
NewPassword *string `min:"1" type:"string" required:"true"`
|
||||
|
||||
// The username of the user whose password will be reset.
|
||||
//
|
||||
// UserName is a required field
|
||||
UserName *string `min:"1" type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ResetUserPasswordInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ResetUserPasswordInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *ResetUserPasswordInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "ResetUserPasswordInput"}
|
||||
if s.DirectoryId == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("DirectoryId"))
|
||||
}
|
||||
if s.NewPassword == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("NewPassword"))
|
||||
}
|
||||
if s.NewPassword != nil && len(*s.NewPassword) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("NewPassword", 1))
|
||||
}
|
||||
if s.UserName == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("UserName"))
|
||||
}
|
||||
if s.UserName != nil && len(*s.UserName) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("UserName", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetDirectoryId sets the DirectoryId field's value.
|
||||
func (s *ResetUserPasswordInput) SetDirectoryId(v string) *ResetUserPasswordInput {
|
||||
s.DirectoryId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNewPassword sets the NewPassword field's value.
|
||||
func (s *ResetUserPasswordInput) SetNewPassword(v string) *ResetUserPasswordInput {
|
||||
s.NewPassword = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetUserName sets the UserName field's value.
|
||||
func (s *ResetUserPasswordInput) SetUserName(v string) *ResetUserPasswordInput {
|
||||
s.UserName = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type ResetUserPasswordOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
}
|
||||
|
||||
// String returns the string representation
|
||||
func (s ResetUserPasswordOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation
|
||||
func (s ResetUserPasswordOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// An object representing the inputs for the RestoreFromSnapshot operation.
|
||||
type RestoreFromSnapshotInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue