Class: SDM::RabbitMQAMQP091
- Inherits:
-
Object
- Object
- SDM::RabbitMQAMQP091
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#port_override ⇒ Object
Returns the value of attribute port_override.
-
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#tls_required ⇒ Object
Returns the value of attribute tls_required.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, hostname: nil, port_override: nil, port: nil, username: nil, password: nil, tls_required: nil) ⇒ RabbitMQAMQP091
constructor
A new instance of RabbitMQAMQP091.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, hostname: nil, port_override: nil, port: nil, username: nil, password: nil, tls_required: nil) ⇒ RabbitMQAMQP091
Returns a new instance of RabbitMQAMQP091.
746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 |
# File 'lib/models/porcelain.rb', line 746 def initialize( id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, hostname: nil, port_override: nil, port: nil, username: nil, password: nil, tls_required: nil ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if != nil @tags = end if secret_store_id != nil @secret_store_id = secret_store_id end if egress_filter != nil @egress_filter = egress_filter end if hostname != nil @hostname = hostname end if port_override != nil @port_override = port_override end if port != nil @port = port end if username != nil @username = username end if password != nil @password = password end if tls_required != nil @tls_required = tls_required end end |
Instance Attribute Details
#egress_filter ⇒ Object
A filter applied to the routing logic to pin datasource to nodes.
732 733 734 |
# File 'lib/models/porcelain.rb', line 732 def egress_filter @egress_filter end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
726 727 728 |
# File 'lib/models/porcelain.rb', line 726 def healthy @healthy end |
#hostname ⇒ Object
Returns the value of attribute hostname.
734 735 736 |
# File 'lib/models/porcelain.rb', line 734 def hostname @hostname end |
#id ⇒ Object
Unique identifier of the Resource.
722 723 724 |
# File 'lib/models/porcelain.rb', line 722 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
724 725 726 |
# File 'lib/models/porcelain.rb', line 724 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
742 743 744 |
# File 'lib/models/porcelain.rb', line 742 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
738 739 740 |
# File 'lib/models/porcelain.rb', line 738 def port @port end |
#port_override ⇒ Object
Returns the value of attribute port_override.
736 737 738 |
# File 'lib/models/porcelain.rb', line 736 def port_override @port_override end |
#secret_store_id ⇒ Object
ID of the secret store containing credentials for this resource, if any.
730 731 732 |
# File 'lib/models/porcelain.rb', line 730 def secret_store_id @secret_store_id end |
#tags ⇒ Object
Tags is a map of key, value pairs.
728 729 730 |
# File 'lib/models/porcelain.rb', line 728 def @tags end |
#tls_required ⇒ Object
Returns the value of attribute tls_required.
744 745 746 |
# File 'lib/models/porcelain.rb', line 744 def tls_required @tls_required end |
#username ⇒ Object
Returns the value of attribute username.
740 741 742 |
# File 'lib/models/porcelain.rb', line 740 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
798 799 800 801 802 803 804 |
# File 'lib/models/porcelain.rb', line 798 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |