Class: Ansible::Ruby::Modules::Os_user_role

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb

Overview

Grant and revoke roles in either project or domain context for OpenStack Identity Users.

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

#availability_zoneObject?

Returns Ignored. Present for backwards compatibility.

Returns:

  • (Object, nil)

    Ignored. Present for backwards compatibility



35
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb', line 35

attribute :availability_zone

#domainString?

Returns ID of the domain to scope the role association to. Valid only with keystone version 3, and required if I(project) is not specified.

Returns:

  • (String, nil)

    ID of the domain to scope the role association to. Valid only with keystone version 3, and required if I(project) is not specified.



27
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb', line 27

attribute :domain

#groupObject?

Returns Name or ID for the group. Valid only with keystone version 3. If I(group) is not specified, then I(user) is required. Both may not be specified.

Returns:

  • (Object, nil)

    Name or ID for the group. Valid only with keystone version 3. If I(group) is not specified, then I(user) is required. Both may not be specified.



20
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb', line 20

attribute :group

#projectString?

Returns Name or ID of the project to scope the role association to. If you are using keystone version 2, then this value is required.

Returns:

  • (String, nil)

    Name or ID of the project to scope the role association to. If you are using keystone version 2, then this value is required.



23
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb', line 23

attribute :project

#roleString

Returns Name or ID for the role.

Returns:

  • (String)

    Name or ID for the role.



12
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb', line 12

attribute :role

#state:present, ...

Returns Should the roles be present or absent on the user.

Returns:

  • (:present, :absent, nil)

    Should the roles be present or absent on the user.



31
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb', line 31

attribute :state

#userString?

Returns Name or ID for the user. If I(user) is not specified, then I(group) is required. Both may not be specified.

Returns:

  • (String, nil)

    Name or ID for the user. If I(user) is not specified, then I(group) is required. Both may not be specified.



16
# File 'lib/ansible/ruby/modules/generated/cloud/openstack/os_user_role.rb', line 16

attribute :user