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. -
#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.
4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 |
# File 'lib/infrawrench/client.rb', line 4451 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) @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.
4392 4393 4394 |
# File 'lib/infrawrench/client.rb', line 4392 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
4394 4395 4396 |
# File 'lib/infrawrench/client.rb', line 4394 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
4396 4397 4398 |
# File 'lib/infrawrench/client.rb', line 4396 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
4398 4399 4400 |
# File 'lib/infrawrench/client.rb', line 4398 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
4400 4401 4402 |
# File 'lib/infrawrench/client.rb', line 4400 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
4402 4403 4404 |
# File 'lib/infrawrench/client.rb', line 4402 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
4404 4405 4406 |
# File 'lib/infrawrench/client.rb', line 4404 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
4406 4407 4408 |
# File 'lib/infrawrench/client.rb', line 4406 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
4408 4409 4410 |
# File 'lib/infrawrench/client.rb', line 4408 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
4410 4411 4412 |
# File 'lib/infrawrench/client.rb', line 4410 def budgets @budgets end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
4412 4413 4414 |
# File 'lib/infrawrench/client.rb', line 4412 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
4414 4415 4416 |
# File 'lib/infrawrench/client.rb', line 4414 def costs @costs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
4416 4417 4418 |
# File 'lib/infrawrench/client.rb', line 4416 def dashboards @dashboards end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
4418 4419 4420 |
# File 'lib/infrawrench/client.rb', line 4418 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
4420 4421 4422 |
# File 'lib/infrawrench/client.rb', line 4420 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
4422 4423 4424 |
# File 'lib/infrawrench/client.rb', line 4422 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
4424 4425 4426 |
# File 'lib/infrawrench/client.rb', line 4424 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
4426 4427 4428 |
# File 'lib/infrawrench/client.rb', line 4426 def orgs @orgs end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
4428 4429 4430 |
# File 'lib/infrawrench/client.rb', line 4428 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
4430 4431 4432 |
# File 'lib/infrawrench/client.rb', line 4430 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
4432 4433 4434 |
# File 'lib/infrawrench/client.rb', line 4432 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
4434 4435 4436 |
# File 'lib/infrawrench/client.rb', line 4434 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
4436 4437 4438 |
# File 'lib/infrawrench/client.rb', line 4436 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
4438 4439 4440 |
# File 'lib/infrawrench/client.rb', line 4438 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
4440 4441 4442 |
# File 'lib/infrawrench/client.rb', line 4440 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
4442 4443 4444 |
# File 'lib/infrawrench/client.rb', line 4442 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
4444 4445 4446 |
# File 'lib/infrawrench/client.rb', line 4444 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
4446 4447 4448 |
# File 'lib/infrawrench/client.rb', line 4446 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
4390 4391 4392 |
# File 'lib/infrawrench/client.rb', line 4390 def transport @transport end |