forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.php
More file actions
1119 lines (1036 loc) · 37.1 KB
/
Application.php
File metadata and controls
1119 lines (1036 loc) · 37.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
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
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
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
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Application File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* Application class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class Application extends DirectoryObject
{
/**
* Gets the addIns
* 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.
*
* @return array|null The addIns
*/
public function getAddIns()
{
if (array_key_exists("addIns", $this->_propDict)) {
return $this->_propDict["addIns"];
} else {
return null;
}
}
/**
* Sets the addIns
* 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.
*
* @param AddIn $val The addIns
*
* @return Application
*/
public function setAddIns($val)
{
$this->_propDict["addIns"] = $val;
return $this;
}
/**
* Gets the api
* Specifies settings for an application that implements a web API.
*
* @return ApiApplication|null The api
*/
public function getApi()
{
if (array_key_exists("api", $this->_propDict)) {
if (is_a($this->_propDict["api"], "\Microsoft\Graph\Model\ApiApplication") || is_null($this->_propDict["api"])) {
return $this->_propDict["api"];
} else {
$this->_propDict["api"] = new ApiApplication($this->_propDict["api"]);
return $this->_propDict["api"];
}
}
return null;
}
/**
* Sets the api
* Specifies settings for an application that implements a web API.
*
* @param ApiApplication $val The api
*
* @return Application
*/
public function setApi($val)
{
$this->_propDict["api"] = $val;
return $this;
}
/**
* Gets the appId
* The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only.
*
* @return string|null The appId
*/
public function getAppId()
{
if (array_key_exists("appId", $this->_propDict)) {
return $this->_propDict["appId"];
} else {
return null;
}
}
/**
* Sets the appId
* The unique identifier for the application that is assigned to an application by Azure AD. Not nullable. Read-only.
*
* @param string $val The appId
*
* @return Application
*/
public function setAppId($val)
{
$this->_propDict["appId"] = $val;
return $this;
}
/**
* Gets the applicationTemplateId
* Unique identifier of the applicationTemplate.
*
* @return string|null The applicationTemplateId
*/
public function getApplicationTemplateId()
{
if (array_key_exists("applicationTemplateId", $this->_propDict)) {
return $this->_propDict["applicationTemplateId"];
} else {
return null;
}
}
/**
* Sets the applicationTemplateId
* Unique identifier of the applicationTemplate.
*
* @param string $val The applicationTemplateId
*
* @return Application
*/
public function setApplicationTemplateId($val)
{
$this->_propDict["applicationTemplateId"] = $val;
return $this;
}
/**
* Gets the appRoles
* The collection of roles assigned to the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.
*
* @return array|null The appRoles
*/
public function getAppRoles()
{
if (array_key_exists("appRoles", $this->_propDict)) {
return $this->_propDict["appRoles"];
} else {
return null;
}
}
/**
* Sets the appRoles
* The collection of roles assigned to the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.
*
* @param AppRole $val The appRoles
*
* @return Application
*/
public function setAppRoles($val)
{
$this->_propDict["appRoles"] = $val;
return $this;
}
/**
* Gets the createdDateTime
* 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 $orderBy.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* 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 $orderBy.
*
* @param \DateTime $val The createdDateTime
*
* @return Application
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the description
* An optional description of the application. Supports $filter (eq, ne, NOT, ge, le, startsWith) and $search.
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* An optional description of the application. Supports $filter (eq, ne, NOT, ge, le, startsWith) and $search.
*
* @param string $val The description
*
* @return Application
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the disabledByMicrosoftStatus
* 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).
*
* @return string|null The disabledByMicrosoftStatus
*/
public function getDisabledByMicrosoftStatus()
{
if (array_key_exists("disabledByMicrosoftStatus", $this->_propDict)) {
return $this->_propDict["disabledByMicrosoftStatus"];
} else {
return null;
}
}
/**
* Sets the disabledByMicrosoftStatus
* 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).
*
* @param string $val The disabledByMicrosoftStatus
*
* @return Application
*/
public function setDisabledByMicrosoftStatus($val)
{
$this->_propDict["disabledByMicrosoftStatus"] = $val;
return $this;
}
/**
* Gets the displayName
* The display name for the application. Supports $filter (eq, ne, NOT, ge, le, in, startsWith), $search, and $orderBy.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* The display name for the application. Supports $filter (eq, ne, NOT, ge, le, in, startsWith), $search, and $orderBy.
*
* @param string $val The displayName
*
* @return Application
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the groupMembershipClaims
* 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).
*
* @return string|null The groupMembershipClaims
*/
public function getGroupMembershipClaims()
{
if (array_key_exists("groupMembershipClaims", $this->_propDict)) {
return $this->_propDict["groupMembershipClaims"];
} else {
return null;
}
}
/**
* Sets the groupMembershipClaims
* 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).
*
* @param string $val The groupMembershipClaims
*
* @return Application
*/
public function setGroupMembershipClaims($val)
{
$this->_propDict["groupMembershipClaims"] = $val;
return $this;
}
/**
* Gets the identifierUris
* The URIs that identify the application within its Azure AD tenant, or within a verified custom domain if the application is multi-tenant. For more information see Application Objects and Service Principal Objects. The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, ne, ge, le, startsWith).
*
* @return string|null The identifierUris
*/
public function getIdentifierUris()
{
if (array_key_exists("identifierUris", $this->_propDict)) {
return $this->_propDict["identifierUris"];
} else {
return null;
}
}
/**
* Sets the identifierUris
* The URIs that identify the application within its Azure AD tenant, or within a verified custom domain if the application is multi-tenant. For more information see Application Objects and Service Principal Objects. The any operator is required for filter expressions on multi-valued properties. Not nullable. Supports $filter (eq, ne, ge, le, startsWith).
*
* @param string $val The identifierUris
*
* @return Application
*/
public function setIdentifierUris($val)
{
$this->_propDict["identifierUris"] = $val;
return $this;
}
/**
* Gets the info
* 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).
*
* @return InformationalUrl|null The info
*/
public function getInfo()
{
if (array_key_exists("info", $this->_propDict)) {
if (is_a($this->_propDict["info"], "\Microsoft\Graph\Model\InformationalUrl") || is_null($this->_propDict["info"])) {
return $this->_propDict["info"];
} else {
$this->_propDict["info"] = new InformationalUrl($this->_propDict["info"]);
return $this->_propDict["info"];
}
}
return null;
}
/**
* Sets the info
* 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).
*
* @param InformationalUrl $val The info
*
* @return Application
*/
public function setInfo($val)
{
$this->_propDict["info"] = $val;
return $this;
}
/**
* Gets the isDeviceOnlyAuthSupported
* Specifies whether this application supports device authentication without a user. The default is false.
*
* @return bool|null The isDeviceOnlyAuthSupported
*/
public function getIsDeviceOnlyAuthSupported()
{
if (array_key_exists("isDeviceOnlyAuthSupported", $this->_propDict)) {
return $this->_propDict["isDeviceOnlyAuthSupported"];
} else {
return null;
}
}
/**
* Sets the isDeviceOnlyAuthSupported
* Specifies whether this application supports device authentication without a user. The default is false.
*
* @param bool $val The isDeviceOnlyAuthSupported
*
* @return Application
*/
public function setIsDeviceOnlyAuthSupported($val)
{
$this->_propDict["isDeviceOnlyAuthSupported"] = boolval($val);
return $this;
}
/**
* Gets the isFallbackPublicClient
* 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.
*
* @return bool|null The isFallbackPublicClient
*/
public function getIsFallbackPublicClient()
{
if (array_key_exists("isFallbackPublicClient", $this->_propDict)) {
return $this->_propDict["isFallbackPublicClient"];
} else {
return null;
}
}
/**
* Sets the isFallbackPublicClient
* 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.
*
* @param bool $val The isFallbackPublicClient
*
* @return Application
*/
public function setIsFallbackPublicClient($val)
{
$this->_propDict["isFallbackPublicClient"] = boolval($val);
return $this;
}
/**
* Gets the keyCredentials
* The collection of key credentials associated with the application. Not nullable. Supports $filter (eq, NOT, ge, le).
*
* @return array|null The keyCredentials
*/
public function getKeyCredentials()
{
if (array_key_exists("keyCredentials", $this->_propDict)) {
return $this->_propDict["keyCredentials"];
} else {
return null;
}
}
/**
* Sets the keyCredentials
* The collection of key credentials associated with the application. Not nullable. Supports $filter (eq, NOT, ge, le).
*
* @param KeyCredential $val The keyCredentials
*
* @return Application
*/
public function setKeyCredentials($val)
{
$this->_propDict["keyCredentials"] = $val;
return $this;
}
/**
* Gets the logo
* The main logo for the application. Not nullable.
*
* @return \GuzzleHttp\Psr7\Stream|null The logo
*/
public function getLogo()
{
if (array_key_exists("logo", $this->_propDict)) {
if (is_a($this->_propDict["logo"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["logo"])) {
return $this->_propDict["logo"];
} else {
$this->_propDict["logo"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["logo"]);
return $this->_propDict["logo"];
}
}
return null;
}
/**
* Sets the logo
* The main logo for the application. Not nullable.
*
* @param \GuzzleHttp\Psr7\Stream $val The logo
*
* @return Application
*/
public function setLogo($val)
{
$this->_propDict["logo"] = $val;
return $this;
}
/**
* Gets the notes
* Notes relevant for the management of the application.
*
* @return string|null The notes
*/
public function getNotes()
{
if (array_key_exists("notes", $this->_propDict)) {
return $this->_propDict["notes"];
} else {
return null;
}
}
/**
* Sets the notes
* Notes relevant for the management of the application.
*
* @param string $val The notes
*
* @return Application
*/
public function setNotes($val)
{
$this->_propDict["notes"] = $val;
return $this;
}
/**
* Gets the oauth2RequirePostResponse
*
* @return bool|null The oauth2RequirePostResponse
*/
public function getOauth2RequirePostResponse()
{
if (array_key_exists("oauth2RequirePostResponse", $this->_propDict)) {
return $this->_propDict["oauth2RequirePostResponse"];
} else {
return null;
}
}
/**
* Sets the oauth2RequirePostResponse
*
* @param bool $val The oauth2RequirePostResponse
*
* @return Application
*/
public function setOauth2RequirePostResponse($val)
{
$this->_propDict["oauth2RequirePostResponse"] = boolval($val);
return $this;
}
/**
* Gets the optionalClaims
* 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.
*
* @return OptionalClaims|null The optionalClaims
*/
public function getOptionalClaims()
{
if (array_key_exists("optionalClaims", $this->_propDict)) {
if (is_a($this->_propDict["optionalClaims"], "\Microsoft\Graph\Model\OptionalClaims") || is_null($this->_propDict["optionalClaims"])) {
return $this->_propDict["optionalClaims"];
} else {
$this->_propDict["optionalClaims"] = new OptionalClaims($this->_propDict["optionalClaims"]);
return $this->_propDict["optionalClaims"];
}
}
return null;
}
/**
* Sets the optionalClaims
* 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.
*
* @param OptionalClaims $val The optionalClaims
*
* @return Application
*/
public function setOptionalClaims($val)
{
$this->_propDict["optionalClaims"] = $val;
return $this;
}
/**
* Gets the parentalControlSettings
* Specifies parental control settings for an application.
*
* @return ParentalControlSettings|null The parentalControlSettings
*/
public function getParentalControlSettings()
{
if (array_key_exists("parentalControlSettings", $this->_propDict)) {
if (is_a($this->_propDict["parentalControlSettings"], "\Microsoft\Graph\Model\ParentalControlSettings") || is_null($this->_propDict["parentalControlSettings"])) {
return $this->_propDict["parentalControlSettings"];
} else {
$this->_propDict["parentalControlSettings"] = new ParentalControlSettings($this->_propDict["parentalControlSettings"]);
return $this->_propDict["parentalControlSettings"];
}
}
return null;
}
/**
* Sets the parentalControlSettings
* Specifies parental control settings for an application.
*
* @param ParentalControlSettings $val The parentalControlSettings
*
* @return Application
*/
public function setParentalControlSettings($val)
{
$this->_propDict["parentalControlSettings"] = $val;
return $this;
}
/**
* Gets the passwordCredentials
* The collection of password credentials associated with the application. Not nullable.
*
* @return array|null The passwordCredentials
*/
public function getPasswordCredentials()
{
if (array_key_exists("passwordCredentials", $this->_propDict)) {
return $this->_propDict["passwordCredentials"];
} else {
return null;
}
}
/**
* Sets the passwordCredentials
* The collection of password credentials associated with the application. Not nullable.
*
* @param PasswordCredential $val The passwordCredentials
*
* @return Application
*/
public function setPasswordCredentials($val)
{
$this->_propDict["passwordCredentials"] = $val;
return $this;
}
/**
* Gets the publicClient
* Specifies settings for installed clients such as desktop or mobile devices.
*
* @return PublicClientApplication|null The publicClient
*/
public function getPublicClient()
{
if (array_key_exists("publicClient", $this->_propDict)) {
if (is_a($this->_propDict["publicClient"], "\Microsoft\Graph\Model\PublicClientApplication") || is_null($this->_propDict["publicClient"])) {
return $this->_propDict["publicClient"];
} else {
$this->_propDict["publicClient"] = new PublicClientApplication($this->_propDict["publicClient"]);
return $this->_propDict["publicClient"];
}
}
return null;
}
/**
* Sets the publicClient
* Specifies settings for installed clients such as desktop or mobile devices.
*
* @param PublicClientApplication $val The publicClient
*
* @return Application
*/
public function setPublicClient($val)
{
$this->_propDict["publicClient"] = $val;
return $this;
}
/**
* Gets the publisherDomain
* 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).
*
* @return string|null The publisherDomain
*/
public function getPublisherDomain()
{
if (array_key_exists("publisherDomain", $this->_propDict)) {
return $this->_propDict["publisherDomain"];
} else {
return null;
}
}
/**
* Sets the publisherDomain
* 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).
*
* @param string $val The publisherDomain
*
* @return Application
*/
public function setPublisherDomain($val)
{
$this->_propDict["publisherDomain"] = $val;
return $this;
}
/**
* Gets the requiredResourceAccess
* 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. Not nullable. Supports $filter (eq, NOT, ge, le).
*
* @return array|null The requiredResourceAccess
*/
public function getRequiredResourceAccess()
{
if (array_key_exists("requiredResourceAccess", $this->_propDict)) {
return $this->_propDict["requiredResourceAccess"];
} else {
return null;
}
}
/**
* Sets the requiredResourceAccess
* 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. Not nullable. Supports $filter (eq, NOT, ge, le).
*
* @param RequiredResourceAccess $val The requiredResourceAccess
*
* @return Application
*/
public function setRequiredResourceAccess($val)
{
$this->_propDict["requiredResourceAccess"] = $val;
return $this;
}
/**
* Gets the signInAudience
* 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 below. Supports $filter (eq, ne, NOT).
*
* @return string|null The signInAudience
*/
public function getSignInAudience()
{
if (array_key_exists("signInAudience", $this->_propDict)) {
return $this->_propDict["signInAudience"];
} else {
return null;
}
}
/**
* Sets the signInAudience
* 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 below. Supports $filter (eq, ne, NOT).
*
* @param string $val The signInAudience
*
* @return Application
*/
public function setSignInAudience($val)
{
$this->_propDict["signInAudience"] = $val;
return $this;
}
/**
* Gets the spa
* Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.
*
* @return SpaApplication|null The spa
*/
public function getSpa()
{
if (array_key_exists("spa", $this->_propDict)) {
if (is_a($this->_propDict["spa"], "\Microsoft\Graph\Model\SpaApplication") || is_null($this->_propDict["spa"])) {
return $this->_propDict["spa"];
} else {
$this->_propDict["spa"] = new SpaApplication($this->_propDict["spa"]);
return $this->_propDict["spa"];
}
}
return null;
}
/**
* Sets the spa
* Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.
*
* @param SpaApplication $val The spa
*
* @return Application
*/
public function setSpa($val)
{
$this->_propDict["spa"] = $val;
return $this;
}
/**
* Gets the tags
* Custom strings that can be used to categorize and identify the application. Not nullable. Supports $filter (eq, NOT, ge, le, startsWith).
*
* @return string|null The tags
*/
public function getTags()
{
if (array_key_exists("tags", $this->_propDict)) {
return $this->_propDict["tags"];
} else {
return null;
}
}
/**
* Sets the tags
* Custom strings that can be used to categorize and identify the application. Not nullable. Supports $filter (eq, NOT, ge, le, startsWith).
*
* @param string $val The tags
*
* @return Application
*/
public function setTags($val)
{
$this->_propDict["tags"] = $val;
return $this;
}
/**
* Gets the tokenEncryptionKeyId
* 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.
*
* @return string|null The tokenEncryptionKeyId
*/
public function getTokenEncryptionKeyId()
{
if (array_key_exists("tokenEncryptionKeyId", $this->_propDict)) {
return $this->_propDict["tokenEncryptionKeyId"];
} else {
return null;
}
}
/**
* Sets the tokenEncryptionKeyId
* 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.
*
* @param string $val The tokenEncryptionKeyId
*
* @return Application
*/
public function setTokenEncryptionKeyId($val)
{
$this->_propDict["tokenEncryptionKeyId"] = $val;
return $this;
}
/**
* Gets the verifiedPublisher
* Specifies the verified publisher of the application.
*
* @return VerifiedPublisher|null The verifiedPublisher
*/
public function getVerifiedPublisher()
{
if (array_key_exists("verifiedPublisher", $this->_propDict)) {
if (is_a($this->_propDict["verifiedPublisher"], "\Microsoft\Graph\Model\VerifiedPublisher") || is_null($this->_propDict["verifiedPublisher"])) {
return $this->_propDict["verifiedPublisher"];
} else {
$this->_propDict["verifiedPublisher"] = new VerifiedPublisher($this->_propDict["verifiedPublisher"]);
return $this->_propDict["verifiedPublisher"];
}
}
return null;
}
/**
* Sets the verifiedPublisher
* Specifies the verified publisher of the application.
*
* @param VerifiedPublisher $val The verifiedPublisher
*
* @return Application
*/
public function setVerifiedPublisher($val)
{
$this->_propDict["verifiedPublisher"] = $val;
return $this;
}
/**
* Gets the web
* Specifies settings for a web application.
*
* @return WebApplication|null The web
*/
public function getWeb()
{
if (array_key_exists("web", $this->_propDict)) {
if (is_a($this->_propDict["web"], "\Microsoft\Graph\Model\WebApplication") || is_null($this->_propDict["web"])) {
return $this->_propDict["web"];
} else {
$this->_propDict["web"] = new WebApplication($this->_propDict["web"]);
return $this->_propDict["web"];
}
}
return null;
}
/**
* Sets the web
* Specifies settings for a web application.
*
* @param WebApplication $val The web
*
* @return Application
*/
public function setWeb($val)
{
$this->_propDict["web"] = $val;
return $this;
}
/**
* Gets the createdOnBehalfOf
* Read-only.
*
* @return DirectoryObject|null The createdOnBehalfOf
*/
public function getCreatedOnBehalfOf()
{
if (array_key_exists("createdOnBehalfOf", $this->_propDict)) {
if (is_a($this->_propDict["createdOnBehalfOf"], "\Microsoft\Graph\Model\DirectoryObject") || is_null($this->_propDict["createdOnBehalfOf"])) {
return $this->_propDict["createdOnBehalfOf"];
} else {
$this->_propDict["createdOnBehalfOf"] = new DirectoryObject($this->_propDict["createdOnBehalfOf"]);
return $this->_propDict["createdOnBehalfOf"];
}
}
return null;
}
/**
* Sets the createdOnBehalfOf
* Read-only.
*
* @param DirectoryObject $val The createdOnBehalfOf
*
* @return Application
*/
public function setCreatedOnBehalfOf($val)
{
$this->_propDict["createdOnBehalfOf"] = $val;
return $this;
}
/**
* Gets the extensionProperties
* Read-only. Nullable.
*
* @return array|null The extensionProperties
*/
public function getExtensionProperties()
{
if (array_key_exists("extensionProperties", $this->_propDict)) {
return $this->_propDict["extensionProperties"];
} else {
return null;
}
}
/**
* Sets the extensionProperties
* Read-only. Nullable.
*
* @param ExtensionProperty $val The extensionProperties
*
* @return Application
*/
public function setExtensionProperties($val)
{
$this->_propDict["extensionProperties"] = $val;
return $this;