Class: Infrawrench::ExpiringNamespace
- Inherits:
-
Object
- Object
- Infrawrench::ExpiringNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.expiring
Instance Attribute Summary collapse
-
#settings ⇒ ExpiringSettingsNamespace
readonly
client.expiring.settings.
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
List approaching deadlines on synced resources.
-
#initialize(transport) ⇒ ExpiringNamespace
constructor
private
A new instance of ExpiringNamespace.
Constructor Details
#initialize(transport) ⇒ ExpiringNamespace
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 ExpiringNamespace.
3430 3431 3432 3433 |
# File 'lib/infrawrench/client.rb', line 3430 def initialize(transport) @transport = transport @settings = ExpiringSettingsNamespace.new(@transport) end |
Instance Attribute Details
#settings ⇒ ExpiringSettingsNamespace (readonly)
Returns client.expiring.settings.
3426 3427 3428 |
# File 'lib/infrawrench/client.rb', line 3426 def settings @settings end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
List approaching deadlines on synced resources
One cross-provider countdown of everything with a clock on it: TLS certificate expiries, domain registrations, API token expirations, access keys past their rotation budget, Kubernetes/SSH credential ages. Plugins declare which synced fields carry deadlines; the feed is computed over already-stored state, so no provider API calls are made and results reflect the last sync. Items are sorted soonest first and bucketed by severity against the organization's lead time.
Requires permission: resources:read.
GET /api/org/orgId/expiring
3455 3456 3457 3458 3459 3460 3461 3462 |
# File 'lib/infrawrench/client.rb', line 3455 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/expiring", path_params: { "orgId" => org_id }, request_options: ) end |