Class: MicrosoftGraph::Models::ApiApplication
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ApiApplication
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/api_application.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
-
#accept_mapped_claims ⇒ Object
Gets the acceptMappedClaims property value.
-
#accept_mapped_claims=(value) ⇒ Object
Sets the acceptMappedClaims property value.
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new apiApplication and sets the default values.
-
#known_client_applications ⇒ Object
Gets the knownClientApplications property value.
-
#known_client_applications=(value) ⇒ Object
Sets the knownClientApplications property value.
-
#oauth2_permission_scopes ⇒ Object
Gets the oauth2PermissionScopes property value.
-
#oauth2_permission_scopes=(value) ⇒ Object
Sets the oauth2PermissionScopes property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#pre_authorized_applications ⇒ Object
Gets the preAuthorizedApplications property value.
-
#pre_authorized_applications=(value) ⇒ Object
Sets the preAuthorizedApplications property value.
-
#requested_access_token_version ⇒ Object
Gets the requestedAccessTokenVersion property value.
-
#requested_access_token_version=(value) ⇒ Object
Sets the requestedAccessTokenVersion property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new apiApplication and sets the default values.
64 65 66 |
# File 'lib/models/api_application.rb', line 64 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
72 73 74 75 |
# File 'lib/models/api_application.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ApiApplication.new end |
Instance Method Details
#accept_mapped_claims ⇒ Object
Gets the acceptMappedClaims property value. When true, allows an application to use claims mapping without specifying a custom signing key.
34 35 36 |
# File 'lib/models/api_application.rb', line 34 def accept_mapped_claims return @accept_mapped_claims end |
#accept_mapped_claims=(value) ⇒ Object
Sets the acceptMappedClaims property value. When true, allows an application to use claims mapping without specifying a custom signing key.
42 43 44 |
# File 'lib/models/api_application.rb', line 42 def accept_mapped_claims=(value) @accept_mapped_claims = value end |
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
49 50 51 |
# File 'lib/models/api_application.rb', line 49 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
57 58 59 |
# File 'lib/models/api_application.rb', line 57 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
80 81 82 83 84 85 86 87 88 89 |
# File 'lib/models/api_application.rb', line 80 def get_field_deserializers() return { "acceptMappedClaims" => lambda {|n| @accept_mapped_claims = n.get_boolean_value() }, "knownClientApplications" => lambda {|n| @known_client_applications = n.get_collection_of_primitive_values(UUIDTools::UUID) }, "oauth2PermissionScopes" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PermissionScope.create_from_discriminator_value(pn) }) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "preAuthorizedApplications" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PreAuthorizedApplication.create_from_discriminator_value(pn) }) }, "requestedAccessTokenVersion" => lambda {|n| @requested_access_token_version = n.get_number_value() }, } end |
#known_client_applications ⇒ Object
Gets the knownClientApplications property value. Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Azure AD knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant.
94 95 96 |
# File 'lib/models/api_application.rb', line 94 def known_client_applications return @known_client_applications end |
#known_client_applications=(value) ⇒ Object
Sets the knownClientApplications property value. Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Azure AD knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant.
102 103 104 |
# File 'lib/models/api_application.rb', line 102 def known_client_applications=(value) @known_client_applications = value end |
#oauth2_permission_scopes ⇒ Object
Gets the oauth2PermissionScopes property value. The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes.
109 110 111 |
# File 'lib/models/api_application.rb', line 109 def return end |
#oauth2_permission_scopes=(value) ⇒ Object
Sets the oauth2PermissionScopes property value. The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes.
117 118 119 |
# File 'lib/models/api_application.rb', line 117 def (value) = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
124 125 126 |
# File 'lib/models/api_application.rb', line 124 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
132 133 134 |
# File 'lib/models/api_application.rb', line 132 def odata_type=(value) @odata_type = value end |
#pre_authorized_applications ⇒ Object
Gets the preAuthorizedApplications property value. Lists the client applications that are pre-authorized with the specified delegated permissions to access this application’s APIs. Users are not required to consent to any pre-authorized application (for the permissions specified). However, any additional permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent.
139 140 141 |
# File 'lib/models/api_application.rb', line 139 def return end |
#pre_authorized_applications=(value) ⇒ Object
Sets the preAuthorizedApplications property value. Lists the client applications that are pre-authorized with the specified delegated permissions to access this application’s APIs. Users are not required to consent to any pre-authorized application (for the permissions specified). However, any additional permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent.
147 148 149 |
# File 'lib/models/api_application.rb', line 147 def (value) = value end |
#requested_access_token_version ⇒ Object
Gets the requestedAccessTokenVersion property value. Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2.
154 155 156 |
# File 'lib/models/api_application.rb', line 154 def requested_access_token_version return @requested_access_token_version end |
#requested_access_token_version=(value) ⇒ Object
Sets the requestedAccessTokenVersion property value. Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2.
162 163 164 |
# File 'lib/models/api_application.rb', line 162 def requested_access_token_version=(value) @requested_access_token_version = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/api_application.rb', line 170 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("acceptMappedClaims", @accept_mapped_claims) writer.write_collection_of_primitive_values("knownClientApplications", @known_client_applications) writer.write_collection_of_object_values("oauth2PermissionScopes", ) writer.write_string_value("@odata.type", @odata_type) writer.write_collection_of_object_values("preAuthorizedApplications", ) writer.write_number_value("requestedAccessTokenVersion", @requested_access_token_version) writer.write_additional_data(@additional_data) end |