aws-sdk-repostspace 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-repostspace/client.rb +848 -0
- data/lib/aws-sdk-repostspace/client_api.rb +405 -0
- data/lib/aws-sdk-repostspace/customizations.rb +0 -0
- data/lib/aws-sdk-repostspace/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-repostspace/endpoint_provider.rb +54 -0
- data/lib/aws-sdk-repostspace/endpoints.rb +170 -0
- data/lib/aws-sdk-repostspace/errors.rb +232 -0
- data/lib/aws-sdk-repostspace/plugins/endpoints.rb +90 -0
- data/lib/aws-sdk-repostspace/resource.rb +26 -0
- data/lib/aws-sdk-repostspace/types.rb +678 -0
- data/lib/aws-sdk-repostspace.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,405 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Repostspace
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AccessorId = Shapes::StringShape.new(name: 'AccessorId')
|
18
|
+
AccessorIdList = Shapes::ListShape.new(name: 'AccessorIdList')
|
19
|
+
AdminId = Shapes::StringShape.new(name: 'AdminId')
|
20
|
+
Arn = Shapes::StringShape.new(name: 'Arn')
|
21
|
+
ClientId = Shapes::StringShape.new(name: 'ClientId')
|
22
|
+
ConfigurationStatus = Shapes::StringShape.new(name: 'ConfigurationStatus')
|
23
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
24
|
+
ContentSize = Shapes::IntegerShape.new(name: 'ContentSize')
|
25
|
+
CreateSpaceInput = Shapes::StructureShape.new(name: 'CreateSpaceInput')
|
26
|
+
CreateSpaceOutput = Shapes::StructureShape.new(name: 'CreateSpaceOutput')
|
27
|
+
DeleteSpaceInput = Shapes::StructureShape.new(name: 'DeleteSpaceInput')
|
28
|
+
DeregisterAdminInput = Shapes::StructureShape.new(name: 'DeregisterAdminInput')
|
29
|
+
GetSpaceInput = Shapes::StructureShape.new(name: 'GetSpaceInput')
|
30
|
+
GetSpaceOutput = Shapes::StructureShape.new(name: 'GetSpaceOutput')
|
31
|
+
GroupAdmins = Shapes::ListShape.new(name: 'GroupAdmins')
|
32
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
33
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
34
|
+
InviteBody = Shapes::StringShape.new(name: 'InviteBody')
|
35
|
+
InviteTitle = Shapes::StringShape.new(name: 'InviteTitle')
|
36
|
+
KMSKey = Shapes::StringShape.new(name: 'KMSKey')
|
37
|
+
ListSpacesInput = Shapes::StructureShape.new(name: 'ListSpacesInput')
|
38
|
+
ListSpacesLimit = Shapes::IntegerShape.new(name: 'ListSpacesLimit')
|
39
|
+
ListSpacesOutput = Shapes::StructureShape.new(name: 'ListSpacesOutput')
|
40
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
41
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
42
|
+
ProvisioningStatus = Shapes::StringShape.new(name: 'ProvisioningStatus')
|
43
|
+
RegisterAdminInput = Shapes::StructureShape.new(name: 'RegisterAdminInput')
|
44
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
45
|
+
SendInvitesInput = Shapes::StructureShape.new(name: 'SendInvitesInput')
|
46
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
47
|
+
SpaceData = Shapes::StructureShape.new(name: 'SpaceData')
|
48
|
+
SpaceDescription = Shapes::StringShape.new(name: 'SpaceDescription')
|
49
|
+
SpaceId = Shapes::StringShape.new(name: 'SpaceId')
|
50
|
+
SpaceName = Shapes::StringShape.new(name: 'SpaceName')
|
51
|
+
SpaceSubdomain = Shapes::StringShape.new(name: 'SpaceSubdomain')
|
52
|
+
SpacesList = Shapes::ListShape.new(name: 'SpacesList')
|
53
|
+
StorageLimit = Shapes::IntegerShape.new(name: 'StorageLimit')
|
54
|
+
String = Shapes::StringShape.new(name: 'String')
|
55
|
+
SyntheticTimestamp_date_time = Shapes::TimestampShape.new(name: 'SyntheticTimestamp_date_time', timestampFormat: "iso8601")
|
56
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
57
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
58
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
59
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
60
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
61
|
+
Tags = Shapes::MapShape.new(name: 'Tags')
|
62
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
63
|
+
TierLevel = Shapes::StringShape.new(name: 'TierLevel')
|
64
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
65
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
66
|
+
UpdateSpaceInput = Shapes::StructureShape.new(name: 'UpdateSpaceInput')
|
67
|
+
Url = Shapes::StringShape.new(name: 'Url')
|
68
|
+
UserAdmins = Shapes::ListShape.new(name: 'UserAdmins')
|
69
|
+
UserCount = Shapes::IntegerShape.new(name: 'UserCount')
|
70
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
71
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
72
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
73
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
74
|
+
VanityDomainStatus = Shapes::StringShape.new(name: 'VanityDomainStatus')
|
75
|
+
|
76
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
77
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
78
|
+
|
79
|
+
AccessorIdList.member = Shapes::ShapeRef.new(shape: AccessorId)
|
80
|
+
|
81
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
82
|
+
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
83
|
+
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
84
|
+
ConflictException.struct_class = Types::ConflictException
|
85
|
+
|
86
|
+
CreateSpaceInput.add_member(:description, Shapes::ShapeRef.new(shape: SpaceDescription, location_name: "description"))
|
87
|
+
CreateSpaceInput.add_member(:name, Shapes::ShapeRef.new(shape: SpaceName, required: true, location_name: "name"))
|
88
|
+
CreateSpaceInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "roleArn"))
|
89
|
+
CreateSpaceInput.add_member(:subdomain, Shapes::ShapeRef.new(shape: SpaceSubdomain, required: true, location_name: "subdomain"))
|
90
|
+
CreateSpaceInput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
91
|
+
CreateSpaceInput.add_member(:tier, Shapes::ShapeRef.new(shape: TierLevel, required: true, location_name: "tier"))
|
92
|
+
CreateSpaceInput.add_member(:user_kms_key, Shapes::ShapeRef.new(shape: KMSKey, location_name: "userKMSKey"))
|
93
|
+
CreateSpaceInput.struct_class = Types::CreateSpaceInput
|
94
|
+
|
95
|
+
CreateSpaceOutput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location_name: "spaceId"))
|
96
|
+
CreateSpaceOutput.struct_class = Types::CreateSpaceOutput
|
97
|
+
|
98
|
+
DeleteSpaceInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
99
|
+
DeleteSpaceInput.struct_class = Types::DeleteSpaceInput
|
100
|
+
|
101
|
+
DeregisterAdminInput.add_member(:admin_id, Shapes::ShapeRef.new(shape: AdminId, required: true, location: "uri", location_name: "adminId"))
|
102
|
+
DeregisterAdminInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
103
|
+
DeregisterAdminInput.struct_class = Types::DeregisterAdminInput
|
104
|
+
|
105
|
+
GetSpaceInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
106
|
+
GetSpaceInput.struct_class = Types::GetSpaceInput
|
107
|
+
|
108
|
+
GetSpaceOutput.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
|
109
|
+
GetSpaceOutput.add_member(:client_id, Shapes::ShapeRef.new(shape: ClientId, required: true, location_name: "clientId"))
|
110
|
+
GetSpaceOutput.add_member(:configuration_status, Shapes::ShapeRef.new(shape: ConfigurationStatus, required: true, location_name: "configurationStatus"))
|
111
|
+
GetSpaceOutput.add_member(:content_size, Shapes::ShapeRef.new(shape: ContentSize, location_name: "contentSize"))
|
112
|
+
GetSpaceOutput.add_member(:create_date_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createDateTime"))
|
113
|
+
GetSpaceOutput.add_member(:customer_role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "customerRoleArn"))
|
114
|
+
GetSpaceOutput.add_member(:delete_date_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "deleteDateTime"))
|
115
|
+
GetSpaceOutput.add_member(:description, Shapes::ShapeRef.new(shape: SpaceDescription, location_name: "description"))
|
116
|
+
GetSpaceOutput.add_member(:group_admins, Shapes::ShapeRef.new(shape: GroupAdmins, location_name: "groupAdmins"))
|
117
|
+
GetSpaceOutput.add_member(:name, Shapes::ShapeRef.new(shape: SpaceName, required: true, location_name: "name"))
|
118
|
+
GetSpaceOutput.add_member(:random_domain, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "randomDomain"))
|
119
|
+
GetSpaceOutput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location_name: "spaceId"))
|
120
|
+
GetSpaceOutput.add_member(:status, Shapes::ShapeRef.new(shape: ProvisioningStatus, required: true, location_name: "status"))
|
121
|
+
GetSpaceOutput.add_member(:storage_limit, Shapes::ShapeRef.new(shape: StorageLimit, required: true, location_name: "storageLimit"))
|
122
|
+
GetSpaceOutput.add_member(:tier, Shapes::ShapeRef.new(shape: TierLevel, required: true, location_name: "tier"))
|
123
|
+
GetSpaceOutput.add_member(:user_admins, Shapes::ShapeRef.new(shape: UserAdmins, location_name: "userAdmins"))
|
124
|
+
GetSpaceOutput.add_member(:user_count, Shapes::ShapeRef.new(shape: UserCount, location_name: "userCount"))
|
125
|
+
GetSpaceOutput.add_member(:user_kms_key, Shapes::ShapeRef.new(shape: KMSKey, location_name: "userKMSKey"))
|
126
|
+
GetSpaceOutput.add_member(:vanity_domain, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "vanityDomain"))
|
127
|
+
GetSpaceOutput.add_member(:vanity_domain_status, Shapes::ShapeRef.new(shape: VanityDomainStatus, required: true, location_name: "vanityDomainStatus"))
|
128
|
+
GetSpaceOutput.struct_class = Types::GetSpaceOutput
|
129
|
+
|
130
|
+
GroupAdmins.member = Shapes::ShapeRef.new(shape: AdminId)
|
131
|
+
|
132
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
133
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
134
|
+
InternalServerException.struct_class = Types::InternalServerException
|
135
|
+
|
136
|
+
ListSpacesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListSpacesLimit, location: "querystring", location_name: "maxResults"))
|
137
|
+
ListSpacesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "nextToken"))
|
138
|
+
ListSpacesInput.struct_class = Types::ListSpacesInput
|
139
|
+
|
140
|
+
ListSpacesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
141
|
+
ListSpacesOutput.add_member(:spaces, Shapes::ShapeRef.new(shape: SpacesList, required: true, location_name: "spaces"))
|
142
|
+
ListSpacesOutput.struct_class = Types::ListSpacesOutput
|
143
|
+
|
144
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
145
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
146
|
+
|
147
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
148
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
149
|
+
|
150
|
+
RegisterAdminInput.add_member(:admin_id, Shapes::ShapeRef.new(shape: AdminId, required: true, location: "uri", location_name: "adminId"))
|
151
|
+
RegisterAdminInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
152
|
+
RegisterAdminInput.struct_class = Types::RegisterAdminInput
|
153
|
+
|
154
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
155
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
156
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
157
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
158
|
+
|
159
|
+
SendInvitesInput.add_member(:accessor_ids, Shapes::ShapeRef.new(shape: AccessorIdList, required: true, location_name: "accessorIds"))
|
160
|
+
SendInvitesInput.add_member(:body, Shapes::ShapeRef.new(shape: InviteBody, required: true, location_name: "body"))
|
161
|
+
SendInvitesInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
162
|
+
SendInvitesInput.add_member(:title, Shapes::ShapeRef.new(shape: InviteTitle, required: true, location_name: "title"))
|
163
|
+
SendInvitesInput.struct_class = Types::SendInvitesInput
|
164
|
+
|
165
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
166
|
+
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "quotaCode"))
|
167
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
168
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
169
|
+
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, required: true, location_name: "serviceCode"))
|
170
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
171
|
+
|
172
|
+
SpaceData.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "arn"))
|
173
|
+
SpaceData.add_member(:configuration_status, Shapes::ShapeRef.new(shape: ConfigurationStatus, required: true, location_name: "configurationStatus"))
|
174
|
+
SpaceData.add_member(:content_size, Shapes::ShapeRef.new(shape: ContentSize, location_name: "contentSize"))
|
175
|
+
SpaceData.add_member(:create_date_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, required: true, location_name: "createDateTime"))
|
176
|
+
SpaceData.add_member(:delete_date_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "deleteDateTime"))
|
177
|
+
SpaceData.add_member(:description, Shapes::ShapeRef.new(shape: SpaceDescription, location_name: "description"))
|
178
|
+
SpaceData.add_member(:name, Shapes::ShapeRef.new(shape: SpaceName, required: true, location_name: "name"))
|
179
|
+
SpaceData.add_member(:random_domain, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "randomDomain"))
|
180
|
+
SpaceData.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location_name: "spaceId"))
|
181
|
+
SpaceData.add_member(:status, Shapes::ShapeRef.new(shape: ProvisioningStatus, required: true, location_name: "status"))
|
182
|
+
SpaceData.add_member(:storage_limit, Shapes::ShapeRef.new(shape: StorageLimit, required: true, location_name: "storageLimit"))
|
183
|
+
SpaceData.add_member(:tier, Shapes::ShapeRef.new(shape: TierLevel, required: true, location_name: "tier"))
|
184
|
+
SpaceData.add_member(:user_count, Shapes::ShapeRef.new(shape: UserCount, location_name: "userCount"))
|
185
|
+
SpaceData.add_member(:user_kms_key, Shapes::ShapeRef.new(shape: KMSKey, location_name: "userKMSKey"))
|
186
|
+
SpaceData.add_member(:vanity_domain, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "vanityDomain"))
|
187
|
+
SpaceData.add_member(:vanity_domain_status, Shapes::ShapeRef.new(shape: VanityDomainStatus, required: true, location_name: "vanityDomainStatus"))
|
188
|
+
SpaceData.struct_class = Types::SpaceData
|
189
|
+
|
190
|
+
SpacesList.member = Shapes::ShapeRef.new(shape: SpaceData)
|
191
|
+
|
192
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
193
|
+
|
194
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
195
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
|
196
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
197
|
+
|
198
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
199
|
+
|
200
|
+
Tags.key = Shapes::ShapeRef.new(shape: TagKey)
|
201
|
+
Tags.value = Shapes::ShapeRef.new(shape: TagValue)
|
202
|
+
|
203
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
204
|
+
ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
|
205
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
206
|
+
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "serviceCode"))
|
207
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
208
|
+
|
209
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "uri", location_name: "resourceArn"))
|
210
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
|
211
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
212
|
+
|
213
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
214
|
+
|
215
|
+
UpdateSpaceInput.add_member(:description, Shapes::ShapeRef.new(shape: SpaceDescription, location_name: "description"))
|
216
|
+
UpdateSpaceInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "roleArn"))
|
217
|
+
UpdateSpaceInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
218
|
+
UpdateSpaceInput.add_member(:tier, Shapes::ShapeRef.new(shape: TierLevel, location_name: "tier"))
|
219
|
+
UpdateSpaceInput.struct_class = Types::UpdateSpaceInput
|
220
|
+
|
221
|
+
UserAdmins.member = Shapes::ShapeRef.new(shape: AdminId)
|
222
|
+
|
223
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fieldList"))
|
224
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
225
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, required: true, location_name: "reason"))
|
226
|
+
ValidationException.struct_class = Types::ValidationException
|
227
|
+
|
228
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
229
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
230
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
231
|
+
|
232
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
233
|
+
|
234
|
+
|
235
|
+
# @api private
|
236
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
237
|
+
|
238
|
+
api.version = "2022-05-13"
|
239
|
+
|
240
|
+
api.metadata = {
|
241
|
+
"apiVersion" => "2022-05-13",
|
242
|
+
"endpointPrefix" => "repostspace",
|
243
|
+
"jsonVersion" => "1.1",
|
244
|
+
"protocol" => "rest-json",
|
245
|
+
"serviceFullName" => "AWS re:Post Private",
|
246
|
+
"serviceId" => "repostspace",
|
247
|
+
"signatureVersion" => "v4",
|
248
|
+
"signingName" => "repostspace",
|
249
|
+
"uid" => "repostspace-2022-05-13",
|
250
|
+
}
|
251
|
+
|
252
|
+
api.add_operation(:create_space, Seahorse::Model::Operation.new.tap do |o|
|
253
|
+
o.name = "CreateSpace"
|
254
|
+
o.http_method = "POST"
|
255
|
+
o.http_request_uri = "/spaces"
|
256
|
+
o.input = Shapes::ShapeRef.new(shape: CreateSpaceInput)
|
257
|
+
o.output = Shapes::ShapeRef.new(shape: CreateSpaceOutput)
|
258
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
259
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
260
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
261
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
262
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
263
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
264
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
265
|
+
end)
|
266
|
+
|
267
|
+
api.add_operation(:delete_space, Seahorse::Model::Operation.new.tap do |o|
|
268
|
+
o.name = "DeleteSpace"
|
269
|
+
o.http_method = "DELETE"
|
270
|
+
o.http_request_uri = "/spaces/{spaceId}"
|
271
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteSpaceInput)
|
272
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
273
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
274
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
275
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
276
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
277
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
278
|
+
end)
|
279
|
+
|
280
|
+
api.add_operation(:deregister_admin, Seahorse::Model::Operation.new.tap do |o|
|
281
|
+
o.name = "DeregisterAdmin"
|
282
|
+
o.http_method = "DELETE"
|
283
|
+
o.http_request_uri = "/spaces/{spaceId}/admins/{adminId}"
|
284
|
+
o.input = Shapes::ShapeRef.new(shape: DeregisterAdminInput)
|
285
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
286
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
287
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
288
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
289
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
290
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
291
|
+
end)
|
292
|
+
|
293
|
+
api.add_operation(:get_space, Seahorse::Model::Operation.new.tap do |o|
|
294
|
+
o.name = "GetSpace"
|
295
|
+
o.http_method = "GET"
|
296
|
+
o.http_request_uri = "/spaces/{spaceId}"
|
297
|
+
o.input = Shapes::ShapeRef.new(shape: GetSpaceInput)
|
298
|
+
o.output = Shapes::ShapeRef.new(shape: GetSpaceOutput)
|
299
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
300
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
301
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
302
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
303
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
304
|
+
end)
|
305
|
+
|
306
|
+
api.add_operation(:list_spaces, Seahorse::Model::Operation.new.tap do |o|
|
307
|
+
o.name = "ListSpaces"
|
308
|
+
o.http_method = "GET"
|
309
|
+
o.http_request_uri = "/spaces"
|
310
|
+
o.input = Shapes::ShapeRef.new(shape: ListSpacesInput)
|
311
|
+
o.output = Shapes::ShapeRef.new(shape: ListSpacesOutput)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
313
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
314
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
315
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
316
|
+
o[:pager] = Aws::Pager.new(
|
317
|
+
limit_key: "max_results",
|
318
|
+
tokens: {
|
319
|
+
"next_token" => "next_token"
|
320
|
+
}
|
321
|
+
)
|
322
|
+
end)
|
323
|
+
|
324
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
325
|
+
o.name = "ListTagsForResource"
|
326
|
+
o.http_method = "GET"
|
327
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
328
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
329
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
330
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
331
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
332
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
333
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
334
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
335
|
+
end)
|
336
|
+
|
337
|
+
api.add_operation(:register_admin, Seahorse::Model::Operation.new.tap do |o|
|
338
|
+
o.name = "RegisterAdmin"
|
339
|
+
o.http_method = "POST"
|
340
|
+
o.http_request_uri = "/spaces/{spaceId}/admins/{adminId}"
|
341
|
+
o.input = Shapes::ShapeRef.new(shape: RegisterAdminInput)
|
342
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
343
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
344
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
345
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
346
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
348
|
+
end)
|
349
|
+
|
350
|
+
api.add_operation(:send_invites, Seahorse::Model::Operation.new.tap do |o|
|
351
|
+
o.name = "SendInvites"
|
352
|
+
o.http_method = "POST"
|
353
|
+
o.http_request_uri = "/spaces/{spaceId}/invite"
|
354
|
+
o.input = Shapes::ShapeRef.new(shape: SendInvitesInput)
|
355
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
356
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
357
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
358
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
359
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
360
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
361
|
+
end)
|
362
|
+
|
363
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
364
|
+
o.name = "TagResource"
|
365
|
+
o.http_method = "POST"
|
366
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
367
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
368
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
369
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
370
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
371
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
372
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
373
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
374
|
+
end)
|
375
|
+
|
376
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
377
|
+
o.name = "UntagResource"
|
378
|
+
o.http_method = "DELETE"
|
379
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
380
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
381
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
382
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
383
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
385
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
386
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
387
|
+
end)
|
388
|
+
|
389
|
+
api.add_operation(:update_space, Seahorse::Model::Operation.new.tap do |o|
|
390
|
+
o.name = "UpdateSpace"
|
391
|
+
o.http_method = "PUT"
|
392
|
+
o.http_request_uri = "/spaces/{spaceId}"
|
393
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateSpaceInput)
|
394
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
395
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
396
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
397
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
398
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
399
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
400
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
401
|
+
end)
|
402
|
+
end
|
403
|
+
|
404
|
+
end
|
405
|
+
end
|
File without changes
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Repostspace
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Repostspace
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://repostspace-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://repostspace-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
+
end
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://repostspace.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
|
+
end
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://repostspace.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
|
+
end
|
48
|
+
end
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|