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. -
#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_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.
6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 |
# File 'lib/infrawrench/client.rb', line 6935 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) @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_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.
6842 6843 6844 |
# File 'lib/infrawrench/client.rb', line 6842 def accounts @accounts end |
#agents ⇒ AgentsNamespace (readonly)
Returns client.agents.
6844 6845 6846 |
# File 'lib/infrawrench/client.rb', line 6844 def agents @agents end |
#api_keys ⇒ ApiKeysNamespace (readonly)
Returns client.api_keys.
6846 6847 6848 |
# File 'lib/infrawrench/client.rb', line 6846 def api_keys @api_keys end |
#artifacts ⇒ ArtifactsNamespace (readonly)
Returns client.artifacts.
6848 6849 6850 |
# File 'lib/infrawrench/client.rb', line 6848 def artifacts @artifacts end |
#associations ⇒ AssociationsNamespace (readonly)
Returns client.associations.
6850 6851 6852 |
# File 'lib/infrawrench/client.rb', line 6850 def associations @associations end |
#audit_logs ⇒ AuditLogsNamespace (readonly)
Returns client.audit_logs.
6852 6853 6854 |
# File 'lib/infrawrench/client.rb', line 6852 def audit_logs @audit_logs end |
#auth ⇒ AuthNamespace (readonly)
Returns client.auth.
6854 6855 6856 |
# File 'lib/infrawrench/client.rb', line 6854 def auth @auth end |
#bastions ⇒ BastionsNamespace (readonly)
Returns client.bastions.
6856 6857 6858 |
# File 'lib/infrawrench/client.rb', line 6856 def bastions @bastions end |
#billing ⇒ BillingNamespace (readonly)
Returns client.billing.
6858 6859 6860 |
# File 'lib/infrawrench/client.rb', line 6858 def billing @billing end |
#budgets ⇒ BudgetsNamespace (readonly)
Returns client.budgets.
6860 6861 6862 |
# File 'lib/infrawrench/client.rb', line 6860 def budgets @budgets end |
#change_freezes ⇒ ChangeFreezesNamespace (readonly)
Returns client.change_freezes.
6862 6863 6864 |
# File 'lib/infrawrench/client.rb', line 6862 def change_freezes @change_freezes end |
#changes ⇒ ChangesNamespace (readonly)
Returns client.changes.
6864 6865 6866 |
# File 'lib/infrawrench/client.rb', line 6864 def changes @changes end |
#connect ⇒ ConnectNamespace (readonly)
Returns client.connect.
6866 6867 6868 |
# File 'lib/infrawrench/client.rb', line 6866 def connect @connect end |
#cost_centres ⇒ CostCentresNamespace (readonly)
Returns client.cost_centres.
6868 6869 6870 |
# File 'lib/infrawrench/client.rb', line 6868 def cost_centres @cost_centres end |
#costs ⇒ CostsNamespace (readonly)
Returns client.costs.
6870 6871 6872 |
# File 'lib/infrawrench/client.rb', line 6870 def costs @costs end |
#custom_graphs ⇒ CustomGraphsNamespace (readonly)
Returns client.custom_graphs.
6872 6873 6874 |
# File 'lib/infrawrench/client.rb', line 6872 def custom_graphs @custom_graphs end |
#dashboards ⇒ DashboardsNamespace (readonly)
Returns client.dashboards.
6874 6875 6876 |
# File 'lib/infrawrench/client.rb', line 6874 def dashboards @dashboards end |
#dependency_graph ⇒ DependencyGraphNamespace (readonly)
Returns client.dependency_graph.
6876 6877 6878 |
# File 'lib/infrawrench/client.rb', line 6876 def dependency_graph @dependency_graph end |
#deployments ⇒ DeploymentsNamespace (readonly)
Returns client.deployments.
6878 6879 6880 |
# File 'lib/infrawrench/client.rb', line 6878 def deployments @deployments end |
#digest ⇒ DigestNamespace (readonly)
Returns client.digest.
6880 6881 6882 |
# File 'lib/infrawrench/client.rb', line 6880 def digest @digest end |
#docker ⇒ DockerNamespace (readonly)
Returns client.docker.
6882 6883 6884 |
# File 'lib/infrawrench/client.rb', line 6882 def docker @docker end |
#expiring ⇒ ExpiringNamespace (readonly)
Returns client.expiring.
6884 6885 6886 |
# File 'lib/infrawrench/client.rb', line 6884 def expiring @expiring end |
#invitations ⇒ InvitationsNamespace (readonly)
Returns client.invitations.
6886 6887 6888 |
# File 'lib/infrawrench/client.rb', line 6886 def invitations @invitations end |
#kv ⇒ KvNamespace (readonly)
Returns client.kv.
6888 6889 6890 |
# File 'lib/infrawrench/client.rb', line 6888 def kv @kv end |
#moment ⇒ MomentNamespace (readonly)
Returns client.moment.
6890 6891 6892 |
# File 'lib/infrawrench/client.rb', line 6890 def moment @moment end |
#msteams ⇒ MsteamsNamespace (readonly)
Returns client.msteams.
6892 6893 6894 |
# File 'lib/infrawrench/client.rb', line 6892 def msteams @msteams end |
#orgs ⇒ OrgsNamespace (readonly)
Returns client.orgs.
6894 6895 6896 |
# File 'lib/infrawrench/client.rb', line 6894 def orgs @orgs end |
#orphans ⇒ OrphansNamespace (readonly)
Returns client.orphans.
6896 6897 6898 |
# File 'lib/infrawrench/client.rb', line 6896 def orphans @orphans end |
#pages ⇒ PagesNamespace (readonly)
Returns client.pages.
6898 6899 6900 |
# File 'lib/infrawrench/client.rb', line 6898 def pages @pages end |
#profile ⇒ ProfileNamespace (readonly)
Returns client.profile.
6900 6901 6902 |
# File 'lib/infrawrench/client.rb', line 6900 def profile @profile end |
#resources ⇒ ResourcesNamespace (readonly)
Returns client.resources.
6902 6903 6904 |
# File 'lib/infrawrench/client.rb', line 6902 def resources @resources end |
#rightsizing ⇒ RightsizingNamespace (readonly)
Returns client.rightsizing.
6904 6905 6906 |
# File 'lib/infrawrench/client.rb', line 6904 def rightsizing @rightsizing end |
#schedules ⇒ SchedulesNamespace (readonly)
Returns client.schedules.
6906 6907 6908 |
# File 'lib/infrawrench/client.rb', line 6906 def schedules @schedules end |
#search ⇒ SearchNamespace (readonly)
Returns client.search.
6908 6909 6910 |
# File 'lib/infrawrench/client.rb', line 6908 def search @search end |
#sftp ⇒ SftpNamespace (readonly)
Returns client.sftp.
6910 6911 6912 |
# File 'lib/infrawrench/client.rb', line 6910 def sftp @sftp end |
#slack ⇒ SlackNamespace (readonly)
Returns client.slack.
6912 6913 6914 |
# File 'lib/infrawrench/client.rb', line 6912 def slack @slack end |
#sql ⇒ SqlNamespace (readonly)
Returns client.sql.
6914 6915 6916 |
# File 'lib/infrawrench/client.rb', line 6914 def sql @sql end |
#ssh_keys ⇒ SshKeysNamespace (readonly)
Returns client.ssh_keys.
6916 6917 6918 |
# File 'lib/infrawrench/client.rb', line 6916 def ssh_keys @ssh_keys end |
#ssh_tunnels ⇒ SshTunnelsNamespace (readonly)
Returns client.ssh_tunnels.
6918 6919 6920 |
# File 'lib/infrawrench/client.rb', line 6918 def ssh_tunnels @ssh_tunnels end |
#status_incidents ⇒ StatusIncidentsNamespace (readonly)
Returns client.status_incidents.
6920 6921 6922 |
# File 'lib/infrawrench/client.rb', line 6920 def status_incidents @status_incidents end |
#storage ⇒ StorageNamespace (readonly)
Returns client.storage.
6922 6923 6924 |
# File 'lib/infrawrench/client.rb', line 6922 def storage @storage end |
#tag_policy ⇒ TagPolicyNamespace (readonly)
Returns client.tag_policy.
6924 6925 6926 |
# File 'lib/infrawrench/client.rb', line 6924 def tag_policy @tag_policy end |
#team ⇒ TeamNamespace (readonly)
Returns client.team.
6926 6927 6928 |
# File 'lib/infrawrench/client.rb', line 6926 def team @team end |
#transport ⇒ Transport (readonly)
Returns Shared request plumbing. Reach for this only to inspect the resolved base URL.
6840 6841 6842 |
# File 'lib/infrawrench/client.rb', line 6840 def transport @transport end |
#workflow_approvals ⇒ WorkflowApprovalsNamespace (readonly)
Returns client.workflow_approvals.
6928 6929 6930 |
# File 'lib/infrawrench/client.rb', line 6928 def workflow_approvals @workflow_approvals end |
#workflows ⇒ WorkflowsNamespace (readonly)
Returns client.workflows.
6930 6931 6932 |
# File 'lib/infrawrench/client.rb', line 6930 def workflows @workflows end |