Class: Infrawrench::ExpiringNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs

Overview

client.expiring

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



7490
7491
7492
7493
# File 'lib/infrawrench/client.rb', line 7490

def initialize(transport)
  @transport = transport
  @settings = ExpiringSettingsNamespace.new(@transport)
end

Instance Attribute Details

#settingsExpiringSettingsNamespace (readonly)

Returns client.expiring.settings.

Returns:



7486
7487
7488
# File 'lib/infrawrench/client.rb', line 7486

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

Parameters:

  • org_id (String, nil) (defaults to: nil)

    Organization id. Defaults to the org_id the client was constructed with.

  • request_options (Hash, nil) (defaults to: nil)

    Per-call :headers, :timeout and :open_timeout.

  • org_id: (String, nil) (defaults to: nil)
  • request_options: (Hash[Symbol, untyped], nil) (defaults to: nil)

Returns:

  • (Hash)

    Parsed JSON, shaped as ExpiryListResponse — see sig/infrawrench/sdk.rbs.

Raises:



7515
7516
7517
7518
7519
7520
7521
7522
# File 'lib/infrawrench/client.rb', line 7515

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: request_options
  )
end