-
Notifications
You must be signed in to change notification settings - Fork 23
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 #516 from linode/dev
v0.26.0
- Loading branch information
Showing
29 changed files
with
533 additions
and
147 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
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,67 @@ | ||
# child_account_info | ||
|
||
Get info about a Linode Child Account. | ||
|
||
- [Minimum Required Fields](#minimum-required-fields) | ||
- [Examples](#examples) | ||
- [Parameters](#parameters) | ||
- [Return Values](#return-values) | ||
|
||
## Minimum Required Fields | ||
| Field | Type | Required | Description | | ||
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). | | ||
|
||
## Examples | ||
|
||
```yaml | ||
- name: Get info about a Child Account by EUUID | ||
linode.cloud.child_account_info: | ||
euuid: "FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF" | ||
``` | ||
## Parameters | ||
| Field | Type | Required | Description | | ||
|-----------|------|----------|------------------------------------------------------------------------------| | ||
| `euuid` | <center>`str`</center> | <center>**Required**</center> | The EUUID of the Child Account to resolve. | | ||
|
||
## Return Values | ||
|
||
- `child_account` - The returned Child Account. | ||
|
||
- Sample Response: | ||
```json | ||
{ | ||
"active_since": "2018-01-01T00:01:01", | ||
"address_1": "123 Main Street", | ||
"address_2": "Suite A", | ||
"balance": 200, | ||
"balance_uninvoiced": 145, | ||
"billing_source": "external", | ||
"capabilities": [ | ||
"Linodes", | ||
"NodeBalancers", | ||
"Block Storage", | ||
"Object Storage" | ||
], | ||
"city": "Philadelphia", | ||
"company": "Linode LLC", | ||
"country": "US", | ||
"credit_card": { | ||
"expiry": "11/2022", | ||
"last_four": 1111 | ||
}, | ||
"email": "john.smith@linode.com", | ||
"euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71", | ||
"first_name": "John", | ||
"last_name": "Smith", | ||
"phone": "215-555-1212", | ||
"state": "PA", | ||
"tax_id": "ATU99999999", | ||
"zip": "19102-1234" | ||
} | ||
``` | ||
|
||
|
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,76 @@ | ||
# child_account_list | ||
|
||
List and filter on Child Account. | ||
|
||
- [Minimum Required Fields](#minimum-required-fields) | ||
- [Examples](#examples) | ||
- [Parameters](#parameters) | ||
- [Return Values](#return-values) | ||
|
||
## Minimum Required Fields | ||
| Field | Type | Required | Description | | ||
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). | | ||
|
||
## Examples | ||
|
||
```yaml | ||
- name: List all of the Child Accounts under the current Account | ||
linode.cloud.child_account_list: {} | ||
``` | ||
## Parameters | ||
| Field | Type | Required | Description | | ||
|-----------|------|----------|------------------------------------------------------------------------------| | ||
| `order` | <center>`str`</center> | <center>Optional</center> | The order to list Child Account in. **(Choices: `desc`, `asc`; Default: `asc`)** | | ||
| `order_by` | <center>`str`</center> | <center>Optional</center> | The attribute to order Child Account by. | | ||
| [`filters` (sub-options)](#filters) | <center>`list`</center> | <center>Optional</center> | A list of filters to apply to the resulting Child Account. | | ||
| `count` | <center>`int`</center> | <center>Optional</center> | The number of Child Account to return. If undefined, all results will be returned. | | ||
|
||
### filters | ||
|
||
| Field | Type | Required | Description | | ||
|-----------|------|----------|------------------------------------------------------------------------------| | ||
| `name` | <center>`str`</center> | <center>**Required**</center> | The name of the field to filter on. Valid filterable fields can be found [here](). | | ||
| `values` | <center>`list`</center> | <center>**Required**</center> | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. | | ||
|
||
## Return Values | ||
|
||
- `child_accounts` - The returned Child Account. | ||
|
||
- Sample Response: | ||
```json | ||
{ | ||
"active_since": "2018-01-01T00:01:01", | ||
"address_1": "123 Main Street", | ||
"address_2": "Suite A", | ||
"balance": 200, | ||
"balance_uninvoiced": 145, | ||
"billing_source": "external", | ||
"capabilities": [ | ||
"Linodes", | ||
"NodeBalancers", | ||
"Block Storage", | ||
"Object Storage" | ||
], | ||
"city": "Philadelphia", | ||
"company": "Linode LLC", | ||
"country": "US", | ||
"credit_card": { | ||
"expiry": "11/2022", | ||
"last_four": 1111 | ||
}, | ||
"email": "john.smith@linode.com", | ||
"euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71", | ||
"first_name": "John", | ||
"last_name": "Smith", | ||
"phone": "215-555-1212", | ||
"state": "PA", | ||
"tax_id": "ATU99999999", | ||
"zip": "19102-1234" | ||
} | ||
``` | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""Documentation fragments for the child_account_info module""" | ||
|
||
result_child_account_samples = ['''{ | ||
"active_since": "2018-01-01T00:01:01", | ||
"address_1": "123 Main Street", | ||
"address_2": "Suite A", | ||
"balance": 200, | ||
"balance_uninvoiced": 145, | ||
"billing_source": "external", | ||
"capabilities": [ | ||
"Linodes", | ||
"NodeBalancers", | ||
"Block Storage", | ||
"Object Storage" | ||
], | ||
"city": "Philadelphia", | ||
"company": "Linode LLC", | ||
"country": "US", | ||
"credit_card": { | ||
"expiry": "11/2022", | ||
"last_four": 1111 | ||
}, | ||
"email": "john.smith@linode.com", | ||
"euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71", | ||
"first_name": "John", | ||
"last_name": "Smith", | ||
"phone": "215-555-1212", | ||
"state": "PA", | ||
"tax_id": "ATU99999999", | ||
"zip": "19102-1234" | ||
}'''] | ||
|
||
|
||
specdoc_examples = [''' | ||
- name: Get info about a Child Account by EUUID | ||
linode.cloud.child_account_info: | ||
euuid: "FFFFFFFF-FFFF-FFFF-FFFFFFFFFFFFFFFF"'''] |
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,35 @@ | ||
"""Documentation fragments for the child_account_list module""" | ||
|
||
specdoc_examples = [''' | ||
- name: List all of the Child Accounts under the current Account | ||
linode.cloud.child_account_list: {}'''] | ||
|
||
result_child_accounts_samples = ['''{ | ||
"active_since": "2018-01-01T00:01:01", | ||
"address_1": "123 Main Street", | ||
"address_2": "Suite A", | ||
"balance": 200, | ||
"balance_uninvoiced": 145, | ||
"billing_source": "external", | ||
"capabilities": [ | ||
"Linodes", | ||
"NodeBalancers", | ||
"Block Storage", | ||
"Object Storage" | ||
], | ||
"city": "Philadelphia", | ||
"company": "Linode LLC", | ||
"country": "US", | ||
"credit_card": { | ||
"expiry": "11/2022", | ||
"last_four": 1111 | ||
}, | ||
"email": "john.smith@linode.com", | ||
"euuid": "E1AF5EEC-526F-487D-B317EBEB34C87D71", | ||
"first_name": "John", | ||
"last_name": "Smith", | ||
"phone": "215-555-1212", | ||
"state": "PA", | ||
"tax_id": "ATU99999999", | ||
"zip": "19102-1234" | ||
}'''] |
Oops, something went wrong.