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.
1996 1997 1998 1999 |
# File 'lib/infrawrench/client.rb', line 1996 def initialize(transport) @transport = transport @policies = BackupsPoliciesNamespace.new(@transport) end |
Instance Attribute Details
#policies ⇒ BackupsPoliciesNamespace (readonly)
Returns client.backups.policies.
1992 1993 1994 |
# File 'lib/infrawrench/client.rb', line 1992 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
2019 2020 2021 2022 2023 2024 2025 2026 |
# File 'lib/infrawrench/client.rb', line 2019 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 |