aws-sdk-licensemanagerusersubscriptions 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,422 @@
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::LicenseManagerUserSubscriptions
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ ActiveDirectoryIdentityProvider = Shapes::StructureShape.new(name: 'ActiveDirectoryIdentityProvider')
18
+ AssociateUserRequest = Shapes::StructureShape.new(name: 'AssociateUserRequest')
19
+ AssociateUserResponse = Shapes::StructureShape.new(name: 'AssociateUserResponse')
20
+ BoxInteger = Shapes::IntegerShape.new(name: 'BoxInteger')
21
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
+ DeregisterIdentityProviderRequest = Shapes::StructureShape.new(name: 'DeregisterIdentityProviderRequest')
23
+ DeregisterIdentityProviderResponse = Shapes::StructureShape.new(name: 'DeregisterIdentityProviderResponse')
24
+ DisassociateUserRequest = Shapes::StructureShape.new(name: 'DisassociateUserRequest')
25
+ DisassociateUserResponse = Shapes::StructureShape.new(name: 'DisassociateUserResponse')
26
+ Filter = Shapes::StructureShape.new(name: 'Filter')
27
+ FilterList = Shapes::ListShape.new(name: 'FilterList')
28
+ IdentityProvider = Shapes::UnionShape.new(name: 'IdentityProvider')
29
+ IdentityProviderSummary = Shapes::StructureShape.new(name: 'IdentityProviderSummary')
30
+ IdentityProviderSummaryList = Shapes::ListShape.new(name: 'IdentityProviderSummaryList')
31
+ InstanceSummary = Shapes::StructureShape.new(name: 'InstanceSummary')
32
+ InstanceSummaryList = Shapes::ListShape.new(name: 'InstanceSummaryList')
33
+ InstanceUserSummary = Shapes::StructureShape.new(name: 'InstanceUserSummary')
34
+ InstanceUserSummaryList = Shapes::ListShape.new(name: 'InstanceUserSummaryList')
35
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
36
+ ListIdentityProvidersRequest = Shapes::StructureShape.new(name: 'ListIdentityProvidersRequest')
37
+ ListIdentityProvidersResponse = Shapes::StructureShape.new(name: 'ListIdentityProvidersResponse')
38
+ ListInstancesRequest = Shapes::StructureShape.new(name: 'ListInstancesRequest')
39
+ ListInstancesResponse = Shapes::StructureShape.new(name: 'ListInstancesResponse')
40
+ ListProductSubscriptionsRequest = Shapes::StructureShape.new(name: 'ListProductSubscriptionsRequest')
41
+ ListProductSubscriptionsResponse = Shapes::StructureShape.new(name: 'ListProductSubscriptionsResponse')
42
+ ListUserAssociationsRequest = Shapes::StructureShape.new(name: 'ListUserAssociationsRequest')
43
+ ListUserAssociationsResponse = Shapes::StructureShape.new(name: 'ListUserAssociationsResponse')
44
+ ProductUserSummary = Shapes::StructureShape.new(name: 'ProductUserSummary')
45
+ ProductUserSummaryList = Shapes::ListShape.new(name: 'ProductUserSummaryList')
46
+ RegisterIdentityProviderRequest = Shapes::StructureShape.new(name: 'RegisterIdentityProviderRequest')
47
+ RegisterIdentityProviderResponse = Shapes::StructureShape.new(name: 'RegisterIdentityProviderResponse')
48
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
49
+ ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
50
+ StartProductSubscriptionRequest = Shapes::StructureShape.new(name: 'StartProductSubscriptionRequest')
51
+ StartProductSubscriptionResponse = Shapes::StructureShape.new(name: 'StartProductSubscriptionResponse')
52
+ StopProductSubscriptionRequest = Shapes::StructureShape.new(name: 'StopProductSubscriptionRequest')
53
+ StopProductSubscriptionResponse = Shapes::StructureShape.new(name: 'StopProductSubscriptionResponse')
54
+ String = Shapes::StringShape.new(name: 'String')
55
+ StringList = Shapes::ListShape.new(name: 'StringList')
56
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
57
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
58
+
59
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
60
+ AccessDeniedException.struct_class = Types::AccessDeniedException
61
+
62
+ ActiveDirectoryIdentityProvider.add_member(:directory_id, Shapes::ShapeRef.new(shape: String, location_name: "DirectoryId"))
63
+ ActiveDirectoryIdentityProvider.struct_class = Types::ActiveDirectoryIdentityProvider
64
+
65
+ AssociateUserRequest.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
66
+ AssociateUserRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
67
+ AssociateUserRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "InstanceId"))
68
+ AssociateUserRequest.add_member(:username, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Username"))
69
+ AssociateUserRequest.struct_class = Types::AssociateUserRequest
70
+
71
+ AssociateUserResponse.add_member(:instance_user_summary, Shapes::ShapeRef.new(shape: InstanceUserSummary, required: true, location_name: "InstanceUserSummary"))
72
+ AssociateUserResponse.struct_class = Types::AssociateUserResponse
73
+
74
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
75
+ ConflictException.struct_class = Types::ConflictException
76
+
77
+ DeregisterIdentityProviderRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
78
+ DeregisterIdentityProviderRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
79
+ DeregisterIdentityProviderRequest.struct_class = Types::DeregisterIdentityProviderRequest
80
+
81
+ DeregisterIdentityProviderResponse.add_member(:identity_provider_summary, Shapes::ShapeRef.new(shape: IdentityProviderSummary, required: true, location_name: "IdentityProviderSummary"))
82
+ DeregisterIdentityProviderResponse.struct_class = Types::DeregisterIdentityProviderResponse
83
+
84
+ DisassociateUserRequest.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
85
+ DisassociateUserRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
86
+ DisassociateUserRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "InstanceId"))
87
+ DisassociateUserRequest.add_member(:username, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Username"))
88
+ DisassociateUserRequest.struct_class = Types::DisassociateUserRequest
89
+
90
+ DisassociateUserResponse.add_member(:instance_user_summary, Shapes::ShapeRef.new(shape: InstanceUserSummary, required: true, location_name: "InstanceUserSummary"))
91
+ DisassociateUserResponse.struct_class = Types::DisassociateUserResponse
92
+
93
+ Filter.add_member(:attribute, Shapes::ShapeRef.new(shape: String, location_name: "Attribute"))
94
+ Filter.add_member(:operation, Shapes::ShapeRef.new(shape: String, location_name: "Operation"))
95
+ Filter.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
96
+ Filter.struct_class = Types::Filter
97
+
98
+ FilterList.member = Shapes::ShapeRef.new(shape: Filter)
99
+
100
+ IdentityProvider.add_member(:active_directory_identity_provider, Shapes::ShapeRef.new(shape: ActiveDirectoryIdentityProvider, location_name: "ActiveDirectoryIdentityProvider"))
101
+ IdentityProvider.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
102
+ IdentityProvider.add_member_subclass(:active_directory_identity_provider, Types::IdentityProvider::ActiveDirectoryIdentityProvider)
103
+ IdentityProvider.add_member_subclass(:unknown, Types::IdentityProvider::Unknown)
104
+ IdentityProvider.struct_class = Types::IdentityProvider
105
+
106
+ IdentityProviderSummary.add_member(:failure_message, Shapes::ShapeRef.new(shape: String, location_name: "FailureMessage"))
107
+ IdentityProviderSummary.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
108
+ IdentityProviderSummary.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
109
+ IdentityProviderSummary.add_member(:status, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Status"))
110
+ IdentityProviderSummary.struct_class = Types::IdentityProviderSummary
111
+
112
+ IdentityProviderSummaryList.member = Shapes::ShapeRef.new(shape: IdentityProviderSummary)
113
+
114
+ InstanceSummary.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "InstanceId"))
115
+ InstanceSummary.add_member(:last_status_check_date, Shapes::ShapeRef.new(shape: String, location_name: "LastStatusCheckDate"))
116
+ InstanceSummary.add_member(:products, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "Products"))
117
+ InstanceSummary.add_member(:status, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Status"))
118
+ InstanceSummary.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "StatusMessage"))
119
+ InstanceSummary.struct_class = Types::InstanceSummary
120
+
121
+ InstanceSummaryList.member = Shapes::ShapeRef.new(shape: InstanceSummary)
122
+
123
+ InstanceUserSummary.add_member(:association_date, Shapes::ShapeRef.new(shape: String, location_name: "AssociationDate"))
124
+ InstanceUserSummary.add_member(:disassociation_date, Shapes::ShapeRef.new(shape: String, location_name: "DisassociationDate"))
125
+ InstanceUserSummary.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
126
+ InstanceUserSummary.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
127
+ InstanceUserSummary.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "InstanceId"))
128
+ InstanceUserSummary.add_member(:status, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Status"))
129
+ InstanceUserSummary.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "StatusMessage"))
130
+ InstanceUserSummary.add_member(:username, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Username"))
131
+ InstanceUserSummary.struct_class = Types::InstanceUserSummary
132
+
133
+ InstanceUserSummaryList.member = Shapes::ShapeRef.new(shape: InstanceUserSummary)
134
+
135
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
136
+ InternalServerException.struct_class = Types::InternalServerException
137
+
138
+ ListIdentityProvidersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxInteger, location_name: "MaxResults"))
139
+ ListIdentityProvidersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
140
+ ListIdentityProvidersRequest.struct_class = Types::ListIdentityProvidersRequest
141
+
142
+ ListIdentityProvidersResponse.add_member(:identity_provider_summaries, Shapes::ShapeRef.new(shape: IdentityProviderSummaryList, required: true, location_name: "IdentityProviderSummaries"))
143
+ ListIdentityProvidersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
144
+ ListIdentityProvidersResponse.struct_class = Types::ListIdentityProvidersResponse
145
+
146
+ ListInstancesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
147
+ ListInstancesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxInteger, location_name: "MaxResults"))
148
+ ListInstancesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
149
+ ListInstancesRequest.struct_class = Types::ListInstancesRequest
150
+
151
+ ListInstancesResponse.add_member(:instance_summaries, Shapes::ShapeRef.new(shape: InstanceSummaryList, location_name: "InstanceSummaries"))
152
+ ListInstancesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
153
+ ListInstancesResponse.struct_class = Types::ListInstancesResponse
154
+
155
+ ListProductSubscriptionsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
156
+ ListProductSubscriptionsRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
157
+ ListProductSubscriptionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxInteger, location_name: "MaxResults"))
158
+ ListProductSubscriptionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
159
+ ListProductSubscriptionsRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
160
+ ListProductSubscriptionsRequest.struct_class = Types::ListProductSubscriptionsRequest
161
+
162
+ ListProductSubscriptionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
163
+ ListProductSubscriptionsResponse.add_member(:product_user_summaries, Shapes::ShapeRef.new(shape: ProductUserSummaryList, location_name: "ProductUserSummaries"))
164
+ ListProductSubscriptionsResponse.struct_class = Types::ListProductSubscriptionsResponse
165
+
166
+ ListUserAssociationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
167
+ ListUserAssociationsRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
168
+ ListUserAssociationsRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "InstanceId"))
169
+ ListUserAssociationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxInteger, location_name: "MaxResults"))
170
+ ListUserAssociationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
171
+ ListUserAssociationsRequest.struct_class = Types::ListUserAssociationsRequest
172
+
173
+ ListUserAssociationsResponse.add_member(:instance_user_summaries, Shapes::ShapeRef.new(shape: InstanceUserSummaryList, location_name: "InstanceUserSummaries"))
174
+ ListUserAssociationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
175
+ ListUserAssociationsResponse.struct_class = Types::ListUserAssociationsResponse
176
+
177
+ ProductUserSummary.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
178
+ ProductUserSummary.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
179
+ ProductUserSummary.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
180
+ ProductUserSummary.add_member(:status, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Status"))
181
+ ProductUserSummary.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "StatusMessage"))
182
+ ProductUserSummary.add_member(:subscription_end_date, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionEndDate"))
183
+ ProductUserSummary.add_member(:subscription_start_date, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionStartDate"))
184
+ ProductUserSummary.add_member(:username, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Username"))
185
+ ProductUserSummary.struct_class = Types::ProductUserSummary
186
+
187
+ ProductUserSummaryList.member = Shapes::ShapeRef.new(shape: ProductUserSummary)
188
+
189
+ RegisterIdentityProviderRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
190
+ RegisterIdentityProviderRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
191
+ RegisterIdentityProviderRequest.struct_class = Types::RegisterIdentityProviderRequest
192
+
193
+ RegisterIdentityProviderResponse.add_member(:identity_provider_summary, Shapes::ShapeRef.new(shape: IdentityProviderSummary, required: true, location_name: "IdentityProviderSummary"))
194
+ RegisterIdentityProviderResponse.struct_class = Types::RegisterIdentityProviderResponse
195
+
196
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
197
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
198
+
199
+ ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
200
+ ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
201
+
202
+ StartProductSubscriptionRequest.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
203
+ StartProductSubscriptionRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
204
+ StartProductSubscriptionRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
205
+ StartProductSubscriptionRequest.add_member(:username, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Username"))
206
+ StartProductSubscriptionRequest.struct_class = Types::StartProductSubscriptionRequest
207
+
208
+ StartProductSubscriptionResponse.add_member(:product_user_summary, Shapes::ShapeRef.new(shape: ProductUserSummary, required: true, location_name: "ProductUserSummary"))
209
+ StartProductSubscriptionResponse.struct_class = Types::StartProductSubscriptionResponse
210
+
211
+ StopProductSubscriptionRequest.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
212
+ StopProductSubscriptionRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
213
+ StopProductSubscriptionRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
214
+ StopProductSubscriptionRequest.add_member(:username, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Username"))
215
+ StopProductSubscriptionRequest.struct_class = Types::StopProductSubscriptionRequest
216
+
217
+ StopProductSubscriptionResponse.add_member(:product_user_summary, Shapes::ShapeRef.new(shape: ProductUserSummary, required: true, location_name: "ProductUserSummary"))
218
+ StopProductSubscriptionResponse.struct_class = Types::StopProductSubscriptionResponse
219
+
220
+ StringList.member = Shapes::ShapeRef.new(shape: String)
221
+
222
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
223
+ ThrottlingException.struct_class = Types::ThrottlingException
224
+
225
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
226
+ ValidationException.struct_class = Types::ValidationException
227
+
228
+
229
+ # @api private
230
+ API = Seahorse::Model::Api.new.tap do |api|
231
+
232
+ api.version = "2018-05-10"
233
+
234
+ api.metadata = {
235
+ "apiVersion" => "2018-05-10",
236
+ "endpointPrefix" => "license-manager-user-subscriptions",
237
+ "jsonVersion" => "1.1",
238
+ "protocol" => "rest-json",
239
+ "serviceFullName" => "AWS License Manager User Subscriptions",
240
+ "serviceId" => "License Manager User Subscriptions",
241
+ "signatureVersion" => "v4",
242
+ "signingName" => "license-manager-user-subscriptions",
243
+ "uid" => "license-manager-user-subscriptions-2018-05-10",
244
+ }
245
+
246
+ api.add_operation(:associate_user, Seahorse::Model::Operation.new.tap do |o|
247
+ o.name = "AssociateUser"
248
+ o.http_method = "POST"
249
+ o.http_request_uri = "/user/AssociateUser"
250
+ o.input = Shapes::ShapeRef.new(shape: AssociateUserRequest)
251
+ o.output = Shapes::ShapeRef.new(shape: AssociateUserResponse)
252
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
253
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
254
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
255
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
256
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
257
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
258
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
259
+ end)
260
+
261
+ api.add_operation(:deregister_identity_provider, Seahorse::Model::Operation.new.tap do |o|
262
+ o.name = "DeregisterIdentityProvider"
263
+ o.http_method = "POST"
264
+ o.http_request_uri = "/identity-provider/DeregisterIdentityProvider"
265
+ o.input = Shapes::ShapeRef.new(shape: DeregisterIdentityProviderRequest)
266
+ o.output = Shapes::ShapeRef.new(shape: DeregisterIdentityProviderResponse)
267
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
268
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
269
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
270
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
271
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
272
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
273
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
274
+ end)
275
+
276
+ api.add_operation(:disassociate_user, Seahorse::Model::Operation.new.tap do |o|
277
+ o.name = "DisassociateUser"
278
+ o.http_method = "POST"
279
+ o.http_request_uri = "/user/DisassociateUser"
280
+ o.input = Shapes::ShapeRef.new(shape: DisassociateUserRequest)
281
+ o.output = Shapes::ShapeRef.new(shape: DisassociateUserResponse)
282
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
283
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
284
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
285
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
286
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
287
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
288
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
289
+ end)
290
+
291
+ api.add_operation(:list_identity_providers, Seahorse::Model::Operation.new.tap do |o|
292
+ o.name = "ListIdentityProviders"
293
+ o.http_method = "POST"
294
+ o.http_request_uri = "/identity-provider/ListIdentityProviders"
295
+ o.input = Shapes::ShapeRef.new(shape: ListIdentityProvidersRequest)
296
+ o.output = Shapes::ShapeRef.new(shape: ListIdentityProvidersResponse)
297
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
298
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
299
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
300
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
301
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
302
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
303
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
304
+ o[:pager] = Aws::Pager.new(
305
+ limit_key: "max_results",
306
+ tokens: {
307
+ "next_token" => "next_token"
308
+ }
309
+ )
310
+ end)
311
+
312
+ api.add_operation(:list_instances, Seahorse::Model::Operation.new.tap do |o|
313
+ o.name = "ListInstances"
314
+ o.http_method = "POST"
315
+ o.http_request_uri = "/instance/ListInstances"
316
+ o.input = Shapes::ShapeRef.new(shape: ListInstancesRequest)
317
+ o.output = Shapes::ShapeRef.new(shape: ListInstancesResponse)
318
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
319
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
320
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
321
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
322
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
323
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
324
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
325
+ o[:pager] = Aws::Pager.new(
326
+ limit_key: "max_results",
327
+ tokens: {
328
+ "next_token" => "next_token"
329
+ }
330
+ )
331
+ end)
332
+
333
+ api.add_operation(:list_product_subscriptions, Seahorse::Model::Operation.new.tap do |o|
334
+ o.name = "ListProductSubscriptions"
335
+ o.http_method = "POST"
336
+ o.http_request_uri = "/user/ListProductSubscriptions"
337
+ o.input = Shapes::ShapeRef.new(shape: ListProductSubscriptionsRequest)
338
+ o.output = Shapes::ShapeRef.new(shape: ListProductSubscriptionsResponse)
339
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
340
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
341
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
342
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
343
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
344
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
345
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
346
+ o[:pager] = Aws::Pager.new(
347
+ limit_key: "max_results",
348
+ tokens: {
349
+ "next_token" => "next_token"
350
+ }
351
+ )
352
+ end)
353
+
354
+ api.add_operation(:list_user_associations, Seahorse::Model::Operation.new.tap do |o|
355
+ o.name = "ListUserAssociations"
356
+ o.http_method = "POST"
357
+ o.http_request_uri = "/user/ListUserAssociations"
358
+ o.input = Shapes::ShapeRef.new(shape: ListUserAssociationsRequest)
359
+ o.output = Shapes::ShapeRef.new(shape: ListUserAssociationsResponse)
360
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
361
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
362
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
363
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
364
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
365
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
366
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
367
+ o[:pager] = Aws::Pager.new(
368
+ limit_key: "max_results",
369
+ tokens: {
370
+ "next_token" => "next_token"
371
+ }
372
+ )
373
+ end)
374
+
375
+ api.add_operation(:register_identity_provider, Seahorse::Model::Operation.new.tap do |o|
376
+ o.name = "RegisterIdentityProvider"
377
+ o.http_method = "POST"
378
+ o.http_request_uri = "/identity-provider/RegisterIdentityProvider"
379
+ o.input = Shapes::ShapeRef.new(shape: RegisterIdentityProviderRequest)
380
+ o.output = Shapes::ShapeRef.new(shape: RegisterIdentityProviderResponse)
381
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
382
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
383
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
384
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
385
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
386
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
387
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
388
+ end)
389
+
390
+ api.add_operation(:start_product_subscription, Seahorse::Model::Operation.new.tap do |o|
391
+ o.name = "StartProductSubscription"
392
+ o.http_method = "POST"
393
+ o.http_request_uri = "/user/StartProductSubscription"
394
+ o.input = Shapes::ShapeRef.new(shape: StartProductSubscriptionRequest)
395
+ o.output = Shapes::ShapeRef.new(shape: StartProductSubscriptionResponse)
396
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
397
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
398
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
399
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
400
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
401
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
402
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
403
+ end)
404
+
405
+ api.add_operation(:stop_product_subscription, Seahorse::Model::Operation.new.tap do |o|
406
+ o.name = "StopProductSubscription"
407
+ o.http_method = "POST"
408
+ o.http_request_uri = "/user/StopProductSubscription"
409
+ o.input = Shapes::ShapeRef.new(shape: StopProductSubscriptionRequest)
410
+ o.output = Shapes::ShapeRef.new(shape: StopProductSubscriptionResponse)
411
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
412
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
413
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
415
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
416
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
417
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
418
+ end)
419
+ end
420
+
421
+ end
422
+ end
@@ -0,0 +1,150 @@
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::LicenseManagerUserSubscriptions
11
+
12
+ # When LicenseManagerUserSubscriptions returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::LicenseManagerUserSubscriptions::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all LicenseManagerUserSubscriptions errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::LicenseManagerUserSubscriptions::Errors::ServiceError
20
+ # # rescues all LicenseManagerUserSubscriptions API errors
21
+ # end
22
+ #
23
+ #
24
+ # ## Request Context
25
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
26
+ # information about the request that generated the error.
27
+ # See {Seahorse::Client::RequestContext} for more information.
28
+ #
29
+ # ## Error Classes
30
+ # * {AccessDeniedException}
31
+ # * {ConflictException}
32
+ # * {InternalServerException}
33
+ # * {ResourceNotFoundException}
34
+ # * {ServiceQuotaExceededException}
35
+ # * {ThrottlingException}
36
+ # * {ValidationException}
37
+ #
38
+ # Additionally, error classes are dynamically generated for service errors based on the error code
39
+ # if they are not defined above.
40
+ module Errors
41
+
42
+ extend Aws::Errors::DynamicErrors
43
+
44
+ class AccessDeniedException < ServiceError
45
+
46
+ # @param [Seahorse::Client::RequestContext] context
47
+ # @param [String] message
48
+ # @param [Aws::LicenseManagerUserSubscriptions::Types::AccessDeniedException] data
49
+ def initialize(context, message, data = Aws::EmptyStructure.new)
50
+ super(context, message, data)
51
+ end
52
+
53
+ # @return [String]
54
+ def message
55
+ @message || @data[:message]
56
+ end
57
+ end
58
+
59
+ class ConflictException < ServiceError
60
+
61
+ # @param [Seahorse::Client::RequestContext] context
62
+ # @param [String] message
63
+ # @param [Aws::LicenseManagerUserSubscriptions::Types::ConflictException] data
64
+ def initialize(context, message, data = Aws::EmptyStructure.new)
65
+ super(context, message, data)
66
+ end
67
+
68
+ # @return [String]
69
+ def message
70
+ @message || @data[:message]
71
+ end
72
+ end
73
+
74
+ class InternalServerException < ServiceError
75
+
76
+ # @param [Seahorse::Client::RequestContext] context
77
+ # @param [String] message
78
+ # @param [Aws::LicenseManagerUserSubscriptions::Types::InternalServerException] data
79
+ def initialize(context, message, data = Aws::EmptyStructure.new)
80
+ super(context, message, data)
81
+ end
82
+
83
+ # @return [String]
84
+ def message
85
+ @message || @data[:message]
86
+ end
87
+ end
88
+
89
+ class ResourceNotFoundException < ServiceError
90
+
91
+ # @param [Seahorse::Client::RequestContext] context
92
+ # @param [String] message
93
+ # @param [Aws::LicenseManagerUserSubscriptions::Types::ResourceNotFoundException] data
94
+ def initialize(context, message, data = Aws::EmptyStructure.new)
95
+ super(context, message, data)
96
+ end
97
+
98
+ # @return [String]
99
+ def message
100
+ @message || @data[:message]
101
+ end
102
+ end
103
+
104
+ class ServiceQuotaExceededException < ServiceError
105
+
106
+ # @param [Seahorse::Client::RequestContext] context
107
+ # @param [String] message
108
+ # @param [Aws::LicenseManagerUserSubscriptions::Types::ServiceQuotaExceededException] data
109
+ def initialize(context, message, data = Aws::EmptyStructure.new)
110
+ super(context, message, data)
111
+ end
112
+
113
+ # @return [String]
114
+ def message
115
+ @message || @data[:message]
116
+ end
117
+ end
118
+
119
+ class ThrottlingException < ServiceError
120
+
121
+ # @param [Seahorse::Client::RequestContext] context
122
+ # @param [String] message
123
+ # @param [Aws::LicenseManagerUserSubscriptions::Types::ThrottlingException] data
124
+ def initialize(context, message, data = Aws::EmptyStructure.new)
125
+ super(context, message, data)
126
+ end
127
+
128
+ # @return [String]
129
+ def message
130
+ @message || @data[:message]
131
+ end
132
+ end
133
+
134
+ class ValidationException < ServiceError
135
+
136
+ # @param [Seahorse::Client::RequestContext] context
137
+ # @param [String] message
138
+ # @param [Aws::LicenseManagerUserSubscriptions::Types::ValidationException] data
139
+ def initialize(context, message, data = Aws::EmptyStructure.new)
140
+ super(context, message, data)
141
+ end
142
+
143
+ # @return [String]
144
+ def message
145
+ @message || @data[:message]
146
+ end
147
+ end
148
+
149
+ end
150
+ end
@@ -0,0 +1,26 @@
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::LicenseManagerUserSubscriptions
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end