class AnsibleTowerClient::Credential
Constants
Public Instance Methods
credential_type()
click to toggle source
# File lib/ansible_tower_client/base_models/credential.rb, line 37 def credential_type @credential_type ||= api.credential_types.find(credential_type_id) end
kind()
click to toggle source
# File lib/ansible_tower_client/base_models/credential.rb, line 30 def kind @data['kind'] ||= begin kind = credential_type.kind kind == 'cloud' ? KIND_CHOICES[credential_type.name] : kind end.to_s end
override_raw_attributes()
click to toggle source
# File lib/ansible_tower_client/base_models/credential.rb, line 3 def override_raw_attributes { :organization => :organization_id, :credential_type => :credential_type_id, } end
vault_password()
click to toggle source
# File lib/ansible_tower_client/base_models/credential.rb, line 41 def vault_password @data['vault_password'] ||= begin has_vault_password = respond_to?(:inputs) && inputs.respond_to?(:vault_password) (inputs.vault_password if has_vault_password).to_s end end