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. -
#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. -
#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.
-
#workflow_approvals ⇒ WorkflowApprovalsNamespace
readonly
client.workflow_approvals.
Instance Method Summary collapse
-
#initialize(**options) ⇒ APIV1Client
constructor
A new instance of APIV1Client.
Constructor Details
#initialize(**options) ⇒ APIV1Client
Returns a new instance of APIV1Client.
6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 |
# File 'lib/infrawrench/client.rb', line 6019 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) @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) @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) @workflow_approvals = WorkflowApprovalsNamespace.new(@transport) end |
Instance Attribute Details
#accounts ⇒ AccountsNamespace (readonly)
Returns client.accounts.
5942 5943 5944 |
# File 'lib/infrawrench/client.rb', line 5942 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
5944 5945 5946 |
# File 'lib/infrawrench/client.rb', line 5944 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
5946 5947 5948 |
# File 'lib/infrawrench/client.rb', line 5946 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
5948 5949 5950 |
# File 'lib/infrawrench/client.rb', line 5948 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
5950 5951 5952 |
# File 'lib/infrawrench/client.rb', line 5950 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
5952 5953 5954 |
# File 'lib/infrawrench/client.rb', line 5952 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
5954 5955 5956 |
# File 'lib/infrawrench/client.rb', line 5954 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
5956 5957 5958 |
# File 'lib/infrawrench/client.rb', line 5956 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
5958 5959 5960 |
# File 'lib/infrawrench/client.rb', line 5958 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
5960 5961 5962 |
# File 'lib/infrawrench/client.rb', line 5960 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
5962 5963 5964 |
# File 'lib/infrawrench/client.rb', line 5962 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
5964 5965 5966 |
# File 'lib/infrawrench/client.rb', line 5964 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
5966 5967 5968 |
# File 'lib/infrawrench/client.rb', line 5966 def connect @connect end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
5968 5969 5970 |
# File 'lib/infrawrench/client.rb', line 5968 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
5970 5971 5972 |
# File 'lib/infrawrench/client.rb', line 5970 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
5972 5973 5974 |
# File 'lib/infrawrench/client.rb', line 5972 def dashboards @dashboards end |
#dependency_graph ⇒ DependencyGraphNamespace (readonly)
Returns client.dependency_graph.
5974 5975 5976 |
# File 'lib/infrawrench/client.rb', line 5974 def dependency_graph @dependency_graph end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
5976 5977 5978 |
# File 'lib/infrawrench/client.rb', line 5976 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
5978 5979 5980 |
# File 'lib/infrawrench/client.rb', line 5978 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
5980 5981 5982 |
# File 'lib/infrawrench/client.rb', line 5980 def docker @docker end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
5982 5983 5984 |
# File 'lib/infrawrench/client.rb', line 5982 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
5984 5985 5986 |
# File 'lib/infrawrench/client.rb', line 5984 def kv @kv end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
5986 5987 5988 |
# File 'lib/infrawrench/client.rb', line 5986 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
5988 5989 5990 |
# File 'lib/infrawrench/client.rb', line 5988 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
5990 5991 5992 |
# File 'lib/infrawrench/client.rb', line 5990 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
5992 5993 5994 |
# File 'lib/infrawrench/client.rb', line 5992 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
5994 5995 5996 |
# File 'lib/infrawrench/client.rb', line 5994 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
5996 5997 5998 |
# File 'lib/infrawrench/client.rb', line 5996 def resources @resources end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
5998 5999 6000 |
# File 'lib/infrawrench/client.rb', line 5998 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
6000 6001 6002 |
# File 'lib/infrawrench/client.rb', line 6000 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
6002 6003 6004 |
# File 'lib/infrawrench/client.rb', line 6002 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
6004 6005 6006 |
# File 'lib/infrawrench/client.rb', line 6004 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
6006 6007 6008 |
# File 'lib/infrawrench/client.rb', line 6006 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
6008 6009 6010 |
# File 'lib/infrawrench/client.rb', line 6008 def ssh_tunnels @ssh_tunnels end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
6010 6011 6012 |
# File 'lib/infrawrench/client.rb', line 6010 def storage @storage end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
6012 6013 6014 |
# File 'lib/infrawrench/client.rb', line 6012 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
5940 5941 5942 |
# File 'lib/infrawrench/client.rb', line 5940 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
6014 6015 6016 |
# File 'lib/infrawrench/client.rb', line 6014 def workflow_approvals @workflow_approvals end |