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. -
#cost_centres ⇒ CostCentresNamespace
readonly
client.cost_centres. -
#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. -
#expiring ⇒ ExpiringNamespace
readonly
client.expiring. -
#invitations ⇒ InvitationsNamespace
readonly
client.invitations. -
#kv ⇒ KvNamespace
readonly
client.kv. -
#log_workspaces ⇒ LogWorkspacesNamespace
readonly
client.log_workspaces. -
#metric_alerts ⇒ MetricAlertsNamespace
readonly
client.metric_alerts. -
#moment ⇒ MomentNamespace
readonly
client.moment. -
#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. -
#rightsizing ⇒ RightsizingNamespace
readonly
client.rightsizing. -
#schedules ⇒ SchedulesNamespace
readonly
client.schedules. -
#search ⇒ SearchNamespace
readonly
client.search. -
#sftp ⇒ SftpNamespace
readonly
client.sftp. -
#slack ⇒ SlackNamespace
readonly
client.slack. -
#sql ⇒ SqlNamespace
readonly
client.sql. -
#ssh_fanout ⇒ SshFanoutNamespace
readonly
client.ssh_fanout. -
#ssh_keys ⇒ SshKeysNamespace
readonly
client.ssh_keys. -
#ssh_tunnels ⇒ SshTunnelsNamespace
readonly
client.ssh_tunnels. -
#status_incidents ⇒ StatusIncidentsNamespace
readonly
client.status_incidents. -
#storage ⇒ StorageNamespace
readonly
client.storage. -
#tag_policy ⇒ TagPolicyNamespace
readonly
client.tag_policy. -
#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.
7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 |
# File 'lib/infrawrench/client.rb', line 7623 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) @cost_centres = CostCentresNamespace.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) @expiring = ExpiringNamespace.new(@transport) @invitations = InvitationsNamespace.new(@transport) @kv = KvNamespace.new(@transport) @log_workspaces = LogWorkspacesNamespace.new(@transport) @metric_alerts = MetricAlertsNamespace.new(@transport) @moment = MomentNamespace.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) @rightsizing = RightsizingNamespace.new(@transport) @schedules = SchedulesNamespace.new(@transport) @search = SearchNamespace.new(@transport) @sftp = SftpNamespace.new(@transport) @slack = SlackNamespace.new(@transport) @sql = SqlNamespace.new(@transport) @ssh_fanout = SshFanoutNamespace.new(@transport) @ssh_keys = SshKeysNamespace.new(@transport) @ssh_tunnels = SshTunnelsNamespace.new(@transport) @status_incidents = StatusIncidentsNamespace.new(@transport) @storage = StorageNamespace.new(@transport) @tag_policy = TagPolicyNamespace.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.
7524 7525 7526 |
# File 'lib/infrawrench/client.rb', line 7524 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
7526 7527 7528 |
# File 'lib/infrawrench/client.rb', line 7526 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
7528 7529 7530 |
# File 'lib/infrawrench/client.rb', line 7528 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
7530 7531 7532 |
# File 'lib/infrawrench/client.rb', line 7530 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
7532 7533 7534 |
# File 'lib/infrawrench/client.rb', line 7532 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
7534 7535 7536 |
# File 'lib/infrawrench/client.rb', line 7534 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
7536 7537 7538 |
# File 'lib/infrawrench/client.rb', line 7536 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
7538 7539 7540 |
# File 'lib/infrawrench/client.rb', line 7538 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
7540 7541 7542 |
# File 'lib/infrawrench/client.rb', line 7540 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
7542 7543 7544 |
# File 'lib/infrawrench/client.rb', line 7542 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
7544 7545 7546 |
# File 'lib/infrawrench/client.rb', line 7544 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
7546 7547 7548 |
# File 'lib/infrawrench/client.rb', line 7546 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
7548 7549 7550 |
# File 'lib/infrawrench/client.rb', line 7548 def connect @connect end |
#cost_centres ⇒ CostCentresNamespace (readonly)
Returns client.cost_centres.
7550 7551 7552 |
# File 'lib/infrawrench/client.rb', line 7550 def cost_centres @cost_centres end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
7552 7553 7554 |
# File 'lib/infrawrench/client.rb', line 7552 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
7554 7555 7556 |
# File 'lib/infrawrench/client.rb', line 7554 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
7556 7557 7558 |
# File 'lib/infrawrench/client.rb', line 7556 def dashboards @dashboards end |
#dependency_graph ⇒ DependencyGraphNamespace (readonly)
Returns client.dependency_graph.
7558 7559 7560 |
# File 'lib/infrawrench/client.rb', line 7558 def dependency_graph @dependency_graph end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
7560 7561 7562 |
# File 'lib/infrawrench/client.rb', line 7560 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
7562 7563 7564 |
# File 'lib/infrawrench/client.rb', line 7562 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
7564 7565 7566 |
# File 'lib/infrawrench/client.rb', line 7564 def docker @docker end |
#expiring ⇒ ExpiringNamespace (readonly)
Returns client.expiring.
7566 7567 7568 |
# File 'lib/infrawrench/client.rb', line 7566 def expiring @expiring end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
7568 7569 7570 |
# File 'lib/infrawrench/client.rb', line 7568 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
7570 7571 7572 |
# File 'lib/infrawrench/client.rb', line 7570 def kv @kv end |
#log_workspaces ⇒ LogWorkspacesNamespace (readonly)
Returns client.log_workspaces.
7572 7573 7574 |
# File 'lib/infrawrench/client.rb', line 7572 def log_workspaces @log_workspaces end |
#metric_alerts ⇒ MetricAlertsNamespace (readonly)
Returns client.metric_alerts.
7574 7575 7576 |
# File 'lib/infrawrench/client.rb', line 7574 def metric_alerts @metric_alerts end |
#moment ⇒ MomentNamespace (readonly)
Returns client.moment.
7576 7577 7578 |
# File 'lib/infrawrench/client.rb', line 7576 def moment @moment end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
7578 7579 7580 |
# File 'lib/infrawrench/client.rb', line 7578 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
7580 7581 7582 |
# File 'lib/infrawrench/client.rb', line 7580 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
7582 7583 7584 |
# File 'lib/infrawrench/client.rb', line 7582 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
7584 7585 7586 |
# File 'lib/infrawrench/client.rb', line 7584 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
7586 7587 7588 |
# File 'lib/infrawrench/client.rb', line 7586 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
7588 7589 7590 |
# File 'lib/infrawrench/client.rb', line 7588 def resources @resources end |
#rightsizing ⇒ RightsizingNamespace (readonly)
Returns client.rightsizing.
7590 7591 7592 |
# File 'lib/infrawrench/client.rb', line 7590 def rightsizing @rightsizing end |
#schedules ⇒ SchedulesNamespace (readonly)
Returns client.schedules.
7592 7593 7594 |
# File 'lib/infrawrench/client.rb', line 7592 def schedules @schedules end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
7594 7595 7596 |
# File 'lib/infrawrench/client.rb', line 7594 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
7596 7597 7598 |
# File 'lib/infrawrench/client.rb', line 7596 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
7598 7599 7600 |
# File 'lib/infrawrench/client.rb', line 7598 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
7600 7601 7602 |
# File 'lib/infrawrench/client.rb', line 7600 def sql @sql end |
#ssh_fanout ⇒ SshFanoutNamespace (readonly)
Returns client.ssh_fanout.
7602 7603 7604 |
# File 'lib/infrawrench/client.rb', line 7602 def ssh_fanout @ssh_fanout end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
7604 7605 7606 |
# File 'lib/infrawrench/client.rb', line 7604 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
7606 7607 7608 |
# File 'lib/infrawrench/client.rb', line 7606 def ssh_tunnels @ssh_tunnels end |
#status_incidents ⇒ StatusIncidentsNamespace (readonly)
Returns client.status_incidents.
7608 7609 7610 |
# File 'lib/infrawrench/client.rb', line 7608 def status_incidents @status_incidents end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
7610 7611 7612 |
# File 'lib/infrawrench/client.rb', line 7610 def storage @storage end |
#tag_policy ⇒ TagPolicyNamespace (readonly)
Returns client.tag_policy.
7612 7613 7614 |
# File 'lib/infrawrench/client.rb', line 7612 def tag_policy @tag_policy end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
7614 7615 7616 |
# File 'lib/infrawrench/client.rb', line 7614 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
7522 7523 7524 |
# File 'lib/infrawrench/client.rb', line 7522 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
7616 7617 7618 |
# File 'lib/infrawrench/client.rb', line 7616 def workflow_approvals @workflow_approvals end |
#workflows ⇒ WorkflowsNamespace (readonly)
Returns client.workflows.
7618 7619 7620 |
# File 'lib/infrawrench/client.rb', line 7618 def workflows @workflows end |