aws-sdk-workmail 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a6b83ed17cbdf17534c271ae0dbaf5100f2c623
4
- data.tar.gz: 89782a2851f026da627f517ed6ba127c13b6e65d
3
+ metadata.gz: 9c8491f95b391f56b5a2fdea3bbe713618f0a254
4
+ data.tar.gz: 3b76214ef933032ce792a227592aa6cd2ac128da
5
5
  SHA512:
6
- metadata.gz: e8fd9f22ca8a67ffddf075c6055178a16a3661c1d4326fb3934232c7a0f0f765e8d56dc873dcf72b2fe63f91659001b58aa127bdeb450ed3c075c4efc1478d3c
7
- data.tar.gz: 02a507b5f055bbc5fcc929c76fcfa60aaaf2996cef664190ce8f701bef02cb75dcc51a0c1225ef141dac9a2f7d6252118e657d6c76c3f949bfe2dd2e05adb105
6
+ metadata.gz: 0c4d74d32e8950d37134ea5973c9f871b17cb1ff443c21d4377a0a3e9b76f3045c8ad551e36daca19b2d0ee17aae561ea9d08ad4e46b33410559af56e48faa4e
7
+ data.tar.gz: 610c9c90dc15c5e079dd9bb7308fc1e41e6f759b0b29c7af4b121bced70afcf347a266ca12f9feae6e7e69681a6279a728fe4dd23db8f631b5a813963da19bd4
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-workmail/customizations'
42
42
  # @service
43
43
  module Aws::WorkMail
44
44
 
45
- GEM_VERSION = '1.11.0'
45
+ GEM_VERSION = '1.12.0'
46
46
 
47
47
  end
@@ -209,6 +209,49 @@ module Aws::WorkMail
209
209
  # When `true`, request parameters are validated before
210
210
  # sending the request.
211
211
  #
212
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
213
+ # requests through. Formatted like 'http://proxy.com:123'.
214
+ #
215
+ # @option options [Float] :http_open_timeout (15) The number of
216
+ # seconds to wait when opening a HTTP session before rasing a
217
+ # `Timeout::Error`.
218
+ #
219
+ # @option options [Integer] :http_read_timeout (60) The default
220
+ # number of seconds to wait for response data. This value can
221
+ # safely be set
222
+ # per-request on the session yeidled by {#session_for}.
223
+ #
224
+ # @option options [Float] :http_idle_timeout (5) The number of
225
+ # seconds a connection is allowed to sit idble before it is
226
+ # considered stale. Stale connections are closed and removed
227
+ # from the pool before making a request.
228
+ #
229
+ # @option options [Float] :http_continue_timeout (1) The number of
230
+ # seconds to wait for a 100-continue response before sending the
231
+ # request body. This option has no effect unless the request has
232
+ # "Expect" header set to "100-continue". Defaults to `nil` which
233
+ # disables this behaviour. This value can safely be set per
234
+ # request on the session yeidled by {#session_for}.
235
+ #
236
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
237
+ # HTTP debug output will be sent to the `:logger`.
238
+ #
239
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
240
+ # SSL peer certificates are verified when establishing a
241
+ # connection.
242
+ #
243
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
244
+ # certificate authority bundle file that should be used when
245
+ # verifying peer certificates. If you do not pass
246
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
247
+ # will be used if available.
248
+ #
249
+ # @option options [String] :ssl_ca_directory Full path of the
250
+ # directory that contains the unbundled SSL certificate
251
+ # authority files for verifying peer certificates. If you do
252
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
253
+ # system default will be used if available.
254
+ #
212
255
  def initialize(*args)
213
256
  super
214
257
  end
@@ -841,6 +884,42 @@ module Aws::WorkMail
841
884
  req.send_request(options)
842
885
  end
843
886
 
887
+ # Requests a user's mailbox details for a specified organization and
888
+ # user.
889
+ #
890
+ # @option params [required, String] :organization_id
891
+ # The identifier for the organization that contains the user whose
892
+ # mailbox details are being requested.
893
+ #
894
+ # @option params [required, String] :user_id
895
+ # The identifier for the user whose mailbox details are being requested.
896
+ #
897
+ # @return [Types::GetMailboxDetailsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
898
+ #
899
+ # * {Types::GetMailboxDetailsResponse#mailbox_quota #mailbox_quota} => Integer
900
+ # * {Types::GetMailboxDetailsResponse#mailbox_size #mailbox_size} => Float
901
+ #
902
+ # @example Request syntax with placeholder values
903
+ #
904
+ # resp = client.get_mailbox_details({
905
+ # organization_id: "OrganizationId", # required
906
+ # user_id: "WorkMailIdentifier", # required
907
+ # })
908
+ #
909
+ # @example Response structure
910
+ #
911
+ # resp.mailbox_quota #=> Integer
912
+ # resp.mailbox_size #=> Float
913
+ #
914
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/GetMailboxDetails AWS API Documentation
915
+ #
916
+ # @overload get_mailbox_details(params = {})
917
+ # @param [Hash] params ({})
918
+ def get_mailbox_details(params = {}, options = {})
919
+ req = build_request(:get_mailbox_details, params)
920
+ req.send_request(options)
921
+ end
922
+
844
923
  # Creates a paginated call to list the aliases associated with a given
845
924
  # entity.
846
925
  #
@@ -1331,6 +1410,38 @@ module Aws::WorkMail
1331
1410
  req.send_request(options)
1332
1411
  end
1333
1412
 
1413
+ # Updates a user's current mailbox quota for a specified organization
1414
+ # and user.
1415
+ #
1416
+ # @option params [required, String] :organization_id
1417
+ # The identifier for the organization that contains the user for whom to
1418
+ # update the mailbox quota.
1419
+ #
1420
+ # @option params [required, String] :user_id
1421
+ # The identifer for the user for whom to update the mailbox quota.
1422
+ #
1423
+ # @option params [required, Integer] :mailbox_quota
1424
+ # The updated mailbox quota, in MB, for the specified user.
1425
+ #
1426
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1427
+ #
1428
+ # @example Request syntax with placeholder values
1429
+ #
1430
+ # resp = client.update_mailbox_quota({
1431
+ # organization_id: "OrganizationId", # required
1432
+ # user_id: "WorkMailIdentifier", # required
1433
+ # mailbox_quota: 1, # required
1434
+ # })
1435
+ #
1436
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdateMailboxQuota AWS API Documentation
1437
+ #
1438
+ # @overload update_mailbox_quota(params = {})
1439
+ # @param [Hash] params ({})
1440
+ def update_mailbox_quota(params = {}, options = {})
1441
+ req = build_request(:update_mailbox_quota, params)
1442
+ req.send_request(options)
1443
+ end
1444
+
1334
1445
  # Updates the primary email for a user, group, or resource. The current
1335
1446
  # email is moved into the list of aliases (or swapped between an
1336
1447
  # existing alias and the current primary email), and the email provided
@@ -1419,7 +1530,7 @@ module Aws::WorkMail
1419
1530
  params: params,
1420
1531
  config: config)
1421
1532
  context[:gem_name] = 'aws-sdk-workmail'
1422
- context[:gem_version] = '1.11.0'
1533
+ context[:gem_version] = '1.12.0'
1423
1534
  Seahorse::Client::Request.new(handlers, context)
1424
1535
  end
1425
1536
 
@@ -59,6 +59,8 @@ module Aws::WorkMail
59
59
  EntityNotFoundException = Shapes::StructureShape.new(name: 'EntityNotFoundException')
60
60
  EntityState = Shapes::StringShape.new(name: 'EntityState')
61
61
  EntityStateException = Shapes::StructureShape.new(name: 'EntityStateException')
62
+ GetMailboxDetailsRequest = Shapes::StructureShape.new(name: 'GetMailboxDetailsRequest')
63
+ GetMailboxDetailsResponse = Shapes::StructureShape.new(name: 'GetMailboxDetailsResponse')
62
64
  Group = Shapes::StructureShape.new(name: 'Group')
63
65
  GroupName = Shapes::StringShape.new(name: 'GroupName')
64
66
  Groups = Shapes::ListShape.new(name: 'Groups')
@@ -83,6 +85,8 @@ module Aws::WorkMail
83
85
  ListUsersResponse = Shapes::StructureShape.new(name: 'ListUsersResponse')
84
86
  MailDomainNotFoundException = Shapes::StructureShape.new(name: 'MailDomainNotFoundException')
85
87
  MailDomainStateException = Shapes::StructureShape.new(name: 'MailDomainStateException')
88
+ MailboxQuota = Shapes::IntegerShape.new(name: 'MailboxQuota')
89
+ MailboxSize = Shapes::FloatShape.new(name: 'MailboxSize')
86
90
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
87
91
  Member = Shapes::StructureShape.new(name: 'Member')
88
92
  MemberType = Shapes::StringShape.new(name: 'MemberType')
@@ -116,6 +120,8 @@ module Aws::WorkMail
116
120
  String = Shapes::StringShape.new(name: 'String')
117
121
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
118
122
  UnsupportedOperationException = Shapes::StructureShape.new(name: 'UnsupportedOperationException')
123
+ UpdateMailboxQuotaRequest = Shapes::StructureShape.new(name: 'UpdateMailboxQuotaRequest')
124
+ UpdateMailboxQuotaResponse = Shapes::StructureShape.new(name: 'UpdateMailboxQuotaResponse')
119
125
  UpdatePrimaryEmailAddressRequest = Shapes::StructureShape.new(name: 'UpdatePrimaryEmailAddressRequest')
120
126
  UpdatePrimaryEmailAddressResponse = Shapes::StructureShape.new(name: 'UpdatePrimaryEmailAddressResponse')
121
127
  UpdateResourceRequest = Shapes::StructureShape.new(name: 'UpdateResourceRequest')
@@ -287,6 +293,14 @@ module Aws::WorkMail
287
293
 
288
294
  DisassociateMemberFromGroupResponse.struct_class = Types::DisassociateMemberFromGroupResponse
289
295
 
296
+ GetMailboxDetailsRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
297
+ GetMailboxDetailsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "UserId"))
298
+ GetMailboxDetailsRequest.struct_class = Types::GetMailboxDetailsRequest
299
+
300
+ GetMailboxDetailsResponse.add_member(:mailbox_quota, Shapes::ShapeRef.new(shape: MailboxQuota, location_name: "MailboxQuota"))
301
+ GetMailboxDetailsResponse.add_member(:mailbox_size, Shapes::ShapeRef.new(shape: MailboxSize, location_name: "MailboxSize"))
302
+ GetMailboxDetailsResponse.struct_class = Types::GetMailboxDetailsResponse
303
+
290
304
  Group.add_member(:id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, location_name: "Id"))
291
305
  Group.add_member(:email, Shapes::ShapeRef.new(shape: EmailAddress, location_name: "Email"))
292
306
  Group.add_member(:name, Shapes::ShapeRef.new(shape: GroupName, location_name: "Name"))
@@ -434,6 +448,13 @@ module Aws::WorkMail
434
448
 
435
449
  Resources.member = Shapes::ShapeRef.new(shape: Resource)
436
450
 
451
+ UpdateMailboxQuotaRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
452
+ UpdateMailboxQuotaRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "UserId"))
453
+ UpdateMailboxQuotaRequest.add_member(:mailbox_quota, Shapes::ShapeRef.new(shape: MailboxQuota, required: true, location_name: "MailboxQuota"))
454
+ UpdateMailboxQuotaRequest.struct_class = Types::UpdateMailboxQuotaRequest
455
+
456
+ UpdateMailboxQuotaResponse.struct_class = Types::UpdateMailboxQuotaResponse
457
+
437
458
  UpdatePrimaryEmailAddressRequest.add_member(:organization_id, Shapes::ShapeRef.new(shape: OrganizationId, required: true, location_name: "OrganizationId"))
438
459
  UpdatePrimaryEmailAddressRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: WorkMailIdentifier, required: true, location_name: "EntityId"))
439
460
  UpdatePrimaryEmailAddressRequest.add_member(:email, Shapes::ShapeRef.new(shape: EmailAddress, required: true, location_name: "Email"))
@@ -728,6 +749,17 @@ module Aws::WorkMail
728
749
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
729
750
  end)
730
751
 
752
+ api.add_operation(:get_mailbox_details, Seahorse::Model::Operation.new.tap do |o|
753
+ o.name = "GetMailboxDetails"
754
+ o.http_method = "POST"
755
+ o.http_request_uri = "/"
756
+ o.input = Shapes::ShapeRef.new(shape: GetMailboxDetailsRequest)
757
+ o.output = Shapes::ShapeRef.new(shape: GetMailboxDetailsResponse)
758
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
759
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
760
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
761
+ end)
762
+
731
763
  api.add_operation(:list_aliases, Seahorse::Model::Operation.new.tap do |o|
732
764
  o.name = "ListAliases"
733
765
  o.http_method = "POST"
@@ -828,6 +860,12 @@ module Aws::WorkMail
828
860
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
829
861
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
830
862
  o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
863
+ o[:pager] = Aws::Pager.new(
864
+ limit_key: "max_results",
865
+ tokens: {
866
+ "next_token" => "next_token"
867
+ }
868
+ )
831
869
  end)
832
870
 
833
871
  api.add_operation(:list_resources, Seahorse::Model::Operation.new.tap do |o|
@@ -913,6 +951,19 @@ module Aws::WorkMail
913
951
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
914
952
  end)
915
953
 
954
+ api.add_operation(:update_mailbox_quota, Seahorse::Model::Operation.new.tap do |o|
955
+ o.name = "UpdateMailboxQuota"
956
+ o.http_method = "POST"
957
+ o.http_request_uri = "/"
958
+ o.input = Shapes::ShapeRef.new(shape: UpdateMailboxQuotaRequest)
959
+ o.output = Shapes::ShapeRef.new(shape: UpdateMailboxQuotaResponse)
960
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
961
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationNotFoundException)
962
+ o.errors << Shapes::ShapeRef.new(shape: OrganizationStateException)
963
+ o.errors << Shapes::ShapeRef.new(shape: EntityNotFoundException)
964
+ o.errors << Shapes::ShapeRef.new(shape: EntityStateException)
965
+ end)
966
+
916
967
  api.add_operation(:update_primary_email_address, Seahorse::Model::Operation.new.tap do |o|
917
968
  o.name = "UpdatePrimaryEmailAddress"
918
969
  o.http_method = "POST"
@@ -832,6 +832,48 @@ module Aws::WorkMail
832
832
  #
833
833
  class DisassociateMemberFromGroupResponse < Aws::EmptyStructure; end
834
834
 
835
+ # @note When making an API call, you may pass GetMailboxDetailsRequest
836
+ # data as a hash:
837
+ #
838
+ # {
839
+ # organization_id: "OrganizationId", # required
840
+ # user_id: "WorkMailIdentifier", # required
841
+ # }
842
+ #
843
+ # @!attribute [rw] organization_id
844
+ # The identifier for the organization that contains the user whose
845
+ # mailbox details are being requested.
846
+ # @return [String]
847
+ #
848
+ # @!attribute [rw] user_id
849
+ # The identifier for the user whose mailbox details are being
850
+ # requested.
851
+ # @return [String]
852
+ #
853
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/GetMailboxDetailsRequest AWS API Documentation
854
+ #
855
+ class GetMailboxDetailsRequest < Struct.new(
856
+ :organization_id,
857
+ :user_id)
858
+ include Aws::Structure
859
+ end
860
+
861
+ # @!attribute [rw] mailbox_quota
862
+ # The maximum allowed mailbox size, in MB, for the specified user.
863
+ # @return [Integer]
864
+ #
865
+ # @!attribute [rw] mailbox_size
866
+ # The current mailbox size, in MB, for the specified user.
867
+ # @return [Float]
868
+ #
869
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/GetMailboxDetailsResponse AWS API Documentation
870
+ #
871
+ class GetMailboxDetailsResponse < Struct.new(
872
+ :mailbox_quota,
873
+ :mailbox_size)
874
+ include Aws::Structure
875
+ end
876
+
835
877
  # The representation of an Amazon WorkMail group.
836
878
  #
837
879
  # @!attribute [rw] id
@@ -1548,6 +1590,41 @@ module Aws::WorkMail
1548
1590
  include Aws::Structure
1549
1591
  end
1550
1592
 
1593
+ # @note When making an API call, you may pass UpdateMailboxQuotaRequest
1594
+ # data as a hash:
1595
+ #
1596
+ # {
1597
+ # organization_id: "OrganizationId", # required
1598
+ # user_id: "WorkMailIdentifier", # required
1599
+ # mailbox_quota: 1, # required
1600
+ # }
1601
+ #
1602
+ # @!attribute [rw] organization_id
1603
+ # The identifier for the organization that contains the user for whom
1604
+ # to update the mailbox quota.
1605
+ # @return [String]
1606
+ #
1607
+ # @!attribute [rw] user_id
1608
+ # The identifer for the user for whom to update the mailbox quota.
1609
+ # @return [String]
1610
+ #
1611
+ # @!attribute [rw] mailbox_quota
1612
+ # The updated mailbox quota, in MB, for the specified user.
1613
+ # @return [Integer]
1614
+ #
1615
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdateMailboxQuotaRequest AWS API Documentation
1616
+ #
1617
+ class UpdateMailboxQuotaRequest < Struct.new(
1618
+ :organization_id,
1619
+ :user_id,
1620
+ :mailbox_quota)
1621
+ include Aws::Structure
1622
+ end
1623
+
1624
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdateMailboxQuotaResponse AWS API Documentation
1625
+ #
1626
+ class UpdateMailboxQuotaResponse < Aws::EmptyStructure; end
1627
+
1551
1628
  # @note When making an API call, you may pass UpdatePrimaryEmailAddressRequest
1552
1629
  # data as a hash:
1553
1630
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-workmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.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: 2019-03-26 00:00:00.000000000 Z
11
+ date: 2019-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -59,7 +59,7 @@ files:
59
59
  - lib/aws-sdk-workmail/errors.rb
60
60
  - lib/aws-sdk-workmail/resource.rb
61
61
  - lib/aws-sdk-workmail/types.rb
62
- homepage: http://github.com/aws/aws-sdk-ruby
62
+ homepage: https://github.com/aws/aws-sdk-ruby
63
63
  licenses:
64
64
  - Apache-2.0
65
65
  metadata: