Class: Infrawrench::APIV1Client
- Inherits:
-
Object
- Object
- Infrawrench::APIV1Client
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
A client for the Infrawrench API.
client = Infrawrench::APIV1Client.new(
api_key: ENV.fetch("INFRAWRENCH_API_KEY"),
org_id: ENV.fetch("INFRAWRENCH_ORG_ID")
)
client.accounts
Instance Attribute Summary collapse
-
#accounts ⇒ AccountsNamespace
readonly
client.accounts. -
#agents ⇒ AgentsNamespace
readonly
client.agents. -
#api_keys ⇒ ApiKeysNamespace
readonly
client.api_keys. -
#artifacts ⇒ ArtifactsNamespace
readonly
client.artifacts. -
#associations ⇒ AssociationsNamespace
readonly
client.associations. -
#audit_logs ⇒ AuditLogsNamespace
readonly
client.audit_logs. -
#auth ⇒ AuthNamespace
readonly
client.auth. -
#bastions ⇒ BastionsNamespace
readonly
client.bastions. -
#billing ⇒ BillingNamespace
readonly
client.billing. -
#budgets ⇒ BudgetsNamespace
readonly
client.budgets. -
#connect ⇒ ConnectNamespace
readonly
client.connect. -
#costs ⇒ CostsNamespace
readonly
client.costs. -
#dashboards ⇒ DashboardsNamespace
readonly
client.dashboards. -
#docker ⇒ DockerNamespace
readonly
client.docker. -
#invitations ⇒ InvitationsNamespace
readonly
client.invitations. -
#kv ⇒ KvNamespace
readonly
client.kv. -
#msteams ⇒ MsteamsNamespace
readonly
client.msteams. -
#orgs ⇒ OrgsNamespace
readonly
client.orgs. -
#pages ⇒ PagesNamespace
readonly
client.pages. -
#profile ⇒ ProfileNamespace
readonly
client.profile. -
#resources ⇒ ResourcesNamespace
readonly
client.resources. -
#search ⇒ SearchNamespace
readonly
client.search. -
#sftp ⇒ SftpNamespace
readonly
client.sftp. -
#slack ⇒ SlackNamespace
readonly
client.slack. -
#sql ⇒ SqlNamespace
readonly
client.sql. -
#ssh_keys ⇒ SshKeysNamespace
readonly
client.ssh_keys. -
#ssh_tunnels ⇒ SshTunnelsNamespace
readonly
client.ssh_tunnels. -
#storage ⇒ StorageNamespace
readonly
client.storage. -
#team ⇒ TeamNamespace
readonly
client.team. -
#transport ⇒ Transport
readonly
Shared request plumbing.
Instance Method Summary collapse
-
#initialize(**options) ⇒ APIV1Client
constructor
A new instance of APIV1Client.
Constructor Details
#initialize(**options) ⇒ APIV1Client
Returns a new instance of APIV1Client.
4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 |
# File 'lib/infrawrench/client.rb', line 4628 def initialize(**) @transport = Transport.new(**) @accounts = AccountsNamespace.new(@transport) @agents = AgentsNamespace.new(@transport) @api_keys = ApiKeysNamespace.new(@transport) @artifacts = ArtifactsNamespace.new(@transport) @associations = AssociationsNamespace.new(@transport) @audit_logs = AuditLogsNamespace.new(@transport) @auth = AuthNamespace.new(@transport) @bastions = BastionsNamespace.new(@transport) @billing = BillingNamespace.new(@transport) @budgets = BudgetsNamespace.new(@transport) @connect = ConnectNamespace.new(@transport) @costs = CostsNamespace.new(@transport) @dashboards = DashboardsNamespace.new(@transport) @docker = DockerNamespace.new(@transport) @invitations = InvitationsNamespace.new(@transport) @kv = KvNamespace.new(@transport) @msteams = MsteamsNamespace.new(@transport) @orgs = OrgsNamespace.new(@transport) @pages = PagesNamespace.new(@transport) @profile = ProfileNamespace.new(@transport) @resources = ResourcesNamespace.new(@transport) @search = SearchNamespace.new(@transport) @sftp = SftpNamespace.new(@transport) @slack = SlackNamespace.new(@transport) @sql = SqlNamespace.new(@transport) @ssh_keys = SshKeysNamespace.new(@transport) @ssh_tunnels = SshTunnelsNamespace.new(@transport) @storage = StorageNamespace.new(@transport) @team = TeamNamespace.new(@transport) end |
Instance Attribute Details
#accounts ⇒ AccountsNamespace (readonly)
Returns client.accounts.
4567 4568 4569 |
# File 'lib/infrawrench/client.rb', line 4567 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
4569 4570 4571 |
# File 'lib/infrawrench/client.rb', line 4569 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
4571 4572 4573 |
# File 'lib/infrawrench/client.rb', line 4571 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
4573 4574 4575 |
# File 'lib/infrawrench/client.rb', line 4573 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
4575 4576 4577 |
# File 'lib/infrawrench/client.rb', line 4575 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
4577 4578 4579 |
# File 'lib/infrawrench/client.rb', line 4577 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
4579 4580 4581 |
# File 'lib/infrawrench/client.rb', line 4579 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
4581 4582 4583 |
# File 'lib/infrawrench/client.rb', line 4581 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
4583 4584 4585 |
# File 'lib/infrawrench/client.rb', line 4583 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
4585 4586 4587 |
# File 'lib/infrawrench/client.rb', line 4585 def budgets @budgets end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
4587 4588 4589 |
# File 'lib/infrawrench/client.rb', line 4587 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
4589 4590 4591 |
# File 'lib/infrawrench/client.rb', line 4589 def costs @costs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
4591 4592 4593 |
# File 'lib/infrawrench/client.rb', line 4591 def dashboards @dashboards end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
4593 4594 4595 |
# File 'lib/infrawrench/client.rb', line 4593 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
4595 4596 4597 |
# File 'lib/infrawrench/client.rb', line 4595 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
4597 4598 4599 |
# File 'lib/infrawrench/client.rb', line 4597 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
4599 4600 4601 |
# File 'lib/infrawrench/client.rb', line 4599 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
4601 4602 4603 |
# File 'lib/infrawrench/client.rb', line 4601 def orgs @orgs end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
4603 4604 4605 |
# File 'lib/infrawrench/client.rb', line 4603 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
4605 4606 4607 |
# File 'lib/infrawrench/client.rb', line 4605 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
4607 4608 4609 |
# File 'lib/infrawrench/client.rb', line 4607 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
4609 4610 4611 |
# File 'lib/infrawrench/client.rb', line 4609 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
4611 4612 4613 |
# File 'lib/infrawrench/client.rb', line 4611 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
4613 4614 4615 |
# File 'lib/infrawrench/client.rb', line 4613 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
4615 4616 4617 |
# File 'lib/infrawrench/client.rb', line 4615 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
4617 4618 4619 |
# File 'lib/infrawrench/client.rb', line 4617 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
4619 4620 4621 |
# File 'lib/infrawrench/client.rb', line 4619 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
4621 4622 4623 |
# File 'lib/infrawrench/client.rb', line 4621 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
4623 4624 4625 |
# File 'lib/infrawrench/client.rb', line 4623 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
4565 4566 4567 |
# File 'lib/infrawrench/client.rb', line 4565 def transport @transport end |