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. -
#dependency_graph ⇒ DependencyGraphNamespace
readonly
client.dependency_graph. -
#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. -
#workflows ⇒ WorkflowsNamespace
readonly
client.workflows.
Instance Method Summary collapse
-
#initialize(**options) ⇒ APIV1Client
constructor
A new instance of APIV1Client.
Constructor Details
#initialize(**options) ⇒ APIV1Client
Returns a new instance of APIV1Client.
6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 |
# File 'lib/infrawrench/client.rb', line 6129 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) @dependency_graph = DependencyGraphNamespace.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) @workflows = WorkflowsNamespace.new(@transport) end |
Instance Attribute Details
#accounts ⇒ AccountsNamespace (readonly)
Returns client.accounts.
6050 6051 6052 |
# File 'lib/infrawrench/client.rb', line 6050 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
6052 6053 6054 |
# File 'lib/infrawrench/client.rb', line 6052 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
6054 6055 6056 |
# File 'lib/infrawrench/client.rb', line 6054 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
6056 6057 6058 |
# File 'lib/infrawrench/client.rb', line 6056 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
6058 6059 6060 |
# File 'lib/infrawrench/client.rb', line 6058 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
6060 6061 6062 |
# File 'lib/infrawrench/client.rb', line 6060 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
6062 6063 6064 |
# File 'lib/infrawrench/client.rb', line 6062 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
6064 6065 6066 |
# File 'lib/infrawrench/client.rb', line 6064 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
6066 6067 6068 |
# File 'lib/infrawrench/client.rb', line 6066 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
6068 6069 6070 |
# File 'lib/infrawrench/client.rb', line 6068 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
6070 6071 6072 |
# File 'lib/infrawrench/client.rb', line 6070 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
6072 6073 6074 |
# File 'lib/infrawrench/client.rb', line 6072 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
6074 6075 6076 |
# File 'lib/infrawrench/client.rb', line 6074 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
6076 6077 6078 |
# File 'lib/infrawrench/client.rb', line 6076 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
6078 6079 6080 |
# File 'lib/infrawrench/client.rb', line 6078 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
6080 6081 6082 |
# File 'lib/infrawrench/client.rb', line 6080 def dashboards @dashboards end |
#dependency_graph ⇒ DependencyGraphNamespace (readonly)
Returns client.dependency_graph.
6082 6083 6084 |
# File 'lib/infrawrench/client.rb', line 6082 def dependency_graph @dependency_graph end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
6084 6085 6086 |
# File 'lib/infrawrench/client.rb', line 6084 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
6086 6087 6088 |
# File 'lib/infrawrench/client.rb', line 6086 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
6088 6089 6090 |
# File 'lib/infrawrench/client.rb', line 6088 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
6090 6091 6092 |
# File 'lib/infrawrench/client.rb', line 6090 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
6092 6093 6094 |
# File 'lib/infrawrench/client.rb', line 6092 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
6094 6095 6096 |
# File 'lib/infrawrench/client.rb', line 6094 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
6096 6097 6098 |
# File 'lib/infrawrench/client.rb', line 6096 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
6098 6099 6100 |
# File 'lib/infrawrench/client.rb', line 6098 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
6100 6101 6102 |
# File 'lib/infrawrench/client.rb', line 6100 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
6102 6103 6104 |
# File 'lib/infrawrench/client.rb', line 6102 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
6104 6105 6106 |
# File 'lib/infrawrench/client.rb', line 6104 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
6106 6107 6108 |
# File 'lib/infrawrench/client.rb', line 6106 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
6108 6109 6110 |
# File 'lib/infrawrench/client.rb', line 6108 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
6110 6111 6112 |
# File 'lib/infrawrench/client.rb', line 6110 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
6112 6113 6114 |
# File 'lib/infrawrench/client.rb', line 6112 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
6114 6115 6116 |
# File 'lib/infrawrench/client.rb', line 6114 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
6116 6117 6118 |
# File 'lib/infrawrench/client.rb', line 6116 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
6118 6119 6120 |
# File 'lib/infrawrench/client.rb', line 6118 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
6120 6121 6122 |
# File 'lib/infrawrench/client.rb', line 6120 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
6048 6049 6050 |
# File 'lib/infrawrench/client.rb', line 6048 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
6122 6123 6124 |
# File 'lib/infrawrench/client.rb', line 6122 def workflow_approvals @workflow_approvals end |
#workflows ⇒ WorkflowsNamespace (readonly)
Returns client.workflows.
6124 6125 6126 |
# File 'lib/infrawrench/client.rb', line 6124 def workflows @workflows end |