aws-sdk-licensemanager 1.40.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-licensemanager/client.rb +172 -6
- data/lib/aws-sdk-licensemanager/client_api.rb +53 -0
- data/lib/aws-sdk-licensemanager/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-licensemanager/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-licensemanager/endpoints.rb +715 -0
- data/lib/aws-sdk-licensemanager/plugins/endpoints.rb +168 -0
- data/lib/aws-sdk-licensemanager/types.rb +126 -4
- data/lib/aws-sdk-licensemanager.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,168 @@
|
|
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::LicenseManager
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::LicenseManager::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::LicenseManager::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::LicenseManager::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 :accept_grant
|
60
|
+
Aws::LicenseManager::Endpoints::AcceptGrant.build(context)
|
61
|
+
when :check_in_license
|
62
|
+
Aws::LicenseManager::Endpoints::CheckInLicense.build(context)
|
63
|
+
when :checkout_borrow_license
|
64
|
+
Aws::LicenseManager::Endpoints::CheckoutBorrowLicense.build(context)
|
65
|
+
when :checkout_license
|
66
|
+
Aws::LicenseManager::Endpoints::CheckoutLicense.build(context)
|
67
|
+
when :create_grant
|
68
|
+
Aws::LicenseManager::Endpoints::CreateGrant.build(context)
|
69
|
+
when :create_grant_version
|
70
|
+
Aws::LicenseManager::Endpoints::CreateGrantVersion.build(context)
|
71
|
+
when :create_license
|
72
|
+
Aws::LicenseManager::Endpoints::CreateLicense.build(context)
|
73
|
+
when :create_license_configuration
|
74
|
+
Aws::LicenseManager::Endpoints::CreateLicenseConfiguration.build(context)
|
75
|
+
when :create_license_conversion_task_for_resource
|
76
|
+
Aws::LicenseManager::Endpoints::CreateLicenseConversionTaskForResource.build(context)
|
77
|
+
when :create_license_manager_report_generator
|
78
|
+
Aws::LicenseManager::Endpoints::CreateLicenseManagerReportGenerator.build(context)
|
79
|
+
when :create_license_version
|
80
|
+
Aws::LicenseManager::Endpoints::CreateLicenseVersion.build(context)
|
81
|
+
when :create_token
|
82
|
+
Aws::LicenseManager::Endpoints::CreateToken.build(context)
|
83
|
+
when :delete_grant
|
84
|
+
Aws::LicenseManager::Endpoints::DeleteGrant.build(context)
|
85
|
+
when :delete_license
|
86
|
+
Aws::LicenseManager::Endpoints::DeleteLicense.build(context)
|
87
|
+
when :delete_license_configuration
|
88
|
+
Aws::LicenseManager::Endpoints::DeleteLicenseConfiguration.build(context)
|
89
|
+
when :delete_license_manager_report_generator
|
90
|
+
Aws::LicenseManager::Endpoints::DeleteLicenseManagerReportGenerator.build(context)
|
91
|
+
when :delete_token
|
92
|
+
Aws::LicenseManager::Endpoints::DeleteToken.build(context)
|
93
|
+
when :extend_license_consumption
|
94
|
+
Aws::LicenseManager::Endpoints::ExtendLicenseConsumption.build(context)
|
95
|
+
when :get_access_token
|
96
|
+
Aws::LicenseManager::Endpoints::GetAccessToken.build(context)
|
97
|
+
when :get_grant
|
98
|
+
Aws::LicenseManager::Endpoints::GetGrant.build(context)
|
99
|
+
when :get_license
|
100
|
+
Aws::LicenseManager::Endpoints::GetLicense.build(context)
|
101
|
+
when :get_license_configuration
|
102
|
+
Aws::LicenseManager::Endpoints::GetLicenseConfiguration.build(context)
|
103
|
+
when :get_license_conversion_task
|
104
|
+
Aws::LicenseManager::Endpoints::GetLicenseConversionTask.build(context)
|
105
|
+
when :get_license_manager_report_generator
|
106
|
+
Aws::LicenseManager::Endpoints::GetLicenseManagerReportGenerator.build(context)
|
107
|
+
when :get_license_usage
|
108
|
+
Aws::LicenseManager::Endpoints::GetLicenseUsage.build(context)
|
109
|
+
when :get_service_settings
|
110
|
+
Aws::LicenseManager::Endpoints::GetServiceSettings.build(context)
|
111
|
+
when :list_associations_for_license_configuration
|
112
|
+
Aws::LicenseManager::Endpoints::ListAssociationsForLicenseConfiguration.build(context)
|
113
|
+
when :list_distributed_grants
|
114
|
+
Aws::LicenseManager::Endpoints::ListDistributedGrants.build(context)
|
115
|
+
when :list_failures_for_license_configuration_operations
|
116
|
+
Aws::LicenseManager::Endpoints::ListFailuresForLicenseConfigurationOperations.build(context)
|
117
|
+
when :list_license_configurations
|
118
|
+
Aws::LicenseManager::Endpoints::ListLicenseConfigurations.build(context)
|
119
|
+
when :list_license_conversion_tasks
|
120
|
+
Aws::LicenseManager::Endpoints::ListLicenseConversionTasks.build(context)
|
121
|
+
when :list_license_manager_report_generators
|
122
|
+
Aws::LicenseManager::Endpoints::ListLicenseManagerReportGenerators.build(context)
|
123
|
+
when :list_license_specifications_for_resource
|
124
|
+
Aws::LicenseManager::Endpoints::ListLicenseSpecificationsForResource.build(context)
|
125
|
+
when :list_license_versions
|
126
|
+
Aws::LicenseManager::Endpoints::ListLicenseVersions.build(context)
|
127
|
+
when :list_licenses
|
128
|
+
Aws::LicenseManager::Endpoints::ListLicenses.build(context)
|
129
|
+
when :list_received_grants
|
130
|
+
Aws::LicenseManager::Endpoints::ListReceivedGrants.build(context)
|
131
|
+
when :list_received_grants_for_organization
|
132
|
+
Aws::LicenseManager::Endpoints::ListReceivedGrantsForOrganization.build(context)
|
133
|
+
when :list_received_licenses
|
134
|
+
Aws::LicenseManager::Endpoints::ListReceivedLicenses.build(context)
|
135
|
+
when :list_received_licenses_for_organization
|
136
|
+
Aws::LicenseManager::Endpoints::ListReceivedLicensesForOrganization.build(context)
|
137
|
+
when :list_resource_inventory
|
138
|
+
Aws::LicenseManager::Endpoints::ListResourceInventory.build(context)
|
139
|
+
when :list_tags_for_resource
|
140
|
+
Aws::LicenseManager::Endpoints::ListTagsForResource.build(context)
|
141
|
+
when :list_tokens
|
142
|
+
Aws::LicenseManager::Endpoints::ListTokens.build(context)
|
143
|
+
when :list_usage_for_license_configuration
|
144
|
+
Aws::LicenseManager::Endpoints::ListUsageForLicenseConfiguration.build(context)
|
145
|
+
when :reject_grant
|
146
|
+
Aws::LicenseManager::Endpoints::RejectGrant.build(context)
|
147
|
+
when :tag_resource
|
148
|
+
Aws::LicenseManager::Endpoints::TagResource.build(context)
|
149
|
+
when :untag_resource
|
150
|
+
Aws::LicenseManager::Endpoints::UntagResource.build(context)
|
151
|
+
when :update_license_configuration
|
152
|
+
Aws::LicenseManager::Endpoints::UpdateLicenseConfiguration.build(context)
|
153
|
+
when :update_license_manager_report_generator
|
154
|
+
Aws::LicenseManager::Endpoints::UpdateLicenseManagerReportGenerator.build(context)
|
155
|
+
when :update_license_specifications_for_resource
|
156
|
+
Aws::LicenseManager::Endpoints::UpdateLicenseSpecificationsForResource.build(context)
|
157
|
+
when :update_service_settings
|
158
|
+
Aws::LicenseManager::Endpoints::UpdateServiceSettings.build(context)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
def add_handlers(handlers, _config)
|
164
|
+
handlers.add(Handler, step: :build, priority: 75)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
@@ -468,7 +468,8 @@ module Aws::LicenseManager
|
|
468
468
|
# @return [String]
|
469
469
|
#
|
470
470
|
# @!attribute [rw] principals
|
471
|
-
# The grant principals.
|
471
|
+
# The grant principals. This value should be specified as an Amazon
|
472
|
+
# Resource Name (ARN).
|
472
473
|
# @return [Array<String>]
|
473
474
|
#
|
474
475
|
# @!attribute [rw] home_region
|
@@ -729,8 +730,8 @@ module Aws::LicenseManager
|
|
729
730
|
# @!attribute [rw] source_license_context
|
730
731
|
# Information that identifies the license type you are converting
|
731
732
|
# from. For the structure of the source license, see [Convert a
|
732
|
-
# license type using the
|
733
|
-
# Guide*.
|
733
|
+
# license type using the Amazon Web Services CLI][1] in the *License
|
734
|
+
# Manager User Guide*.
|
734
735
|
#
|
735
736
|
#
|
736
737
|
#
|
@@ -740,7 +741,8 @@ module Aws::LicenseManager
|
|
740
741
|
# @!attribute [rw] destination_license_context
|
741
742
|
# Information that identifies the license type you are converting to.
|
742
743
|
# For the structure of the destination license, see [Convert a license
|
743
|
-
# type using the
|
744
|
+
# type using the Amazon Web Services CLI][1] in the *License Manager
|
745
|
+
# User Guide*.
|
744
746
|
#
|
745
747
|
#
|
746
748
|
#
|
@@ -3234,6 +3236,69 @@ module Aws::LicenseManager
|
|
3234
3236
|
include Aws::Structure
|
3235
3237
|
end
|
3236
3238
|
|
3239
|
+
# @note When making an API call, you may pass ListReceivedGrantsForOrganizationRequest
|
3240
|
+
# data as a hash:
|
3241
|
+
#
|
3242
|
+
# {
|
3243
|
+
# license_arn: "Arn", # required
|
3244
|
+
# filters: [
|
3245
|
+
# {
|
3246
|
+
# name: "FilterName",
|
3247
|
+
# values: ["FilterValue"],
|
3248
|
+
# },
|
3249
|
+
# ],
|
3250
|
+
# next_token: "String",
|
3251
|
+
# max_results: 1,
|
3252
|
+
# }
|
3253
|
+
#
|
3254
|
+
# @!attribute [rw] license_arn
|
3255
|
+
# The Amazon Resource Name (ARN) of the received license.
|
3256
|
+
# @return [String]
|
3257
|
+
#
|
3258
|
+
# @!attribute [rw] filters
|
3259
|
+
# Filters to scope the results. The following filters are supported:
|
3260
|
+
#
|
3261
|
+
# * `ParentArn`
|
3262
|
+
#
|
3263
|
+
# * `GranteePrincipalArn`
|
3264
|
+
# @return [Array<Types::Filter>]
|
3265
|
+
#
|
3266
|
+
# @!attribute [rw] next_token
|
3267
|
+
# Token for the next set of results.
|
3268
|
+
# @return [String]
|
3269
|
+
#
|
3270
|
+
# @!attribute [rw] max_results
|
3271
|
+
# Maximum number of results to return in a single call.
|
3272
|
+
# @return [Integer]
|
3273
|
+
#
|
3274
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedGrantsForOrganizationRequest AWS API Documentation
|
3275
|
+
#
|
3276
|
+
class ListReceivedGrantsForOrganizationRequest < Struct.new(
|
3277
|
+
:license_arn,
|
3278
|
+
:filters,
|
3279
|
+
:next_token,
|
3280
|
+
:max_results)
|
3281
|
+
SENSITIVE = []
|
3282
|
+
include Aws::Structure
|
3283
|
+
end
|
3284
|
+
|
3285
|
+
# @!attribute [rw] grants
|
3286
|
+
# Lists the grants the organization has received.
|
3287
|
+
# @return [Array<Types::Grant>]
|
3288
|
+
#
|
3289
|
+
# @!attribute [rw] next_token
|
3290
|
+
# Token for the next set of results.
|
3291
|
+
# @return [String]
|
3292
|
+
#
|
3293
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedGrantsForOrganizationResponse AWS API Documentation
|
3294
|
+
#
|
3295
|
+
class ListReceivedGrantsForOrganizationResponse < Struct.new(
|
3296
|
+
:grants,
|
3297
|
+
:next_token)
|
3298
|
+
SENSITIVE = []
|
3299
|
+
include Aws::Structure
|
3300
|
+
end
|
3301
|
+
|
3237
3302
|
# @note When making an API call, you may pass ListReceivedGrantsRequest
|
3238
3303
|
# data as a hash:
|
3239
3304
|
#
|
@@ -3303,6 +3368,63 @@ module Aws::LicenseManager
|
|
3303
3368
|
include Aws::Structure
|
3304
3369
|
end
|
3305
3370
|
|
3371
|
+
# @note When making an API call, you may pass ListReceivedLicensesForOrganizationRequest
|
3372
|
+
# data as a hash:
|
3373
|
+
#
|
3374
|
+
# {
|
3375
|
+
# filters: [
|
3376
|
+
# {
|
3377
|
+
# name: "FilterName",
|
3378
|
+
# values: ["FilterValue"],
|
3379
|
+
# },
|
3380
|
+
# ],
|
3381
|
+
# next_token: "String",
|
3382
|
+
# max_results: 1,
|
3383
|
+
# }
|
3384
|
+
#
|
3385
|
+
# @!attribute [rw] filters
|
3386
|
+
# Filters to scope the results. The following filters are supported:
|
3387
|
+
#
|
3388
|
+
# * `Beneficiary`
|
3389
|
+
#
|
3390
|
+
# * `ProductSKU`
|
3391
|
+
# @return [Array<Types::Filter>]
|
3392
|
+
#
|
3393
|
+
# @!attribute [rw] next_token
|
3394
|
+
# Token for the next set of results.
|
3395
|
+
# @return [String]
|
3396
|
+
#
|
3397
|
+
# @!attribute [rw] max_results
|
3398
|
+
# Maximum number of results to return in a single call.
|
3399
|
+
# @return [Integer]
|
3400
|
+
#
|
3401
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedLicensesForOrganizationRequest AWS API Documentation
|
3402
|
+
#
|
3403
|
+
class ListReceivedLicensesForOrganizationRequest < Struct.new(
|
3404
|
+
:filters,
|
3405
|
+
:next_token,
|
3406
|
+
:max_results)
|
3407
|
+
SENSITIVE = []
|
3408
|
+
include Aws::Structure
|
3409
|
+
end
|
3410
|
+
|
3411
|
+
# @!attribute [rw] licenses
|
3412
|
+
# Lists the licenses the organization has received.
|
3413
|
+
# @return [Array<Types::GrantedLicense>]
|
3414
|
+
#
|
3415
|
+
# @!attribute [rw] next_token
|
3416
|
+
# Token for the next set of results.
|
3417
|
+
# @return [String]
|
3418
|
+
#
|
3419
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedLicensesForOrganizationResponse AWS API Documentation
|
3420
|
+
#
|
3421
|
+
class ListReceivedLicensesForOrganizationResponse < Struct.new(
|
3422
|
+
:licenses,
|
3423
|
+
:next_token)
|
3424
|
+
SENSITIVE = []
|
3425
|
+
include Aws::Structure
|
3426
|
+
end
|
3427
|
+
|
3306
3428
|
# @note When making an API call, you may pass ListReceivedLicensesRequest
|
3307
3429
|
# data as a hash:
|
3308
3430
|
#
|
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-licensemanager/types'
|
15
15
|
require_relative 'aws-sdk-licensemanager/client_api'
|
16
|
+
require_relative 'aws-sdk-licensemanager/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-licensemanager/client'
|
17
18
|
require_relative 'aws-sdk-licensemanager/errors'
|
18
19
|
require_relative 'aws-sdk-licensemanager/resource'
|
20
|
+
require_relative 'aws-sdk-licensemanager/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-licensemanager/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-licensemanager/endpoints'
|
19
23
|
require_relative 'aws-sdk-licensemanager/customizations'
|
20
24
|
|
21
25
|
# This module provides support for AWS License Manager. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-licensemanager/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::LicenseManager
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.42.0'
|
52
56
|
|
53
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-licensemanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.42.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.165.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-licensemanager/client.rb
|
60
60
|
- lib/aws-sdk-licensemanager/client_api.rb
|
61
61
|
- lib/aws-sdk-licensemanager/customizations.rb
|
62
|
+
- lib/aws-sdk-licensemanager/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-licensemanager/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-licensemanager/endpoints.rb
|
62
65
|
- lib/aws-sdk-licensemanager/errors.rb
|
66
|
+
- lib/aws-sdk-licensemanager/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-licensemanager/resource.rb
|
64
68
|
- lib/aws-sdk-licensemanager/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|