Class: MicrosoftGraph::Models::AppConsentRequest

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/app_consent_request.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 appConsentRequest and sets the default values.



55
56
57
# File 'lib/models/app_consent_request.rb', line 55

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

Raises:

  • (StandardError)


63
64
65
66
# File 'lib/models/app_consent_request.rb', line 63

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

Instance Method Details

#app_display_nameObject

Gets the appDisplayName property value. The display name of the app for which consent is requested. Required. Supports $filter (eq only) and $orderby.



25
26
27
# File 'lib/models/app_consent_request.rb', line 25

def app_display_name
    return @app_display_name
end

#app_display_name=(value) ⇒ Object

Sets the appDisplayName property value. The display name of the app for which consent is requested. Required. Supports $filter (eq only) and $orderby.



33
34
35
# File 'lib/models/app_consent_request.rb', line 33

def app_display_name=(value)
    @app_display_name = value
end

#app_idObject

Gets the appId property value. The identifier of the application. Required. Supports $filter (eq only) and $orderby.



40
41
42
# File 'lib/models/app_consent_request.rb', line 40

def app_id
    return @app_id
end

#app_id=(value) ⇒ Object

Sets the appId property value. The identifier of the application. Required. Supports $filter (eq only) and $orderby.



48
49
50
# File 'lib/models/app_consent_request.rb', line 48

def app_id=(value)
    @app_id = value
end

#get_field_deserializersObject

The deserialization information for the current model



71
72
73
74
75
76
77
78
# File 'lib/models/app_consent_request.rb', line 71

def get_field_deserializers()
    return super.merge({
        "appDisplayName" => lambda {|n| @app_display_name = n.get_string_value() },
        "appId" => lambda {|n| @app_id = n.get_string_value() },
        "pendingScopes" => lambda {|n| @pending_scopes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AppConsentRequestScope.create_from_discriminator_value(pn) }) },
        "userConsentRequests" => lambda {|n| @user_consent_requests = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserConsentRequest.create_from_discriminator_value(pn) }) },
    })
end

#pending_scopesObject

Gets the pendingScopes property value. A list of pending scopes waiting for approval. Required.



83
84
85
# File 'lib/models/app_consent_request.rb', line 83

def pending_scopes
    return @pending_scopes
end

#pending_scopes=(value) ⇒ Object

Sets the pendingScopes property value. A list of pending scopes waiting for approval. Required.



91
92
93
# File 'lib/models/app_consent_request.rb', line 91

def pending_scopes=(value)
    @pending_scopes = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Raises:

  • (StandardError)


99
100
101
102
103
104
105
106
# File 'lib/models/app_consent_request.rb', line 99

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("appDisplayName", @app_display_name)
    writer.write_string_value("appId", @app_id)
    writer.write_collection_of_object_values("pendingScopes", @pending_scopes)
    writer.write_collection_of_object_values("userConsentRequests", @user_consent_requests)
end

Gets the userConsentRequests property value. A list of pending user consent requests. Supports $filter (eq).



111
112
113
# File 'lib/models/app_consent_request.rb', line 111

def user_consent_requests
    return @user_consent_requests
end

Sets the userConsentRequests property value. A list of pending user consent requests. Supports $filter (eq).



119
120
121
# File 'lib/models/app_consent_request.rb', line 119

def user_consent_requests=(value)
    @user_consent_requests = value
end