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.
1915 1916 1917 1918 |
# File 'lib/infrawrench/client.rb', line 1915 def initialize(transport) @transport = transport @policies = BackupsPoliciesNamespace.new(@transport) end |
Instance Attribute Details
#policies ⇒ BackupsPoliciesNamespace (readonly)
Returns client.backups.policies.
1911 1912 1913 |
# File 'lib/infrawrench/client.rb', line 1911 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
1938 1939 1940 1941 1942 1943 1944 1945 |
# File 'lib/infrawrench/client.rb', line 1938 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 |