class AnsibleTowerClient::Credential

Constants

KIND_CHOICES

github.com/ansible/awx/blob/1328fb80a02ef4e37bc021eb07d4be041a41f937/awx/main/models/credential/__init__.py#L76-L90

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

github.com/ansible/awx/blob/1328fb80a02ef4e37bc021eb07d4be041a41f937/awx/main/models/credential/__init__.py#L301

# 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