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.
7620 7621 7622 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 |
# File 'lib/infrawrench/client.rb', line 7620 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.
7521 7522 7523 |
# File 'lib/infrawrench/client.rb', line 7521 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
7523 7524 7525 |
# File 'lib/infrawrench/client.rb', line 7523 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
7525 7526 7527 |
# File 'lib/infrawrench/client.rb', line 7525 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
7527 7528 7529 |
# File 'lib/infrawrench/client.rb', line 7527 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
7529 7530 7531 |
# File 'lib/infrawrench/client.rb', line 7529 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
7531 7532 7533 |
# File 'lib/infrawrench/client.rb', line 7531 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
7533 7534 7535 |
# File 'lib/infrawrench/client.rb', line 7533 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
7535 7536 7537 |
# File 'lib/infrawrench/client.rb', line 7535 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
7537 7538 7539 |
# File 'lib/infrawrench/client.rb', line 7537 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
7539 7540 7541 |
# File 'lib/infrawrench/client.rb', line 7539 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
7541 7542 7543 |
# File 'lib/infrawrench/client.rb', line 7541 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
7543 7544 7545 |
# File 'lib/infrawrench/client.rb', line 7543 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
7545 7546 7547 |
# File 'lib/infrawrench/client.rb', line 7545 def connect @connect end |
#cost_centres ⇒ CostCentresNamespace (readonly)
Returns client.cost_centres.
7547 7548 7549 |
# File 'lib/infrawrench/client.rb', line 7547 def cost_centres @cost_centres end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
7549 7550 7551 |
# File 'lib/infrawrench/client.rb', line 7549 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
7551 7552 7553 |
# File 'lib/infrawrench/client.rb', line 7551 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
7553 7554 7555 |
# File 'lib/infrawrench/client.rb', line 7553 def dashboards @dashboards end |
#dependency_graph ⇒ DependencyGraphNamespace (readonly)
Returns client.dependency_graph.
7555 7556 7557 |
# File 'lib/infrawrench/client.rb', line 7555 def dependency_graph @dependency_graph end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
7557 7558 7559 |
# File 'lib/infrawrench/client.rb', line 7557 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
7559 7560 7561 |
# File 'lib/infrawrench/client.rb', line 7559 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
7561 7562 7563 |
# File 'lib/infrawrench/client.rb', line 7561 def docker @docker end |
#expiring ⇒ ExpiringNamespace (readonly)
Returns client.expiring.
7563 7564 7565 |
# File 'lib/infrawrench/client.rb', line 7563 def expiring @expiring end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
7565 7566 7567 |
# File 'lib/infrawrench/client.rb', line 7565 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
7567 7568 7569 |
# File 'lib/infrawrench/client.rb', line 7567 def kv @kv end |
#log_workspaces ⇒ LogWorkspacesNamespace (readonly)
Returns client.log_workspaces.
7569 7570 7571 |
# File 'lib/infrawrench/client.rb', line 7569 def log_workspaces @log_workspaces end |
#metric_alerts ⇒ MetricAlertsNamespace (readonly)
Returns client.metric_alerts.
7571 7572 7573 |
# File 'lib/infrawrench/client.rb', line 7571 def metric_alerts @metric_alerts end |
#moment ⇒ MomentNamespace (readonly)
Returns client.moment.
7573 7574 7575 |
# File 'lib/infrawrench/client.rb', line 7573 def moment @moment end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
7575 7576 7577 |
# File 'lib/infrawrench/client.rb', line 7575 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
7577 7578 7579 |
# File 'lib/infrawrench/client.rb', line 7577 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
7579 7580 7581 |
# File 'lib/infrawrench/client.rb', line 7579 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
7581 7582 7583 |
# File 'lib/infrawrench/client.rb', line 7581 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
7583 7584 7585 |
# File 'lib/infrawrench/client.rb', line 7583 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
7585 7586 7587 |
# File 'lib/infrawrench/client.rb', line 7585 def resources @resources end |
#rightsizing ⇒ RightsizingNamespace (readonly)
Returns client.rightsizing.
7587 7588 7589 |
# File 'lib/infrawrench/client.rb', line 7587 def rightsizing @rightsizing end |
#schedules ⇒ SchedulesNamespace (readonly)
Returns client.schedules.
7589 7590 7591 |
# File 'lib/infrawrench/client.rb', line 7589 def schedules @schedules end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
7591 7592 7593 |
# File 'lib/infrawrench/client.rb', line 7591 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
7593 7594 7595 |
# File 'lib/infrawrench/client.rb', line 7593 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
7595 7596 7597 |
# File 'lib/infrawrench/client.rb', line 7595 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
7597 7598 7599 |
# File 'lib/infrawrench/client.rb', line 7597 def sql @sql end |
#ssh_fanout ⇒ SshFanoutNamespace (readonly)
Returns client.ssh_fanout.
7599 7600 7601 |
# File 'lib/infrawrench/client.rb', line 7599 def ssh_fanout @ssh_fanout end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
7601 7602 7603 |
# File 'lib/infrawrench/client.rb', line 7601 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
7603 7604 7605 |
# File 'lib/infrawrench/client.rb', line 7603 def ssh_tunnels @ssh_tunnels end |
#status_incidents ⇒ StatusIncidentsNamespace (readonly)
Returns client.status_incidents.
7605 7606 7607 |
# File 'lib/infrawrench/client.rb', line 7605 def status_incidents @status_incidents end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
7607 7608 7609 |
# File 'lib/infrawrench/client.rb', line 7607 def storage @storage end |
#tag_policy ⇒ TagPolicyNamespace (readonly)
Returns client.tag_policy.
7609 7610 7611 |
# File 'lib/infrawrench/client.rb', line 7609 def tag_policy @tag_policy end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
7611 7612 7613 |
# File 'lib/infrawrench/client.rb', line 7611 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
7519 7520 7521 |
# File 'lib/infrawrench/client.rb', line 7519 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
7613 7614 7615 |
# File 'lib/infrawrench/client.rb', line 7613 def workflow_approvals @workflow_approvals end |
#workflows ⇒ WorkflowsNamespace (readonly)
Returns client.workflows.
7615 7616 7617 |
# File 'lib/infrawrench/client.rb', line 7615 def workflows @workflows end |