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. -
#custom_graphs ⇒ CustomGraphsNamespace
readonly
client.custom_graphs. -
#dashboards ⇒ DashboardsNamespace
readonly
client.dashboards. -
#deployments ⇒ DeploymentsNamespace
readonly
client.deployments. -
#digest ⇒ DigestNamespace
readonly
client.digest. -
#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. -
#orphans ⇒ OrphansNamespace
readonly
client.orphans. -
#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.
-
#workflow_approvals ⇒ WorkflowApprovalsNamespace
readonly
client.workflow_approvals.
Instance Method Summary collapse
-
#initialize(**options) ⇒ APIV1Client
constructor
A new instance of APIV1Client.
Constructor Details
#initialize(**options) ⇒ APIV1Client
Returns a new instance of APIV1Client.
5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 |
# File 'lib/infrawrench/client.rb', line 5448 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) @custom_graphs = CustomGraphsNamespace.new(@transport) @dashboards = DashboardsNamespace.new(@transport) @deployments = DeploymentsNamespace.new(@transport) @digest = DigestNamespace.new(@transport) @docker = DockerNamespace.new(@transport) @invitations = InvitationsNamespace.new(@transport) @kv = KvNamespace.new(@transport) @msteams = MsteamsNamespace.new(@transport) @orgs = OrgsNamespace.new(@transport) @orphans = OrphansNamespace.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) @workflow_approvals = WorkflowApprovalsNamespace.new(@transport) end |
Instance Attribute Details
#accounts ⇒ AccountsNamespace (readonly)
Returns client.accounts.
5377 5378 5379 |
# File 'lib/infrawrench/client.rb', line 5377 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
5379 5380 5381 |
# File 'lib/infrawrench/client.rb', line 5379 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
5381 5382 5383 |
# File 'lib/infrawrench/client.rb', line 5381 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
5383 5384 5385 |
# File 'lib/infrawrench/client.rb', line 5383 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
5385 5386 5387 |
# File 'lib/infrawrench/client.rb', line 5385 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
5387 5388 5389 |
# File 'lib/infrawrench/client.rb', line 5387 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
5389 5390 5391 |
# File 'lib/infrawrench/client.rb', line 5389 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
5391 5392 5393 |
# File 'lib/infrawrench/client.rb', line 5391 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
5393 5394 5395 |
# File 'lib/infrawrench/client.rb', line 5393 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
5395 5396 5397 |
# File 'lib/infrawrench/client.rb', line 5395 def budgets @budgets end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
5397 5398 5399 |
# File 'lib/infrawrench/client.rb', line 5397 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
5399 5400 5401 |
# File 'lib/infrawrench/client.rb', line 5399 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
5401 5402 5403 |
# File 'lib/infrawrench/client.rb', line 5401 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
5403 5404 5405 |
# File 'lib/infrawrench/client.rb', line 5403 def dashboards @dashboards end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
5405 5406 5407 |
# File 'lib/infrawrench/client.rb', line 5405 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
5407 5408 5409 |
# File 'lib/infrawrench/client.rb', line 5407 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
5409 5410 5411 |
# File 'lib/infrawrench/client.rb', line 5409 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
5411 5412 5413 |
# File 'lib/infrawrench/client.rb', line 5411 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
5413 5414 5415 |
# File 'lib/infrawrench/client.rb', line 5413 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
5415 5416 5417 |
# File 'lib/infrawrench/client.rb', line 5415 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
5417 5418 5419 |
# File 'lib/infrawrench/client.rb', line 5417 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
5419 5420 5421 |
# File 'lib/infrawrench/client.rb', line 5419 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
5421 5422 5423 |
# File 'lib/infrawrench/client.rb', line 5421 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
5423 5424 5425 |
# File 'lib/infrawrench/client.rb', line 5423 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
5425 5426 5427 |
# File 'lib/infrawrench/client.rb', line 5425 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
5427 5428 5429 |
# File 'lib/infrawrench/client.rb', line 5427 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
5429 5430 5431 |
# File 'lib/infrawrench/client.rb', line 5429 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
5431 5432 5433 |
# File 'lib/infrawrench/client.rb', line 5431 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
5433 5434 5435 |
# File 'lib/infrawrench/client.rb', line 5433 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
5435 5436 5437 |
# File 'lib/infrawrench/client.rb', line 5435 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
5437 5438 5439 |
# File 'lib/infrawrench/client.rb', line 5437 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
5439 5440 5441 |
# File 'lib/infrawrench/client.rb', line 5439 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
5441 5442 5443 |
# File 'lib/infrawrench/client.rb', line 5441 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
5375 5376 5377 |
# File 'lib/infrawrench/client.rb', line 5375 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
5443 5444 5445 |
# File 'lib/infrawrench/client.rb', line 5443 def workflow_approvals @workflow_approvals end |