Class: MicrosoftGraph::Models::Application

Inherits:
DirectoryObject show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/application.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DirectoryObject

#deleted_date_time, #deleted_date_time=

Methods inherited from Entity

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

Constructor Details

#initialize ⇒ Object

Instantiates a new application and sets the default values.



248
249
250
251
# File 'lib/models/application.rb', line 248

def initialize()
    super
    @odata_type = "#microsoft.graph.application"
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 application

Raises:

  • (StandardError)


287
288
289
290
# File 'lib/models/application.rb', line 287

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

Instance Method Details

#add_ins ⇒ Object

Gets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Office 365 call the application in the context of a document the user is working on.

Returns:

  • a add_in



143
144
145
# File 'lib/models/application.rb', line 143

def add_ins
    return @add_ins
end

#add_ins=(value) ⇒ Object

Sets the addIns property value. Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This will let services like Office 365 call the application in the context of a document the user is working on.

Parameters:

  • value —

    Value to set for the add_ins property.

Returns:

  • a void



151
152
153
# File 'lib/models/application.rb', line 151

def add_ins=(value)
    @add_ins = value
end

#api ⇒ Object

Gets the api property value. Specifies settings for an application that implements a web API.

Returns:

  • a api_application



158
159
160
# File 'lib/models/application.rb', line 158

def api
    return @api
end

#api=(value) ⇒ Object

Sets the api property value. Specifies settings for an application that implements a web API.

Parameters:

  • value —

    Value to set for the api property.

Returns:

  • a void



166
167
168
# File 'lib/models/application.rb', line 166

def api=(value)
    @api = value
end

#app_id ⇒ Object

Gets the appId property value. The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only. Supports $filter (eq).

Returns:

  • a string



173
174
175
# File 'lib/models/application.rb', line 173

def app_id
    return @app_id
end

#app_id=(value) ⇒ Object

Sets the appId property value. The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only. Supports $filter (eq).

Parameters:

  • value —

    Value to set for the app_id property.

Returns:

  • a void



181
182
183
# File 'lib/models/application.rb', line 181

def app_id=(value)
    @app_id = value
end

#app_management_policies ⇒ Object

Gets the appManagementPolicies property value. The appManagementPolicy applied to this application.

Returns:

  • a app_management_policy



188
189
190
# File 'lib/models/application.rb', line 188

def app_management_policies
    return @app_management_policies
end

#app_management_policies=(value) ⇒ Object

Sets the appManagementPolicies property value. The appManagementPolicy applied to this application.

Parameters:

  • value —

    Value to set for the app_management_policies property.

Returns:

  • a void



196
197
198
# File 'lib/models/application.rb', line 196

def app_management_policies=(value)
    @app_management_policies = value
end

#app_roles ⇒ Object

Gets the appRoles property value. The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.

Returns:

  • a app_role



203
204
205
# File 'lib/models/application.rb', line 203

def app_roles
    return @app_roles
end

#app_roles=(value) ⇒ Object

Sets the appRoles property value. The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.

Parameters:

  • value —

    Value to set for the app_roles property.

Returns:

  • a void



211
212
213
# File 'lib/models/application.rb', line 211

def app_roles=(value)
    @app_roles = value
end

#application_template_id ⇒ Object

Gets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne).

Returns:

  • a string



218
219
220
# File 'lib/models/application.rb', line 218

def application_template_id
    return @application_template_id
end

#application_template_id=(value) ⇒ Object

Sets the applicationTemplateId property value. Unique identifier of the applicationTemplate. Supports $filter (eq, not, ne).

Parameters:

  • value —

    Value to set for the application_template_id property.

Returns:

  • a void



226
227
228
# File 'lib/models/application.rb', line 226

def application_template_id=(value)
    @application_template_id = value
end

#certification ⇒ Object

Gets the certification property value. Specifies the certification status of the application.

Returns:

  • a certification



233
234
235
# File 'lib/models/application.rb', line 233

def certification
    return @certification
end

#certification=(value) ⇒ Object

Sets the certification property value. Specifies the certification status of the application.

Parameters:

  • value —

    Value to set for the certification property.

Returns:

  • a void



241
242
243
# File 'lib/models/application.rb', line 241

def certification=(value)
    @certification = value
end

#created_date_time ⇒ Object

Gets the createdDateTime property value. The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, in, and eq on null values) and $orderBy.

Returns:

  • a date_time



256
257
258
# File 'lib/models/application.rb', line 256

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, in, and eq on null values) and $orderBy.

Parameters:

  • value —

    Value to set for the created_date_time property.

Returns:

  • a void



264
265
266
# File 'lib/models/application.rb', line 264

def created_date_time=(value)
    @created_date_time = value
end

#created_on_behalf_of ⇒ Object

Gets the createdOnBehalfOf property value. Supports $filter (/$count eq 0, /$count ne 0). Read-only.

Returns:

  • a directory_object



271
272
273
# File 'lib/models/application.rb', line 271

def created_on_behalf_of
    return @created_on_behalf_of
end

#created_on_behalf_of=(value) ⇒ Object

Sets the createdOnBehalfOf property value. Supports $filter (/$count eq 0, /$count ne 0). Read-only.

Parameters:

  • value —

    Value to set for the created_on_behalf_of property.

Returns:

  • a void



279
280
281
# File 'lib/models/application.rb', line 279

def created_on_behalf_of=(value)
    @created_on_behalf_of = value
end

#default_redirect_uri ⇒ Object

Gets the defaultRedirectUri property value. The defaultRedirectUri property

Returns:

  • a string



295
296
297
# File 'lib/models/application.rb', line 295

def default_redirect_uri
    return @default_redirect_uri
end

#default_redirect_uri=(value) ⇒ Object

Sets the defaultRedirectUri property value. The defaultRedirectUri property

Parameters:

  • value —

    Value to set for the default_redirect_uri property.

Returns:

  • a void



303
304
305
# File 'lib/models/application.rb', line 303

def default_redirect_uri=(value)
    @default_redirect_uri = value
end

#description ⇒ Object

Gets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search.

Returns:

  • a string



310
311
312
# File 'lib/models/application.rb', line 310

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search.

Parameters:

  • value —

    Value to set for the description property.

Returns:

  • a void



318
319
320
# File 'lib/models/application.rb', line 318

def description=(value)
    @description = value
end

#disabled_by_microsoft_status ⇒ Object

Gets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not).

Returns:

  • a string



325
326
327
# File 'lib/models/application.rb', line 325

def disabled_by_microsoft_status
    return @disabled_by_microsoft_status
end

#disabled_by_microsoft_status=(value) ⇒ Object

Sets the disabledByMicrosoftStatus property value. Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). Supports $filter (eq, ne, not).

Parameters:

  • value —

    Value to set for the disabled_by_microsoft_status property.

Returns:

  • a void



333
334
335
# File 'lib/models/application.rb', line 333

def disabled_by_microsoft_status=(value)
    @disabled_by_microsoft_status = value
end

#display_name ⇒ Object

Gets the displayName property value. The display name for the application. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.

Returns:

  • a string



340
341
342
# File 'lib/models/application.rb', line 340

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name for the application. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.

Parameters:

  • value —

    Value to set for the display_name property.

Returns:

  • a void



348
349
350
# File 'lib/models/application.rb', line 348

def display_name=(value)
    @display_name = value
end

#extension_properties ⇒ Object

Gets the extensionProperties property value. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0).

Returns:

  • a extension_property



355
356
357
# File 'lib/models/application.rb', line 355

def extension_properties
    return @extension_properties
end

#extension_properties=(value) ⇒ Object

Sets the extensionProperties property value. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0).

Parameters:

  • value —

    Value to set for the extension_properties property.

Returns:

  • a void



363
364
365
# File 'lib/models/application.rb', line 363

def extension_properties=(value)
    @extension_properties = value
end

#federated_identity_credentials ⇒ Object

Gets the federatedIdentityCredentials property value. Federated identities for applications. Supports $expand and $filter (startsWith, /$count eq 0, /$count ne 0).

Returns:

  • a federated_identity_credential



370
371
372
# File 'lib/models/application.rb', line 370

def federated_identity_credentials
    return @federated_identity_credentials
end

#federated_identity_credentials=(value) ⇒ Object

Sets the federatedIdentityCredentials property value. Federated identities for applications. Supports $expand and $filter (startsWith, /$count eq 0, /$count ne 0).

Parameters:

  • value —

    Value to set for the federated_identity_credentials property.

Returns:

  • a void



378
379
380
# File 'lib/models/application.rb', line 378

def federated_identity_credentials=(value)
    @federated_identity_credentials = value
end

#get_field_deserializers ⇒ Object

The deserialization information for the current model

Returns:

  • a i_dictionary



385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
# File 'lib/models/application.rb', line 385

def get_field_deserializers()
    return super.merge({
        "addIns" => lambda {|n| @add_ins = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AddIn.create_from_discriminator_value(pn) }) },
        "api" => lambda {|n| @api = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ApiApplication.create_from_discriminator_value(pn) }) },
        "appId" => lambda {|n| @app_id = n.get_string_value() },
        "appManagementPolicies" => lambda {|n| @app_management_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AppManagementPolicy.create_from_discriminator_value(pn) }) },
        "appRoles" => lambda {|n| @app_roles = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AppRole.create_from_discriminator_value(pn) }) },
        "applicationTemplateId" => lambda {|n| @application_template_id = n.get_string_value() },
        "certification" => lambda {|n| @certification = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Certification.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "createdOnBehalfOf" => lambda {|n| @created_on_behalf_of = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "defaultRedirectUri" => lambda {|n| @default_redirect_uri = n.get_string_value() },
        "description" => lambda {|n| @description = n.get_string_value() },
        "disabledByMicrosoftStatus" => lambda {|n| @disabled_by_microsoft_status = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "extensionProperties" => lambda {|n| @extension_properties = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ExtensionProperty.create_from_discriminator_value(pn) }) },
        "federatedIdentityCredentials" => lambda {|n| @federated_identity_credentials = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::FederatedIdentityCredential.create_from_discriminator_value(pn) }) },
        "groupMembershipClaims" => lambda {|n| @group_membership_claims = n.get_string_value() },
        "homeRealmDiscoveryPolicies" => lambda {|n| @home_realm_discovery_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::HomeRealmDiscoveryPolicy.create_from_discriminator_value(pn) }) },
        "identifierUris" => lambda {|n| @identifier_uris = n.get_collection_of_primitive_values(String) },
        "info" => lambda {|n| @info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::InformationalUrl.create_from_discriminator_value(pn) }) },
        "isDeviceOnlyAuthSupported" => lambda {|n| @is_device_only_auth_supported = n.get_boolean_value() },
        "isFallbackPublicClient" => lambda {|n| @is_fallback_public_client = n.get_boolean_value() },
        "keyCredentials" => lambda {|n| @key_credentials = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyCredential.create_from_discriminator_value(pn) }) },
        "logo" => lambda {|n| @logo = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) },
        "notes" => lambda {|n| @notes = n.get_string_value() },
        "oauth2RequirePostResponse" => lambda {|n| @oauth2_require_post_response = n.get_boolean_value() },
        "optionalClaims" => lambda {|n| @optional_claims = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::OptionalClaims.create_from_discriminator_value(pn) }) },
        "owners" => lambda {|n| @owners = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "parentalControlSettings" => lambda {|n| @parental_control_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ParentalControlSettings.create_from_discriminator_value(pn) }) },
        "passwordCredentials" => lambda {|n| @password_credentials = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PasswordCredential.create_from_discriminator_value(pn) }) },
        "publicClient" => lambda {|n| @public_client = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PublicClientApplication.create_from_discriminator_value(pn) }) },
        "publisherDomain" => lambda {|n| @publisher_domain = n.get_string_value() },
        "requestSignatureVerification" => lambda {|n| @request_signature_verification = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::RequestSignatureVerification.create_from_discriminator_value(pn) }) },
        "requiredResourceAccess" => lambda {|n| @required_resource_access = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RequiredResourceAccess.create_from_discriminator_value(pn) }) },
        "samlMetadataUrl" => lambda {|n| @saml_metadata_url = n.get_string_value() },
        "serviceManagementReference" => lambda {|n| @service_management_reference = n.get_string_value() },
        "signInAudience" => lambda {|n| @sign_in_audience = n.get_string_value() },
        "spa" => lambda {|n| @spa = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SpaApplication.create_from_discriminator_value(pn) }) },
        "tags" => lambda {|n| @tags = n.get_collection_of_primitive_values(String) },
        "tokenEncryptionKeyId" => lambda {|n| @token_encryption_key_id = n.get_guid_value() },
        "tokenIssuancePolicies" => lambda {|n| @token_issuance_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TokenIssuancePolicy.create_from_discriminator_value(pn) }) },
        "tokenLifetimePolicies" => lambda {|n| @token_lifetime_policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TokenLifetimePolicy.create_from_discriminator_value(pn) }) },
        "verifiedPublisher" => lambda {|n| @verified_publisher = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::VerifiedPublisher.create_from_discriminator_value(pn) }) },
        "web" => lambda {|n| @web = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WebApplication.create_from_discriminator_value(pn) }) },
    })
end

#group_membership_claims ⇒ Object

Gets the groupMembershipClaims property value. Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Azure AD roles), All (this gets all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of).

Returns:

  • a string



436
437
438
# File 'lib/models/application.rb', line 436

def group_membership_claims
    return @group_membership_claims
end

#group_membership_claims=(value) ⇒ Object

Sets the groupMembershipClaims property value. Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Azure AD roles), All (this gets all of the security groups, distribution groups, and Azure AD directory roles that the signed-in user is a member of).

Parameters:

  • value —

    Value to set for the group_membership_claims property.

Returns:

  • a void



444
445
446
# File 'lib/models/application.rb', line 444

def group_membership_claims=(value)
    @group_membership_claims = value
end

#home_realm_discovery_policies ⇒ Object

Gets the homeRealmDiscoveryPolicies property value. The homeRealmDiscoveryPolicies property

Returns:

  • a home_realm_discovery_policy



451
452
453
# File 'lib/models/application.rb', line 451

def home_realm_discovery_policies
    return @home_realm_discovery_policies
end

#home_realm_discovery_policies=(value) ⇒ Object

Sets the homeRealmDiscoveryPolicies property value. The homeRealmDiscoveryPolicies property

Parameters:

  • value —

    Value to set for the home_realm_discovery_policies property.

Returns:

  • a void



459
460
461
# File 'lib/models/application.rb', line 459

def home_realm_discovery_policies=(value)
    @home_realm_discovery_policies = value
end

#identifier_uris ⇒ Object

Gets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Azure AD application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith).

Returns:

  • a string



466
467
468
# File 'lib/models/application.rb', line 466

def identifier_uris
    return @identifier_uris
end

#identifier_uris=(value) ⇒ Object

Sets the identifierUris property value. Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you'll reference in your API's code, and it must be globally unique. You can use the default value provided, which is in the form api://, or specify a more readable URI like https://contoso.com/api. For more information on valid identifierUris patterns and best practices, see Azure AD application registration security best practices. Not nullable. Supports $filter (eq, ne, ge, le, startsWith).

Parameters:

  • value —

    Value to set for the identifier_uris property.

Returns:

  • a void



474
475
476
# File 'lib/models/application.rb', line 474

def identifier_uris=(value)
    @identifier_uris = value
end

#info ⇒ Object

Gets the info property value. Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values).

Returns:

  • a informational_url



481
482
483
# File 'lib/models/application.rb', line 481

def info
    return @info
end

#info=(value) ⇒ Object

Sets the info property value. Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Azure AD apps. Supports $filter (eq, ne, not, ge, le, and eq on null values).

Parameters:

  • value —

    Value to set for the info property.

Returns:

  • a void



489
490
491
# File 'lib/models/application.rb', line 489

def info=(value)
    @info = value
end

#is_device_only_auth_supported ⇒ Object

Gets the isDeviceOnlyAuthSupported property value. Specifies whether this application supports device authentication without a user. The default is false.

Returns:

  • a boolean



496
497
498
# File 'lib/models/application.rb', line 496

def is_device_only_auth_supported
    return @is_device_only_auth_supported
end

#is_device_only_auth_supported=(value) ⇒ Object

Sets the isDeviceOnlyAuthSupported property value. Specifies whether this application supports device authentication without a user. The default is false.

Parameters:

  • value —

    Value to set for the is_device_only_auth_supported property.

Returns:

  • a void



504
505
506
# File 'lib/models/application.rb', line 504

def is_device_only_auth_supported=(value)
    @is_device_only_auth_supported = value
end

#is_fallback_public_client ⇒ Object

Gets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Azure AD cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Azure AD interprets the application type based on the value of this property.

Returns:

  • a boolean



511
512
513
# File 'lib/models/application.rb', line 511

def is_fallback_public_client
    return @is_fallback_public_client
end

#is_fallback_public_client=(value) ⇒ Object

Sets the isFallbackPublicClient property value. Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false which means the fallback application type is confidential client such as a web app. There are certain scenarios where Azure AD cannot determine the client application type. For example, the ROPC flow where it is configured without specifying a redirect URI. In those cases Azure AD interprets the application type based on the value of this property.

Parameters:

  • value —

    Value to set for the is_fallback_public_client property.

Returns:

  • a void



519
520
521
# File 'lib/models/application.rb', line 519

def is_fallback_public_client=(value)
    @is_fallback_public_client = value
end

#key_credentials ⇒ Object

Gets the keyCredentials property value. The collection of key credentials associated with the application. Not nullable. Supports $filter (eq, not, ge, le).

Returns:

  • a key_credential



526
527
528
# File 'lib/models/application.rb', line 526

def key_credentials
    return @key_credentials
end

#key_credentials=(value) ⇒ Object

Sets the keyCredentials property value. The collection of key credentials associated with the application. Not nullable. Supports $filter (eq, not, ge, le).

Parameters:

  • value —

    Value to set for the key_credentials property.

Returns:

  • a void



534
535
536
# File 'lib/models/application.rb', line 534

def key_credentials=(value)
    @key_credentials = value
end

#logo ⇒ Object

Gets the logo property value. The main logo for the application. Not nullable.

Returns:

  • a base64url



541
542
543
# File 'lib/models/application.rb', line 541

def 
    return @logo
end

#logo=(value) ⇒ Object

Sets the logo property value. The main logo for the application. Not nullable.

Parameters:

  • value —

    Value to set for the logo property.

Returns:

  • a void



549
550
551
# File 'lib/models/application.rb', line 549

def logo=(value)
    @logo = value
end

#notes ⇒ Object

Gets the notes property value. Notes relevant for the management of the application.

Returns:

  • a string



556
557
558
# File 'lib/models/application.rb', line 556

def notes
    return @notes
end

#notes=(value) ⇒ Object

Sets the notes property value. Notes relevant for the management of the application.

Parameters:

  • value —

    Value to set for the notes property.

Returns:

  • a void



564
565
566
# File 'lib/models/application.rb', line 564

def notes=(value)
    @notes = value
end

#oauth2_require_post_response ⇒ Object

Gets the oauth2RequirePostResponse property value. The oauth2RequirePostResponse property

Returns:

  • a boolean



571
572
573
# File 'lib/models/application.rb', line 571

def oauth2_require_post_response
    return @oauth2_require_post_response
end

#oauth2_require_post_response=(value) ⇒ Object

Sets the oauth2RequirePostResponse property value. The oauth2RequirePostResponse property

Parameters:

  • value —

    Value to set for the oauth2_require_post_response property.

Returns:

  • a void



579
580
581
# File 'lib/models/application.rb', line 579

def oauth2_require_post_response=(value)
    @oauth2_require_post_response = value
end

#optional_claims ⇒ Object

Gets the optionalClaims property value. Application developers can configure optional claims in their Azure AD applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app.

Returns:

  • a optional_claims



586
587
588
# File 'lib/models/application.rb', line 586

def optional_claims
    return @optional_claims
end

#optional_claims=(value) ⇒ Object

Sets the optionalClaims property value. Application developers can configure optional claims in their Azure AD applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app.

Parameters:

  • value —

    Value to set for the optional_claims property.

Returns:

  • a void



594
595
596
# File 'lib/models/application.rb', line 594

def optional_claims=(value)
    @optional_claims = value
end

#owners ⇒ Object

Gets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).

Returns:

  • a directory_object



601
602
603
# File 'lib/models/application.rb', line 601

def owners
    return @owners
end

#owners=(value) ⇒ Object

Sets the owners property value. Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1).

Parameters:

  • value —

    Value to set for the owners property.

Returns:

  • a void



609
610
611
# File 'lib/models/application.rb', line 609

def owners=(value)
    @owners = value
end

#parental_control_settings ⇒ Object

Gets the parentalControlSettings property value. Specifies parental control settings for an application.

Returns:

  • a parental_control_settings



616
617
618
# File 'lib/models/application.rb', line 616

def parental_control_settings
    return @parental_control_settings
end

#parental_control_settings=(value) ⇒ Object

Sets the parentalControlSettings property value. Specifies parental control settings for an application.

Parameters:

  • value —

    Value to set for the parental_control_settings property.

Returns:

  • a void



624
625
626
# File 'lib/models/application.rb', line 624

def parental_control_settings=(value)
    @parental_control_settings = value
end

#password_credentials ⇒ Object

Gets the passwordCredentials property value. The collection of password credentials associated with the application. Not nullable.

Returns:

  • a password_credential



631
632
633
# File 'lib/models/application.rb', line 631

def password_credentials
    return @password_credentials
end

#password_credentials=(value) ⇒ Object

Sets the passwordCredentials property value. The collection of password credentials associated with the application. Not nullable.

Parameters:

  • value —

    Value to set for the password_credentials property.

Returns:

  • a void



639
640
641
# File 'lib/models/application.rb', line 639

def password_credentials=(value)
    @password_credentials = value
end

#public_client ⇒ Object

Gets the publicClient property value. Specifies settings for installed clients such as desktop or mobile devices.

Returns:

  • a public_client_application



646
647
648
# File 'lib/models/application.rb', line 646

def public_client
    return @public_client
end

#public_client=(value) ⇒ Object

Sets the publicClient property value. Specifies settings for installed clients such as desktop or mobile devices.

Parameters:

  • value —

    Value to set for the public_client property.

Returns:

  • a void



654
655
656
# File 'lib/models/application.rb', line 654

def public_client=(value)
    @public_client = value
end

#publisher_domain ⇒ Object

Gets the publisherDomain property value. The verified publisher domain for the application. Read-only. For more information, see How to: Configure an application's publisher domain. Supports $filter (eq, ne, ge, le, startsWith).

Returns:

  • a string



661
662
663
# File 'lib/models/application.rb', line 661

def publisher_domain
    return @publisher_domain
end

#publisher_domain=(value) ⇒ Object

Sets the publisherDomain property value. The verified publisher domain for the application. Read-only. For more information, see How to: Configure an application's publisher domain. Supports $filter (eq, ne, ge, le, startsWith).

Parameters:

  • value —

    Value to set for the publisher_domain property.

Returns:

  • a void



669
670
671
# File 'lib/models/application.rb', line 669

def publisher_domain=(value)
    @publisher_domain = value
end

#request_signature_verification ⇒ Object

Gets the requestSignatureVerification property value. Specifies whether this application requires Azure AD to verify the signed authentication requests.

Returns:

  • a request_signature_verification



676
677
678
# File 'lib/models/application.rb', line 676

def request_signature_verification
    return @request_signature_verification
end

#request_signature_verification=(value) ⇒ Object

Sets the requestSignatureVerification property value. Specifies whether this application requires Azure AD to verify the signed authentication requests.

Parameters:

  • value —

    Value to set for the request_signature_verification property.

Returns:

  • a void



684
685
686
# File 'lib/models/application.rb', line 684

def request_signature_verification=(value)
    @request_signature_verification = value
end

#required_resource_access ⇒ Object

Gets the requiredResourceAccess property value. Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable. Supports $filter (eq, not, ge, le).

Returns:

  • a required_resource_access



691
692
693
# File 'lib/models/application.rb', line 691

def required_resource_access
    return @required_resource_access
end

#required_resource_access=(value) ⇒ Object

Sets the requiredResourceAccess property value. Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable. Supports $filter (eq, not, ge, le).

Parameters:

  • value —

    Value to set for the required_resource_access property.

Returns:

  • a void



699
700
701
# File 'lib/models/application.rb', line 699

def required_resource_access=(value)
    @required_resource_access = value
end

#saml_metadata_url ⇒ Object

Gets the samlMetadataUrl property value. The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.

Returns:

  • a string



706
707
708
# File 'lib/models/application.rb', line 706

def 
    return @saml_metadata_url
end

#saml_metadata_url=(value) ⇒ Object

Sets the samlMetadataUrl property value. The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.

Parameters:

  • value —

    Value to set for the saml_metadata_url property.

Returns:

  • a void



714
715
716
# File 'lib/models/application.rb', line 714

def (value)
    @saml_metadata_url = 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)


722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
# File 'lib/models/application.rb', line 722

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("addIns", @add_ins)
    writer.write_object_value("api", @api)
    writer.write_string_value("appId", @app_id)
    writer.write_collection_of_object_values("appManagementPolicies", @app_management_policies)
    writer.write_collection_of_object_values("appRoles", @app_roles)
    writer.write_string_value("applicationTemplateId", @application_template_id)
    writer.write_object_value("certification", @certification)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_object_value("createdOnBehalfOf", @created_on_behalf_of)
    writer.write_string_value("defaultRedirectUri", @default_redirect_uri)
    writer.write_string_value("description", @description)
    writer.write_string_value("disabledByMicrosoftStatus", @disabled_by_microsoft_status)
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_object_values("extensionProperties", @extension_properties)
    writer.write_collection_of_object_values("federatedIdentityCredentials", @federated_identity_credentials)
    writer.write_string_value("groupMembershipClaims", @group_membership_claims)
    writer.write_collection_of_object_values("homeRealmDiscoveryPolicies", @home_realm_discovery_policies)
    writer.write_collection_of_primitive_values("identifierUris", @identifier_uris)
    writer.write_object_value("info", @info)
    writer.write_boolean_value("isDeviceOnlyAuthSupported", @is_device_only_auth_supported)
    writer.write_boolean_value("isFallbackPublicClient", @is_fallback_public_client)
    writer.write_collection_of_object_values("keyCredentials", @key_credentials)
    writer.write_object_value("logo", @logo)
    writer.write_string_value("notes", @notes)
    writer.write_boolean_value("oauth2RequirePostResponse", @oauth2_require_post_response)
    writer.write_object_value("optionalClaims", @optional_claims)
    writer.write_collection_of_object_values("owners", @owners)
    writer.write_object_value("parentalControlSettings", @parental_control_settings)
    writer.write_collection_of_object_values("passwordCredentials", @password_credentials)
    writer.write_object_value("publicClient", @public_client)
    writer.write_string_value("publisherDomain", @publisher_domain)
    writer.write_object_value("requestSignatureVerification", @request_signature_verification)
    writer.write_collection_of_object_values("requiredResourceAccess", @required_resource_access)
    writer.write_string_value("samlMetadataUrl", @saml_metadata_url)
    writer.write_string_value("serviceManagementReference", @service_management_reference)
    writer.write_string_value("signInAudience", @sign_in_audience)
    writer.write_object_value("spa", @spa)
    writer.write_collection_of_primitive_values("tags", @tags)
    writer.write_guid_value("tokenEncryptionKeyId", @token_encryption_key_id)
    writer.write_collection_of_object_values("tokenIssuancePolicies", @token_issuance_policies)
    writer.write_collection_of_object_values("tokenLifetimePolicies", @token_lifetime_policies)
    writer.write_object_value("verifiedPublisher", @verified_publisher)
    writer.write_object_value("web", @web)
end

#service_management_reference ⇒ Object

Gets the serviceManagementReference property value. References application or service contact information from a Service or Asset Management database. Nullable.

Returns:

  • a string



773
774
775
# File 'lib/models/application.rb', line 773

def service_management_reference
    return @service_management_reference
end

#service_management_reference=(value) ⇒ Object

Sets the serviceManagementReference property value. References application or service contact information from a Service or Asset Management database. Nullable.

Parameters:

  • value —

    Value to set for the service_management_reference property.

Returns:

  • a void



781
782
783
# File 'lib/models/application.rb', line 781

def service_management_reference=(value)
    @service_management_reference = value
end

#sign_in_audience ⇒ Object

Gets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not).

Returns:

  • a string



788
789
790
# File 'lib/models/application.rb', line 788

def 
    return @sign_in_audience
end

#sign_in_audience=(value) ⇒ Object

Sets the signInAudience property value. Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not).

Parameters:

  • value —

    Value to set for the sign_in_audience property.

Returns:

  • a void



796
797
798
# File 'lib/models/application.rb', line 796

def (value)
    @sign_in_audience = value
end

#spa ⇒ Object

Gets the spa property value. Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.

Returns:

  • a spa_application



803
804
805
# File 'lib/models/application.rb', line 803

def spa
    return @spa
end

#spa=(value) ⇒ Object

Sets the spa property value. Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.

Parameters:

  • value —

    Value to set for the spa property.

Returns:

  • a void



811
812
813
# File 'lib/models/application.rb', line 811

def spa=(value)
    @spa = value
end

#tags ⇒ Object

Gets the tags property value. Custom strings that can be used to categorize and identify the application. Not nullable. Supports $filter (eq, not, ge, le, startsWith).

Returns:

  • a string



818
819
820
# File 'lib/models/application.rb', line 818

def tags
    return @tags
end

#tags=(value) ⇒ Object

Sets the tags property value. Custom strings that can be used to categorize and identify the application. Not nullable. Supports $filter (eq, not, ge, le, startsWith).

Parameters:

  • value —

    Value to set for the tags property.

Returns:

  • a void



826
827
828
# File 'lib/models/application.rb', line 826

def tags=(value)
    @tags = value
end

#token_encryption_key_id ⇒ Object

Gets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.

Returns:

  • a guid



833
834
835
# File 'lib/models/application.rb', line 833

def token_encryption_key_id
    return @token_encryption_key_id
end

#token_encryption_key_id=(value) ⇒ Object

Sets the tokenEncryptionKeyId property value. Specifies the keyId of a public key from the keyCredentials collection. When configured, Azure AD encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.

Parameters:

  • value —

    Value to set for the token_encryption_key_id property.

Returns:

  • a void



841
842
843
# File 'lib/models/application.rb', line 841

def token_encryption_key_id=(value)
    @token_encryption_key_id = value
end

#token_issuance_policies ⇒ Object

Gets the tokenIssuancePolicies property value. The tokenIssuancePolicies property

Returns:

  • a token_issuance_policy



848
849
850
# File 'lib/models/application.rb', line 848

def token_issuance_policies
    return @token_issuance_policies
end

#token_issuance_policies=(value) ⇒ Object

Sets the tokenIssuancePolicies property value. The tokenIssuancePolicies property

Parameters:

  • value —

    Value to set for the token_issuance_policies property.

Returns:

  • a void



856
857
858
# File 'lib/models/application.rb', line 856

def token_issuance_policies=(value)
    @token_issuance_policies = value
end

#token_lifetime_policies ⇒ Object

Gets the tokenLifetimePolicies property value. The tokenLifetimePolicies property

Returns:

  • a token_lifetime_policy



863
864
865
# File 'lib/models/application.rb', line 863

def token_lifetime_policies
    return @token_lifetime_policies
end

#token_lifetime_policies=(value) ⇒ Object

Sets the tokenLifetimePolicies property value. The tokenLifetimePolicies property

Parameters:

  • value —

    Value to set for the token_lifetime_policies property.

Returns:

  • a void



871
872
873
# File 'lib/models/application.rb', line 871

def token_lifetime_policies=(value)
    @token_lifetime_policies = value
end

#verified_publisher ⇒ Object

Gets the verifiedPublisher property value. Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification.

Returns:

  • a verified_publisher



878
879
880
# File 'lib/models/application.rb', line 878

def verified_publisher
    return @verified_publisher
end

#verified_publisher=(value) ⇒ Object

Sets the verifiedPublisher property value. Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification.

Parameters:

  • value —

    Value to set for the verified_publisher property.

Returns:

  • a void



886
887
888
# File 'lib/models/application.rb', line 886

def verified_publisher=(value)
    @verified_publisher = value
end

#web ⇒ Object

Gets the web property value. Specifies settings for a web application.

Returns:

  • a web_application



893
894
895
# File 'lib/models/application.rb', line 893

def web
    return @web
end

#web=(value) ⇒ Object

Sets the web property value. Specifies settings for a web application.

Parameters:

  • value —

    Value to set for the web property.

Returns:

  • a void



901
902
903
# File 'lib/models/application.rb', line 901

def web=(value)
    @web = value
end