Class: MicrosoftGraph::Models::AppConsentRequest
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/app_consent_request.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#app_display_name ⇒ Object
Gets the appDisplayName property value.
-
#app_display_name=(value) ⇒ Object
Sets the appDisplayName property value.
-
#app_id ⇒ Object
Gets the appId property value.
-
#app_id=(value) ⇒ Object
Sets the appId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new appConsentRequest and sets the default values.
-
#pending_scopes ⇒ Object
Gets the pendingScopes property value.
-
#pending_scopes=(value) ⇒ Object
Sets the pendingScopes property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_consent_requests ⇒ Object
Gets the userConsentRequests property value.
-
#user_consent_requests=(value) ⇒ Object
Sets the userConsentRequests property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_name ⇒ Object
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_id ⇒ Object
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_deserializers ⇒ Object
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| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserConsentRequest.create_from_discriminator_value(pn) }) }, }) end |
#pending_scopes ⇒ Object
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
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", ) end |
#user_consent_requests ⇒ Object
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 return end |
#user_consent_requests=(value) ⇒ Object
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 (value) = value end |