aws-sdk-repostspace 1.14.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-repostspace/client.rb +89 -1
- data/lib/aws-sdk-repostspace/client_api.rb +72 -2
- data/lib/aws-sdk-repostspace/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-repostspace/endpoints.rb +2 -119
- data/lib/aws-sdk-repostspace/plugins/endpoints.rb +1 -28
- data/lib/aws-sdk-repostspace/types.rb +107 -0
- data/lib/aws-sdk-repostspace.rb +2 -2
- data/sig/client.rbs +27 -0
- data/sig/types.rbs +34 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab9735cd511ddf02f2ca2f794eff8e2ba8f59825d84fde853022b2301b5be72
|
4
|
+
data.tar.gz: 2d0bc1f5a522e248b300877adc3f4ea2ea4f25219418486c3103fb375c464ae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 767056f6b6312310ccec0f8635e2cb08a4f219c07a2575273a3ea49bfd7227f977203a1ad0e778028f6c95af0d6869e850f0c9106f037bdce0338d64a2b4e314
|
7
|
+
data.tar.gz: 8de5834d0d8186a36e431cc2a705d085a9c49013574ccce1927a9ee2ffbd240ac13350bc7cc68f608dfd9d098123317fe10e1aaf812e6c66936eec51970b5e74
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.16.0 (2024-10-22)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds the BatchAddRole and BatchRemoveRole APIs.
|
8
|
+
|
9
|
+
1.15.0 (2024-10-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.14.0 (2024-09-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
@@ -447,6 +447,90 @@ module Aws::Repostspace
|
|
447
447
|
|
448
448
|
# @!group API Operations
|
449
449
|
|
450
|
+
# Add role to multiple users or groups in a private re:Post.
|
451
|
+
#
|
452
|
+
# @option params [required, Array<String>] :accessor_ids
|
453
|
+
# The user or group accessor identifiers to add the role to.
|
454
|
+
#
|
455
|
+
# @option params [required, String] :role
|
456
|
+
# The role to add to the users or groups.
|
457
|
+
#
|
458
|
+
# @option params [required, String] :space_id
|
459
|
+
# The unique ID of the private re:Post.
|
460
|
+
#
|
461
|
+
# @return [Types::BatchAddRoleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
462
|
+
#
|
463
|
+
# * {Types::BatchAddRoleOutput#added_accessor_ids #added_accessor_ids} => Array<String>
|
464
|
+
# * {Types::BatchAddRoleOutput#errors #errors} => Array<Types::BatchError>
|
465
|
+
#
|
466
|
+
# @example Request syntax with placeholder values
|
467
|
+
#
|
468
|
+
# resp = client.batch_add_role({
|
469
|
+
# accessor_ids: ["AccessorId"], # required
|
470
|
+
# role: "EXPERT", # required, accepts EXPERT, MODERATOR, ADMINISTRATOR, SUPPORTREQUESTOR
|
471
|
+
# space_id: "SpaceId", # required
|
472
|
+
# })
|
473
|
+
#
|
474
|
+
# @example Response structure
|
475
|
+
#
|
476
|
+
# resp.added_accessor_ids #=> Array
|
477
|
+
# resp.added_accessor_ids[0] #=> String
|
478
|
+
# resp.errors #=> Array
|
479
|
+
# resp.errors[0].accessor_id #=> String
|
480
|
+
# resp.errors[0].error #=> Integer
|
481
|
+
# resp.errors[0].message #=> String
|
482
|
+
#
|
483
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchAddRole AWS API Documentation
|
484
|
+
#
|
485
|
+
# @overload batch_add_role(params = {})
|
486
|
+
# @param [Hash] params ({})
|
487
|
+
def batch_add_role(params = {}, options = {})
|
488
|
+
req = build_request(:batch_add_role, params)
|
489
|
+
req.send_request(options)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Remove role from multiple users or groups in a private re:Post.
|
493
|
+
#
|
494
|
+
# @option params [required, Array<String>] :accessor_ids
|
495
|
+
# The user or group accessor identifiers to remove the role from.
|
496
|
+
#
|
497
|
+
# @option params [required, String] :role
|
498
|
+
# The role to remove from the users or groups.
|
499
|
+
#
|
500
|
+
# @option params [required, String] :space_id
|
501
|
+
# The unique ID of the private re:Post.
|
502
|
+
#
|
503
|
+
# @return [Types::BatchRemoveRoleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
504
|
+
#
|
505
|
+
# * {Types::BatchRemoveRoleOutput#errors #errors} => Array<Types::BatchError>
|
506
|
+
# * {Types::BatchRemoveRoleOutput#removed_accessor_ids #removed_accessor_ids} => Array<String>
|
507
|
+
#
|
508
|
+
# @example Request syntax with placeholder values
|
509
|
+
#
|
510
|
+
# resp = client.batch_remove_role({
|
511
|
+
# accessor_ids: ["AccessorId"], # required
|
512
|
+
# role: "EXPERT", # required, accepts EXPERT, MODERATOR, ADMINISTRATOR, SUPPORTREQUESTOR
|
513
|
+
# space_id: "SpaceId", # required
|
514
|
+
# })
|
515
|
+
#
|
516
|
+
# @example Response structure
|
517
|
+
#
|
518
|
+
# resp.errors #=> Array
|
519
|
+
# resp.errors[0].accessor_id #=> String
|
520
|
+
# resp.errors[0].error #=> Integer
|
521
|
+
# resp.errors[0].message #=> String
|
522
|
+
# resp.removed_accessor_ids #=> Array
|
523
|
+
# resp.removed_accessor_ids[0] #=> String
|
524
|
+
#
|
525
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchRemoveRole AWS API Documentation
|
526
|
+
#
|
527
|
+
# @overload batch_remove_role(params = {})
|
528
|
+
# @param [Hash] params ({})
|
529
|
+
def batch_remove_role(params = {}, options = {})
|
530
|
+
req = build_request(:batch_remove_role, params)
|
531
|
+
req.send_request(options)
|
532
|
+
end
|
533
|
+
|
450
534
|
# Creates an AWS re:Post Private private re:Post.
|
451
535
|
#
|
452
536
|
# @option params [String] :description
|
@@ -575,6 +659,7 @@ module Aws::Repostspace
|
|
575
659
|
# * {Types::GetSpaceOutput#group_admins #group_admins} => Array<String>
|
576
660
|
# * {Types::GetSpaceOutput#name #name} => String
|
577
661
|
# * {Types::GetSpaceOutput#random_domain #random_domain} => String
|
662
|
+
# * {Types::GetSpaceOutput#roles #roles} => Hash<String,Array<String>>
|
578
663
|
# * {Types::GetSpaceOutput#space_id #space_id} => String
|
579
664
|
# * {Types::GetSpaceOutput#status #status} => String
|
580
665
|
# * {Types::GetSpaceOutput#storage_limit #storage_limit} => Integer
|
@@ -605,6 +690,9 @@ module Aws::Repostspace
|
|
605
690
|
# resp.group_admins[0] #=> String
|
606
691
|
# resp.name #=> String
|
607
692
|
# resp.random_domain #=> String
|
693
|
+
# resp.roles #=> Hash
|
694
|
+
# resp.roles["AccessorId"] #=> Array
|
695
|
+
# resp.roles["AccessorId"][0] #=> String, one of "EXPERT", "MODERATOR", "ADMINISTRATOR", "SUPPORTREQUESTOR"
|
608
696
|
# resp.space_id #=> String
|
609
697
|
# resp.status #=> String
|
610
698
|
# resp.storage_limit #=> Integer
|
@@ -887,7 +975,7 @@ module Aws::Repostspace
|
|
887
975
|
tracer: tracer
|
888
976
|
)
|
889
977
|
context[:gem_name] = 'aws-sdk-repostspace'
|
890
|
-
context[:gem_version] = '1.
|
978
|
+
context[:gem_version] = '1.16.0'
|
891
979
|
Seahorse::Client::Request.new(handlers, context)
|
892
980
|
end
|
893
981
|
|
@@ -19,6 +19,12 @@ module Aws::Repostspace
|
|
19
19
|
AccessorIdList = Shapes::ListShape.new(name: 'AccessorIdList')
|
20
20
|
AdminId = Shapes::StringShape.new(name: 'AdminId')
|
21
21
|
Arn = Shapes::StringShape.new(name: 'Arn')
|
22
|
+
BatchAddRoleInput = Shapes::StructureShape.new(name: 'BatchAddRoleInput')
|
23
|
+
BatchAddRoleOutput = Shapes::StructureShape.new(name: 'BatchAddRoleOutput')
|
24
|
+
BatchError = Shapes::StructureShape.new(name: 'BatchError')
|
25
|
+
BatchErrorList = Shapes::ListShape.new(name: 'BatchErrorList')
|
26
|
+
BatchRemoveRoleInput = Shapes::StructureShape.new(name: 'BatchRemoveRoleInput')
|
27
|
+
BatchRemoveRoleOutput = Shapes::StructureShape.new(name: 'BatchRemoveRoleOutput')
|
22
28
|
ClientId = Shapes::StringShape.new(name: 'ClientId')
|
23
29
|
ConfigurationStatus = Shapes::StringShape.new(name: 'ConfigurationStatus')
|
24
30
|
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
@@ -27,6 +33,8 @@ module Aws::Repostspace
|
|
27
33
|
CreateSpaceOutput = Shapes::StructureShape.new(name: 'CreateSpaceOutput')
|
28
34
|
DeleteSpaceInput = Shapes::StructureShape.new(name: 'DeleteSpaceInput')
|
29
35
|
DeregisterAdminInput = Shapes::StructureShape.new(name: 'DeregisterAdminInput')
|
36
|
+
ErrorCode = Shapes::IntegerShape.new(name: 'ErrorCode')
|
37
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
30
38
|
GetSpaceInput = Shapes::StructureShape.new(name: 'GetSpaceInput')
|
31
39
|
GetSpaceOutput = Shapes::StructureShape.new(name: 'GetSpaceOutput')
|
32
40
|
GroupAdmins = Shapes::ListShape.new(name: 'GroupAdmins')
|
@@ -43,6 +51,9 @@ module Aws::Repostspace
|
|
43
51
|
ProvisioningStatus = Shapes::StringShape.new(name: 'ProvisioningStatus')
|
44
52
|
RegisterAdminInput = Shapes::StructureShape.new(name: 'RegisterAdminInput')
|
45
53
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
54
|
+
Role = Shapes::StringShape.new(name: 'Role')
|
55
|
+
RoleList = Shapes::ListShape.new(name: 'RoleList')
|
56
|
+
Roles = Shapes::MapShape.new(name: 'Roles')
|
46
57
|
SendInvitesInput = Shapes::StructureShape.new(name: 'SendInvitesInput')
|
47
58
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
48
59
|
SpaceData = Shapes::StructureShape.new(name: 'SpaceData')
|
@@ -79,6 +90,31 @@ module Aws::Repostspace
|
|
79
90
|
|
80
91
|
AccessorIdList.member = Shapes::ShapeRef.new(shape: AccessorId)
|
81
92
|
|
93
|
+
BatchAddRoleInput.add_member(:accessor_ids, Shapes::ShapeRef.new(shape: AccessorIdList, required: true, location_name: "accessorIds"))
|
94
|
+
BatchAddRoleInput.add_member(:role, Shapes::ShapeRef.new(shape: Role, required: true, location_name: "role"))
|
95
|
+
BatchAddRoleInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
96
|
+
BatchAddRoleInput.struct_class = Types::BatchAddRoleInput
|
97
|
+
|
98
|
+
BatchAddRoleOutput.add_member(:added_accessor_ids, Shapes::ShapeRef.new(shape: AccessorIdList, required: true, location_name: "addedAccessorIds"))
|
99
|
+
BatchAddRoleOutput.add_member(:errors, Shapes::ShapeRef.new(shape: BatchErrorList, required: true, location_name: "errors"))
|
100
|
+
BatchAddRoleOutput.struct_class = Types::BatchAddRoleOutput
|
101
|
+
|
102
|
+
BatchError.add_member(:accessor_id, Shapes::ShapeRef.new(shape: AccessorId, required: true, location_name: "accessorId"))
|
103
|
+
BatchError.add_member(:error, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "error"))
|
104
|
+
BatchError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
|
105
|
+
BatchError.struct_class = Types::BatchError
|
106
|
+
|
107
|
+
BatchErrorList.member = Shapes::ShapeRef.new(shape: BatchError)
|
108
|
+
|
109
|
+
BatchRemoveRoleInput.add_member(:accessor_ids, Shapes::ShapeRef.new(shape: AccessorIdList, required: true, location_name: "accessorIds"))
|
110
|
+
BatchRemoveRoleInput.add_member(:role, Shapes::ShapeRef.new(shape: Role, required: true, location_name: "role"))
|
111
|
+
BatchRemoveRoleInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
112
|
+
BatchRemoveRoleInput.struct_class = Types::BatchRemoveRoleInput
|
113
|
+
|
114
|
+
BatchRemoveRoleOutput.add_member(:errors, Shapes::ShapeRef.new(shape: BatchErrorList, required: true, location_name: "errors"))
|
115
|
+
BatchRemoveRoleOutput.add_member(:removed_accessor_ids, Shapes::ShapeRef.new(shape: AccessorIdList, required: true, location_name: "removedAccessorIds"))
|
116
|
+
BatchRemoveRoleOutput.struct_class = Types::BatchRemoveRoleOutput
|
117
|
+
|
82
118
|
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
|
83
119
|
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
|
84
120
|
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
@@ -114,14 +150,15 @@ module Aws::Repostspace
|
|
114
150
|
GetSpaceOutput.add_member(:customer_role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "customerRoleArn"))
|
115
151
|
GetSpaceOutput.add_member(:delete_date_time, Shapes::ShapeRef.new(shape: SyntheticTimestamp_date_time, location_name: "deleteDateTime"))
|
116
152
|
GetSpaceOutput.add_member(:description, Shapes::ShapeRef.new(shape: SpaceDescription, location_name: "description"))
|
117
|
-
GetSpaceOutput.add_member(:group_admins, Shapes::ShapeRef.new(shape: GroupAdmins, location_name: "groupAdmins"))
|
153
|
+
GetSpaceOutput.add_member(:group_admins, Shapes::ShapeRef.new(shape: GroupAdmins, deprecated: true, location_name: "groupAdmins", metadata: {"deprecatedMessage"=>"This property has been depracted and will be replaced by the roles property."}))
|
118
154
|
GetSpaceOutput.add_member(:name, Shapes::ShapeRef.new(shape: SpaceName, required: true, location_name: "name"))
|
119
155
|
GetSpaceOutput.add_member(:random_domain, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "randomDomain"))
|
156
|
+
GetSpaceOutput.add_member(:roles, Shapes::ShapeRef.new(shape: Roles, location_name: "roles"))
|
120
157
|
GetSpaceOutput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location_name: "spaceId"))
|
121
158
|
GetSpaceOutput.add_member(:status, Shapes::ShapeRef.new(shape: ProvisioningStatus, required: true, location_name: "status"))
|
122
159
|
GetSpaceOutput.add_member(:storage_limit, Shapes::ShapeRef.new(shape: StorageLimit, required: true, location_name: "storageLimit"))
|
123
160
|
GetSpaceOutput.add_member(:tier, Shapes::ShapeRef.new(shape: TierLevel, required: true, location_name: "tier"))
|
124
|
-
GetSpaceOutput.add_member(:user_admins, Shapes::ShapeRef.new(shape: UserAdmins, location_name: "userAdmins"))
|
161
|
+
GetSpaceOutput.add_member(:user_admins, Shapes::ShapeRef.new(shape: UserAdmins, deprecated: true, location_name: "userAdmins", metadata: {"deprecatedMessage"=>"This property has been depracted and will be replaced by the roles property."}))
|
125
162
|
GetSpaceOutput.add_member(:user_count, Shapes::ShapeRef.new(shape: UserCount, location_name: "userCount"))
|
126
163
|
GetSpaceOutput.add_member(:user_kms_key, Shapes::ShapeRef.new(shape: KMSKey, location_name: "userKMSKey"))
|
127
164
|
GetSpaceOutput.add_member(:vanity_domain, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "vanityDomain"))
|
@@ -157,6 +194,11 @@ module Aws::Repostspace
|
|
157
194
|
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
|
158
195
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
159
196
|
|
197
|
+
RoleList.member = Shapes::ShapeRef.new(shape: Role)
|
198
|
+
|
199
|
+
Roles.key = Shapes::ShapeRef.new(shape: AccessorId)
|
200
|
+
Roles.value = Shapes::ShapeRef.new(shape: RoleList)
|
201
|
+
|
160
202
|
SendInvitesInput.add_member(:accessor_ids, Shapes::ShapeRef.new(shape: AccessorIdList, required: true, location_name: "accessorIds"))
|
161
203
|
SendInvitesInput.add_member(:body, Shapes::ShapeRef.new(shape: InviteBody, required: true, location_name: "body"))
|
162
204
|
SendInvitesInput.add_member(:space_id, Shapes::ShapeRef.new(shape: SpaceId, required: true, location: "uri", location_name: "spaceId"))
|
@@ -240,9 +282,11 @@ module Aws::Repostspace
|
|
240
282
|
|
241
283
|
api.metadata = {
|
242
284
|
"apiVersion" => "2022-05-13",
|
285
|
+
"auth" => ["aws.auth#sigv4"],
|
243
286
|
"endpointPrefix" => "repostspace",
|
244
287
|
"jsonVersion" => "1.1",
|
245
288
|
"protocol" => "rest-json",
|
289
|
+
"protocols" => ["rest-json"],
|
246
290
|
"serviceFullName" => "AWS re:Post Private",
|
247
291
|
"serviceId" => "repostspace",
|
248
292
|
"signatureVersion" => "v4",
|
@@ -250,6 +294,32 @@ module Aws::Repostspace
|
|
250
294
|
"uid" => "repostspace-2022-05-13",
|
251
295
|
}
|
252
296
|
|
297
|
+
api.add_operation(:batch_add_role, Seahorse::Model::Operation.new.tap do |o|
|
298
|
+
o.name = "BatchAddRole"
|
299
|
+
o.http_method = "POST"
|
300
|
+
o.http_request_uri = "/spaces/{spaceId}/roles"
|
301
|
+
o.input = Shapes::ShapeRef.new(shape: BatchAddRoleInput)
|
302
|
+
o.output = Shapes::ShapeRef.new(shape: BatchAddRoleOutput)
|
303
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
304
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
305
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
306
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
308
|
+
end)
|
309
|
+
|
310
|
+
api.add_operation(:batch_remove_role, Seahorse::Model::Operation.new.tap do |o|
|
311
|
+
o.name = "BatchRemoveRole"
|
312
|
+
o.http_method = "PATCH"
|
313
|
+
o.http_request_uri = "/spaces/{spaceId}/roles"
|
314
|
+
o.input = Shapes::ShapeRef.new(shape: BatchRemoveRoleInput)
|
315
|
+
o.output = Shapes::ShapeRef.new(shape: BatchRemoveRoleOutput)
|
316
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
317
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
318
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
319
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
320
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
321
|
+
end)
|
322
|
+
|
253
323
|
api.add_operation(:create_space, Seahorse::Model::Operation.new.tap do |o|
|
254
324
|
o.name = "CreateSpace"
|
255
325
|
o.http_method = "POST"
|
@@ -52,15 +52,18 @@ module Aws::Repostspace
|
|
52
52
|
self[:region] = options[:region]
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
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
55
|
self[:use_fips] = options[:use_fips]
|
59
56
|
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
57
|
self[:endpoint] = options[:endpoint]
|
64
58
|
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|
@@ -12,126 +12,9 @@ module Aws::Repostspace
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
-
class CreateSpace
|
16
|
-
def self.build(context)
|
17
|
-
Aws::Repostspace::EndpointParameters.new(
|
18
|
-
region: context.config.region,
|
19
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
20
|
-
use_fips: context.config.use_fips_endpoint,
|
21
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
22
|
-
)
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
class DeleteSpace
|
27
|
-
def self.build(context)
|
28
|
-
Aws::Repostspace::EndpointParameters.new(
|
29
|
-
region: context.config.region,
|
30
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
31
|
-
use_fips: context.config.use_fips_endpoint,
|
32
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
33
|
-
)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
class DeregisterAdmin
|
38
|
-
def self.build(context)
|
39
|
-
Aws::Repostspace::EndpointParameters.new(
|
40
|
-
region: context.config.region,
|
41
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
42
|
-
use_fips: context.config.use_fips_endpoint,
|
43
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
44
|
-
)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
class GetSpace
|
49
|
-
def self.build(context)
|
50
|
-
Aws::Repostspace::EndpointParameters.new(
|
51
|
-
region: context.config.region,
|
52
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
53
|
-
use_fips: context.config.use_fips_endpoint,
|
54
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
55
|
-
)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
class ListSpaces
|
60
|
-
def self.build(context)
|
61
|
-
Aws::Repostspace::EndpointParameters.new(
|
62
|
-
region: context.config.region,
|
63
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
-
use_fips: context.config.use_fips_endpoint,
|
65
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
66
|
-
)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
class ListTagsForResource
|
71
|
-
def self.build(context)
|
72
|
-
Aws::Repostspace::EndpointParameters.new(
|
73
|
-
region: context.config.region,
|
74
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
75
|
-
use_fips: context.config.use_fips_endpoint,
|
76
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
77
|
-
)
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
class RegisterAdmin
|
82
|
-
def self.build(context)
|
83
|
-
Aws::Repostspace::EndpointParameters.new(
|
84
|
-
region: context.config.region,
|
85
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
86
|
-
use_fips: context.config.use_fips_endpoint,
|
87
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
88
|
-
)
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
class SendInvites
|
93
|
-
def self.build(context)
|
94
|
-
Aws::Repostspace::EndpointParameters.new(
|
95
|
-
region: context.config.region,
|
96
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
97
|
-
use_fips: context.config.use_fips_endpoint,
|
98
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
99
|
-
)
|
100
|
-
end
|
101
|
-
end
|
102
15
|
|
103
|
-
|
104
|
-
|
105
|
-
Aws::Repostspace::EndpointParameters.new(
|
106
|
-
region: context.config.region,
|
107
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
108
|
-
use_fips: context.config.use_fips_endpoint,
|
109
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
110
|
-
)
|
111
|
-
end
|
16
|
+
def self.parameters_for_operation(context)
|
17
|
+
Aws::Repostspace::EndpointParameters.create(context.config)
|
112
18
|
end
|
113
|
-
|
114
|
-
class UntagResource
|
115
|
-
def self.build(context)
|
116
|
-
Aws::Repostspace::EndpointParameters.new(
|
117
|
-
region: context.config.region,
|
118
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
119
|
-
use_fips: context.config.use_fips_endpoint,
|
120
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
121
|
-
)
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
class UpdateSpace
|
126
|
-
def self.build(context)
|
127
|
-
Aws::Repostspace::EndpointParameters.new(
|
128
|
-
region: context.config.region,
|
129
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
130
|
-
use_fips: context.config.use_fips_endpoint,
|
131
|
-
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
132
|
-
)
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
19
|
end
|
137
20
|
end
|
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
28
28
|
def call(context)
|
29
29
|
unless context[:discovered_endpoint]
|
30
|
-
params = parameters_for_operation(context)
|
30
|
+
params = Aws::Repostspace::Endpoints.parameters_for_operation(context)
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
32
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
@@ -67,33 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
67
67
|
context.http_request.headers[key] = value
|
68
68
|
end
|
69
69
|
end
|
70
|
-
|
71
|
-
def parameters_for_operation(context)
|
72
|
-
case context.operation_name
|
73
|
-
when :create_space
|
74
|
-
Aws::Repostspace::Endpoints::CreateSpace.build(context)
|
75
|
-
when :delete_space
|
76
|
-
Aws::Repostspace::Endpoints::DeleteSpace.build(context)
|
77
|
-
when :deregister_admin
|
78
|
-
Aws::Repostspace::Endpoints::DeregisterAdmin.build(context)
|
79
|
-
when :get_space
|
80
|
-
Aws::Repostspace::Endpoints::GetSpace.build(context)
|
81
|
-
when :list_spaces
|
82
|
-
Aws::Repostspace::Endpoints::ListSpaces.build(context)
|
83
|
-
when :list_tags_for_resource
|
84
|
-
Aws::Repostspace::Endpoints::ListTagsForResource.build(context)
|
85
|
-
when :register_admin
|
86
|
-
Aws::Repostspace::Endpoints::RegisterAdmin.build(context)
|
87
|
-
when :send_invites
|
88
|
-
Aws::Repostspace::Endpoints::SendInvites.build(context)
|
89
|
-
when :tag_resource
|
90
|
-
Aws::Repostspace::Endpoints::TagResource.build(context)
|
91
|
-
when :untag_resource
|
92
|
-
Aws::Repostspace::Endpoints::UntagResource.build(context)
|
93
|
-
when :update_space
|
94
|
-
Aws::Repostspace::Endpoints::UpdateSpace.build(context)
|
95
|
-
end
|
96
|
-
end
|
97
70
|
end
|
98
71
|
|
99
72
|
def add_handlers(handlers, _config)
|
@@ -23,6 +23,108 @@ module Aws::Repostspace
|
|
23
23
|
include Aws::Structure
|
24
24
|
end
|
25
25
|
|
26
|
+
# @!attribute [rw] accessor_ids
|
27
|
+
# The user or group accessor identifiers to add the role to.
|
28
|
+
# @return [Array<String>]
|
29
|
+
#
|
30
|
+
# @!attribute [rw] role
|
31
|
+
# The role to add to the users or groups.
|
32
|
+
# @return [String]
|
33
|
+
#
|
34
|
+
# @!attribute [rw] space_id
|
35
|
+
# The unique ID of the private re:Post.
|
36
|
+
# @return [String]
|
37
|
+
#
|
38
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchAddRoleInput AWS API Documentation
|
39
|
+
#
|
40
|
+
class BatchAddRoleInput < Struct.new(
|
41
|
+
:accessor_ids,
|
42
|
+
:role,
|
43
|
+
:space_id)
|
44
|
+
SENSITIVE = []
|
45
|
+
include Aws::Structure
|
46
|
+
end
|
47
|
+
|
48
|
+
# @!attribute [rw] added_accessor_ids
|
49
|
+
# An array of successfully updated accessor identifiers.
|
50
|
+
# @return [Array<String>]
|
51
|
+
#
|
52
|
+
# @!attribute [rw] errors
|
53
|
+
# An array of errors that occurred when roles were added.
|
54
|
+
# @return [Array<Types::BatchError>]
|
55
|
+
#
|
56
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchAddRoleOutput AWS API Documentation
|
57
|
+
#
|
58
|
+
class BatchAddRoleOutput < Struct.new(
|
59
|
+
:added_accessor_ids,
|
60
|
+
:errors)
|
61
|
+
SENSITIVE = []
|
62
|
+
include Aws::Structure
|
63
|
+
end
|
64
|
+
|
65
|
+
# An error that occurred during a batch operation.
|
66
|
+
#
|
67
|
+
# @!attribute [rw] accessor_id
|
68
|
+
# The accessor identifier that's related to the error.
|
69
|
+
# @return [String]
|
70
|
+
#
|
71
|
+
# @!attribute [rw] error
|
72
|
+
# The error code.
|
73
|
+
# @return [Integer]
|
74
|
+
#
|
75
|
+
# @!attribute [rw] message
|
76
|
+
# Description of the error.
|
77
|
+
# @return [String]
|
78
|
+
#
|
79
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchError AWS API Documentation
|
80
|
+
#
|
81
|
+
class BatchError < Struct.new(
|
82
|
+
:accessor_id,
|
83
|
+
:error,
|
84
|
+
:message)
|
85
|
+
SENSITIVE = []
|
86
|
+
include Aws::Structure
|
87
|
+
end
|
88
|
+
|
89
|
+
# @!attribute [rw] accessor_ids
|
90
|
+
# The user or group accessor identifiers to remove the role from.
|
91
|
+
# @return [Array<String>]
|
92
|
+
#
|
93
|
+
# @!attribute [rw] role
|
94
|
+
# The role to remove from the users or groups.
|
95
|
+
# @return [String]
|
96
|
+
#
|
97
|
+
# @!attribute [rw] space_id
|
98
|
+
# The unique ID of the private re:Post.
|
99
|
+
# @return [String]
|
100
|
+
#
|
101
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchRemoveRoleInput AWS API Documentation
|
102
|
+
#
|
103
|
+
class BatchRemoveRoleInput < Struct.new(
|
104
|
+
:accessor_ids,
|
105
|
+
:role,
|
106
|
+
:space_id)
|
107
|
+
SENSITIVE = []
|
108
|
+
include Aws::Structure
|
109
|
+
end
|
110
|
+
|
111
|
+
# @!attribute [rw] errors
|
112
|
+
# An array of errors that occurred when roles were removed.
|
113
|
+
# @return [Array<Types::BatchError>]
|
114
|
+
#
|
115
|
+
# @!attribute [rw] removed_accessor_ids
|
116
|
+
# An array of successfully updated accessor identifiers.
|
117
|
+
# @return [Array<String>]
|
118
|
+
#
|
119
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/BatchRemoveRoleOutput AWS API Documentation
|
120
|
+
#
|
121
|
+
class BatchRemoveRoleOutput < Struct.new(
|
122
|
+
:errors,
|
123
|
+
:removed_accessor_ids)
|
124
|
+
SENSITIVE = []
|
125
|
+
include Aws::Structure
|
126
|
+
end
|
127
|
+
|
26
128
|
# Updating or deleting a resource can cause an inconsistent state.
|
27
129
|
#
|
28
130
|
# @!attribute [rw] message
|
@@ -194,6 +296,10 @@ module Aws::Repostspace
|
|
194
296
|
# The AWS generated subdomain of the private re:Post
|
195
297
|
# @return [String]
|
196
298
|
#
|
299
|
+
# @!attribute [rw] roles
|
300
|
+
# A map of accessor identifiers and their roles.
|
301
|
+
# @return [Hash<String,Array<String>>]
|
302
|
+
#
|
197
303
|
# @!attribute [rw] space_id
|
198
304
|
# The unique ID of the private re:Post.
|
199
305
|
# @return [String]
|
@@ -245,6 +351,7 @@ module Aws::Repostspace
|
|
245
351
|
:group_admins,
|
246
352
|
:name,
|
247
353
|
:random_domain,
|
354
|
+
:roles,
|
248
355
|
:space_id,
|
249
356
|
:status,
|
250
357
|
:storage_limit,
|
data/lib/aws-sdk-repostspace.rb
CHANGED
@@ -23,7 +23,7 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:repostspace)
|
|
23
23
|
# structure.
|
24
24
|
#
|
25
25
|
# repostspace = Aws::Repostspace::Client.new
|
26
|
-
# resp = repostspace.
|
26
|
+
# resp = repostspace.batch_add_role(params)
|
27
27
|
#
|
28
28
|
# See {Client} for more information.
|
29
29
|
#
|
@@ -54,7 +54,7 @@ module Aws::Repostspace
|
|
54
54
|
autoload :EndpointProvider, 'aws-sdk-repostspace/endpoint_provider'
|
55
55
|
autoload :Endpoints, 'aws-sdk-repostspace/endpoints'
|
56
56
|
|
57
|
-
GEM_VERSION = '1.
|
57
|
+
GEM_VERSION = '1.16.0'
|
58
58
|
|
59
59
|
end
|
60
60
|
|
data/sig/client.rbs
CHANGED
@@ -75,6 +75,32 @@ module Aws
|
|
75
75
|
| (?Hash[Symbol, untyped]) -> instance
|
76
76
|
|
77
77
|
|
78
|
+
interface _BatchAddRoleResponseSuccess
|
79
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::BatchAddRoleOutput]
|
80
|
+
def added_accessor_ids: () -> ::Array[::String]
|
81
|
+
def errors: () -> ::Array[Types::BatchError]
|
82
|
+
end
|
83
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Repostspace/Client.html#batch_add_role-instance_method
|
84
|
+
def batch_add_role: (
|
85
|
+
accessor_ids: Array[::String],
|
86
|
+
role: ("EXPERT" | "MODERATOR" | "ADMINISTRATOR" | "SUPPORTREQUESTOR"),
|
87
|
+
space_id: ::String
|
88
|
+
) -> _BatchAddRoleResponseSuccess
|
89
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchAddRoleResponseSuccess
|
90
|
+
|
91
|
+
interface _BatchRemoveRoleResponseSuccess
|
92
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::BatchRemoveRoleOutput]
|
93
|
+
def errors: () -> ::Array[Types::BatchError]
|
94
|
+
def removed_accessor_ids: () -> ::Array[::String]
|
95
|
+
end
|
96
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Repostspace/Client.html#batch_remove_role-instance_method
|
97
|
+
def batch_remove_role: (
|
98
|
+
accessor_ids: Array[::String],
|
99
|
+
role: ("EXPERT" | "MODERATOR" | "ADMINISTRATOR" | "SUPPORTREQUESTOR"),
|
100
|
+
space_id: ::String
|
101
|
+
) -> _BatchRemoveRoleResponseSuccess
|
102
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _BatchRemoveRoleResponseSuccess
|
103
|
+
|
78
104
|
interface _CreateSpaceResponseSuccess
|
79
105
|
include ::Seahorse::Client::_ResponseSuccess[Types::CreateSpaceOutput]
|
80
106
|
def space_id: () -> ::String
|
@@ -117,6 +143,7 @@ module Aws
|
|
117
143
|
def group_admins: () -> ::Array[::String]
|
118
144
|
def name: () -> ::String
|
119
145
|
def random_domain: () -> ::String
|
146
|
+
def roles: () -> ::Hash[::String, ::Array[("EXPERT" | "MODERATOR" | "ADMINISTRATOR" | "SUPPORTREQUESTOR")]]
|
120
147
|
def space_id: () -> ::String
|
121
148
|
def status: () -> ::String
|
122
149
|
def storage_limit: () -> ::Integer
|
data/sig/types.rbs
CHANGED
@@ -13,6 +13,39 @@ module Aws::Repostspace
|
|
13
13
|
SENSITIVE: []
|
14
14
|
end
|
15
15
|
|
16
|
+
class BatchAddRoleInput
|
17
|
+
attr_accessor accessor_ids: ::Array[::String]
|
18
|
+
attr_accessor role: ("EXPERT" | "MODERATOR" | "ADMINISTRATOR" | "SUPPORTREQUESTOR")
|
19
|
+
attr_accessor space_id: ::String
|
20
|
+
SENSITIVE: []
|
21
|
+
end
|
22
|
+
|
23
|
+
class BatchAddRoleOutput
|
24
|
+
attr_accessor added_accessor_ids: ::Array[::String]
|
25
|
+
attr_accessor errors: ::Array[Types::BatchError]
|
26
|
+
SENSITIVE: []
|
27
|
+
end
|
28
|
+
|
29
|
+
class BatchError
|
30
|
+
attr_accessor accessor_id: ::String
|
31
|
+
attr_accessor error: ::Integer
|
32
|
+
attr_accessor message: ::String
|
33
|
+
SENSITIVE: []
|
34
|
+
end
|
35
|
+
|
36
|
+
class BatchRemoveRoleInput
|
37
|
+
attr_accessor accessor_ids: ::Array[::String]
|
38
|
+
attr_accessor role: ("EXPERT" | "MODERATOR" | "ADMINISTRATOR" | "SUPPORTREQUESTOR")
|
39
|
+
attr_accessor space_id: ::String
|
40
|
+
SENSITIVE: []
|
41
|
+
end
|
42
|
+
|
43
|
+
class BatchRemoveRoleOutput
|
44
|
+
attr_accessor errors: ::Array[Types::BatchError]
|
45
|
+
attr_accessor removed_accessor_ids: ::Array[::String]
|
46
|
+
SENSITIVE: []
|
47
|
+
end
|
48
|
+
|
16
49
|
class ConflictException
|
17
50
|
attr_accessor message: ::String
|
18
51
|
attr_accessor resource_id: ::String
|
@@ -64,6 +97,7 @@ module Aws::Repostspace
|
|
64
97
|
attr_accessor group_admins: ::Array[::String]
|
65
98
|
attr_accessor name: ::String
|
66
99
|
attr_accessor random_domain: ::String
|
100
|
+
attr_accessor roles: ::Hash[::String, ::Array[("EXPERT" | "MODERATOR" | "ADMINISTRATOR" | "SUPPORTREQUESTOR")]]
|
67
101
|
attr_accessor space_id: ::String
|
68
102
|
attr_accessor status: ::String
|
69
103
|
attr_accessor storage_limit: ::Integer
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-repostspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.210.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.210.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.5'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.5'
|
47
47
|
description: Official AWS Ruby gem for AWS re:Post Private. This gem is part of the
|
48
48
|
AWS SDK for Ruby.
|
49
49
|
email:
|