Skip to content

Commit

Permalink
Merge pull request #4 from EncoreTechnologies/feature/autogenerated-a…
Browse files Browse the repository at this point in the history
…ctions

Auto-generated actions for #3
  • Loading branch information
nullkarma authored Oct 18, 2017
2 parents 768e7c8 + b7a1898 commit cfc6a3f
Show file tree
Hide file tree
Showing 682 changed files with 35,323 additions and 0 deletions.
37 changes: 37 additions & 0 deletions actions/activation_keys.add_host_collections.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
description: " (resource: POST /katello/api/activation_keys/:id/host_collections)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.add_host_collections
pack: foreman
parameters:
operation:
type: string
default: activation_keys.add_host_collections
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
id:
type: string
required: true
description: "ID of the activation key"
host_collection_ids:
type: array
required: true
description: "List of host collection IDs to associate with activation key"
56 changes: 56 additions & 0 deletions actions/activation_keys.add_subscriptions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
description: "Attach a subscription (resource: PUT /katello/api/activation_keys/:id/add_subscriptions)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.add_subscriptions
pack: foreman
parameters:
operation:
type: string
default: activation_keys.add_subscriptions
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
id:
type: string
required: true
description: "ID of the activation key"
subscription_id:
type: string
required: false
description: "Subscription identifier"
quantity:
type: string
required: false
description: "Quantity of this subscription to add"
subscriptions:
type: array
required: false
description: >
'description: Array of subscriptions to add
parameters:
id:
required: false
type: string
description: Subscription Pool uuid
quantity:
required: false
type: string
description: Quantity of this subscriptions to add
'
68 changes: 68 additions & 0 deletions actions/activation_keys.available_host_collections.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
description: "List host collections the system does not belong to (resource: GET /katello/api/activation_keys/:id/host_collections/available)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.available_host_collections
pack: foreman
parameters:
operation:
type: string
default: activation_keys.available_host_collections
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
search:
type: string
required: false
description: "Search string"
page:
type: string
required: false
description: "Page number, starting at 1"
per_page:
type: string
required: false
description: "Number of results per page to return"
order:
type: string
required: false
description: "Sort field and order, eg. 'name DESC'"
full_results:
type: string
required: false
description: "Whether or not to show all results"
sort:
type: object
required: false
description: >
'description: Hash version of 'order' param
parameters:
by:
required: false
type: string
description: Field to sort the results on
order:
required: false
type: string
description: How to order the sorted results (e.g. ASC for ascending)
'
name:
type: string
required: false
description: "host collection name to filter by"
33 changes: 33 additions & 0 deletions actions/activation_keys.available_releases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
description: "Show release versions available for an activation key (resource: GET /katello/api/activation_keys/:id/releases)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.available_releases
pack: foreman
parameters:
operation:
type: string
default: activation_keys.available_releases
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
id:
type: string
required: true
description: "ID of the activation key"
48 changes: 48 additions & 0 deletions actions/activation_keys.content_override.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
description: "Override content for activation_key (resource: PUT /katello/api/activation_keys/:id/content_override)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.content_override
pack: foreman
parameters:
operation:
type: string
default: activation_keys.content_override
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
id:
type: string
required: true
description: "ID of the activation key"
content_override:
type: object
required: false
description: >
'description: Content override parameters
parameters:
content_label:
required: true
type: string
description: Label of the content
value:
required: true
type: string
description: Override to 0/1, or 'default'
'
41 changes: 41 additions & 0 deletions actions/activation_keys.copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
description: "Copy an activation key (resource: POST /katello/api/activation_keys/:id/copy)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.copy
pack: foreman
parameters:
operation:
type: string
default: activation_keys.copy
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
new_name:
type: string
required: true
description: "Name of new activation key"
id:
type: string
required: true
description: "ID of the activation key"
organization_id:
type: string
required: false
description: "organization identifier"
61 changes: 61 additions & 0 deletions actions/activation_keys.create.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
description: "Create an activation key (resource: POST /katello/api/activation_keys)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.create
pack: foreman
parameters:
operation:
type: string
default: activation_keys.create
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
organization_id:
type: string
required: true
description: "organization identifier"
name:
type: string
required: true
description: "name"
description:
type: string
required: false
description: "description"
environment:
type: object
required: false
description: "environment"
environment_id:
type: string
required: false
description: "environment id"
content_view_id:
type: string
required: false
description: "content view id"
max_hosts:
type: string
required: false
description: "maximum number of registered content hosts"
unlimited_hosts:
type: string
required: false
description: "can the activation key have unlimited hosts"
33 changes: 33 additions & 0 deletions actions/activation_keys.destroy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
description: "Destroy an activation key (resource: DELETE /katello/api/activation_keys/:id)"
enabled: true
runner_type: "python-script"
entry_point: lib/action.py
name: activation_keys.destroy
pack: foreman
parameters:
operation:
type: string
default: activation_keys.destroy
immutable: true
connection:
type: string
description: "Name of <connection> from this pack's configuration that specifies how to connect to a server."
required: false
server:
type: string
description: "Optional override of the server in <connection> (required if <connection> is not specified)."
required: false
username:
type: string
description: "Optional override of the username in <connection> (example: [email protected]) (required if <connection> is not specified)."
required: false
password:
type: string
description: "Optional override of the password in <connection>. (required if <connection> is not specified)"
required: false
secret: true
id:
type: string
required: true
description: "ID of the activation key"
Loading

0 comments on commit cfc6a3f

Please sign in to comment.