Class: Infrawrench::BackupsNamespace
- Inherits:
-
Object
- Object
- Infrawrench::BackupsNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.backups
Instance Attribute Summary collapse
-
#policies ⇒ BackupsPoliciesNamespace
readonly
client.backups.policies.
Instance Method Summary collapse
-
#get(org_id: nil, request_options: nil) ⇒ Hash
List backup coverage across synced resources.
-
#initialize(transport) ⇒ BackupsNamespace
constructor
private
A new instance of BackupsNamespace.
Constructor Details
#initialize(transport) ⇒ BackupsNamespace
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 BackupsNamespace.
1660 1661 1662 1663 |
# File 'lib/infrawrench/client.rb', line 1660 def initialize(transport) @transport = transport @policies = BackupsPoliciesNamespace.new(@transport) end |
Instance Attribute Details
#policies ⇒ BackupsPoliciesNamespace (readonly)
Returns client.backups.policies.
1656 1657 1658 |
# File 'lib/infrawrench/client.rb', line 1656 def policies @policies end |
Instance Method Details
#get(org_id: nil, request_options: nil) ⇒ Hash
List backup coverage across synced resources
What protects the organization's stateful resources, what does not, and
which backups protect nothing. Derived from already-synced inventory using
the backupRole and backupPolicy declarations plugins carry on their
resource types — no provider API calls are made and results reflect the
last sync. Findings are recomputed on every read rather than stored.
Orphaned backups carry a trailing-30-day spend quote when billing data is
available.
GET /api/org/orgId/backups
1683 1684 1685 1686 1687 1688 1689 1690 |
# File 'lib/infrawrench/client.rb', line 1683 def get(org_id: nil, request_options: nil) @transport.request( http_method: "GET", path: "/api/org/{orgId}/backups", path_params: { "orgId" => org_id }, request_options: ) end |