Class: ReactorSDK::Client
- Inherits:
-
Object
- Object
- ReactorSDK::Client
- Defined in:
- lib/reactor_sdk/client.rb
Constant Summary collapse
- ENDPOINT_CLASSES =
{ companies: Endpoints::Companies, properties: Endpoints::Properties, app_configurations: Endpoints::AppConfigurations, callbacks: Endpoints::Callbacks, secrets: Endpoints::Secrets, environments: Endpoints::Environments, hosts: Endpoints::Hosts, rules: Endpoints::Rules, rule_components: Endpoints::RuleComponents, data_elements: Endpoints::DataElements, extensions: Endpoints::Extensions, extension_packages: Endpoints::ExtensionPackages, extension_package_usage_authorizations: Endpoints::ExtensionPackageUsageAuthorizations, libraries: Endpoints::Libraries, builds: Endpoints::Builds, audit_events: Endpoints::AuditEvents, revisions: Endpoints::Revisions, profiles: Endpoints::Profiles, search: Endpoints::Search, notes: Endpoints::Notes }.freeze
Instance Attribute Summary collapse
- #app_configurations ⇒ ReactorSDK::Endpoints::AppConfigurations readonly
- #audit_events ⇒ ReactorSDK::Endpoints::AuditEvents readonly
- #builds ⇒ ReactorSDK::Endpoints::Builds readonly
- #callbacks ⇒ ReactorSDK::Endpoints::Callbacks readonly
- #companies ⇒ ReactorSDK::Endpoints::Companies readonly
- #config ⇒ ReactorSDK::Configuration readonly
- #data_elements ⇒ ReactorSDK::Endpoints::DataElements readonly
- #environments ⇒ ReactorSDK::Endpoints::Environments readonly
- #extension_package_usage_authorizations ⇒ ReactorSDK::Endpoints::ExtensionPackageUsageAuthorizations readonly
- #extension_packages ⇒ ReactorSDK::Endpoints::ExtensionPackages readonly
- #extensions ⇒ ReactorSDK::Endpoints::Extensions readonly
- #hosts ⇒ ReactorSDK::Endpoints::Hosts readonly
- #libraries ⇒ ReactorSDK::Endpoints::Libraries readonly
- #notes ⇒ ReactorSDK::Endpoints::Notes readonly
- #profiles ⇒ ReactorSDK::Endpoints::Profiles readonly
- #properties ⇒ ReactorSDK::Endpoints::Properties readonly
- #revisions ⇒ ReactorSDK::Endpoints::Revisions readonly
- #rule_components ⇒ ReactorSDK::Endpoints::RuleComponents readonly
- #rules ⇒ ReactorSDK::Endpoints::Rules readonly
- #search ⇒ ReactorSDK::Endpoints::Search readonly
- #secrets ⇒ ReactorSDK::Endpoints::Secrets readonly
Instance Method Summary collapse
-
#initialize(client_id:, client_secret:, org_id:, base_url: Configuration::DEFAULT_BASE_URL, ims_token_url: Authentication::IMS_TOKEN_URL, timeout: Configuration::DEFAULT_TIMEOUT, logger: nil, auto_refresh_token: true) ⇒ Client
constructor
Initializes the client and all infrastructure dependencies.
Constructor Details
#initialize(client_id:, client_secret:, org_id:, base_url: Configuration::DEFAULT_BASE_URL, ims_token_url: Authentication::IMS_TOKEN_URL, timeout: Configuration::DEFAULT_TIMEOUT, logger: nil, auto_refresh_token: true) ⇒ Client
Initializes the client and all infrastructure dependencies.
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/reactor_sdk/client.rb', line 130 def initialize( client_id:, client_secret:, org_id:, base_url: Configuration::DEFAULT_BASE_URL, ims_token_url: Authentication::IMS_TOKEN_URL, timeout: Configuration::DEFAULT_TIMEOUT, logger: nil, auto_refresh_token: true ) @config = Configuration.new( client_id: client_id, client_secret: client_secret, org_id: org_id, base_url: base_url, ims_token_url: ims_token_url, timeout: timeout, logger: logger, auto_refresh_token: auto_refresh_token ) build_infrastructure build_endpoints end |
Instance Attribute Details
#app_configurations ⇒ ReactorSDK::Endpoints::AppConfigurations (readonly)
59 60 61 |
# File 'lib/reactor_sdk/client.rb', line 59 def app_configurations @app_configurations end |
#audit_events ⇒ ReactorSDK::Endpoints::AuditEvents (readonly)
98 99 100 |
# File 'lib/reactor_sdk/client.rb', line 98 def audit_events @audit_events end |
#builds ⇒ ReactorSDK::Endpoints::Builds (readonly)
95 96 97 |
# File 'lib/reactor_sdk/client.rb', line 95 def builds @builds end |
#callbacks ⇒ ReactorSDK::Endpoints::Callbacks (readonly)
62 63 64 |
# File 'lib/reactor_sdk/client.rb', line 62 def callbacks @callbacks end |
#companies ⇒ ReactorSDK::Endpoints::Companies (readonly)
53 54 55 |
# File 'lib/reactor_sdk/client.rb', line 53 def companies @companies end |
#config ⇒ ReactorSDK::Configuration (readonly)
113 114 115 |
# File 'lib/reactor_sdk/client.rb', line 113 def config @config end |
#data_elements ⇒ ReactorSDK::Endpoints::DataElements (readonly)
80 81 82 |
# File 'lib/reactor_sdk/client.rb', line 80 def data_elements @data_elements end |
#environments ⇒ ReactorSDK::Endpoints::Environments (readonly)
68 69 70 |
# File 'lib/reactor_sdk/client.rb', line 68 def environments @environments end |
#extension_package_usage_authorizations ⇒ ReactorSDK::Endpoints::ExtensionPackageUsageAuthorizations (readonly)
89 90 91 |
# File 'lib/reactor_sdk/client.rb', line 89 def @extension_package_usage_authorizations end |
#extension_packages ⇒ ReactorSDK::Endpoints::ExtensionPackages (readonly)
86 87 88 |
# File 'lib/reactor_sdk/client.rb', line 86 def extension_packages @extension_packages end |
#extensions ⇒ ReactorSDK::Endpoints::Extensions (readonly)
83 84 85 |
# File 'lib/reactor_sdk/client.rb', line 83 def extensions @extensions end |
#hosts ⇒ ReactorSDK::Endpoints::Hosts (readonly)
71 72 73 |
# File 'lib/reactor_sdk/client.rb', line 71 def hosts @hosts end |
#libraries ⇒ ReactorSDK::Endpoints::Libraries (readonly)
92 93 94 |
# File 'lib/reactor_sdk/client.rb', line 92 def libraries @libraries end |
#notes ⇒ ReactorSDK::Endpoints::Notes (readonly)
110 111 112 |
# File 'lib/reactor_sdk/client.rb', line 110 def notes @notes end |
#profiles ⇒ ReactorSDK::Endpoints::Profiles (readonly)
104 105 106 |
# File 'lib/reactor_sdk/client.rb', line 104 def profiles @profiles end |
#properties ⇒ ReactorSDK::Endpoints::Properties (readonly)
56 57 58 |
# File 'lib/reactor_sdk/client.rb', line 56 def properties @properties end |
#revisions ⇒ ReactorSDK::Endpoints::Revisions (readonly)
101 102 103 |
# File 'lib/reactor_sdk/client.rb', line 101 def revisions @revisions end |
#rule_components ⇒ ReactorSDK::Endpoints::RuleComponents (readonly)
77 78 79 |
# File 'lib/reactor_sdk/client.rb', line 77 def rule_components @rule_components end |
#rules ⇒ ReactorSDK::Endpoints::Rules (readonly)
74 75 76 |
# File 'lib/reactor_sdk/client.rb', line 74 def rules @rules end |
#search ⇒ ReactorSDK::Endpoints::Search (readonly)
107 108 109 |
# File 'lib/reactor_sdk/client.rb', line 107 def search @search end |
#secrets ⇒ ReactorSDK::Endpoints::Secrets (readonly)
65 66 67 |
# File 'lib/reactor_sdk/client.rb', line 65 def secrets @secrets end |