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.
8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 |
# File 'lib/infrawrench/client.rb', line 8091 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.
7986 7987 7988 |
# File 'lib/infrawrench/client.rb', line 7986 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
7988 7989 7990 |
# File 'lib/infrawrench/client.rb', line 7988 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
7990 7991 7992 |
# File 'lib/infrawrench/client.rb', line 7990 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
7992 7993 7994 |
# File 'lib/infrawrench/client.rb', line 7992 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
7994 7995 7996 |
# File 'lib/infrawrench/client.rb', line 7994 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
7996 7997 7998 |
# File 'lib/infrawrench/client.rb', line 7996 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
7998 7999 8000 |
# File 'lib/infrawrench/client.rb', line 7998 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
8000 8001 8002 |
# File 'lib/infrawrench/client.rb', line 8000 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
8002 8003 8004 |
# File 'lib/infrawrench/client.rb', line 8002 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
8004 8005 8006 |
# File 'lib/infrawrench/client.rb', line 8004 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
8006 8007 8008 |
# File 'lib/infrawrench/client.rb', line 8006 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
8008 8009 8010 |
# File 'lib/infrawrench/client.rb', line 8008 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
8010 8011 8012 |
# File 'lib/infrawrench/client.rb', line 8010 def connect @connect end |
#cost_centres ⇒ CostCentresNamespace (readonly)
Returns client.cost_centres.
8012 8013 8014 |
# File 'lib/infrawrench/client.rb', line 8012 def cost_centres @cost_centres end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
8014 8015 8016 |
# File 'lib/infrawrench/client.rb', line 8014 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
8016 8017 8018 |
# File 'lib/infrawrench/client.rb', line 8016 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
8018 8019 8020 |
# File 'lib/infrawrench/client.rb', line 8018 def dashboards @dashboards end |
#dependency_graph ⇒ DependencyGraphNamespace (readonly)
Returns client.dependency_graph.
8020 8021 8022 |
# File 'lib/infrawrench/client.rb', line 8020 def dependency_graph @dependency_graph end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
8022 8023 8024 |
# File 'lib/infrawrench/client.rb', line 8022 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
8024 8025 8026 |
# File 'lib/infrawrench/client.rb', line 8024 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
8026 8027 8028 |
# File 'lib/infrawrench/client.rb', line 8026 def docker @docker end |
#expiring ⇒ ExpiringNamespace (readonly)
Returns client.expiring.
8028 8029 8030 |
# File 'lib/infrawrench/client.rb', line 8028 def expiring @expiring end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
8030 8031 8032 |
# File 'lib/infrawrench/client.rb', line 8030 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
8032 8033 8034 |
# File 'lib/infrawrench/client.rb', line 8032 def kv @kv end |
#leases ⇒ LeasesNamespace (readonly)
Returns client.leases.
8034 8035 8036 |
# File 'lib/infrawrench/client.rb', line 8034 def leases @leases end |
#log_workspaces ⇒ LogWorkspacesNamespace (readonly)
Returns client.log_workspaces.
8036 8037 8038 |
# File 'lib/infrawrench/client.rb', line 8036 def log_workspaces @log_workspaces end |
#metric_alerts ⇒ MetricAlertsNamespace (readonly)
Returns client.metric_alerts.
8038 8039 8040 |
# File 'lib/infrawrench/client.rb', line 8038 def metric_alerts @metric_alerts end |
#moment ⇒ MomentNamespace (readonly)
Returns client.moment.
8040 8041 8042 |
# File 'lib/infrawrench/client.rb', line 8040 def moment @moment end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
8042 8043 8044 |
# File 'lib/infrawrench/client.rb', line 8042 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
8044 8045 8046 |
# File 'lib/infrawrench/client.rb', line 8044 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
8046 8047 8048 |
# File 'lib/infrawrench/client.rb', line 8046 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
8048 8049 8050 |
# File 'lib/infrawrench/client.rb', line 8048 def pages @pages end |
#posture ⇒ PostureNamespace (readonly)
Returns client.posture.
8050 8051 8052 |
# File 'lib/infrawrench/client.rb', line 8050 def posture @posture end |
#probes ⇒ ProbesNamespace (readonly)
Returns client.probes.
8052 8053 8054 |
# File 'lib/infrawrench/client.rb', line 8052 def probes @probes end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
8054 8055 8056 |
# File 'lib/infrawrench/client.rb', line 8054 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
8056 8057 8058 |
# File 'lib/infrawrench/client.rb', line 8056 def resources @resources end |
#rightsizing ⇒ RightsizingNamespace (readonly)
Returns client.rightsizing.
8058 8059 8060 |
# File 'lib/infrawrench/client.rb', line 8058 def rightsizing @rightsizing end |
#schedules ⇒ SchedulesNamespace (readonly)
Returns client.schedules.
8060 8061 8062 |
# File 'lib/infrawrench/client.rb', line 8060 def schedules @schedules end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
8062 8063 8064 |
# File 'lib/infrawrench/client.rb', line 8062 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
8064 8065 8066 |
# File 'lib/infrawrench/client.rb', line 8064 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
8066 8067 8068 |
# File 'lib/infrawrench/client.rb', line 8066 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
8068 8069 8070 |
# File 'lib/infrawrench/client.rb', line 8068 def sql @sql end |
#ssh_fanout ⇒ SshFanoutNamespace (readonly)
Returns client.ssh_fanout.
8070 8071 8072 |
# File 'lib/infrawrench/client.rb', line 8070 def ssh_fanout @ssh_fanout end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
8072 8073 8074 |
# File 'lib/infrawrench/client.rb', line 8072 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
8074 8075 8076 |
# File 'lib/infrawrench/client.rb', line 8074 def ssh_tunnels @ssh_tunnels end |
#status_incidents ⇒ StatusIncidentsNamespace (readonly)
Returns client.status_incidents.
8076 8077 8078 |
# File 'lib/infrawrench/client.rb', line 8076 def status_incidents @status_incidents end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
8078 8079 8080 |
# File 'lib/infrawrench/client.rb', line 8078 def storage @storage end |
#tag_policy ⇒ TagPolicyNamespace (readonly)
Returns client.tag_policy.
8080 8081 8082 |
# File 'lib/infrawrench/client.rb', line 8080 def tag_policy @tag_policy end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
8082 8083 8084 |
# File 'lib/infrawrench/client.rb', line 8082 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
7984 7985 7986 |
# File 'lib/infrawrench/client.rb', line 7984 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
8084 8085 8086 |
# File 'lib/infrawrench/client.rb', line 8084 def workflow_approvals @workflow_approvals end |
#workflows ⇒ WorkflowsNamespace (readonly)
Returns client.workflows.
8086 8087 8088 |
# File 'lib/infrawrench/client.rb', line 8086 def workflows @workflows end |