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. -
#leases ⇒ LeasesNamespace
readonly
client.leases. -
#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. -
#posture ⇒ PostureNamespace
readonly
client.posture. -
#probes ⇒ ProbesNamespace
readonly
client.probes. -
#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.
8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 |
# File 'lib/infrawrench/client.rb', line 8138 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) @leases = LeasesNamespace.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) @posture = PostureNamespace.new(@transport) @probes = ProbesNamespace.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.
8033 8034 8035 |
# File 'lib/infrawrench/client.rb', line 8033 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
8035 8036 8037 |
# File 'lib/infrawrench/client.rb', line 8035 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
8037 8038 8039 |
# File 'lib/infrawrench/client.rb', line 8037 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
8039 8040 8041 |
# File 'lib/infrawrench/client.rb', line 8039 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
8041 8042 8043 |
# File 'lib/infrawrench/client.rb', line 8041 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
8043 8044 8045 |
# File 'lib/infrawrench/client.rb', line 8043 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
8045 8046 8047 |
# File 'lib/infrawrench/client.rb', line 8045 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
8047 8048 8049 |
# File 'lib/infrawrench/client.rb', line 8047 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
8049 8050 8051 |
# File 'lib/infrawrench/client.rb', line 8049 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
8051 8052 8053 |
# File 'lib/infrawrench/client.rb', line 8051 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
8053 8054 8055 |
# File 'lib/infrawrench/client.rb', line 8053 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
8055 8056 8057 |
# File 'lib/infrawrench/client.rb', line 8055 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
8057 8058 8059 |
# File 'lib/infrawrench/client.rb', line 8057 def connect @connect end |
#cost_centres ⇒ CostCentresNamespace (readonly)
Returns client.cost_centres.
8059 8060 8061 |
# File 'lib/infrawrench/client.rb', line 8059 def cost_centres @cost_centres end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
8061 8062 8063 |
# File 'lib/infrawrench/client.rb', line 8061 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
8063 8064 8065 |
# File 'lib/infrawrench/client.rb', line 8063 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
8065 8066 8067 |
# File 'lib/infrawrench/client.rb', line 8065 def dashboards @dashboards end |
#dependency_graph ⇒ DependencyGraphNamespace (readonly)
Returns client.dependency_graph.
8067 8068 8069 |
# File 'lib/infrawrench/client.rb', line 8067 def dependency_graph @dependency_graph end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
8069 8070 8071 |
# File 'lib/infrawrench/client.rb', line 8069 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
8071 8072 8073 |
# File 'lib/infrawrench/client.rb', line 8071 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
8073 8074 8075 |
# File 'lib/infrawrench/client.rb', line 8073 def docker @docker end |
#expiring ⇒ ExpiringNamespace (readonly)
Returns client.expiring.
8075 8076 8077 |
# File 'lib/infrawrench/client.rb', line 8075 def expiring @expiring end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
8077 8078 8079 |
# File 'lib/infrawrench/client.rb', line 8077 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
8079 8080 8081 |
# File 'lib/infrawrench/client.rb', line 8079 def kv @kv end |
#leases ⇒ LeasesNamespace (readonly)
Returns client.leases.
8081 8082 8083 |
# File 'lib/infrawrench/client.rb', line 8081 def leases @leases end |
#log_workspaces ⇒ LogWorkspacesNamespace (readonly)
Returns client.log_workspaces.
8083 8084 8085 |
# File 'lib/infrawrench/client.rb', line 8083 def log_workspaces @log_workspaces end |
#metric_alerts ⇒ MetricAlertsNamespace (readonly)
Returns client.metric_alerts.
8085 8086 8087 |
# File 'lib/infrawrench/client.rb', line 8085 def metric_alerts @metric_alerts end |
#moment ⇒ MomentNamespace (readonly)
Returns client.moment.
8087 8088 8089 |
# File 'lib/infrawrench/client.rb', line 8087 def moment @moment end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
8089 8090 8091 |
# File 'lib/infrawrench/client.rb', line 8089 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
8091 8092 8093 |
# File 'lib/infrawrench/client.rb', line 8091 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
8093 8094 8095 |
# File 'lib/infrawrench/client.rb', line 8093 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
8095 8096 8097 |
# File 'lib/infrawrench/client.rb', line 8095 def pages @pages end |
#posture ⇒ PostureNamespace (readonly)
Returns client.posture.
8097 8098 8099 |
# File 'lib/infrawrench/client.rb', line 8097 def posture @posture end |
#probes ⇒ ProbesNamespace (readonly)
Returns client.probes.
8099 8100 8101 |
# File 'lib/infrawrench/client.rb', line 8099 def probes @probes end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
8101 8102 8103 |
# File 'lib/infrawrench/client.rb', line 8101 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
8103 8104 8105 |
# File 'lib/infrawrench/client.rb', line 8103 def resources @resources end |
#rightsizing ⇒ RightsizingNamespace (readonly)
Returns client.rightsizing.
8105 8106 8107 |
# File 'lib/infrawrench/client.rb', line 8105 def rightsizing @rightsizing end |
#schedules ⇒ SchedulesNamespace (readonly)
Returns client.schedules.
8107 8108 8109 |
# File 'lib/infrawrench/client.rb', line 8107 def schedules @schedules end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
8109 8110 8111 |
# File 'lib/infrawrench/client.rb', line 8109 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
8111 8112 8113 |
# File 'lib/infrawrench/client.rb', line 8111 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
8113 8114 8115 |
# File 'lib/infrawrench/client.rb', line 8113 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
8115 8116 8117 |
# File 'lib/infrawrench/client.rb', line 8115 def sql @sql end |
#ssh_fanout ⇒ SshFanoutNamespace (readonly)
Returns client.ssh_fanout.
8117 8118 8119 |
# File 'lib/infrawrench/client.rb', line 8117 def ssh_fanout @ssh_fanout end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
8119 8120 8121 |
# File 'lib/infrawrench/client.rb', line 8119 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
8121 8122 8123 |
# File 'lib/infrawrench/client.rb', line 8121 def ssh_tunnels @ssh_tunnels end |
#status_incidents ⇒ StatusIncidentsNamespace (readonly)
Returns client.status_incidents.
8123 8124 8125 |
# File 'lib/infrawrench/client.rb', line 8123 def status_incidents @status_incidents end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
8125 8126 8127 |
# File 'lib/infrawrench/client.rb', line 8125 def storage @storage end |
#tag_policy ⇒ TagPolicyNamespace (readonly)
Returns client.tag_policy.
8127 8128 8129 |
# File 'lib/infrawrench/client.rb', line 8127 def tag_policy @tag_policy end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
8129 8130 8131 |
# File 'lib/infrawrench/client.rb', line 8129 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
8031 8032 8033 |
# File 'lib/infrawrench/client.rb', line 8031 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
8131 8132 8133 |
# File 'lib/infrawrench/client.rb', line 8131 def workflow_approvals @workflow_approvals end |
#workflows ⇒ WorkflowsNamespace (readonly)
Returns client.workflows.
8133 8134 8135 |
# File 'lib/infrawrench/client.rb', line 8133 def workflows @workflows end |