Class: Aws::MarketplaceAgreement::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::MarketplaceAgreement::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-marketplaceagreement/client.rb
Overview
An API client for MarketplaceAgreement. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::MarketplaceAgreement::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#describe_agreement(params = {}) ⇒ Types::DescribeAgreementOutput
Provides details about an agreement, such as the proposer, acceptor, start date, and end date.
-
#get_agreement_terms(params = {}) ⇒ Types::GetAgreementTermsOutput
Obtains details about the terms in an agreement that you participated in as proposer or acceptor.
-
#search_agreements(params = {}) ⇒ Types::SearchAgreementsOutput
Searches across all agreements that a proposer or an acceptor has in AWS Marketplace.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
451 452 453 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 451 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
796 797 798 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 796 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
799 800 801 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 799 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 769 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::MarketplaceAgreement') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-marketplaceagreement' context[:gem_version] = '1.14.0' Seahorse::Client::Request.new(handlers, context) end |
#describe_agreement(params = {}) ⇒ Types::DescribeAgreementOutput
Provides details about an agreement, such as the proposer, acceptor, start date, and end date.
503 504 505 506 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 503 def describe_agreement(params = {}, = {}) req = build_request(:describe_agreement, params) req.send_request() end |
#get_agreement_terms(params = {}) ⇒ Types::GetAgreementTermsOutput
Obtains details about the terms in an agreement that you participated in as proposer or acceptor.
The details include:
-
‘TermType` – The type of term, such as `LegalTerm`, `RenewalTerm`, or `ConfigurableUpfrontPricingTerm`.
-
‘TermID` – The ID of the particular term, which is common between offer and agreement.
-
‘TermPayload` – The key information contained in the term, such as the EULA for `LegalTerm` or pricing and dimensions for various pricing terms, such as `ConfigurableUpfrontPricingTerm` or `UsageBasedPricingTerm`.
^
-
‘Configuration` – The buyer/acceptor’s selection at the time of agreement creation, such as the number of units purchased for a dimension or setting the ‘EnableAutoRenew` flag.
^
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
619 620 621 622 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 619 def get_agreement_terms(params = {}, = {}) req = build_request(:get_agreement_terms, params) req.send_request() end |
#search_agreements(params = {}) ⇒ Types::SearchAgreementsOutput
Searches across all agreements that a proposer or an acceptor has in AWS Marketplace. The search returns a list of agreements with basic agreement information.
The following filter combinations are supported:
-
‘PartyType` as `Proposer` + `AgreementType` + `ResourceIdentifier`
-
‘PartyType` as `Proposer` + `AgreementType` + `OfferId`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId`
-
‘PartyType` as `Proposer` + `AgreementType` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `ResourceIdentifier` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `OfferId` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `ResourceType` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId` + `ResourceType` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId` + `OfferId`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId` + `OfferId` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId` + `ResourceIdentifier`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId` + `ResourceIdentifier` + `Status`
-
‘PartyType` as `Proposer` + `AgreementType` + `AcceptorAccountId` + `ResourceType`
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
760 761 762 763 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 760 def search_agreements(params = {}, = {}) req = build_request(:search_agreements, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
789 790 791 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 789 def waiter_names [] end |