aws-sdk-marketplaceagreement 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,420 @@
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::MarketplaceAgreement
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AWSAccountId = Shapes::StringShape.new(name: 'AWSAccountId')
17
+ AcceptedTerm = Shapes::UnionShape.new(name: 'AcceptedTerm')
18
+ AcceptedTermList = Shapes::ListShape.new(name: 'AcceptedTermList')
19
+ Acceptor = Shapes::StructureShape.new(name: 'Acceptor')
20
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
21
+ AgreementResourceType = Shapes::StringShape.new(name: 'AgreementResourceType')
22
+ AgreementStatus = Shapes::StringShape.new(name: 'AgreementStatus')
23
+ AgreementType = Shapes::StringShape.new(name: 'AgreementType')
24
+ AgreementViewSummary = Shapes::StructureShape.new(name: 'AgreementViewSummary')
25
+ AgreementViewSummaryList = Shapes::ListShape.new(name: 'AgreementViewSummaryList')
26
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
27
+ BoundedString = Shapes::StringShape.new(name: 'BoundedString')
28
+ ByolPricingTerm = Shapes::StructureShape.new(name: 'ByolPricingTerm')
29
+ Catalog = Shapes::StringShape.new(name: 'Catalog')
30
+ ConfigurableUpfrontPricingTerm = Shapes::StructureShape.new(name: 'ConfigurableUpfrontPricingTerm')
31
+ ConfigurableUpfrontPricingTermConfiguration = Shapes::StructureShape.new(name: 'ConfigurableUpfrontPricingTermConfiguration')
32
+ ConfigurableUpfrontRateCardItem = Shapes::StructureShape.new(name: 'ConfigurableUpfrontRateCardItem')
33
+ ConfigurableUpfrontRateCardList = Shapes::ListShape.new(name: 'ConfigurableUpfrontRateCardList')
34
+ Constraints = Shapes::StructureShape.new(name: 'Constraints')
35
+ CurrencyCode = Shapes::StringShape.new(name: 'CurrencyCode')
36
+ DescribeAgreementInput = Shapes::StructureShape.new(name: 'DescribeAgreementInput')
37
+ DescribeAgreementOutput = Shapes::StructureShape.new(name: 'DescribeAgreementOutput')
38
+ Dimension = Shapes::StructureShape.new(name: 'Dimension')
39
+ DimensionList = Shapes::ListShape.new(name: 'DimensionList')
40
+ DocumentItem = Shapes::StructureShape.new(name: 'DocumentItem')
41
+ DocumentList = Shapes::ListShape.new(name: 'DocumentList')
42
+ EstimatedCharges = Shapes::StructureShape.new(name: 'EstimatedCharges')
43
+ ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
44
+ Filter = Shapes::StructureShape.new(name: 'Filter')
45
+ FilterList = Shapes::ListShape.new(name: 'FilterList')
46
+ FilterName = Shapes::StringShape.new(name: 'FilterName')
47
+ FilterValue = Shapes::StringShape.new(name: 'FilterValue')
48
+ FilterValueList = Shapes::ListShape.new(name: 'FilterValueList')
49
+ FixedUpfrontPricingTerm = Shapes::StructureShape.new(name: 'FixedUpfrontPricingTerm')
50
+ FreeTrialPricingTerm = Shapes::StructureShape.new(name: 'FreeTrialPricingTerm')
51
+ GetAgreementTermsInput = Shapes::StructureShape.new(name: 'GetAgreementTermsInput')
52
+ GetAgreementTermsOutput = Shapes::StructureShape.new(name: 'GetAgreementTermsOutput')
53
+ GrantItem = Shapes::StructureShape.new(name: 'GrantItem')
54
+ GrantList = Shapes::ListShape.new(name: 'GrantList')
55
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
56
+ LegalTerm = Shapes::StructureShape.new(name: 'LegalTerm')
57
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
58
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
59
+ OfferId = Shapes::StringShape.new(name: 'OfferId')
60
+ PaymentScheduleTerm = Shapes::StructureShape.new(name: 'PaymentScheduleTerm')
61
+ PositiveIntegerWithDefaultValueOne = Shapes::IntegerShape.new(name: 'PositiveIntegerWithDefaultValueOne')
62
+ ProposalSummary = Shapes::StructureShape.new(name: 'ProposalSummary')
63
+ Proposer = Shapes::StructureShape.new(name: 'Proposer')
64
+ RateCardItem = Shapes::StructureShape.new(name: 'RateCardItem')
65
+ RateCardList = Shapes::ListShape.new(name: 'RateCardList')
66
+ RecurringPaymentTerm = Shapes::StructureShape.new(name: 'RecurringPaymentTerm')
67
+ RenewalTerm = Shapes::StructureShape.new(name: 'RenewalTerm')
68
+ RenewalTermConfiguration = Shapes::StructureShape.new(name: 'RenewalTermConfiguration')
69
+ RequestId = Shapes::StringShape.new(name: 'RequestId')
70
+ Resource = Shapes::StructureShape.new(name: 'Resource')
71
+ ResourceId = Shapes::StringShape.new(name: 'ResourceId')
72
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
73
+ ResourceType = Shapes::StringShape.new(name: 'ResourceType')
74
+ Resources = Shapes::ListShape.new(name: 'Resources')
75
+ ScheduleItem = Shapes::StructureShape.new(name: 'ScheduleItem')
76
+ ScheduleList = Shapes::ListShape.new(name: 'ScheduleList')
77
+ SearchAgreementsInput = Shapes::StructureShape.new(name: 'SearchAgreementsInput')
78
+ SearchAgreementsOutput = Shapes::StructureShape.new(name: 'SearchAgreementsOutput')
79
+ Selector = Shapes::StructureShape.new(name: 'Selector')
80
+ Sort = Shapes::StructureShape.new(name: 'Sort')
81
+ SortBy = Shapes::StringShape.new(name: 'SortBy')
82
+ SortOrder = Shapes::StringShape.new(name: 'SortOrder')
83
+ SupportTerm = Shapes::StructureShape.new(name: 'SupportTerm')
84
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
85
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
86
+ UnversionedTermType = Shapes::StringShape.new(name: 'UnversionedTermType')
87
+ UsageBasedPricingTerm = Shapes::StructureShape.new(name: 'UsageBasedPricingTerm')
88
+ UsageBasedRateCardItem = Shapes::StructureShape.new(name: 'UsageBasedRateCardItem')
89
+ UsageBasedRateCardList = Shapes::ListShape.new(name: 'UsageBasedRateCardList')
90
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
91
+ ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
92
+ ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
93
+ ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
94
+ ValidityTerm = Shapes::StructureShape.new(name: 'ValidityTerm')
95
+ ZeroValueInteger = Shapes::IntegerShape.new(name: 'ZeroValueInteger')
96
+
97
+ AcceptedTerm.add_member(:byol_pricing_term, Shapes::ShapeRef.new(shape: ByolPricingTerm, location_name: "byolPricingTerm"))
98
+ AcceptedTerm.add_member(:configurable_upfront_pricing_term, Shapes::ShapeRef.new(shape: ConfigurableUpfrontPricingTerm, location_name: "configurableUpfrontPricingTerm"))
99
+ AcceptedTerm.add_member(:fixed_upfront_pricing_term, Shapes::ShapeRef.new(shape: FixedUpfrontPricingTerm, location_name: "fixedUpfrontPricingTerm"))
100
+ AcceptedTerm.add_member(:free_trial_pricing_term, Shapes::ShapeRef.new(shape: FreeTrialPricingTerm, location_name: "freeTrialPricingTerm"))
101
+ AcceptedTerm.add_member(:legal_term, Shapes::ShapeRef.new(shape: LegalTerm, location_name: "legalTerm"))
102
+ AcceptedTerm.add_member(:payment_schedule_term, Shapes::ShapeRef.new(shape: PaymentScheduleTerm, location_name: "paymentScheduleTerm"))
103
+ AcceptedTerm.add_member(:recurring_payment_term, Shapes::ShapeRef.new(shape: RecurringPaymentTerm, location_name: "recurringPaymentTerm"))
104
+ AcceptedTerm.add_member(:renewal_term, Shapes::ShapeRef.new(shape: RenewalTerm, location_name: "renewalTerm"))
105
+ AcceptedTerm.add_member(:support_term, Shapes::ShapeRef.new(shape: SupportTerm, location_name: "supportTerm"))
106
+ AcceptedTerm.add_member(:usage_based_pricing_term, Shapes::ShapeRef.new(shape: UsageBasedPricingTerm, location_name: "usageBasedPricingTerm"))
107
+ AcceptedTerm.add_member(:validity_term, Shapes::ShapeRef.new(shape: ValidityTerm, location_name: "validityTerm"))
108
+ AcceptedTerm.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
109
+ AcceptedTerm.add_member_subclass(:byol_pricing_term, Types::AcceptedTerm::ByolPricingTerm)
110
+ AcceptedTerm.add_member_subclass(:configurable_upfront_pricing_term, Types::AcceptedTerm::ConfigurableUpfrontPricingTerm)
111
+ AcceptedTerm.add_member_subclass(:fixed_upfront_pricing_term, Types::AcceptedTerm::FixedUpfrontPricingTerm)
112
+ AcceptedTerm.add_member_subclass(:free_trial_pricing_term, Types::AcceptedTerm::FreeTrialPricingTerm)
113
+ AcceptedTerm.add_member_subclass(:legal_term, Types::AcceptedTerm::LegalTerm)
114
+ AcceptedTerm.add_member_subclass(:payment_schedule_term, Types::AcceptedTerm::PaymentScheduleTerm)
115
+ AcceptedTerm.add_member_subclass(:recurring_payment_term, Types::AcceptedTerm::RecurringPaymentTerm)
116
+ AcceptedTerm.add_member_subclass(:renewal_term, Types::AcceptedTerm::RenewalTerm)
117
+ AcceptedTerm.add_member_subclass(:support_term, Types::AcceptedTerm::SupportTerm)
118
+ AcceptedTerm.add_member_subclass(:usage_based_pricing_term, Types::AcceptedTerm::UsageBasedPricingTerm)
119
+ AcceptedTerm.add_member_subclass(:validity_term, Types::AcceptedTerm::ValidityTerm)
120
+ AcceptedTerm.add_member_subclass(:unknown, Types::AcceptedTerm::Unknown)
121
+ AcceptedTerm.struct_class = Types::AcceptedTerm
122
+
123
+ AcceptedTermList.member = Shapes::ShapeRef.new(shape: AcceptedTerm)
124
+
125
+ Acceptor.add_member(:account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "accountId"))
126
+ Acceptor.struct_class = Types::Acceptor
127
+
128
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
129
+ AccessDeniedException.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "requestId"))
130
+ AccessDeniedException.struct_class = Types::AccessDeniedException
131
+
132
+ AgreementViewSummary.add_member(:acceptance_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "acceptanceTime"))
133
+ AgreementViewSummary.add_member(:acceptor, Shapes::ShapeRef.new(shape: Acceptor, location_name: "acceptor"))
134
+ AgreementViewSummary.add_member(:agreement_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "agreementId"))
135
+ AgreementViewSummary.add_member(:agreement_type, Shapes::ShapeRef.new(shape: AgreementType, location_name: "agreementType"))
136
+ AgreementViewSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
137
+ AgreementViewSummary.add_member(:proposal_summary, Shapes::ShapeRef.new(shape: ProposalSummary, location_name: "proposalSummary"))
138
+ AgreementViewSummary.add_member(:proposer, Shapes::ShapeRef.new(shape: Proposer, location_name: "proposer"))
139
+ AgreementViewSummary.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
140
+ AgreementViewSummary.add_member(:status, Shapes::ShapeRef.new(shape: AgreementStatus, location_name: "status"))
141
+ AgreementViewSummary.struct_class = Types::AgreementViewSummary
142
+
143
+ AgreementViewSummaryList.member = Shapes::ShapeRef.new(shape: AgreementViewSummary)
144
+
145
+ ByolPricingTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
146
+ ByolPricingTerm.struct_class = Types::ByolPricingTerm
147
+
148
+ ConfigurableUpfrontPricingTerm.add_member(:configuration, Shapes::ShapeRef.new(shape: ConfigurableUpfrontPricingTermConfiguration, location_name: "configuration"))
149
+ ConfigurableUpfrontPricingTerm.add_member(:currency_code, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currencyCode"))
150
+ ConfigurableUpfrontPricingTerm.add_member(:rate_cards, Shapes::ShapeRef.new(shape: ConfigurableUpfrontRateCardList, location_name: "rateCards"))
151
+ ConfigurableUpfrontPricingTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
152
+ ConfigurableUpfrontPricingTerm.struct_class = Types::ConfigurableUpfrontPricingTerm
153
+
154
+ ConfigurableUpfrontPricingTermConfiguration.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionList, required: true, location_name: "dimensions"))
155
+ ConfigurableUpfrontPricingTermConfiguration.add_member(:selector_value, Shapes::ShapeRef.new(shape: BoundedString, required: true, location_name: "selectorValue"))
156
+ ConfigurableUpfrontPricingTermConfiguration.struct_class = Types::ConfigurableUpfrontPricingTermConfiguration
157
+
158
+ ConfigurableUpfrontRateCardItem.add_member(:constraints, Shapes::ShapeRef.new(shape: Constraints, location_name: "constraints"))
159
+ ConfigurableUpfrontRateCardItem.add_member(:rate_card, Shapes::ShapeRef.new(shape: RateCardList, location_name: "rateCard"))
160
+ ConfigurableUpfrontRateCardItem.add_member(:selector, Shapes::ShapeRef.new(shape: Selector, location_name: "selector"))
161
+ ConfigurableUpfrontRateCardItem.struct_class = Types::ConfigurableUpfrontRateCardItem
162
+
163
+ ConfigurableUpfrontRateCardList.member = Shapes::ShapeRef.new(shape: ConfigurableUpfrontRateCardItem)
164
+
165
+ Constraints.add_member(:multiple_dimension_selection, Shapes::ShapeRef.new(shape: BoundedString, location_name: "multipleDimensionSelection"))
166
+ Constraints.add_member(:quantity_configuration, Shapes::ShapeRef.new(shape: BoundedString, location_name: "quantityConfiguration"))
167
+ Constraints.struct_class = Types::Constraints
168
+
169
+ DescribeAgreementInput.add_member(:agreement_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "agreementId"))
170
+ DescribeAgreementInput.struct_class = Types::DescribeAgreementInput
171
+
172
+ DescribeAgreementOutput.add_member(:acceptance_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "acceptanceTime"))
173
+ DescribeAgreementOutput.add_member(:acceptor, Shapes::ShapeRef.new(shape: Acceptor, location_name: "acceptor"))
174
+ DescribeAgreementOutput.add_member(:agreement_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "agreementId"))
175
+ DescribeAgreementOutput.add_member(:agreement_type, Shapes::ShapeRef.new(shape: AgreementType, location_name: "agreementType"))
176
+ DescribeAgreementOutput.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "endTime"))
177
+ DescribeAgreementOutput.add_member(:estimated_charges, Shapes::ShapeRef.new(shape: EstimatedCharges, location_name: "estimatedCharges"))
178
+ DescribeAgreementOutput.add_member(:proposal_summary, Shapes::ShapeRef.new(shape: ProposalSummary, location_name: "proposalSummary"))
179
+ DescribeAgreementOutput.add_member(:proposer, Shapes::ShapeRef.new(shape: Proposer, location_name: "proposer"))
180
+ DescribeAgreementOutput.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "startTime"))
181
+ DescribeAgreementOutput.add_member(:status, Shapes::ShapeRef.new(shape: AgreementStatus, location_name: "status"))
182
+ DescribeAgreementOutput.struct_class = Types::DescribeAgreementOutput
183
+
184
+ Dimension.add_member(:dimension_key, Shapes::ShapeRef.new(shape: BoundedString, required: true, location_name: "dimensionKey"))
185
+ Dimension.add_member(:dimension_value, Shapes::ShapeRef.new(shape: ZeroValueInteger, required: true, location_name: "dimensionValue"))
186
+ Dimension.struct_class = Types::Dimension
187
+
188
+ DimensionList.member = Shapes::ShapeRef.new(shape: Dimension)
189
+
190
+ DocumentItem.add_member(:type, Shapes::ShapeRef.new(shape: BoundedString, location_name: "type"))
191
+ DocumentItem.add_member(:url, Shapes::ShapeRef.new(shape: BoundedString, location_name: "url"))
192
+ DocumentItem.add_member(:version, Shapes::ShapeRef.new(shape: BoundedString, location_name: "version"))
193
+ DocumentItem.struct_class = Types::DocumentItem
194
+
195
+ DocumentList.member = Shapes::ShapeRef.new(shape: DocumentItem)
196
+
197
+ EstimatedCharges.add_member(:agreement_value, Shapes::ShapeRef.new(shape: BoundedString, location_name: "agreementValue"))
198
+ EstimatedCharges.add_member(:currency_code, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currencyCode"))
199
+ EstimatedCharges.struct_class = Types::EstimatedCharges
200
+
201
+ Filter.add_member(:name, Shapes::ShapeRef.new(shape: FilterName, location_name: "name"))
202
+ Filter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValueList, location_name: "values"))
203
+ Filter.struct_class = Types::Filter
204
+
205
+ FilterList.member = Shapes::ShapeRef.new(shape: Filter)
206
+
207
+ FilterValueList.member = Shapes::ShapeRef.new(shape: FilterValue)
208
+
209
+ FixedUpfrontPricingTerm.add_member(:currency_code, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currencyCode"))
210
+ FixedUpfrontPricingTerm.add_member(:duration, Shapes::ShapeRef.new(shape: BoundedString, location_name: "duration"))
211
+ FixedUpfrontPricingTerm.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "grants"))
212
+ FixedUpfrontPricingTerm.add_member(:price, Shapes::ShapeRef.new(shape: BoundedString, location_name: "price"))
213
+ FixedUpfrontPricingTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
214
+ FixedUpfrontPricingTerm.struct_class = Types::FixedUpfrontPricingTerm
215
+
216
+ FreeTrialPricingTerm.add_member(:duration, Shapes::ShapeRef.new(shape: BoundedString, location_name: "duration"))
217
+ FreeTrialPricingTerm.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "grants"))
218
+ FreeTrialPricingTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
219
+ FreeTrialPricingTerm.struct_class = Types::FreeTrialPricingTerm
220
+
221
+ GetAgreementTermsInput.add_member(:agreement_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "agreementId"))
222
+ GetAgreementTermsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
223
+ GetAgreementTermsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
224
+ GetAgreementTermsInput.struct_class = Types::GetAgreementTermsInput
225
+
226
+ GetAgreementTermsOutput.add_member(:accepted_terms, Shapes::ShapeRef.new(shape: AcceptedTermList, location_name: "acceptedTerms"))
227
+ GetAgreementTermsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
228
+ GetAgreementTermsOutput.struct_class = Types::GetAgreementTermsOutput
229
+
230
+ GrantItem.add_member(:dimension_key, Shapes::ShapeRef.new(shape: BoundedString, location_name: "dimensionKey"))
231
+ GrantItem.add_member(:max_quantity, Shapes::ShapeRef.new(shape: PositiveIntegerWithDefaultValueOne, location_name: "maxQuantity"))
232
+ GrantItem.struct_class = Types::GrantItem
233
+
234
+ GrantList.member = Shapes::ShapeRef.new(shape: GrantItem)
235
+
236
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
237
+ InternalServerException.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "requestId"))
238
+ InternalServerException.struct_class = Types::InternalServerException
239
+
240
+ LegalTerm.add_member(:documents, Shapes::ShapeRef.new(shape: DocumentList, location_name: "documents"))
241
+ LegalTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
242
+ LegalTerm.struct_class = Types::LegalTerm
243
+
244
+ PaymentScheduleTerm.add_member(:currency_code, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currencyCode"))
245
+ PaymentScheduleTerm.add_member(:schedule, Shapes::ShapeRef.new(shape: ScheduleList, location_name: "schedule"))
246
+ PaymentScheduleTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
247
+ PaymentScheduleTerm.struct_class = Types::PaymentScheduleTerm
248
+
249
+ ProposalSummary.add_member(:offer_id, Shapes::ShapeRef.new(shape: OfferId, location_name: "offerId"))
250
+ ProposalSummary.add_member(:resources, Shapes::ShapeRef.new(shape: Resources, location_name: "resources"))
251
+ ProposalSummary.struct_class = Types::ProposalSummary
252
+
253
+ Proposer.add_member(:account_id, Shapes::ShapeRef.new(shape: AWSAccountId, location_name: "accountId"))
254
+ Proposer.struct_class = Types::Proposer
255
+
256
+ RateCardItem.add_member(:dimension_key, Shapes::ShapeRef.new(shape: BoundedString, location_name: "dimensionKey"))
257
+ RateCardItem.add_member(:price, Shapes::ShapeRef.new(shape: BoundedString, location_name: "price"))
258
+ RateCardItem.struct_class = Types::RateCardItem
259
+
260
+ RateCardList.member = Shapes::ShapeRef.new(shape: RateCardItem)
261
+
262
+ RecurringPaymentTerm.add_member(:billing_period, Shapes::ShapeRef.new(shape: BoundedString, location_name: "billingPeriod"))
263
+ RecurringPaymentTerm.add_member(:currency_code, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currencyCode"))
264
+ RecurringPaymentTerm.add_member(:price, Shapes::ShapeRef.new(shape: BoundedString, location_name: "price"))
265
+ RecurringPaymentTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
266
+ RecurringPaymentTerm.struct_class = Types::RecurringPaymentTerm
267
+
268
+ RenewalTerm.add_member(:configuration, Shapes::ShapeRef.new(shape: RenewalTermConfiguration, location_name: "configuration"))
269
+ RenewalTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
270
+ RenewalTerm.struct_class = Types::RenewalTerm
271
+
272
+ RenewalTermConfiguration.add_member(:enable_auto_renew, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "enableAutoRenew"))
273
+ RenewalTermConfiguration.struct_class = Types::RenewalTermConfiguration
274
+
275
+ Resource.add_member(:id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "id"))
276
+ Resource.add_member(:type, Shapes::ShapeRef.new(shape: AgreementResourceType, location_name: "type"))
277
+ Resource.struct_class = Types::Resource
278
+
279
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
280
+ ResourceNotFoundException.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "requestId"))
281
+ ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "resourceId"))
282
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: ResourceType, location_name: "resourceType"))
283
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
284
+
285
+ Resources.member = Shapes::ShapeRef.new(shape: Resource)
286
+
287
+ ScheduleItem.add_member(:charge_amount, Shapes::ShapeRef.new(shape: BoundedString, location_name: "chargeAmount"))
288
+ ScheduleItem.add_member(:charge_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "chargeDate"))
289
+ ScheduleItem.struct_class = Types::ScheduleItem
290
+
291
+ ScheduleList.member = Shapes::ShapeRef.new(shape: ScheduleItem)
292
+
293
+ SearchAgreementsInput.add_member(:catalog, Shapes::ShapeRef.new(shape: Catalog, location_name: "catalog"))
294
+ SearchAgreementsInput.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "filters"))
295
+ SearchAgreementsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
296
+ SearchAgreementsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
297
+ SearchAgreementsInput.add_member(:sort, Shapes::ShapeRef.new(shape: Sort, location_name: "sort"))
298
+ SearchAgreementsInput.struct_class = Types::SearchAgreementsInput
299
+
300
+ SearchAgreementsOutput.add_member(:agreement_view_summaries, Shapes::ShapeRef.new(shape: AgreementViewSummaryList, location_name: "agreementViewSummaries"))
301
+ SearchAgreementsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
302
+ SearchAgreementsOutput.struct_class = Types::SearchAgreementsOutput
303
+
304
+ Selector.add_member(:type, Shapes::ShapeRef.new(shape: BoundedString, location_name: "type"))
305
+ Selector.add_member(:value, Shapes::ShapeRef.new(shape: BoundedString, location_name: "value"))
306
+ Selector.struct_class = Types::Selector
307
+
308
+ Sort.add_member(:sort_by, Shapes::ShapeRef.new(shape: SortBy, location_name: "sortBy"))
309
+ Sort.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, location_name: "sortOrder"))
310
+ Sort.struct_class = Types::Sort
311
+
312
+ SupportTerm.add_member(:refund_policy, Shapes::ShapeRef.new(shape: BoundedString, location_name: "refundPolicy"))
313
+ SupportTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
314
+ SupportTerm.struct_class = Types::SupportTerm
315
+
316
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
317
+ ThrottlingException.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "requestId"))
318
+ ThrottlingException.struct_class = Types::ThrottlingException
319
+
320
+ UsageBasedPricingTerm.add_member(:currency_code, Shapes::ShapeRef.new(shape: CurrencyCode, location_name: "currencyCode"))
321
+ UsageBasedPricingTerm.add_member(:rate_cards, Shapes::ShapeRef.new(shape: UsageBasedRateCardList, location_name: "rateCards"))
322
+ UsageBasedPricingTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
323
+ UsageBasedPricingTerm.struct_class = Types::UsageBasedPricingTerm
324
+
325
+ UsageBasedRateCardItem.add_member(:rate_card, Shapes::ShapeRef.new(shape: RateCardList, location_name: "rateCard"))
326
+ UsageBasedRateCardItem.struct_class = Types::UsageBasedRateCardItem
327
+
328
+ UsageBasedRateCardList.member = Shapes::ShapeRef.new(shape: UsageBasedRateCardItem)
329
+
330
+ ValidationException.add_member(:fields, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fields"))
331
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
332
+ ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "reason"))
333
+ ValidationException.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "requestId"))
334
+ ValidationException.struct_class = Types::ValidationException
335
+
336
+ ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: BoundedString, required: true, location_name: "message"))
337
+ ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: BoundedString, required: true, location_name: "name"))
338
+ ValidationExceptionField.struct_class = Types::ValidationExceptionField
339
+
340
+ ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
341
+
342
+ ValidityTerm.add_member(:agreement_duration, Shapes::ShapeRef.new(shape: BoundedString, location_name: "agreementDuration"))
343
+ ValidityTerm.add_member(:agreement_end_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "agreementEndDate"))
344
+ ValidityTerm.add_member(:agreement_start_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "agreementStartDate"))
345
+ ValidityTerm.add_member(:type, Shapes::ShapeRef.new(shape: UnversionedTermType, location_name: "type"))
346
+ ValidityTerm.struct_class = Types::ValidityTerm
347
+
348
+
349
+ # @api private
350
+ API = Seahorse::Model::Api.new.tap do |api|
351
+
352
+ api.version = "2020-03-01"
353
+
354
+ api.metadata = {
355
+ "apiVersion" => "2020-03-01",
356
+ "endpointPrefix" => "agreement-marketplace",
357
+ "jsonVersion" => "1.0",
358
+ "protocol" => "json",
359
+ "serviceAbbreviation" => "Agreement Service",
360
+ "serviceFullName" => "AWS Marketplace Agreement Service",
361
+ "serviceId" => "Marketplace Agreement",
362
+ "signatureVersion" => "v4",
363
+ "signingName" => "aws-marketplace",
364
+ "targetPrefix" => "AWSMPCommerceService_v20200301",
365
+ "uid" => "marketplace-agreement-2020-03-01",
366
+ }
367
+
368
+ api.add_operation(:describe_agreement, Seahorse::Model::Operation.new.tap do |o|
369
+ o.name = "DescribeAgreement"
370
+ o.http_method = "POST"
371
+ o.http_request_uri = "/"
372
+ o.input = Shapes::ShapeRef.new(shape: DescribeAgreementInput)
373
+ o.output = Shapes::ShapeRef.new(shape: DescribeAgreementOutput)
374
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
375
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
376
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
377
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
378
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
379
+ end)
380
+
381
+ api.add_operation(:get_agreement_terms, Seahorse::Model::Operation.new.tap do |o|
382
+ o.name = "GetAgreementTerms"
383
+ o.http_method = "POST"
384
+ o.http_request_uri = "/"
385
+ o.input = Shapes::ShapeRef.new(shape: GetAgreementTermsInput)
386
+ o.output = Shapes::ShapeRef.new(shape: GetAgreementTermsOutput)
387
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
388
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
389
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
390
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
391
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
392
+ o[:pager] = Aws::Pager.new(
393
+ limit_key: "max_results",
394
+ tokens: {
395
+ "next_token" => "next_token"
396
+ }
397
+ )
398
+ end)
399
+
400
+ api.add_operation(:search_agreements, Seahorse::Model::Operation.new.tap do |o|
401
+ o.name = "SearchAgreements"
402
+ o.http_method = "POST"
403
+ o.http_request_uri = "/"
404
+ o.input = Shapes::ShapeRef.new(shape: SearchAgreementsInput)
405
+ o.output = Shapes::ShapeRef.new(shape: SearchAgreementsOutput)
406
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
407
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
408
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
409
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
410
+ o[:pager] = Aws::Pager.new(
411
+ limit_key: "max_results",
412
+ tokens: {
413
+ "next_token" => "next_token"
414
+ }
415
+ )
416
+ end)
417
+ end
418
+
419
+ end
420
+ end
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::MarketplaceAgreement
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::MarketplaceAgreement
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://agreement-marketplace-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
+ return Aws::Endpoints::Endpoint.new(url: "https://agreement-marketplace-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://agreement-marketplace.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
+ end
46
+ return Aws::Endpoints::Endpoint.new(url: "https://agreement-marketplace.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
+ end
48
+ end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
50
+ raise ArgumentError, 'No endpoint could be resolved'
51
+
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,58 @@
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
+
11
+ module Aws::MarketplaceAgreement
12
+ # @api private
13
+ module Endpoints
14
+
15
+ class DescribeAgreement
16
+ def self.build(context)
17
+ unless context.config.regional_endpoint
18
+ endpoint = context.config.endpoint.to_s
19
+ end
20
+ Aws::MarketplaceAgreement::EndpointParameters.new(
21
+ region: context.config.region,
22
+ use_dual_stack: context.config.use_dualstack_endpoint,
23
+ use_fips: context.config.use_fips_endpoint,
24
+ endpoint: endpoint,
25
+ )
26
+ end
27
+ end
28
+
29
+ class GetAgreementTerms
30
+ def self.build(context)
31
+ unless context.config.regional_endpoint
32
+ endpoint = context.config.endpoint.to_s
33
+ end
34
+ Aws::MarketplaceAgreement::EndpointParameters.new(
35
+ region: context.config.region,
36
+ use_dual_stack: context.config.use_dualstack_endpoint,
37
+ use_fips: context.config.use_fips_endpoint,
38
+ endpoint: endpoint,
39
+ )
40
+ end
41
+ end
42
+
43
+ class SearchAgreements
44
+ def self.build(context)
45
+ unless context.config.regional_endpoint
46
+ endpoint = context.config.endpoint.to_s
47
+ end
48
+ Aws::MarketplaceAgreement::EndpointParameters.new(
49
+ region: context.config.region,
50
+ use_dual_stack: context.config.use_dualstack_endpoint,
51
+ use_fips: context.config.use_fips_endpoint,
52
+ endpoint: endpoint,
53
+ )
54
+ end
55
+ end
56
+
57
+ end
58
+ end