-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #222 from nutanix/topic/dsl-changes-3.4.0
Calm-DSL changes for Calm v3.4.0
- Loading branch information
Showing
97 changed files
with
4,505 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.3.2 | ||
3.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from .resource import ResourceAPI | ||
from .connection import REQUEST | ||
|
||
|
||
class JobAPI(ResourceAPI): | ||
def __init__(self, connection): | ||
super().__init__(connection, resource_type="jobs") | ||
self.INSTANCES = self.ITEM + "/instances" | ||
|
||
def instances(self, uuid, params={}, ignore_error=False): | ||
return self.connection._call( | ||
self.INSTANCES.format(uuid), | ||
verify=False, | ||
request_json=params, | ||
method=REQUEST.METHOD.POST, | ||
ignore_error=ignore_error, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from .resource import ResourceAPI | ||
|
||
|
||
class ProviderAPI(ResourceAPI): | ||
def __init__(self, connection): | ||
super().__init__(connection, resource_type="providers", calm_api=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from .resource import ResourceAPI | ||
from .connection import REQUEST | ||
|
||
|
||
class ResourceTypeAPI(ResourceAPI): | ||
def __init__(self, connection): | ||
super().__init__(connection, resource_type="resource_types", calm_api=True) | ||
self.TEST_RUNBOOK = self.PREFIX + "/{}/test_runbook/{}/run" | ||
|
||
def run_test_runbook(self, resource_type_id, action_id, payload): | ||
return self.connection._call( | ||
self.TEST_RUNBOOK.format(resource_type_id, action_id), | ||
request_json=payload, | ||
verify=False, | ||
method=REQUEST.METHOD.POST, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.