Class: MicrosoftGraph::Models::UnifiedRbacResourceAction

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/unified_rbac_resource_action.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new unifiedRbacResourceAction and sets the default values.



61
62
63
# File 'lib/models/unified_rbac_resource_action.rb', line 61

def initialize()
    super
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a unified_rbac_resource_action

Raises:

  • (StandardError)


69
70
71
72
# File 'lib/models/unified_rbac_resource_action.rb', line 69

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return UnifiedRbacResourceAction.new
end

Instance Method Details

#action_verbObject

Gets the actionVerb property value. The actionVerb property

Returns:

  • a string



31
32
33
# File 'lib/models/unified_rbac_resource_action.rb', line 31

def action_verb
    return @action_verb
end

#action_verb=(value) ⇒ Object

Sets the actionVerb property value. The actionVerb property

Parameters:

  • value

    Value to set for the actionVerb property.

Returns:

  • a void



39
40
41
# File 'lib/models/unified_rbac_resource_action.rb', line 39

def action_verb=(value)
    @action_verb = value
end

#authentication_context_idObject

Gets the authenticationContextId property value. The authenticationContextId property

Returns:

  • a string



46
47
48
# File 'lib/models/unified_rbac_resource_action.rb', line 46

def authentication_context_id
    return @authentication_context_id
end

#authentication_context_id=(value) ⇒ Object

Sets the authenticationContextId property value. The authenticationContextId property

Parameters:

  • value

    Value to set for the authenticationContextId property.

Returns:

  • a void



54
55
56
# File 'lib/models/unified_rbac_resource_action.rb', line 54

def authentication_context_id=(value)
    @authentication_context_id = value
end

#descriptionObject

Gets the description property value. The description property

Returns:

  • a string



77
78
79
# File 'lib/models/unified_rbac_resource_action.rb', line 77

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The description property

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



85
86
87
# File 'lib/models/unified_rbac_resource_action.rb', line 85

def description=(value)
    @description = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



92
93
94
95
96
97
98
99
100
101
# File 'lib/models/unified_rbac_resource_action.rb', line 92

def get_field_deserializers()
    return super.merge({
        "actionVerb" => lambda {|n| @action_verb = n.get_string_value() },
        "authenticationContextId" => lambda {|n| @authentication_context_id = n.get_string_value() },
        "description" => lambda {|n| @description = n.get_string_value() },
        "isAuthenticationContextSettable" => lambda {|n| @is_authentication_context_settable = n.get_boolean_value() },
        "name" => lambda {|n| @name = n.get_string_value() },
        "resourceScopeId" => lambda {|n| @resource_scope_id = n.get_string_value() },
    })
end

#is_authentication_context_settableObject

Gets the isAuthenticationContextSettable property value. The isAuthenticationContextSettable property

Returns:

  • a boolean



106
107
108
# File 'lib/models/unified_rbac_resource_action.rb', line 106

def is_authentication_context_settable
    return @is_authentication_context_settable
end

#is_authentication_context_settable=(value) ⇒ Object

Sets the isAuthenticationContextSettable property value. The isAuthenticationContextSettable property

Parameters:

  • value

    Value to set for the isAuthenticationContextSettable property.

Returns:

  • a void



114
115
116
# File 'lib/models/unified_rbac_resource_action.rb', line 114

def is_authentication_context_settable=(value)
    @is_authentication_context_settable = value
end

#nameObject

Gets the name property value. The name property

Returns:

  • a string



121
122
123
# File 'lib/models/unified_rbac_resource_action.rb', line 121

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. The name property

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



129
130
131
# File 'lib/models/unified_rbac_resource_action.rb', line 129

def name=(value)
    @name = value
end

#resource_scope_idObject

Gets the resourceScopeId property value. The resourceScopeId property

Returns:

  • a string



136
137
138
# File 'lib/models/unified_rbac_resource_action.rb', line 136

def resource_scope_id
    return @resource_scope_id
end

#resource_scope_id=(value) ⇒ Object

Sets the resourceScopeId property value. The resourceScopeId property

Parameters:

  • value

    Value to set for the resourceScopeId property.

Returns:

  • a void



144
145
146
# File 'lib/models/unified_rbac_resource_action.rb', line 144

def resource_scope_id=(value)
    @resource_scope_id = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


152
153
154
155
156
157
158
159
160
161
# File 'lib/models/unified_rbac_resource_action.rb', line 152

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("actionVerb", @action_verb)
    writer.write_string_value("authenticationContextId", @authentication_context_id)
    writer.write_string_value("description", @description)
    writer.write_boolean_value("isAuthenticationContextSettable", @is_authentication_context_settable)
    writer.write_string_value("name", @name)
    writer.write_string_value("resourceScopeId", @resource_scope_id)
end