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.
7005 7006 7007 |
# File 'lib/infrawrench/client.rb', line 7005 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
7025 7026 7027 7028 7029 7030 7031 7032 |
# File 'lib/infrawrench/client.rb', line 7025 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
7052 7053 7054 7055 7056 7057 7058 7059 7060 |
# File 'lib/infrawrench/client.rb', line 7052 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 |