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. -
#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.
5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 |
# File 'lib/infrawrench/client.rb', line 5229 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) @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.
5164 5165 5166 |
# File 'lib/infrawrench/client.rb', line 5164 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
5166 5167 5168 |
# File 'lib/infrawrench/client.rb', line 5166 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
5168 5169 5170 |
# File 'lib/infrawrench/client.rb', line 5168 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
5170 5171 5172 |
# File 'lib/infrawrench/client.rb', line 5170 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
5172 5173 5174 |
# File 'lib/infrawrench/client.rb', line 5172 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
5174 5175 5176 |
# File 'lib/infrawrench/client.rb', line 5174 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
5176 5177 5178 |
# File 'lib/infrawrench/client.rb', line 5176 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
5178 5179 5180 |
# File 'lib/infrawrench/client.rb', line 5178 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
5180 5181 5182 |
# File 'lib/infrawrench/client.rb', line 5180 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
5182 5183 5184 |
# File 'lib/infrawrench/client.rb', line 5182 def budgets @budgets end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
5184 5185 5186 |
# File 'lib/infrawrench/client.rb', line 5184 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
5186 5187 5188 |
# File 'lib/infrawrench/client.rb', line 5186 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
5188 5189 5190 |
# File 'lib/infrawrench/client.rb', line 5188 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
5190 5191 5192 |
# File 'lib/infrawrench/client.rb', line 5190 def dashboards @dashboards end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
5192 5193 5194 |
# File 'lib/infrawrench/client.rb', line 5192 def deployments @deployments end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
5194 5195 5196 |
# File 'lib/infrawrench/client.rb', line 5194 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
5196 5197 5198 |
# File 'lib/infrawrench/client.rb', line 5196 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
5198 5199 5200 |
# File 'lib/infrawrench/client.rb', line 5198 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
5200 5201 5202 |
# File 'lib/infrawrench/client.rb', line 5200 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
5202 5203 5204 |
# File 'lib/infrawrench/client.rb', line 5202 def orgs @orgs end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
5204 5205 5206 |
# File 'lib/infrawrench/client.rb', line 5204 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
5206 5207 5208 |
# File 'lib/infrawrench/client.rb', line 5206 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
5208 5209 5210 |
# File 'lib/infrawrench/client.rb', line 5208 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
5210 5211 5212 |
# File 'lib/infrawrench/client.rb', line 5210 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
5212 5213 5214 |
# File 'lib/infrawrench/client.rb', line 5212 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
5214 5215 5216 |
# File 'lib/infrawrench/client.rb', line 5214 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
5216 5217 5218 |
# File 'lib/infrawrench/client.rb', line 5216 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
5218 5219 5220 |
# File 'lib/infrawrench/client.rb', line 5218 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
5220 5221 5222 |
# File 'lib/infrawrench/client.rb', line 5220 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
5222 5223 5224 |
# File 'lib/infrawrench/client.rb', line 5222 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
5224 5225 5226 |
# File 'lib/infrawrench/client.rb', line 5224 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
5162 5163 5164 |
# File 'lib/infrawrench/client.rb', line 5162 def transport @transport end |