Class: Infrawrench::EnvironmentsSettingsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::EnvironmentsSettingsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.environments.settings
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
Get the organization's environment TTL rails.
-
#initialize(transport) ⇒ EnvironmentsSettingsNamespace
constructor
private
A new instance of EnvironmentsSettingsNamespace.
-
#update(org_id: nil, body: nil, request_options: nil) ⇒ Hash
Set the organization's environment TTL rails.
Constructor Details
#initialize(transport) ⇒ EnvironmentsSettingsNamespace
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of EnvironmentsSettingsNamespace.
7134 7135 7136 |
# File 'lib/infrawrench/client.rb', line 7134 def initialize(transport) @transport = transport end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
Get the organization's environment TTL rails
The longest TTL an instantiation may ask for and the TTL the form pre-fills. Absent settings normalize into the shipped defaults (168h / 24h).
Requires permission: resources:read.
GET /api/org/orgId/environments/settings
7154 7155 7156 7157 7158 7159 7160 7161 |
# File 'lib/infrawrench/client.rb', line 7154 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/environments/settings", path_params: { "orgId" => org_id }, request_options: ) end |
#update(org_id: nil, body: nil, request_options: nil) ⇒ Hash
Set the organization's environment TTL rails
org:settings:write, not resources:write — this is a governance
decision about how long the organization is willing to pay for a throwaway
environment. Clamped to a 720-hour ceiling; the default is clamped to the
maximum. Audit-logged.
Requires permission: org:settings:write.
PUT /api/org/orgId/environments/settings
7181 7182 7183 7184 7185 7186 7187 7188 7189 |
# File 'lib/infrawrench/client.rb', line 7181 def update(org_id: nil, body: nil, request_options: nil) @transport.request( http_method: "PUT", path: "/api/org/{orgId}/environments/settings", path_params: { "orgId" => org_id }, body: body, request_options: ) end |