Class: Ansible::Ruby::Modules::Aos_template
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Aos_template
- Defined in:
- lib/ansible/ruby/modules/generated/network/aos/aos_template.rb
Overview
Apstra AOS Template module let you manage your Template easily. You can create create and delete Template by Name, ID or by using a JSON File. This module is idempotent and support the I(check) mode. It’s using the AOS REST API.
Instance Method Summary collapse
-
#content ⇒ String?
Datastructure of the Template to create.
-
#id ⇒ String?
AOS Id of the Template to manage (can’t be used to create a new Template), Only one of I(name), I(id) or I(src) can be set.
-
#name ⇒ String?
Name of the Template to manage.
-
#session ⇒ String
An existing AOS session as obtained by M(aos_login) module.
-
#state ⇒ :present, ...
Indicate what is the expected state of the Template (present or not).
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#content ⇒ String?
Returns Datastructure of the Template to create. The data can be in YAML / JSON or directly a variable. It’s the same datastructure that is returned on success in I(value).
24 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_template.rb', line 24 attribute :content |
#id ⇒ String?
Returns AOS Id of the Template to manage (can’t be used to create a new Template), Only one of I(name), I(id) or I(src) can be set.
20 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_template.rb', line 20 attribute :id |
#name ⇒ String?
Returns Name of the Template to manage. Only one of I(name), I(id) or I(src) can be set.
16 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_template.rb', line 16 attribute :name |
#session ⇒ String
Returns An existing AOS session as obtained by M(aos_login) module.
12 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_template.rb', line 12 attribute :session |
#state ⇒ :present, ...
Returns Indicate what is the expected state of the Template (present or not).
28 |
# File 'lib/ansible/ruby/modules/generated/network/aos/aos_template.rb', line 28 attribute :state |