Class: Infrawrench::ResourcesManifestNamespace
- Inherits:
-
Object
- Object
- Infrawrench::ResourcesManifestNamespace
- Defined in:
- lib/infrawrench/client.rb,
sig/infrawrench/sdk.rbs
Overview
client.resources.manifest
Instance Method Summary collapse
-
#create(plugin_id:, type_id:, body:, org_id: nil, request_options: nil) ⇒ Hash
Apply an edited manifest to a resource.
-
#get(plugin_id:, type_id:, resource_id:, account_id:, org_id: nil, parent_resource_id: nil, request_options: nil) ⇒ Hash
Fetch the raw manifest (YAML/JSON) for a resource.
-
#initialize(transport) ⇒ ResourcesManifestNamespace
constructor
private
A new instance of ResourcesManifestNamespace.
Constructor Details
#initialize(transport) ⇒ ResourcesManifestNamespace
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 ResourcesManifestNamespace.
2605 2606 2607 |
# File 'lib/infrawrench/client.rb', line 2605 def initialize(transport) @transport = transport end |
Instance Method Details
#create(plugin_id:, type_id:, body:, org_id: nil, request_options: nil) ⇒ Hash
Apply an edited manifest to a resource
Requires permission: resources:write.
POST /api/org/orgId/resources/pluginId/typeId/manifest
Raises on 400: Bad request
Raises on 404: Not found
2627 2628 2629 2630 2631 2632 2633 2634 2635 |
# File 'lib/infrawrench/client.rb', line 2627 def create(plugin_id:, type_id:, body:, org_id: nil, request_options: nil) @transport.request( http_method: "POST", path: "/api/org/{orgId}/resources/{pluginId}/{typeId}/manifest", path_params: { "orgId" => org_id, "pluginId" => plugin_id, "typeId" => type_id }, body: body, request_options: ) end |
#get(plugin_id:, type_id:, resource_id:, account_id:, org_id: nil, parent_resource_id: nil, request_options: nil) ⇒ Hash
Fetch the raw manifest (YAML/JSON) for a resource
Requires permission: resources:read.
GET /api/org/orgId/resources/pluginId/typeId/manifest
Raises on 400: Bad request
Raises on 404: Not found
2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 |
# File 'lib/infrawrench/client.rb', line 2657 def get( plugin_id:, type_id:, resource_id:, account_id:, org_id: nil, parent_resource_id: nil, request_options: nil ) @transport.request( http_method: "GET", path: "/api/org/{orgId}/resources/{pluginId}/{typeId}/manifest", path_params: { "orgId" => org_id, "pluginId" => plugin_id, "typeId" => type_id }, query: { "resourceId" => resource_id, "accountId" => account_id, "parentResourceId" => parent_resource_id }, request_options: ) end |