Class: Ansible::Ruby::Modules::Gitlab_deploy_key

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb

Overview

Adds, updates and removes project deploy keys

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#access_tokenString?

Returns The oauth key provided by GitLab. One of access_token or private_token is required. See docs.gitlab.com/ee/api/oauth2.html.

Returns:



16
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 16

attribute :access_token

#api_urlString

Returns GitLab API url, e.g. gitlab.example.com/api.

Returns:



12
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 12

attribute :api_url

#can_push:yes, ...

Returns Whether this key can push to the project.

Returns:

  • (:yes, :no, nil)

    Whether this key can push to the project



35
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 35

attribute :can_push

#keyString

Returns Deploy key.

Returns:

  • (String)

    Deploy key



31
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 31

attribute :key

#private_tokenObject?

Returns Personal access token to use. One of private_token or access_token is required. See docs.gitlab.com/ee/user/profile/personal_access_tokens.html.

Returns:



20
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 20

attribute :private_token

#projectString

Returns Numeric project id or name of project in the form of group/name.

Returns:

  • (String)

    Numeric project id or name of project in the form of group/name



23
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 23

attribute :project

#state:present, :absent

Returns When C(present) the deploy key added to the project if it doesn’t exist.,When C(absent) it will be removed from the project if it exists.

Returns:

  • (:present, :absent)

    When C(present) the deploy key added to the project if it doesn’t exist.,When C(absent) it will be removed from the project if it exists



39
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 39

attribute :state

#titleString

Returns Deploy key’s title.

Returns:

  • (String)

    Deploy key’s title



27
# File 'lib/ansible/ruby/modules/generated/source_control/gitlab_deploy_key.rb', line 27

attribute :title