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.
480 481 482 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 480 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.
825 826 827 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 825 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.
828 829 830 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 828 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.
798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 798 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.27.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.
532 533 534 535 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 532 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.
648 649 650 651 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 648 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.
789 790 791 792 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 789 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.
818 819 820 |
# File 'lib/aws-sdk-marketplaceagreement/client.rb', line 818 def waiter_names [] end |