aws-sdk-licensemanagerlinuxsubscriptions 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/client.rb +649 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/client_api.rb +212 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/customizations.rb +0 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/endpoints.rb +71 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/errors.rb +86 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/plugins/endpoints.rb +76 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/resource.rb +26 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/types.rb +434 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,212 @@
|
|
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::LicenseManagerLinuxSubscriptions
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
17
|
+
BoxInteger = Shapes::IntegerShape.new(name: 'BoxInteger')
|
18
|
+
BoxLong = Shapes::IntegerShape.new(name: 'BoxLong')
|
19
|
+
Filter = Shapes::StructureShape.new(name: 'Filter')
|
20
|
+
FilterList = Shapes::ListShape.new(name: 'FilterList')
|
21
|
+
GetServiceSettingsRequest = Shapes::StructureShape.new(name: 'GetServiceSettingsRequest')
|
22
|
+
GetServiceSettingsResponse = Shapes::StructureShape.new(name: 'GetServiceSettingsResponse')
|
23
|
+
Instance = Shapes::StructureShape.new(name: 'Instance')
|
24
|
+
InstanceList = Shapes::ListShape.new(name: 'InstanceList')
|
25
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
26
|
+
LinuxSubscriptionsDiscovery = Shapes::StringShape.new(name: 'LinuxSubscriptionsDiscovery')
|
27
|
+
LinuxSubscriptionsDiscoverySettings = Shapes::StructureShape.new(name: 'LinuxSubscriptionsDiscoverySettings')
|
28
|
+
ListLinuxSubscriptionInstancesRequest = Shapes::StructureShape.new(name: 'ListLinuxSubscriptionInstancesRequest')
|
29
|
+
ListLinuxSubscriptionInstancesRequestNextTokenString = Shapes::StringShape.new(name: 'ListLinuxSubscriptionInstancesRequestNextTokenString')
|
30
|
+
ListLinuxSubscriptionInstancesResponse = Shapes::StructureShape.new(name: 'ListLinuxSubscriptionInstancesResponse')
|
31
|
+
ListLinuxSubscriptionsRequest = Shapes::StructureShape.new(name: 'ListLinuxSubscriptionsRequest')
|
32
|
+
ListLinuxSubscriptionsRequestNextTokenString = Shapes::StringShape.new(name: 'ListLinuxSubscriptionsRequestNextTokenString')
|
33
|
+
ListLinuxSubscriptionsResponse = Shapes::StructureShape.new(name: 'ListLinuxSubscriptionsResponse')
|
34
|
+
Operator = Shapes::StringShape.new(name: 'Operator')
|
35
|
+
OrganizationIntegration = Shapes::StringShape.new(name: 'OrganizationIntegration')
|
36
|
+
ProductCodeList = Shapes::ListShape.new(name: 'ProductCodeList')
|
37
|
+
Status = Shapes::StringShape.new(name: 'Status')
|
38
|
+
String = Shapes::StringShape.new(name: 'String')
|
39
|
+
StringList = Shapes::ListShape.new(name: 'StringList')
|
40
|
+
StringListMemberString = Shapes::StringShape.new(name: 'StringListMemberString')
|
41
|
+
StringMap = Shapes::MapShape.new(name: 'StringMap')
|
42
|
+
Subscription = Shapes::StructureShape.new(name: 'Subscription')
|
43
|
+
SubscriptionList = Shapes::ListShape.new(name: 'SubscriptionList')
|
44
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
45
|
+
UpdateServiceSettingsRequest = Shapes::StructureShape.new(name: 'UpdateServiceSettingsRequest')
|
46
|
+
UpdateServiceSettingsResponse = Shapes::StructureShape.new(name: 'UpdateServiceSettingsResponse')
|
47
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
48
|
+
|
49
|
+
Filter.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
50
|
+
Filter.add_member(:operator, Shapes::ShapeRef.new(shape: Operator, location_name: "Operator"))
|
51
|
+
Filter.add_member(:values, Shapes::ShapeRef.new(shape: StringList, location_name: "Values"))
|
52
|
+
Filter.struct_class = Types::Filter
|
53
|
+
|
54
|
+
FilterList.member = Shapes::ShapeRef.new(shape: Filter)
|
55
|
+
|
56
|
+
GetServiceSettingsRequest.struct_class = Types::GetServiceSettingsRequest
|
57
|
+
|
58
|
+
GetServiceSettingsResponse.add_member(:home_regions, Shapes::ShapeRef.new(shape: StringList, location_name: "HomeRegions"))
|
59
|
+
GetServiceSettingsResponse.add_member(:linux_subscriptions_discovery, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscovery, location_name: "LinuxSubscriptionsDiscovery"))
|
60
|
+
GetServiceSettingsResponse.add_member(:linux_subscriptions_discovery_settings, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscoverySettings, location_name: "LinuxSubscriptionsDiscoverySettings"))
|
61
|
+
GetServiceSettingsResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "Status"))
|
62
|
+
GetServiceSettingsResponse.add_member(:status_message, Shapes::ShapeRef.new(shape: StringMap, location_name: "StatusMessage"))
|
63
|
+
GetServiceSettingsResponse.struct_class = Types::GetServiceSettingsResponse
|
64
|
+
|
65
|
+
Instance.add_member(:account_id, Shapes::ShapeRef.new(shape: String, location_name: "AccountID"))
|
66
|
+
Instance.add_member(:ami_id, Shapes::ShapeRef.new(shape: String, location_name: "AmiId"))
|
67
|
+
Instance.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "InstanceID"))
|
68
|
+
Instance.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "InstanceType"))
|
69
|
+
Instance.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: String, location_name: "LastUpdatedTime"))
|
70
|
+
Instance.add_member(:product_code, Shapes::ShapeRef.new(shape: ProductCodeList, location_name: "ProductCode"))
|
71
|
+
Instance.add_member(:region, Shapes::ShapeRef.new(shape: String, location_name: "Region"))
|
72
|
+
Instance.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
|
73
|
+
Instance.add_member(:subscription_name, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionName"))
|
74
|
+
Instance.add_member(:usage_operation, Shapes::ShapeRef.new(shape: String, location_name: "UsageOperation"))
|
75
|
+
Instance.struct_class = Types::Instance
|
76
|
+
|
77
|
+
InstanceList.member = Shapes::ShapeRef.new(shape: Instance)
|
78
|
+
|
79
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
80
|
+
InternalServerException.struct_class = Types::InternalServerException
|
81
|
+
|
82
|
+
LinuxSubscriptionsDiscoverySettings.add_member(:organization_integration, Shapes::ShapeRef.new(shape: OrganizationIntegration, required: true, location_name: "OrganizationIntegration"))
|
83
|
+
LinuxSubscriptionsDiscoverySettings.add_member(:source_regions, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "SourceRegions"))
|
84
|
+
LinuxSubscriptionsDiscoverySettings.struct_class = Types::LinuxSubscriptionsDiscoverySettings
|
85
|
+
|
86
|
+
ListLinuxSubscriptionInstancesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
87
|
+
ListLinuxSubscriptionInstancesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxInteger, location_name: "MaxResults"))
|
88
|
+
ListLinuxSubscriptionInstancesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListLinuxSubscriptionInstancesRequestNextTokenString, location_name: "NextToken"))
|
89
|
+
ListLinuxSubscriptionInstancesRequest.struct_class = Types::ListLinuxSubscriptionInstancesRequest
|
90
|
+
|
91
|
+
ListLinuxSubscriptionInstancesResponse.add_member(:instances, Shapes::ShapeRef.new(shape: InstanceList, location_name: "Instances"))
|
92
|
+
ListLinuxSubscriptionInstancesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
93
|
+
ListLinuxSubscriptionInstancesResponse.struct_class = Types::ListLinuxSubscriptionInstancesResponse
|
94
|
+
|
95
|
+
ListLinuxSubscriptionsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
96
|
+
ListLinuxSubscriptionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxInteger, location_name: "MaxResults"))
|
97
|
+
ListLinuxSubscriptionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: ListLinuxSubscriptionsRequestNextTokenString, location_name: "NextToken"))
|
98
|
+
ListLinuxSubscriptionsRequest.struct_class = Types::ListLinuxSubscriptionsRequest
|
99
|
+
|
100
|
+
ListLinuxSubscriptionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
101
|
+
ListLinuxSubscriptionsResponse.add_member(:subscriptions, Shapes::ShapeRef.new(shape: SubscriptionList, location_name: "Subscriptions"))
|
102
|
+
ListLinuxSubscriptionsResponse.struct_class = Types::ListLinuxSubscriptionsResponse
|
103
|
+
|
104
|
+
ProductCodeList.member = Shapes::ShapeRef.new(shape: String)
|
105
|
+
|
106
|
+
StringList.member = Shapes::ShapeRef.new(shape: StringListMemberString)
|
107
|
+
|
108
|
+
StringMap.key = Shapes::ShapeRef.new(shape: String)
|
109
|
+
StringMap.value = Shapes::ShapeRef.new(shape: String)
|
110
|
+
|
111
|
+
Subscription.add_member(:instance_count, Shapes::ShapeRef.new(shape: BoxLong, location_name: "InstanceCount"))
|
112
|
+
Subscription.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
113
|
+
Subscription.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "Type"))
|
114
|
+
Subscription.struct_class = Types::Subscription
|
115
|
+
|
116
|
+
SubscriptionList.member = Shapes::ShapeRef.new(shape: Subscription)
|
117
|
+
|
118
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
119
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
120
|
+
|
121
|
+
UpdateServiceSettingsRequest.add_member(:allow_update, Shapes::ShapeRef.new(shape: Boolean, location_name: "AllowUpdate"))
|
122
|
+
UpdateServiceSettingsRequest.add_member(:linux_subscriptions_discovery, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscovery, required: true, location_name: "LinuxSubscriptionsDiscovery"))
|
123
|
+
UpdateServiceSettingsRequest.add_member(:linux_subscriptions_discovery_settings, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscoverySettings, required: true, location_name: "LinuxSubscriptionsDiscoverySettings"))
|
124
|
+
UpdateServiceSettingsRequest.struct_class = Types::UpdateServiceSettingsRequest
|
125
|
+
|
126
|
+
UpdateServiceSettingsResponse.add_member(:home_regions, Shapes::ShapeRef.new(shape: StringList, location_name: "HomeRegions"))
|
127
|
+
UpdateServiceSettingsResponse.add_member(:linux_subscriptions_discovery, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscovery, location_name: "LinuxSubscriptionsDiscovery"))
|
128
|
+
UpdateServiceSettingsResponse.add_member(:linux_subscriptions_discovery_settings, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscoverySettings, location_name: "LinuxSubscriptionsDiscoverySettings"))
|
129
|
+
UpdateServiceSettingsResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "Status"))
|
130
|
+
UpdateServiceSettingsResponse.add_member(:status_message, Shapes::ShapeRef.new(shape: StringMap, location_name: "StatusMessage"))
|
131
|
+
UpdateServiceSettingsResponse.struct_class = Types::UpdateServiceSettingsResponse
|
132
|
+
|
133
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
134
|
+
ValidationException.struct_class = Types::ValidationException
|
135
|
+
|
136
|
+
|
137
|
+
# @api private
|
138
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
139
|
+
|
140
|
+
api.version = "2018-05-10"
|
141
|
+
|
142
|
+
api.metadata = {
|
143
|
+
"apiVersion" => "2018-05-10",
|
144
|
+
"endpointPrefix" => "license-manager-linux-subscriptions",
|
145
|
+
"jsonVersion" => "1.1",
|
146
|
+
"protocol" => "rest-json",
|
147
|
+
"serviceFullName" => "AWS License Manager Linux Subscriptions",
|
148
|
+
"serviceId" => "License Manager Linux Subscriptions",
|
149
|
+
"signatureVersion" => "v4",
|
150
|
+
"signingName" => "license-manager-linux-subscriptions",
|
151
|
+
"uid" => "license-manager-linux-subscriptions-2018-05-10",
|
152
|
+
}
|
153
|
+
|
154
|
+
api.add_operation(:get_service_settings, Seahorse::Model::Operation.new.tap do |o|
|
155
|
+
o.name = "GetServiceSettings"
|
156
|
+
o.http_method = "POST"
|
157
|
+
o.http_request_uri = "/subscription/GetServiceSettings"
|
158
|
+
o.input = Shapes::ShapeRef.new(shape: GetServiceSettingsRequest)
|
159
|
+
o.output = Shapes::ShapeRef.new(shape: GetServiceSettingsResponse)
|
160
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
161
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
162
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
163
|
+
end)
|
164
|
+
|
165
|
+
api.add_operation(:list_linux_subscription_instances, Seahorse::Model::Operation.new.tap do |o|
|
166
|
+
o.name = "ListLinuxSubscriptionInstances"
|
167
|
+
o.http_method = "POST"
|
168
|
+
o.http_request_uri = "/subscription/ListLinuxSubscriptionInstances"
|
169
|
+
o.input = Shapes::ShapeRef.new(shape: ListLinuxSubscriptionInstancesRequest)
|
170
|
+
o.output = Shapes::ShapeRef.new(shape: ListLinuxSubscriptionInstancesResponse)
|
171
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
172
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
173
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
174
|
+
o[:pager] = Aws::Pager.new(
|
175
|
+
limit_key: "max_results",
|
176
|
+
tokens: {
|
177
|
+
"next_token" => "next_token"
|
178
|
+
}
|
179
|
+
)
|
180
|
+
end)
|
181
|
+
|
182
|
+
api.add_operation(:list_linux_subscriptions, Seahorse::Model::Operation.new.tap do |o|
|
183
|
+
o.name = "ListLinuxSubscriptions"
|
184
|
+
o.http_method = "POST"
|
185
|
+
o.http_request_uri = "/subscription/ListLinuxSubscriptions"
|
186
|
+
o.input = Shapes::ShapeRef.new(shape: ListLinuxSubscriptionsRequest)
|
187
|
+
o.output = Shapes::ShapeRef.new(shape: ListLinuxSubscriptionsResponse)
|
188
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
189
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
190
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
191
|
+
o[:pager] = Aws::Pager.new(
|
192
|
+
limit_key: "max_results",
|
193
|
+
tokens: {
|
194
|
+
"next_token" => "next_token"
|
195
|
+
}
|
196
|
+
)
|
197
|
+
end)
|
198
|
+
|
199
|
+
api.add_operation(:update_service_settings, Seahorse::Model::Operation.new.tap do |o|
|
200
|
+
o.name = "UpdateServiceSettings"
|
201
|
+
o.http_method = "POST"
|
202
|
+
o.http_request_uri = "/subscription/UpdateServiceSettings"
|
203
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateServiceSettingsRequest)
|
204
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateServiceSettingsResponse)
|
205
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
206
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
207
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
208
|
+
end)
|
209
|
+
end
|
210
|
+
|
211
|
+
end
|
212
|
+
end
|
File without changes
|
@@ -0,0 +1,69 @@
|
|
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::LicenseManagerLinuxSubscriptions
|
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
|
+
if self[:region].nil?
|
54
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
+
end
|
56
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
57
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
|
+
if self[:use_dual_stack].nil?
|
59
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
60
|
+
end
|
61
|
+
self[:use_fips] = options[:use_fips]
|
62
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
63
|
+
if self[:use_fips].nil?
|
64
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
65
|
+
end
|
66
|
+
self[:endpoint] = options[:endpoint]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,112 @@
|
|
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::LicenseManagerLinuxSubscriptions
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
+
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
+
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
|
35
|
+
aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
|
36
|
+
ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
|
37
|
+
IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
|
38
|
+
bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
|
39
|
+
aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
|
40
|
+
IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
|
41
|
+
IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJkb2N1bWVudGF0
|
42
|
+
aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVxdWVzdCB0byB0aGUgRklQ
|
43
|
+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dGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwi
|
105
|
+
OiJodHRwczovL2xpY2Vuc2UtbWFuYWdlci1saW51eC1zdWJzY3JpcHRpb25z
|
106
|
+
LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3VmZml4fSIsInByb3Bl
|
107
|
+
cnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1d
|
108
|
+
fQ==
|
109
|
+
|
110
|
+
JSON
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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::LicenseManagerLinuxSubscriptions
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class GetServiceSettings
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class ListLinuxSubscriptionInstances
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class ListLinuxSubscriptions
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class UpdateServiceSettings
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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::LicenseManagerLinuxSubscriptions
|
11
|
+
|
12
|
+
# When LicenseManagerLinuxSubscriptions returns an error response, the Ruby SDK constructs and raises an error.
|
13
|
+
# These errors all extend Aws::LicenseManagerLinuxSubscriptions::Errors::ServiceError < {Aws::Errors::ServiceError}
|
14
|
+
#
|
15
|
+
# You can rescue all LicenseManagerLinuxSubscriptions errors using ServiceError:
|
16
|
+
#
|
17
|
+
# begin
|
18
|
+
# # do stuff
|
19
|
+
# rescue Aws::LicenseManagerLinuxSubscriptions::Errors::ServiceError
|
20
|
+
# # rescues all LicenseManagerLinuxSubscriptions 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
|
+
# * {InternalServerException}
|
31
|
+
# * {ThrottlingException}
|
32
|
+
# * {ValidationException}
|
33
|
+
#
|
34
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
35
|
+
# if they are not defined above.
|
36
|
+
module Errors
|
37
|
+
|
38
|
+
extend Aws::Errors::DynamicErrors
|
39
|
+
|
40
|
+
class InternalServerException < ServiceError
|
41
|
+
|
42
|
+
# @param [Seahorse::Client::RequestContext] context
|
43
|
+
# @param [String] message
|
44
|
+
# @param [Aws::LicenseManagerLinuxSubscriptions::Types::InternalServerException] data
|
45
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
46
|
+
super(context, message, data)
|
47
|
+
end
|
48
|
+
|
49
|
+
# @return [String]
|
50
|
+
def message
|
51
|
+
@message || @data[:message]
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class ThrottlingException < ServiceError
|
56
|
+
|
57
|
+
# @param [Seahorse::Client::RequestContext] context
|
58
|
+
# @param [String] message
|
59
|
+
# @param [Aws::LicenseManagerLinuxSubscriptions::Types::ThrottlingException] data
|
60
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
61
|
+
super(context, message, data)
|
62
|
+
end
|
63
|
+
|
64
|
+
# @return [String]
|
65
|
+
def message
|
66
|
+
@message || @data[:message]
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class ValidationException < ServiceError
|
71
|
+
|
72
|
+
# @param [Seahorse::Client::RequestContext] context
|
73
|
+
# @param [String] message
|
74
|
+
# @param [Aws::LicenseManagerLinuxSubscriptions::Types::ValidationException] data
|
75
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
76
|
+
super(context, message, data)
|
77
|
+
end
|
78
|
+
|
79
|
+
# @return [String]
|
80
|
+
def message
|
81
|
+
@message || @data[:message]
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,76 @@
|
|
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::LicenseManagerLinuxSubscriptions
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::LicenseManagerLinuxSubscriptions::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::LicenseManagerLinuxSubscriptions::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :get_service_settings
|
60
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::GetServiceSettings.build(context)
|
61
|
+
when :list_linux_subscription_instances
|
62
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::ListLinuxSubscriptionInstances.build(context)
|
63
|
+
when :list_linux_subscriptions
|
64
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::ListLinuxSubscriptions.build(context)
|
65
|
+
when :update_service_settings
|
66
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::UpdateServiceSettings.build(context)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def add_handlers(handlers, _config)
|
72
|
+
handlers.add(Handler, step: :build, priority: 75)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
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::LicenseManagerLinuxSubscriptions
|
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
|