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.
4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 |
# File 'lib/infrawrench/client.rb', line 4577 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.
4516 4517 4518 |
# File 'lib/infrawrench/client.rb', line 4516 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
4518 4519 4520 |
# File 'lib/infrawrench/client.rb', line 4518 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
4520 4521 4522 |
# File 'lib/infrawrench/client.rb', line 4520 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
4522 4523 4524 |
# File 'lib/infrawrench/client.rb', line 4522 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
4524 4525 4526 |
# File 'lib/infrawrench/client.rb', line 4524 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
4526 4527 4528 |
# File 'lib/infrawrench/client.rb', line 4526 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
4528 4529 4530 |
# File 'lib/infrawrench/client.rb', line 4528 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
4530 4531 4532 |
# File 'lib/infrawrench/client.rb', line 4530 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
4532 4533 4534 |
# File 'lib/infrawrench/client.rb', line 4532 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
4534 4535 4536 |
# File 'lib/infrawrench/client.rb', line 4534 def budgets @budgets end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
4536 4537 4538 |
# File 'lib/infrawrench/client.rb', line 4536 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
4538 4539 4540 |
# File 'lib/infrawrench/client.rb', line 4538 def costs @costs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
4540 4541 4542 |
# File 'lib/infrawrench/client.rb', line 4540 def dashboards @dashboards end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
4542 4543 4544 |
# File 'lib/infrawrench/client.rb', line 4542 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
4544 4545 4546 |
# File 'lib/infrawrench/client.rb', line 4544 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
4546 4547 4548 |
# File 'lib/infrawrench/client.rb', line 4546 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
4548 4549 4550 |
# File 'lib/infrawrench/client.rb', line 4548 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
4550 4551 4552 |
# File 'lib/infrawrench/client.rb', line 4550 def orgs @orgs end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
4552 4553 4554 |
# File 'lib/infrawrench/client.rb', line 4552 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
4554 4555 4556 |
# File 'lib/infrawrench/client.rb', line 4554 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
4556 4557 4558 |
# File 'lib/infrawrench/client.rb', line 4556 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
4558 4559 4560 |
# File 'lib/infrawrench/client.rb', line 4558 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
4560 4561 4562 |
# File 'lib/infrawrench/client.rb', line 4560 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
4562 4563 4564 |
# File 'lib/infrawrench/client.rb', line 4562 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
4564 4565 4566 |
# File 'lib/infrawrench/client.rb', line 4564 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
4566 4567 4568 |
# File 'lib/infrawrench/client.rb', line 4566 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
4568 4569 4570 |
# File 'lib/infrawrench/client.rb', line 4568 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
4570 4571 4572 |
# File 'lib/infrawrench/client.rb', line 4570 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
4572 4573 4574 |
# File 'lib/infrawrench/client.rb', line 4572 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
4514 4515 4516 |
# File 'lib/infrawrench/client.rb', line 4514 def transport @transport end |