aws-sdk-repostspace 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd4e3dc09fe0c9ff003b3a620b9bacd9bcfa4519b2ea88f92efa51385037d8dd
4
- data.tar.gz: d6c404ca7d24973ffa3df982333ec08a4ce51c89c5a3c88d5f7e5d44e6d7158a
3
+ metadata.gz: 9ab9735cd511ddf02f2ca2f794eff8e2ba8f59825d84fde853022b2301b5be72
4
+ data.tar.gz: 2d0bc1f5a522e248b300877adc3f4ea2ea4f25219418486c3103fb375c464ae6
5
5
  SHA512:
6
- metadata.gz: 0c90441e40ed887ed958a866eea3b33e6b5534c49be3e0ef69ea7fe86ae8825379f8b62ec53151c5e6a37feddcbd9146611880bf760a186e0a64c558321afc3b
7
- data.tar.gz: a930dc1f369bbffaed6b2d1cd92aace1093aff3828d92f3449478b7181b2818b0cbe11c843c57fc6f425174d3841a98c2026c92b893f64e450f9b0387c756c90
6
+ metadata.gz: 767056f6b6312310ccec0f8635e2cb08a4f219c07a2575273a3ea49bfd7227f977203a1ad0e778028f6c95af0d6869e850f0c9106f037bdce0338d64a2b4e314
7
+ data.tar.gz: 8de5834d0d8186a36e431cc2a705d085a9c49013574ccce1927a9ee2ffbd240ac13350bc7cc68f608dfd9d098123317fe10e1aaf812e6c66936eec51970b5e74
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.15.0 (2024-10-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
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&lt;String&gt;
464
+ # * {Types::BatchAddRoleOutput#errors #errors} => Array&lt;Types::BatchError&gt;
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&lt;Types::BatchError&gt;
506
+ # * {Types::BatchRemoveRoleOutput#removed_accessor_ids #removed_accessor_ids} => Array&lt;String&gt;
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&lt;String&gt;
576
660
  # * {Types::GetSpaceOutput#name #name} => String
577
661
  # * {Types::GetSpaceOutput#random_domain #random_domain} => String
662
+ # * {Types::GetSpaceOutput#roles #roles} => Hash&lt;String,Array&lt;String&gt;&gt;
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.15.0'
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"
@@ -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,
@@ -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.create_space(params)
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.15.0'
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.15.0
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-10-18 00:00:00.000000000 Z
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
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.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.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: