mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Conver to regular Go vendor + dep tool
This commit is contained in:
+6797
File diff suppressed because it is too large
Load Diff
+105
@@ -0,0 +1,105 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package workdocs
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeConcurrentModificationException for service response error code
|
||||
// "ConcurrentModificationException".
|
||||
//
|
||||
// The resource hierarchy is changing.
|
||||
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
|
||||
|
||||
// ErrCodeDeactivatingLastSystemUserException for service response error code
|
||||
// "DeactivatingLastSystemUserException".
|
||||
//
|
||||
// The last user in the organization is being deactivated.
|
||||
ErrCodeDeactivatingLastSystemUserException = "DeactivatingLastSystemUserException"
|
||||
|
||||
// ErrCodeEntityAlreadyExistsException for service response error code
|
||||
// "EntityAlreadyExistsException".
|
||||
//
|
||||
// The resource already exists.
|
||||
ErrCodeEntityAlreadyExistsException = "EntityAlreadyExistsException"
|
||||
|
||||
// ErrCodeEntityNotExistsException for service response error code
|
||||
// "EntityNotExistsException".
|
||||
//
|
||||
// The resource does not exist.
|
||||
ErrCodeEntityNotExistsException = "EntityNotExistsException"
|
||||
|
||||
// ErrCodeFailedDependencyException for service response error code
|
||||
// "FailedDependencyException".
|
||||
//
|
||||
// The AWS Directory Service cannot reach an on-premises instance. Or a dependency
|
||||
// under the control of the organization is failing, such as a connected active
|
||||
// directory.
|
||||
ErrCodeFailedDependencyException = "FailedDependencyException"
|
||||
|
||||
// ErrCodeIllegalUserStateException for service response error code
|
||||
// "IllegalUserStateException".
|
||||
//
|
||||
// The user is undergoing transfer of ownership.
|
||||
ErrCodeIllegalUserStateException = "IllegalUserStateException"
|
||||
|
||||
// ErrCodeInvalidArgumentException for service response error code
|
||||
// "InvalidArgumentException".
|
||||
//
|
||||
// The pagination marker and/or limit fields are not valid.
|
||||
ErrCodeInvalidArgumentException = "InvalidArgumentException"
|
||||
|
||||
// ErrCodeInvalidOperationException for service response error code
|
||||
// "InvalidOperationException".
|
||||
//
|
||||
// The operation is invalid.
|
||||
ErrCodeInvalidOperationException = "InvalidOperationException"
|
||||
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceededException".
|
||||
//
|
||||
// You've exceeded the maximum of 100,000 folders under the parent folder.
|
||||
ErrCodeLimitExceededException = "LimitExceededException"
|
||||
|
||||
// ErrCodeProhibitedStateException for service response error code
|
||||
// "ProhibitedStateException".
|
||||
//
|
||||
// The specified document version is not in the INITIALIZED state.
|
||||
ErrCodeProhibitedStateException = "ProhibitedStateException"
|
||||
|
||||
// ErrCodeServiceUnavailableException for service response error code
|
||||
// "ServiceUnavailableException".
|
||||
//
|
||||
// One or more of the dependencies is unavailable.
|
||||
ErrCodeServiceUnavailableException = "ServiceUnavailableException"
|
||||
|
||||
// ErrCodeStorageLimitExceededException for service response error code
|
||||
// "StorageLimitExceededException".
|
||||
//
|
||||
// The storage limit has been exceeded.
|
||||
ErrCodeStorageLimitExceededException = "StorageLimitExceededException"
|
||||
|
||||
// ErrCodeStorageLimitWillExceedException for service response error code
|
||||
// "StorageLimitWillExceedException".
|
||||
//
|
||||
// The storage limit will be exceeded.
|
||||
ErrCodeStorageLimitWillExceedException = "StorageLimitWillExceedException"
|
||||
|
||||
// ErrCodeTooManySubscriptionsException for service response error code
|
||||
// "TooManySubscriptionsException".
|
||||
//
|
||||
// You've reached the limit on the number of subscriptions for the WorkDocs
|
||||
// instance.
|
||||
ErrCodeTooManySubscriptionsException = "TooManySubscriptionsException"
|
||||
|
||||
// ErrCodeUnauthorizedOperationException for service response error code
|
||||
// "UnauthorizedOperationException".
|
||||
//
|
||||
// The operation is not permitted.
|
||||
ErrCodeUnauthorizedOperationException = "UnauthorizedOperationException"
|
||||
|
||||
// ErrCodeUnauthorizedResourceAccessException for service response error code
|
||||
// "UnauthorizedResourceAccessException".
|
||||
//
|
||||
// The caller does not have access to perform the action on the resource.
|
||||
ErrCodeUnauthorizedResourceAccessException = "UnauthorizedResourceAccessException"
|
||||
)
|
||||
+703
@@ -0,0 +1,703 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package workdocs_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/workdocs"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleWorkDocs_AbortDocumentVersionUpload() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.AbortDocumentVersionUploadInput{
|
||||
DocumentId: aws.String("ResourceIdType"), // Required
|
||||
VersionId: aws.String("DocumentVersionIdType"), // Required
|
||||
}
|
||||
resp, err := svc.AbortDocumentVersionUpload(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_ActivateUser() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.ActivateUserInput{
|
||||
UserId: aws.String("IdType"), // Required
|
||||
}
|
||||
resp, err := svc.ActivateUser(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_AddResourcePermissions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.AddResourcePermissionsInput{
|
||||
Principals: []*workdocs.SharePrincipal{ // Required
|
||||
{ // Required
|
||||
Id: aws.String("IdType"), // Required
|
||||
Role: aws.String("RoleType"), // Required
|
||||
Type: aws.String("PrincipalType"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
ResourceId: aws.String("ResourceIdType"), // Required
|
||||
}
|
||||
resp, err := svc.AddResourcePermissions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_CreateFolder() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.CreateFolderInput{
|
||||
ParentFolderId: aws.String("ResourceIdType"), // Required
|
||||
Name: aws.String("ResourceNameType"),
|
||||
}
|
||||
resp, err := svc.CreateFolder(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_CreateNotificationSubscription() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.CreateNotificationSubscriptionInput{
|
||||
Endpoint: aws.String("SubscriptionEndPointType"), // Required
|
||||
OrganizationId: aws.String("IdType"), // Required
|
||||
Protocol: aws.String("SubscriptionProtocolType"), // Required
|
||||
SubscriptionType: aws.String("SubscriptionType"), // Required
|
||||
}
|
||||
resp, err := svc.CreateNotificationSubscription(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_CreateUser() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.CreateUserInput{
|
||||
GivenName: aws.String("UserAttributeValueType"), // Required
|
||||
Password: aws.String("PasswordType"), // Required
|
||||
Surname: aws.String("UserAttributeValueType"), // Required
|
||||
Username: aws.String("UsernameType"), // Required
|
||||
OrganizationId: aws.String("IdType"),
|
||||
StorageRule: &workdocs.StorageRuleType{
|
||||
StorageAllocatedInBytes: aws.Int64(1),
|
||||
StorageType: aws.String("StorageType"),
|
||||
},
|
||||
TimeZoneId: aws.String("TimeZoneIdType"),
|
||||
}
|
||||
resp, err := svc.CreateUser(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DeactivateUser() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DeactivateUserInput{
|
||||
UserId: aws.String("IdType"), // Required
|
||||
}
|
||||
resp, err := svc.DeactivateUser(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DeleteDocument() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DeleteDocumentInput{
|
||||
DocumentId: aws.String("ResourceIdType"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteDocument(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DeleteFolder() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DeleteFolderInput{
|
||||
FolderId: aws.String("ResourceIdType"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteFolder(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DeleteFolderContents() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DeleteFolderContentsInput{
|
||||
FolderId: aws.String("ResourceIdType"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteFolderContents(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DeleteNotificationSubscription() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DeleteNotificationSubscriptionInput{
|
||||
OrganizationId: aws.String("IdType"), // Required
|
||||
SubscriptionId: aws.String("IdType"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteNotificationSubscription(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DeleteUser() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DeleteUserInput{
|
||||
UserId: aws.String("IdType"), // Required
|
||||
}
|
||||
resp, err := svc.DeleteUser(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DescribeDocumentVersions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DescribeDocumentVersionsInput{
|
||||
DocumentId: aws.String("ResourceIdType"), // Required
|
||||
Fields: aws.String("FieldNamesType"),
|
||||
Include: aws.String("FieldNamesType"),
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("PageMarkerType"),
|
||||
}
|
||||
resp, err := svc.DescribeDocumentVersions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DescribeFolderContents() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DescribeFolderContentsInput{
|
||||
FolderId: aws.String("ResourceIdType"), // Required
|
||||
Include: aws.String("FieldNamesType"),
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("PageMarkerType"),
|
||||
Order: aws.String("OrderType"),
|
||||
Sort: aws.String("ResourceSortType"),
|
||||
Type: aws.String("FolderContentType"),
|
||||
}
|
||||
resp, err := svc.DescribeFolderContents(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DescribeNotificationSubscriptions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DescribeNotificationSubscriptionsInput{
|
||||
OrganizationId: aws.String("IdType"), // Required
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("PageMarkerType"),
|
||||
}
|
||||
resp, err := svc.DescribeNotificationSubscriptions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DescribeResourcePermissions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DescribeResourcePermissionsInput{
|
||||
ResourceId: aws.String("ResourceIdType"), // Required
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("PageMarkerType"),
|
||||
}
|
||||
resp, err := svc.DescribeResourcePermissions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_DescribeUsers() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.DescribeUsersInput{
|
||||
Fields: aws.String("FieldNamesType"),
|
||||
Include: aws.String("UserFilterType"),
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("PageMarkerType"),
|
||||
Order: aws.String("OrderType"),
|
||||
OrganizationId: aws.String("IdType"),
|
||||
Query: aws.String("SearchQueryType"),
|
||||
Sort: aws.String("UserSortType"),
|
||||
UserIds: aws.String("UserIdsType"),
|
||||
}
|
||||
resp, err := svc.DescribeUsers(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_GetDocument() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.GetDocumentInput{
|
||||
DocumentId: aws.String("ResourceIdType"), // Required
|
||||
}
|
||||
resp, err := svc.GetDocument(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_GetDocumentPath() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.GetDocumentPathInput{
|
||||
DocumentId: aws.String("IdType"), // Required
|
||||
Fields: aws.String("FieldNamesType"),
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("PageMarkerType"),
|
||||
}
|
||||
resp, err := svc.GetDocumentPath(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_GetDocumentVersion() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.GetDocumentVersionInput{
|
||||
DocumentId: aws.String("ResourceIdType"), // Required
|
||||
VersionId: aws.String("DocumentVersionIdType"), // Required
|
||||
Fields: aws.String("FieldNamesType"),
|
||||
}
|
||||
resp, err := svc.GetDocumentVersion(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_GetFolder() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.GetFolderInput{
|
||||
FolderId: aws.String("ResourceIdType"), // Required
|
||||
}
|
||||
resp, err := svc.GetFolder(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_GetFolderPath() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.GetFolderPathInput{
|
||||
FolderId: aws.String("IdType"), // Required
|
||||
Fields: aws.String("FieldNamesType"),
|
||||
Limit: aws.Int64(1),
|
||||
Marker: aws.String("PageMarkerType"),
|
||||
}
|
||||
resp, err := svc.GetFolderPath(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_InitiateDocumentVersionUpload() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.InitiateDocumentVersionUploadInput{
|
||||
ParentFolderId: aws.String("ResourceIdType"), // Required
|
||||
ContentCreatedTimestamp: aws.Time(time.Now()),
|
||||
ContentModifiedTimestamp: aws.Time(time.Now()),
|
||||
ContentType: aws.String("DocumentContentType"),
|
||||
DocumentSizeInBytes: aws.Int64(1),
|
||||
Id: aws.String("ResourceIdType"),
|
||||
Name: aws.String("ResourceNameType"),
|
||||
}
|
||||
resp, err := svc.InitiateDocumentVersionUpload(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_RemoveAllResourcePermissions() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.RemoveAllResourcePermissionsInput{
|
||||
ResourceId: aws.String("ResourceIdType"), // Required
|
||||
}
|
||||
resp, err := svc.RemoveAllResourcePermissions(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_RemoveResourcePermission() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.RemoveResourcePermissionInput{
|
||||
PrincipalId: aws.String("IdType"), // Required
|
||||
ResourceId: aws.String("ResourceIdType"), // Required
|
||||
PrincipalType: aws.String("PrincipalType"),
|
||||
}
|
||||
resp, err := svc.RemoveResourcePermission(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_UpdateDocument() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.UpdateDocumentInput{
|
||||
DocumentId: aws.String("ResourceIdType"), // Required
|
||||
Name: aws.String("ResourceNameType"),
|
||||
ParentFolderId: aws.String("ResourceIdType"),
|
||||
ResourceState: aws.String("ResourceStateType"),
|
||||
}
|
||||
resp, err := svc.UpdateDocument(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_UpdateDocumentVersion() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.UpdateDocumentVersionInput{
|
||||
DocumentId: aws.String("ResourceIdType"), // Required
|
||||
VersionId: aws.String("DocumentVersionIdType"), // Required
|
||||
VersionStatus: aws.String("DocumentVersionStatus"),
|
||||
}
|
||||
resp, err := svc.UpdateDocumentVersion(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_UpdateFolder() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.UpdateFolderInput{
|
||||
FolderId: aws.String("ResourceIdType"), // Required
|
||||
Name: aws.String("ResourceNameType"),
|
||||
ParentFolderId: aws.String("ResourceIdType"),
|
||||
ResourceState: aws.String("ResourceStateType"),
|
||||
}
|
||||
resp, err := svc.UpdateFolder(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkDocs_UpdateUser() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workdocs.New(sess)
|
||||
|
||||
params := &workdocs.UpdateUserInput{
|
||||
UserId: aws.String("IdType"), // Required
|
||||
GivenName: aws.String("UserAttributeValueType"),
|
||||
Locale: aws.String("LocaleType"),
|
||||
StorageRule: &workdocs.StorageRuleType{
|
||||
StorageAllocatedInBytes: aws.Int64(1),
|
||||
StorageType: aws.String("StorageType"),
|
||||
},
|
||||
Surname: aws.String("UserAttributeValueType"),
|
||||
TimeZoneId: aws.String("TimeZoneIdType"),
|
||||
Type: aws.String("UserType"),
|
||||
}
|
||||
resp, err := svc.UpdateUser(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+122
@@ -0,0 +1,122 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package workdocs
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// The WorkDocs API is designed for the following use cases:
|
||||
//
|
||||
// * File Migration: File migration applications are supported for users
|
||||
// who want to migrate their files from an on-premise or off-premise file
|
||||
// system or service. Users can insert files into a user directory structure,
|
||||
// as well as allow for basic metadata changes, such as modifications to
|
||||
// the permissions of files.
|
||||
//
|
||||
// * Security: Support security applications are supported for users who
|
||||
// have additional security needs, such as anti-virus or data loss prevention.
|
||||
// The APIs, in conjunction with Amazon CloudTrail, allow these applications
|
||||
// to detect when changes occur in Amazon WorkDocs, so the application can
|
||||
// take the necessary actions and replace the target file. The application
|
||||
// can also choose to email the user if the target file violates the policy.
|
||||
//
|
||||
// * eDiscovery/Analytics: General administrative applications are supported,
|
||||
// such as eDiscovery and analytics. These applications can choose to mimic
|
||||
// and/or record the actions in an Amazon WorkDocs site, in conjunction with
|
||||
// Amazon CloudTrails, to replicate data for eDiscovery, backup, or analytical
|
||||
// applications.
|
||||
//
|
||||
// All Amazon WorkDocs APIs are Amazon authenticated, certificate-signed APIs.
|
||||
// They not only require the use of the AWS SDK, but also allow for the exclusive
|
||||
// use of IAM users and roles to help facilitate access, trust, and permission
|
||||
// policies. By creating a role and allowing an IAM user to access the Amazon
|
||||
// WorkDocs site, the IAM user gains full administrative visibility into the
|
||||
// entire Amazon WorkDocs site (or as set in the IAM policy). This includes,
|
||||
// but is not limited to, the ability to modify file permissions and upload
|
||||
// any file to any user. This allows developers to perform the three use cases
|
||||
// above, as well as give users the ability to grant access on a selective basis
|
||||
// using the IAM model.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01
|
||||
type WorkDocs struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "workdocs" // Service endpoint prefix API calls made to.
|
||||
EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata.
|
||||
)
|
||||
|
||||
// New creates a new instance of the WorkDocs client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
// // Create a WorkDocs client from just a session.
|
||||
// svc := workdocs.New(mySession)
|
||||
//
|
||||
// // Create a WorkDocs client with additional configuration
|
||||
// svc := workdocs.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *WorkDocs {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
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) *WorkDocs {
|
||||
svc := &WorkDocs{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2016-05-01",
|
||||
JSONVersion: "1.1",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a WorkDocs operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *WorkDocs) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
+189
@@ -0,0 +1,189 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
// Package workdocsiface provides an interface to enable mocking the Amazon WorkDocs service client
|
||||
// for testing your code.
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters.
|
||||
package workdocsiface
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/service/workdocs"
|
||||
)
|
||||
|
||||
// WorkDocsAPI provides an interface to enable mocking the
|
||||
// workdocs.WorkDocs service client's API operation,
|
||||
// paginators, and waiters. This make unit testing your code that calls out
|
||||
// to the SDK's service client's calls easier.
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon WorkDocs.
|
||||
// func myFunc(svc workdocsiface.WorkDocsAPI) bool {
|
||||
// // Make svc.AbortDocumentVersionUpload request
|
||||
// }
|
||||
//
|
||||
// func main() {
|
||||
// sess := session.New()
|
||||
// svc := workdocs.New(sess)
|
||||
//
|
||||
// myFunc(svc)
|
||||
// }
|
||||
//
|
||||
// In your _test.go file:
|
||||
//
|
||||
// // Define a mock struct to be used in your unit tests of myFunc.
|
||||
// type mockWorkDocsClient struct {
|
||||
// workdocsiface.WorkDocsAPI
|
||||
// }
|
||||
// func (m *mockWorkDocsClient) AbortDocumentVersionUpload(input *workdocs.AbortDocumentVersionUploadInput) (*workdocs.AbortDocumentVersionUploadOutput, error) {
|
||||
// // mock response/functionality
|
||||
// }
|
||||
//
|
||||
// func TestMyFunc(t *testing.T) {
|
||||
// // Setup Test
|
||||
// mockSvc := &mockWorkDocsClient{}
|
||||
//
|
||||
// myfunc(mockSvc)
|
||||
//
|
||||
// // Verify myFunc's functionality
|
||||
// }
|
||||
//
|
||||
// It is important to note that this interface will have breaking changes
|
||||
// when the service model is updated and adds new API operations, paginators,
|
||||
// and waiters. Its suggested to use the pattern above for testing, or using
|
||||
// tooling to generate mocks to satisfy the interfaces.
|
||||
type WorkDocsAPI interface {
|
||||
AbortDocumentVersionUpload(*workdocs.AbortDocumentVersionUploadInput) (*workdocs.AbortDocumentVersionUploadOutput, error)
|
||||
AbortDocumentVersionUploadWithContext(aws.Context, *workdocs.AbortDocumentVersionUploadInput, ...request.Option) (*workdocs.AbortDocumentVersionUploadOutput, error)
|
||||
AbortDocumentVersionUploadRequest(*workdocs.AbortDocumentVersionUploadInput) (*request.Request, *workdocs.AbortDocumentVersionUploadOutput)
|
||||
|
||||
ActivateUser(*workdocs.ActivateUserInput) (*workdocs.ActivateUserOutput, error)
|
||||
ActivateUserWithContext(aws.Context, *workdocs.ActivateUserInput, ...request.Option) (*workdocs.ActivateUserOutput, error)
|
||||
ActivateUserRequest(*workdocs.ActivateUserInput) (*request.Request, *workdocs.ActivateUserOutput)
|
||||
|
||||
AddResourcePermissions(*workdocs.AddResourcePermissionsInput) (*workdocs.AddResourcePermissionsOutput, error)
|
||||
AddResourcePermissionsWithContext(aws.Context, *workdocs.AddResourcePermissionsInput, ...request.Option) (*workdocs.AddResourcePermissionsOutput, error)
|
||||
AddResourcePermissionsRequest(*workdocs.AddResourcePermissionsInput) (*request.Request, *workdocs.AddResourcePermissionsOutput)
|
||||
|
||||
CreateFolder(*workdocs.CreateFolderInput) (*workdocs.CreateFolderOutput, error)
|
||||
CreateFolderWithContext(aws.Context, *workdocs.CreateFolderInput, ...request.Option) (*workdocs.CreateFolderOutput, error)
|
||||
CreateFolderRequest(*workdocs.CreateFolderInput) (*request.Request, *workdocs.CreateFolderOutput)
|
||||
|
||||
CreateNotificationSubscription(*workdocs.CreateNotificationSubscriptionInput) (*workdocs.CreateNotificationSubscriptionOutput, error)
|
||||
CreateNotificationSubscriptionWithContext(aws.Context, *workdocs.CreateNotificationSubscriptionInput, ...request.Option) (*workdocs.CreateNotificationSubscriptionOutput, error)
|
||||
CreateNotificationSubscriptionRequest(*workdocs.CreateNotificationSubscriptionInput) (*request.Request, *workdocs.CreateNotificationSubscriptionOutput)
|
||||
|
||||
CreateUser(*workdocs.CreateUserInput) (*workdocs.CreateUserOutput, error)
|
||||
CreateUserWithContext(aws.Context, *workdocs.CreateUserInput, ...request.Option) (*workdocs.CreateUserOutput, error)
|
||||
CreateUserRequest(*workdocs.CreateUserInput) (*request.Request, *workdocs.CreateUserOutput)
|
||||
|
||||
DeactivateUser(*workdocs.DeactivateUserInput) (*workdocs.DeactivateUserOutput, error)
|
||||
DeactivateUserWithContext(aws.Context, *workdocs.DeactivateUserInput, ...request.Option) (*workdocs.DeactivateUserOutput, error)
|
||||
DeactivateUserRequest(*workdocs.DeactivateUserInput) (*request.Request, *workdocs.DeactivateUserOutput)
|
||||
|
||||
DeleteDocument(*workdocs.DeleteDocumentInput) (*workdocs.DeleteDocumentOutput, error)
|
||||
DeleteDocumentWithContext(aws.Context, *workdocs.DeleteDocumentInput, ...request.Option) (*workdocs.DeleteDocumentOutput, error)
|
||||
DeleteDocumentRequest(*workdocs.DeleteDocumentInput) (*request.Request, *workdocs.DeleteDocumentOutput)
|
||||
|
||||
DeleteFolder(*workdocs.DeleteFolderInput) (*workdocs.DeleteFolderOutput, error)
|
||||
DeleteFolderWithContext(aws.Context, *workdocs.DeleteFolderInput, ...request.Option) (*workdocs.DeleteFolderOutput, error)
|
||||
DeleteFolderRequest(*workdocs.DeleteFolderInput) (*request.Request, *workdocs.DeleteFolderOutput)
|
||||
|
||||
DeleteFolderContents(*workdocs.DeleteFolderContentsInput) (*workdocs.DeleteFolderContentsOutput, error)
|
||||
DeleteFolderContentsWithContext(aws.Context, *workdocs.DeleteFolderContentsInput, ...request.Option) (*workdocs.DeleteFolderContentsOutput, error)
|
||||
DeleteFolderContentsRequest(*workdocs.DeleteFolderContentsInput) (*request.Request, *workdocs.DeleteFolderContentsOutput)
|
||||
|
||||
DeleteNotificationSubscription(*workdocs.DeleteNotificationSubscriptionInput) (*workdocs.DeleteNotificationSubscriptionOutput, error)
|
||||
DeleteNotificationSubscriptionWithContext(aws.Context, *workdocs.DeleteNotificationSubscriptionInput, ...request.Option) (*workdocs.DeleteNotificationSubscriptionOutput, error)
|
||||
DeleteNotificationSubscriptionRequest(*workdocs.DeleteNotificationSubscriptionInput) (*request.Request, *workdocs.DeleteNotificationSubscriptionOutput)
|
||||
|
||||
DeleteUser(*workdocs.DeleteUserInput) (*workdocs.DeleteUserOutput, error)
|
||||
DeleteUserWithContext(aws.Context, *workdocs.DeleteUserInput, ...request.Option) (*workdocs.DeleteUserOutput, error)
|
||||
DeleteUserRequest(*workdocs.DeleteUserInput) (*request.Request, *workdocs.DeleteUserOutput)
|
||||
|
||||
DescribeDocumentVersions(*workdocs.DescribeDocumentVersionsInput) (*workdocs.DescribeDocumentVersionsOutput, error)
|
||||
DescribeDocumentVersionsWithContext(aws.Context, *workdocs.DescribeDocumentVersionsInput, ...request.Option) (*workdocs.DescribeDocumentVersionsOutput, error)
|
||||
DescribeDocumentVersionsRequest(*workdocs.DescribeDocumentVersionsInput) (*request.Request, *workdocs.DescribeDocumentVersionsOutput)
|
||||
|
||||
DescribeDocumentVersionsPages(*workdocs.DescribeDocumentVersionsInput, func(*workdocs.DescribeDocumentVersionsOutput, bool) bool) error
|
||||
DescribeDocumentVersionsPagesWithContext(aws.Context, *workdocs.DescribeDocumentVersionsInput, func(*workdocs.DescribeDocumentVersionsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeFolderContents(*workdocs.DescribeFolderContentsInput) (*workdocs.DescribeFolderContentsOutput, error)
|
||||
DescribeFolderContentsWithContext(aws.Context, *workdocs.DescribeFolderContentsInput, ...request.Option) (*workdocs.DescribeFolderContentsOutput, error)
|
||||
DescribeFolderContentsRequest(*workdocs.DescribeFolderContentsInput) (*request.Request, *workdocs.DescribeFolderContentsOutput)
|
||||
|
||||
DescribeFolderContentsPages(*workdocs.DescribeFolderContentsInput, func(*workdocs.DescribeFolderContentsOutput, bool) bool) error
|
||||
DescribeFolderContentsPagesWithContext(aws.Context, *workdocs.DescribeFolderContentsInput, func(*workdocs.DescribeFolderContentsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeNotificationSubscriptions(*workdocs.DescribeNotificationSubscriptionsInput) (*workdocs.DescribeNotificationSubscriptionsOutput, error)
|
||||
DescribeNotificationSubscriptionsWithContext(aws.Context, *workdocs.DescribeNotificationSubscriptionsInput, ...request.Option) (*workdocs.DescribeNotificationSubscriptionsOutput, error)
|
||||
DescribeNotificationSubscriptionsRequest(*workdocs.DescribeNotificationSubscriptionsInput) (*request.Request, *workdocs.DescribeNotificationSubscriptionsOutput)
|
||||
|
||||
DescribeResourcePermissions(*workdocs.DescribeResourcePermissionsInput) (*workdocs.DescribeResourcePermissionsOutput, error)
|
||||
DescribeResourcePermissionsWithContext(aws.Context, *workdocs.DescribeResourcePermissionsInput, ...request.Option) (*workdocs.DescribeResourcePermissionsOutput, error)
|
||||
DescribeResourcePermissionsRequest(*workdocs.DescribeResourcePermissionsInput) (*request.Request, *workdocs.DescribeResourcePermissionsOutput)
|
||||
|
||||
DescribeUsers(*workdocs.DescribeUsersInput) (*workdocs.DescribeUsersOutput, error)
|
||||
DescribeUsersWithContext(aws.Context, *workdocs.DescribeUsersInput, ...request.Option) (*workdocs.DescribeUsersOutput, error)
|
||||
DescribeUsersRequest(*workdocs.DescribeUsersInput) (*request.Request, *workdocs.DescribeUsersOutput)
|
||||
|
||||
DescribeUsersPages(*workdocs.DescribeUsersInput, func(*workdocs.DescribeUsersOutput, bool) bool) error
|
||||
DescribeUsersPagesWithContext(aws.Context, *workdocs.DescribeUsersInput, func(*workdocs.DescribeUsersOutput, bool) bool, ...request.Option) error
|
||||
|
||||
GetDocument(*workdocs.GetDocumentInput) (*workdocs.GetDocumentOutput, error)
|
||||
GetDocumentWithContext(aws.Context, *workdocs.GetDocumentInput, ...request.Option) (*workdocs.GetDocumentOutput, error)
|
||||
GetDocumentRequest(*workdocs.GetDocumentInput) (*request.Request, *workdocs.GetDocumentOutput)
|
||||
|
||||
GetDocumentPath(*workdocs.GetDocumentPathInput) (*workdocs.GetDocumentPathOutput, error)
|
||||
GetDocumentPathWithContext(aws.Context, *workdocs.GetDocumentPathInput, ...request.Option) (*workdocs.GetDocumentPathOutput, error)
|
||||
GetDocumentPathRequest(*workdocs.GetDocumentPathInput) (*request.Request, *workdocs.GetDocumentPathOutput)
|
||||
|
||||
GetDocumentVersion(*workdocs.GetDocumentVersionInput) (*workdocs.GetDocumentVersionOutput, error)
|
||||
GetDocumentVersionWithContext(aws.Context, *workdocs.GetDocumentVersionInput, ...request.Option) (*workdocs.GetDocumentVersionOutput, error)
|
||||
GetDocumentVersionRequest(*workdocs.GetDocumentVersionInput) (*request.Request, *workdocs.GetDocumentVersionOutput)
|
||||
|
||||
GetFolder(*workdocs.GetFolderInput) (*workdocs.GetFolderOutput, error)
|
||||
GetFolderWithContext(aws.Context, *workdocs.GetFolderInput, ...request.Option) (*workdocs.GetFolderOutput, error)
|
||||
GetFolderRequest(*workdocs.GetFolderInput) (*request.Request, *workdocs.GetFolderOutput)
|
||||
|
||||
GetFolderPath(*workdocs.GetFolderPathInput) (*workdocs.GetFolderPathOutput, error)
|
||||
GetFolderPathWithContext(aws.Context, *workdocs.GetFolderPathInput, ...request.Option) (*workdocs.GetFolderPathOutput, error)
|
||||
GetFolderPathRequest(*workdocs.GetFolderPathInput) (*request.Request, *workdocs.GetFolderPathOutput)
|
||||
|
||||
InitiateDocumentVersionUpload(*workdocs.InitiateDocumentVersionUploadInput) (*workdocs.InitiateDocumentVersionUploadOutput, error)
|
||||
InitiateDocumentVersionUploadWithContext(aws.Context, *workdocs.InitiateDocumentVersionUploadInput, ...request.Option) (*workdocs.InitiateDocumentVersionUploadOutput, error)
|
||||
InitiateDocumentVersionUploadRequest(*workdocs.InitiateDocumentVersionUploadInput) (*request.Request, *workdocs.InitiateDocumentVersionUploadOutput)
|
||||
|
||||
RemoveAllResourcePermissions(*workdocs.RemoveAllResourcePermissionsInput) (*workdocs.RemoveAllResourcePermissionsOutput, error)
|
||||
RemoveAllResourcePermissionsWithContext(aws.Context, *workdocs.RemoveAllResourcePermissionsInput, ...request.Option) (*workdocs.RemoveAllResourcePermissionsOutput, error)
|
||||
RemoveAllResourcePermissionsRequest(*workdocs.RemoveAllResourcePermissionsInput) (*request.Request, *workdocs.RemoveAllResourcePermissionsOutput)
|
||||
|
||||
RemoveResourcePermission(*workdocs.RemoveResourcePermissionInput) (*workdocs.RemoveResourcePermissionOutput, error)
|
||||
RemoveResourcePermissionWithContext(aws.Context, *workdocs.RemoveResourcePermissionInput, ...request.Option) (*workdocs.RemoveResourcePermissionOutput, error)
|
||||
RemoveResourcePermissionRequest(*workdocs.RemoveResourcePermissionInput) (*request.Request, *workdocs.RemoveResourcePermissionOutput)
|
||||
|
||||
UpdateDocument(*workdocs.UpdateDocumentInput) (*workdocs.UpdateDocumentOutput, error)
|
||||
UpdateDocumentWithContext(aws.Context, *workdocs.UpdateDocumentInput, ...request.Option) (*workdocs.UpdateDocumentOutput, error)
|
||||
UpdateDocumentRequest(*workdocs.UpdateDocumentInput) (*request.Request, *workdocs.UpdateDocumentOutput)
|
||||
|
||||
UpdateDocumentVersion(*workdocs.UpdateDocumentVersionInput) (*workdocs.UpdateDocumentVersionOutput, error)
|
||||
UpdateDocumentVersionWithContext(aws.Context, *workdocs.UpdateDocumentVersionInput, ...request.Option) (*workdocs.UpdateDocumentVersionOutput, error)
|
||||
UpdateDocumentVersionRequest(*workdocs.UpdateDocumentVersionInput) (*request.Request, *workdocs.UpdateDocumentVersionOutput)
|
||||
|
||||
UpdateFolder(*workdocs.UpdateFolderInput) (*workdocs.UpdateFolderOutput, error)
|
||||
UpdateFolderWithContext(aws.Context, *workdocs.UpdateFolderInput, ...request.Option) (*workdocs.UpdateFolderOutput, error)
|
||||
UpdateFolderRequest(*workdocs.UpdateFolderInput) (*request.Request, *workdocs.UpdateFolderOutput)
|
||||
|
||||
UpdateUser(*workdocs.UpdateUserInput) (*workdocs.UpdateUserOutput, error)
|
||||
UpdateUserWithContext(aws.Context, *workdocs.UpdateUserInput, ...request.Option) (*workdocs.UpdateUserOutput, error)
|
||||
UpdateUserRequest(*workdocs.UpdateUserInput) (*request.Request, *workdocs.UpdateUserOutput)
|
||||
}
|
||||
|
||||
var _ WorkDocsAPI = (*workdocs.WorkDocs)(nil)
|
||||
Reference in New Issue
Block a user