Skip to content

Commit

Permalink
chore: generated version 23.6.0 with tag v23.6.0-3
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijamt committed Apr 13, 2024
1 parent dfbdc94 commit d964356
Show file tree
Hide file tree
Showing 40 changed files with 21,514 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/awx/gen_sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

const (
ApiVersion string = "23.5.1"
ApiVersion string = "23.6.0"
)

// DataSources is a helper function to return all defined data sources
Expand Down
803 changes: 803 additions & 0 deletions resources/api/23.6.0/gen-data/AdHocCommand.json

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions resources/api/23.6.0/gen-data/Application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,310 @@
{
"ApiVersion": "23.6.0",
"Config": {
"endpoint": "/api/v2/applications/",
"name": "Application",
"type_name": "application",
"id_key": "id",
"property_overrides": {
"client_secret": {
"type": "",
"description": "",
"sensitive": true,
"required": false,
"trim": false,
"post_wrap": false,
"default_value": "",
"element_type": ""
}
},
"search_fields": [
{
"url_suffix": "%d/",
"name": "by_id",
"fields": [
{
"name": "id"
}
]
},
{
"url_suffix": "?name__exact=%s\u0026organization=%d",
"name": "by_name_organization",
"fields": [
{
"name": "name",
"url_escape_value": true
},
{
"name": "organization"
}
],
"multiple_results": true
}
],
"enabled": true,
"has_object_roles": false,
"has_survey_spec": false,
"associate_disassociate_groups": null,
"field_constraints": null,
"skip_write_only": false,
"undeletable": false,
"pre_state_set_hook_function": "hookApplication",
"no_id": false,
"no_terraform_data_source": false,
"no_terraform_resource": false,
"api_property_resource_key": "POST",
"api_property_data_key": "GET",
"property_name_leave_as_is": false,
"api_data_override": null,
"remove_fields_data_source": null,
"remove_fields_resource": null,
"credential_types": null
},
"Description": "# List Applications:\n\nMake a GET request to this resource to retrieve the list of\napplications.\n\nThe resulting data structure contains:\n\n {\n \"count\": 99,\n \"next\": null,\n \"previous\": null,\n \"results\": [\n ...\n ]\n }\n\nThe `count` field indicates the total number of applications\nfound for the given query. The `next` and `previous` fields provides links to\nadditional results if there are more than will fit on a single page. The\n`results` list contains zero or more application records. \n\n## Results\n\nEach application data structure includes the following fields:\n\n* `id`: Database ID for this application. (integer)\n* `type`: Data type for this application. (choice)\n* `url`: URL for this application. (string)\n* `related`: Data structure with URLs of related resources. (object)\n* `summary_fields`: Data structure with name/description for related resources. The output for some objects may be limited for performance reasons. (object)\n* `created`: Timestamp when this application was created. (datetime)\n* `modified`: Timestamp when this application was last modified. (datetime)\n* `name`: Name of this application. (string)\n* `description`: Optional description of this application. (string)\n* `client_id`: (string)\n* `client_secret`: Used for more stringent verification of access to an application when creating a token. (string)\n* `client_type`: Set to Public or Confidential depending on how secure the client device is. (choice)\n - `confidential`: Confidential\n - `public`: Public\n* `redirect_uris`: Allowed URIs list, space separated (string)\n* `authorization_grant_type`: The Grant type the user must use for acquire tokens for this application. (choice)\n - `authorization-code`: Authorization code\n - `password`: Resource owner password-based\n* `skip_authorization`: Set True to skip authorization step for completely trusted applications. (boolean)\n* `organization`: Organization containing this application. (id)\n\n\n\n## Sorting\n\nTo specify that applications are returned in a particular\norder, use the `order_by` query string parameter on the GET request.\n\n ?order_by=name\n\nPrefix the field name with a dash `-` to sort in reverse:\n\n ?order_by=-name\n\nMultiple sorting fields may be specified by separating the field names with a\ncomma `,`:\n\n ?order_by=name,some_other_field\n\n## Pagination\n\nUse the `page_size` query string parameter to change the number of results\nreturned for each request. Use the `page` query string parameter to retrieve\na particular page of results.\n\n ?page_size=100\u0026page=2\n\nThe `previous` and `next` links returned with the results will set these query\nstring parameters automatically.\n\n## Searching\n\nUse the `search` query string parameter to perform a case-insensitive search\nwithin all designated text fields of a model.\n\n ?search=findme\n\n(_Added in Ansible Tower 3.1.0_) Search across related fields:\n\n ?related__search=findme\n\nNote: If you want to provide more than one search term, multiple\nsearch fields with the same key, like `?related__search=foo\u0026related__search=bar`,\nwill be ORed together. Terms separated by commas, like `?related__search=foo,bar`\nwill be ANDed together.\n\n## Filtering\n\nAny additional query string parameters may be used to filter the list of\nresults returned to those matching a given value. Only fields and relations\nthat exist in the database may be used for filtering. Any special characters\nin the specified value should be url-encoded. For example:\n\n ?field=value%20xyz\n\nFields may also span relations, only for fields and relationships defined in\nthe database:\n\n ?other__field=value\n\nTo exclude results matching certain criteria, prefix the field parameter with\n`not__`:\n\n ?not__field=value\n\nBy default, all query string filters are AND'ed together, so\nonly the results matching *all* filters will be returned. To combine results\nmatching *any* one of multiple criteria, prefix each query string parameter\nwith `or__`:\n\n ?or__field=value\u0026or__field=othervalue\n ?or__not__field=value\u0026or__field=othervalue\n\n(_Added in Ansible Tower 1.4.5_) The default AND filtering applies all filters\nsimultaneously to each related object being filtered across database\nrelationships. The chain filter instead applies filters separately for each\nrelated object. To use, prefix the query string parameter with `chain__`:\n\n ?chain__related__field=value\u0026chain__related__field2=othervalue\n ?chain__not__related__field=value\u0026chain__related__field2=othervalue\n\nIf the first query above were written as\n`?related__field=value\u0026related__field2=othervalue`, it would return only the\nprimary objects where the *same* related object satisfied both conditions. As\nwritten using the chain filter, it would return the intersection of primary\nobjects matching each condition.\n\nField lookups may also be used for more advanced queries, by appending the\nlookup to the field name:\n\n ?field__lookup=value\n\nThe following field lookups are supported:\n\n* `exact`: Exact match (default lookup if not specified).\n* `iexact`: Case-insensitive version of `exact`.\n* `contains`: Field contains value.\n* `icontains`: Case-insensitive version of `contains`.\n* `startswith`: Field starts with value.\n* `istartswith`: Case-insensitive version of `startswith`.\n* `endswith`: Field ends with value.\n* `iendswith`: Case-insensitive version of `endswith`.\n* `regex`: Field matches the given regular expression.\n* `iregex`: Case-insensitive version of `regex`.\n* `gt`: Greater than comparison.\n* `gte`: Greater than or equal to comparison.\n* `lt`: Less than comparison.\n* `lte`: Less than or equal to comparison.\n* `isnull`: Check whether the given field or related object is null; expects a\n boolean value.\n* `in`: Check whether the given field's value is present in the list provided;\n expects a list of items.\n\nBoolean values may be specified as `True` or `1` for true, `False` or `0` for\nfalse (both case-insensitive).\n\nNull values may be specified as `None` or `Null` (both case-insensitive),\nthough it is preferred to use the `isnull` lookup to explicitly check for null\nvalues.\n\nLists (for the `in` lookup) may be specified as a comma-separated list of\nvalues.\n\n(_Added in Ansible Tower 3.1.0_) Filtering based on the requesting user's\nlevel of access by query string parameter.\n\n* `role_level`: Level of role to filter on, such as `admin_role`\n\n\n\n\n# Create an Application:\n\nMake a POST request to this resource with the following application\nfields to create a new application:\n\n\n\n\n\n\n\n\n\n* `name`: Name of this application. (string, required)\n* `description`: Optional description of this application. (string, default=`\"\"`)\n\n\n* `client_type`: Set to Public or Confidential depending on how secure the client device is. (choice, required)\n - `confidential`: Confidential\n - `public`: Public\n* `redirect_uris`: Allowed URIs list, space separated (string, default=`\"\"`)\n* `authorization_grant_type`: The Grant type the user must use for acquire tokens for this application. (choice, required)\n - `authorization-code`: Authorization code\n - `password`: Resource owner password-based\n* `skip_authorization`: Set True to skip authorization step for completely trusted applications. (boolean, default=`False`)\n* `organization`: Organization containing this application. (id, required)",
"Endpoint": "/api/v2/applications/",
"Name": "Application",
"PackageName": "awx",
"PropertyGetData": {
"authorization_grant_type": {
"choices": [
[
"authorization-code",
"Authorization code"
],
[
"password",
"Resource owner password-based"
]
],
"computed": true,
"filterable": true,
"help_text": "The Grant type the user must use for acquire tokens for this application.",
"label": "Authorization Grant Type",
"name": "authorization_grant_type",
"required": false,
"sensitive": false,
"type": "choice"
},
"client_id": {
"computed": true,
"filterable": true,
"label": "Client id",
"name": "client_id",
"required": false,
"sensitive": false,
"type": "string"
},
"client_secret": {
"computed": true,
"filterable": true,
"help_text": "Used for more stringent verification of access to an application when creating a token.",
"label": "Client Secret",
"name": "client_secret",
"post_wrap": false,
"required": false,
"sensitive": true,
"trim": false,
"type": "string"
},
"client_type": {
"choices": [
[
"confidential",
"Confidential"
],
[
"public",
"Public"
]
],
"computed": true,
"filterable": true,
"help_text": "Set to Public or Confidential depending on how secure the client device is.",
"label": "Client Type",
"name": "client_type",
"required": false,
"sensitive": false,
"type": "choice"
},
"description": {
"computed": true,
"filterable": true,
"help_text": "Optional description of this application.",
"label": "Description",
"name": "description",
"required": false,
"sensitive": false,
"type": "string"
},
"id": {
"computed": true,
"filterable": true,
"help_text": "Database ID for this application.",
"label": "Id",
"name": "id",
"required": false,
"sensitive": false,
"type": "integer"
},
"name": {
"computed": true,
"filterable": true,
"help_text": "Name of this application.",
"label": "Name",
"name": "name",
"required": false,
"sensitive": false,
"type": "string"
},
"organization": {
"computed": true,
"filterable": true,
"help_text": "Organization containing this application.",
"label": "Organization",
"name": "organization",
"required": false,
"sensitive": false,
"type": "id"
},
"redirect_uris": {
"computed": true,
"filterable": true,
"help_text": "Allowed URIs list, space separated",
"label": "Redirect URIs",
"name": "redirect_uris",
"required": false,
"sensitive": false,
"type": "string"
},
"skip_authorization": {
"computed": true,
"filterable": true,
"help_text": "Set True to skip authorization step for completely trusted applications.",
"label": "Skip Authorization",
"name": "skip_authorization",
"required": false,
"sensitive": false,
"type": "boolean"
}
},
"PropertyGetKeys": [
"authorization_grant_type",
"client_id",
"client_secret",
"client_type",
"description",
"id",
"name",
"organization",
"redirect_uris",
"skip_authorization"
],
"PropertyPostData": {
"authorization_grant_type": {
"choices": [
[
"authorization-code",
"Authorization code"
],
[
"password",
"Resource owner password-based"
]
],
"computed": false,
"filterable": true,
"help_text": "The Grant type the user must use for acquire tokens for this application.",
"label": "Authorization Grant Type",
"name": "authorization_grant_type",
"required": true,
"sensitive": false,
"type": "choice"
},
"client_type": {
"choices": [
[
"confidential",
"Confidential"
],
[
"public",
"Public"
]
],
"computed": false,
"filterable": true,
"help_text": "Set to Public or Confidential depending on how secure the client device is.",
"label": "Client Type",
"name": "client_type",
"required": true,
"sensitive": false,
"type": "choice"
},
"description": {
"computed": true,
"default": "",
"default_value": "stringdefault.StaticString(``)",
"filterable": true,
"help_text": "Optional description of this application.",
"label": "Description",
"name": "description",
"required": false,
"sensitive": false,
"type": "string"
},
"name": {
"computed": false,
"filterable": true,
"help_text": "Name of this application.",
"label": "Name",
"max_length": 255,
"name": "name",
"required": true,
"sensitive": false,
"type": "string"
},
"organization": {
"computed": false,
"filterable": true,
"help_text": "Organization containing this application.",
"label": "Organization",
"name": "organization",
"required": true,
"sensitive": false,
"type": "id"
},
"redirect_uris": {
"computed": true,
"filterable": true,
"help_text": "Allowed URIs list, space separated",
"label": "Redirect URIs",
"name": "redirect_uris",
"required": false,
"sensitive": false,
"type": "string"
},
"skip_authorization": {
"computed": true,
"default": false,
"filterable": true,
"help_text": "Set True to skip authorization step for completely trusted applications.",
"label": "Skip Authorization",
"name": "skip_authorization",
"required": false,
"sensitive": false,
"type": "boolean"
}
},
"PropertyPostKeys": [
"authorization_grant_type",
"client_type",
"description",
"name",
"organization",
"redirect_uris",
"skip_authorization"
],
"PropertyWriteOnlyData": {},
"PropertyWriteOnlyKeys": null
}
Loading

0 comments on commit d964356

Please sign in to comment.