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. -
#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.
4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 |
# File 'lib/infrawrench/client.rb', line 4307 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) @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.
4250 4251 4252 |
# File 'lib/infrawrench/client.rb', line 4250 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
4252 4253 4254 |
# File 'lib/infrawrench/client.rb', line 4252 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
4254 4255 4256 |
# File 'lib/infrawrench/client.rb', line 4254 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
4256 4257 4258 |
# File 'lib/infrawrench/client.rb', line 4256 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
4258 4259 4260 |
# File 'lib/infrawrench/client.rb', line 4258 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
4260 4261 4262 |
# File 'lib/infrawrench/client.rb', line 4260 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
4262 4263 4264 |
# File 'lib/infrawrench/client.rb', line 4262 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
4264 4265 4266 |
# File 'lib/infrawrench/client.rb', line 4264 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
4266 4267 4268 |
# File 'lib/infrawrench/client.rb', line 4266 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
4268 4269 4270 |
# File 'lib/infrawrench/client.rb', line 4268 def budgets @budgets end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
4270 4271 4272 |
# File 'lib/infrawrench/client.rb', line 4270 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
4272 4273 4274 |
# File 'lib/infrawrench/client.rb', line 4272 def costs @costs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
4274 4275 4276 |
# File 'lib/infrawrench/client.rb', line 4274 def dashboards @dashboards end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
4276 4277 4278 |
# File 'lib/infrawrench/client.rb', line 4276 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
4278 4279 4280 |
# File 'lib/infrawrench/client.rb', line 4278 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
4280 4281 4282 |
# File 'lib/infrawrench/client.rb', line 4280 def kv @kv end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
4282 4283 4284 |
# File 'lib/infrawrench/client.rb', line 4282 def orgs @orgs end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
4284 4285 4286 |
# File 'lib/infrawrench/client.rb', line 4284 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
4286 4287 4288 |
# File 'lib/infrawrench/client.rb', line 4286 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
4288 4289 4290 |
# File 'lib/infrawrench/client.rb', line 4288 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
4290 4291 4292 |
# File 'lib/infrawrench/client.rb', line 4290 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
4292 4293 4294 |
# File 'lib/infrawrench/client.rb', line 4292 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
4294 4295 4296 |
# File 'lib/infrawrench/client.rb', line 4294 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
4296 4297 4298 |
# File 'lib/infrawrench/client.rb', line 4296 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
4298 4299 4300 |
# File 'lib/infrawrench/client.rb', line 4298 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
4300 4301 4302 |
# File 'lib/infrawrench/client.rb', line 4300 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
4302 4303 4304 |
# File 'lib/infrawrench/client.rb', line 4302 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
4248 4249 4250 |
# File 'lib/infrawrench/client.rb', line 4248 def transport @transport end |