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. -
#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.
Instance Method Summary collapse
-
#initialize(**options) ⇒ APIV1Client
constructor
A new instance of APIV1Client.
Constructor Details
#initialize(**options) ⇒ APIV1Client
Returns a new instance of APIV1Client.
5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 |
# File 'lib/infrawrench/client.rb', line 5269 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) @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) end |
Instance Attribute Details
#accounts ⇒ AccountsNamespace (readonly)
Returns client.accounts.
5202 5203 5204 |
# File 'lib/infrawrench/client.rb', line 5202 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
5204 5205 5206 |
# File 'lib/infrawrench/client.rb', line 5204 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
5206 5207 5208 |
# File 'lib/infrawrench/client.rb', line 5206 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
5208 5209 5210 |
# File 'lib/infrawrench/client.rb', line 5208 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
5210 5211 5212 |
# File 'lib/infrawrench/client.rb', line 5210 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
5212 5213 5214 |
# File 'lib/infrawrench/client.rb', line 5212 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
5214 5215 5216 |
# File 'lib/infrawrench/client.rb', line 5214 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
5216 5217 5218 |
# File 'lib/infrawrench/client.rb', line 5216 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
5218 5219 5220 |
# File 'lib/infrawrench/client.rb', line 5218 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
5220 5221 5222 |
# File 'lib/infrawrench/client.rb', line 5220 def budgets @budgets end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
5222 5223 5224 |
# File 'lib/infrawrench/client.rb', line 5222 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
5224 5225 5226 |
# File 'lib/infrawrench/client.rb', line 5224 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
5226 5227 5228 |
# File 'lib/infrawrench/client.rb', line 5226 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
5228 5229 5230 |
# File 'lib/infrawrench/client.rb', line 5228 def dashboards @dashboards end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
5230 5231 5232 |
# File 'lib/infrawrench/client.rb', line 5230 def deployments @deployments end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
5232 5233 5234 |
# File 'lib/infrawrench/client.rb', line 5232 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
5234 5235 5236 |
# File 'lib/infrawrench/client.rb', line 5234 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
5236 5237 5238 |
# File 'lib/infrawrench/client.rb', line 5236 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
5238 5239 5240 |
# File 'lib/infrawrench/client.rb', line 5238 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
5240 5241 5242 |
# File 'lib/infrawrench/client.rb', line 5240 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
5242 5243 5244 |
# File 'lib/infrawrench/client.rb', line 5242 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
5244 5245 5246 |
# File 'lib/infrawrench/client.rb', line 5244 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
5246 5247 5248 |
# File 'lib/infrawrench/client.rb', line 5246 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
5248 5249 5250 |
# File 'lib/infrawrench/client.rb', line 5248 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
5250 5251 5252 |
# File 'lib/infrawrench/client.rb', line 5250 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
5252 5253 5254 |
# File 'lib/infrawrench/client.rb', line 5252 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
5254 5255 5256 |
# File 'lib/infrawrench/client.rb', line 5254 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
5256 5257 5258 |
# File 'lib/infrawrench/client.rb', line 5256 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
5258 5259 5260 |
# File 'lib/infrawrench/client.rb', line 5258 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
5260 5261 5262 |
# File 'lib/infrawrench/client.rb', line 5260 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
5262 5263 5264 |
# File 'lib/infrawrench/client.rb', line 5262 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
5264 5265 5266 |
# File 'lib/infrawrench/client.rb', line 5264 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
5200 5201 5202 |
# File 'lib/infrawrench/client.rb', line 5200 def transport @transport end |