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. -
#change_freezes ⇒ ChangeFreezesNamespace
readonly
client.change_freezes. -
#changes ⇒ ChangesNamespace
readonly
client.changes. -
#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.
5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 |
# File 'lib/infrawrench/client.rb', line 5722 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) @change_freezes = ChangeFreezesNamespace.new(@transport) @changes = ChangesNamespace.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.
5647 5648 5649 |
# File 'lib/infrawrench/client.rb', line 5647 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
5649 5650 5651 |
# File 'lib/infrawrench/client.rb', line 5649 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
5651 5652 5653 |
# File 'lib/infrawrench/client.rb', line 5651 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
5653 5654 5655 |
# File 'lib/infrawrench/client.rb', line 5653 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
5655 5656 5657 |
# File 'lib/infrawrench/client.rb', line 5655 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
5657 5658 5659 |
# File 'lib/infrawrench/client.rb', line 5657 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
5659 5660 5661 |
# File 'lib/infrawrench/client.rb', line 5659 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
5661 5662 5663 |
# File 'lib/infrawrench/client.rb', line 5661 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
5663 5664 5665 |
# File 'lib/infrawrench/client.rb', line 5663 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
5665 5666 5667 |
# File 'lib/infrawrench/client.rb', line 5665 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
5667 5668 5669 |
# File 'lib/infrawrench/client.rb', line 5667 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
5669 5670 5671 |
# File 'lib/infrawrench/client.rb', line 5669 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
5671 5672 5673 |
# File 'lib/infrawrench/client.rb', line 5671 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
5673 5674 5675 |
# File 'lib/infrawrench/client.rb', line 5673 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
5675 5676 5677 |
# File 'lib/infrawrench/client.rb', line 5675 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
5677 5678 5679 |
# File 'lib/infrawrench/client.rb', line 5677 def dashboards @dashboards end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
5679 5680 5681 |
# File 'lib/infrawrench/client.rb', line 5679 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
5681 5682 5683 |
# File 'lib/infrawrench/client.rb', line 5681 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
5683 5684 5685 |
# File 'lib/infrawrench/client.rb', line 5683 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
5685 5686 5687 |
# File 'lib/infrawrench/client.rb', line 5685 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
5687 5688 5689 |
# File 'lib/infrawrench/client.rb', line 5687 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
5689 5690 5691 |
# File 'lib/infrawrench/client.rb', line 5689 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
5691 5692 5693 |
# File 'lib/infrawrench/client.rb', line 5691 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
5693 5694 5695 |
# File 'lib/infrawrench/client.rb', line 5693 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
5695 5696 5697 |
# File 'lib/infrawrench/client.rb', line 5695 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
5697 5698 5699 |
# File 'lib/infrawrench/client.rb', line 5697 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
5699 5700 5701 |
# File 'lib/infrawrench/client.rb', line 5699 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
5701 5702 5703 |
# File 'lib/infrawrench/client.rb', line 5701 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
5703 5704 5705 |
# File 'lib/infrawrench/client.rb', line 5703 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
5705 5706 5707 |
# File 'lib/infrawrench/client.rb', line 5705 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
5707 5708 5709 |
# File 'lib/infrawrench/client.rb', line 5707 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
5709 5710 5711 |
# File 'lib/infrawrench/client.rb', line 5709 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
5711 5712 5713 |
# File 'lib/infrawrench/client.rb', line 5711 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
5713 5714 5715 |
# File 'lib/infrawrench/client.rb', line 5713 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
5715 5716 5717 |
# File 'lib/infrawrench/client.rb', line 5715 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
5645 5646 5647 |
# File 'lib/infrawrench/client.rb', line 5645 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
5717 5718 5719 |
# File 'lib/infrawrench/client.rb', line 5717 def workflow_approvals @workflow_approvals end |