Class: Infrawrench::CostReportNotificationsNamespace

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

Overview

client.cost_report_notifications

Instance Method Summary collapse

Constructor Details

#initialize(transport) ⇒ CostReportNotificationsNamespace

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 CostReportNotificationsNamespace.

Parameters:



4268
4269
4270
# File 'lib/infrawrench/client.rb', line 4268

def initialize(transport)
  @transport = transport
end

Instance Method Details

#list(org_id: nil, request_options: nil) ⇒ Array<Hash>

List every delivery schedule in the organization

All reports' schedules in one call — what the CLI's schedules column reads. Schedules of deleted reports are excluded.

Requires permission: costs:read.

GET /api/org/orgId/cost-report-notifications

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:

  • (Array<Hash>)

    Parsed JSON, shaped as Array<ReportNotification> — see sig/infrawrench/sdk.rbs.

Raises:



4287
4288
4289
4290
4291
4292
4293
4294
# File 'lib/infrawrench/client.rb', line 4287

def list(org_id: nil, request_options: nil)
  @transport.request(
    http_method: "GET",
    path: "/api/org/{orgId}/cost-report-notifications",
    path_params: { "orgId" => org_id },
    request_options: request_options
  )
end