Class: Aws::Artifact::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Artifact::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-artifact/client.rb
Overview
An API client for Artifact. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::Artifact::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
-
#get_account_settings(params = {}) ⇒ Types::GetAccountSettingsResponse
Get the account settings for Artifact.
-
#get_report(params = {}) ⇒ Types::GetReportResponse
Get the content for a single report.
-
#get_report_metadata(params = {}) ⇒ Types::GetReportMetadataResponse
Get the metadata for a single report.
-
#get_term_for_report(params = {}) ⇒ Types::GetTermForReportResponse
Get the Term content associated with a single report.
-
#list_customer_agreements(params = {}) ⇒ Types::ListCustomerAgreementsResponse
List active customer-agreements applicable to calling identity.
-
#list_report_versions(params = {}) ⇒ Types::ListReportVersionsResponse
List available report versions for a given report.
-
#list_reports(params = {}) ⇒ Types::ListReportsResponse
List available reports.
-
#put_account_settings(params = {}) ⇒ Types::PutAccountSettingsResponse
Put the account settings for Artifact.
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.
473 474 475 |
# File 'lib/aws-sdk-artifact/client.rb', line 473 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.
1023 1024 1025 |
# File 'lib/aws-sdk-artifact/client.rb', line 1023 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.
1026 1027 1028 |
# File 'lib/aws-sdk-artifact/client.rb', line 1026 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.
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 |
# File 'lib/aws-sdk-artifact/client.rb', line 996 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::Artifact') ) 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-artifact' context[:gem_version] = '1.31.0' Seahorse::Client::Request.new(handlers, context) end |
#get_account_settings(params = {}) ⇒ Types::GetAccountSettingsResponse
Get the account settings for Artifact.
508 509 510 511 |
# File 'lib/aws-sdk-artifact/client.rb', line 508 def get_account_settings(params = {}, = {}) req = build_request(:get_account_settings, params) req.send_request() end |
#get_report(params = {}) ⇒ Types::GetReportResponse
Get the content for a single report.
562 563 564 565 |
# File 'lib/aws-sdk-artifact/client.rb', line 562 def get_report(params = {}, = {}) req = build_request(:get_report, params) req.send_request() end |
#get_report_metadata(params = {}) ⇒ Types::GetReportMetadataResponse
Get the metadata for a single report.
643 644 645 646 |
# File 'lib/aws-sdk-artifact/client.rb', line 643 def (params = {}, = {}) req = build_request(:get_report_metadata, params) req.send_request() end |
#get_term_for_report(params = {}) ⇒ Types::GetTermForReportResponse
Get the Term content associated with a single report.
693 694 695 696 |
# File 'lib/aws-sdk-artifact/client.rb', line 693 def get_term_for_report(params = {}, = {}) req = build_request(:get_term_for_report, params) req.send_request() end |
#list_customer_agreements(params = {}) ⇒ Types::ListCustomerAgreementsResponse
List active customer-agreements applicable to calling identity.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
777 778 779 780 |
# File 'lib/aws-sdk-artifact/client.rb', line 777 def list_customer_agreements(params = {}, = {}) req = build_request(:list_customer_agreements, params) req.send_request() end |
#list_report_versions(params = {}) ⇒ Types::ListReportVersionsResponse
List available report versions for a given report.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
863 864 865 866 |
# File 'lib/aws-sdk-artifact/client.rb', line 863 def list_report_versions(params = {}, = {}) req = build_request(:list_report_versions, params) req.send_request() end |
#list_reports(params = {}) ⇒ Types::ListReportsResponse
List available reports.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
943 944 945 946 |
# File 'lib/aws-sdk-artifact/client.rb', line 943 def list_reports(params = {}, = {}) req = build_request(:list_reports, params) req.send_request() end |
#put_account_settings(params = {}) ⇒ Types::PutAccountSettingsResponse
Put the account settings for Artifact.
987 988 989 990 |
# File 'lib/aws-sdk-artifact/client.rb', line 987 def put_account_settings(params = {}, = {}) req = build_request(:put_account_settings, 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.
1016 1017 1018 |
# File 'lib/aws-sdk-artifact/client.rb', line 1016 def waiter_names [] end |