Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

Commit 2409e2d

Browse files
Merge pull request #21 from microsoftgraph/dev
May Updates
2 parents d1f681c + ba009ed commit 2409e2d

File tree

66 files changed

+13550
-6009
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+13550
-6009
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
4+
5+
6+
7+
#import "MSObject.h"
8+
9+
@interface MSGraphAccessAction : MSObject
10+
11+
12+
@end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
4+
5+
#import "NSDate+MSSerialization.h"
6+
7+
#import "MSGraphClientModels.h"
8+
9+
@interface MSObject()
10+
11+
@property (strong, nonatomic) NSMutableDictionary *dictionary;
12+
13+
@end
14+
15+
@interface MSGraphAccessAction()
16+
{
17+
}
18+
@end
19+
20+
@implementation MSGraphAccessAction
21+
22+
@end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
4+
5+
6+
7+
#import "MSObject.h"
8+
9+
@interface MSGraphAppIdentity : MSObject
10+
11+
@property (nullable, nonatomic, setter=setAppId:, getter=appId) NSString* appId;
12+
@property (nullable, nonatomic, setter=setDisplayName:, getter=displayName) NSString* displayName;
13+
@property (nullable, nonatomic, setter=setServicePrincipalId:, getter=servicePrincipalId) NSString* servicePrincipalId;
14+
@property (nullable, nonatomic, setter=setServicePrincipalName:, getter=servicePrincipalName) NSString* servicePrincipalName;
15+
16+
@end
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
4+
5+
#import "NSDate+MSSerialization.h"
6+
7+
#import "MSGraphClientModels.h"
8+
9+
@interface MSObject()
10+
11+
@property (strong, nonatomic) NSMutableDictionary *dictionary;
12+
13+
@end
14+
15+
@interface MSGraphAppIdentity()
16+
{
17+
NSString* _appId;
18+
NSString* _displayName;
19+
NSString* _servicePrincipalId;
20+
NSString* _servicePrincipalName;
21+
}
22+
@end
23+
24+
@implementation MSGraphAppIdentity
25+
26+
- (NSString*) appId
27+
{
28+
if([[NSNull null] isEqual:self.dictionary[@"appId"]])
29+
{
30+
return nil;
31+
}
32+
return self.dictionary[@"appId"];
33+
}
34+
35+
- (void) setAppId: (NSString*) val
36+
{
37+
self.dictionary[@"appId"] = val;
38+
}
39+
40+
- (NSString*) displayName
41+
{
42+
if([[NSNull null] isEqual:self.dictionary[@"displayName"]])
43+
{
44+
return nil;
45+
}
46+
return self.dictionary[@"displayName"];
47+
}
48+
49+
- (void) setDisplayName: (NSString*) val
50+
{
51+
self.dictionary[@"displayName"] = val;
52+
}
53+
54+
- (NSString*) servicePrincipalId
55+
{
56+
if([[NSNull null] isEqual:self.dictionary[@"servicePrincipalId"]])
57+
{
58+
return nil;
59+
}
60+
return self.dictionary[@"servicePrincipalId"];
61+
}
62+
63+
- (void) setServicePrincipalId: (NSString*) val
64+
{
65+
self.dictionary[@"servicePrincipalId"] = val;
66+
}
67+
68+
- (NSString*) servicePrincipalName
69+
{
70+
if([[NSNull null] isEqual:self.dictionary[@"servicePrincipalName"]])
71+
{
72+
return nil;
73+
}
74+
return self.dictionary[@"servicePrincipalName"];
75+
}
76+
77+
- (void) setServicePrincipalName: (NSString*) val
78+
{
79+
self.dictionary[@"servicePrincipalName"] = val;
80+
}
81+
82+
@end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
4+
5+
#import "MSGraphAppliedConditionalAccessPolicyResult.h"
6+
7+
8+
#import "MSObject.h"
9+
10+
@interface MSGraphAppliedConditionalAccessPolicy : MSObject
11+
12+
@property (nullable, nonatomic, setter=setAppliedConditionalAccessPolicyId:, getter=appliedConditionalAccessPolicyId) NSString* appliedConditionalAccessPolicyId;
13+
@property (nullable, nonatomic, setter=setDisplayName:, getter=displayName) NSString* displayName;
14+
@property (nullable, nonatomic, setter=setEnforcedGrantControls:, getter=enforcedGrantControls) NSArray* enforcedGrantControls;
15+
@property (nullable, nonatomic, setter=setEnforcedSessionControls:, getter=enforcedSessionControls) NSArray* enforcedSessionControls;
16+
@property (nullable, nonatomic, setter=setResult:, getter=result) MSGraphAppliedConditionalAccessPolicyResult* result;
17+
18+
@end
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
4+
5+
#import "NSDate+MSSerialization.h"
6+
7+
#import "MSGraphClientModels.h"
8+
9+
@interface MSObject()
10+
11+
@property (strong, nonatomic) NSMutableDictionary *dictionary;
12+
13+
@end
14+
15+
@interface MSGraphAppliedConditionalAccessPolicy()
16+
{
17+
NSString* _appliedConditionalAccessPolicyId;
18+
NSString* _displayName;
19+
NSArray* _enforcedGrantControls;
20+
NSArray* _enforcedSessionControls;
21+
MSGraphAppliedConditionalAccessPolicyResult* _result;
22+
}
23+
@end
24+
25+
@implementation MSGraphAppliedConditionalAccessPolicy
26+
27+
- (NSString*) appliedConditionalAccessPolicyId
28+
{
29+
if([[NSNull null] isEqual:self.dictionary[@"id"]])
30+
{
31+
return nil;
32+
}
33+
return self.dictionary[@"id"];
34+
}
35+
36+
- (void) setAppliedConditionalAccessPolicyId: (NSString*) val
37+
{
38+
self.dictionary[@"id"] = val;
39+
}
40+
41+
- (NSString*) displayName
42+
{
43+
if([[NSNull null] isEqual:self.dictionary[@"displayName"]])
44+
{
45+
return nil;
46+
}
47+
return self.dictionary[@"displayName"];
48+
}
49+
50+
- (void) setDisplayName: (NSString*) val
51+
{
52+
self.dictionary[@"displayName"] = val;
53+
}
54+
55+
- (NSArray*) enforcedGrantControls
56+
{
57+
if([[NSNull null] isEqual:self.dictionary[@"enforcedGrantControls"]])
58+
{
59+
return nil;
60+
}
61+
return self.dictionary[@"enforcedGrantControls"];
62+
}
63+
64+
- (void) setEnforcedGrantControls: (NSArray*) val
65+
{
66+
self.dictionary[@"enforcedGrantControls"] = val;
67+
}
68+
69+
- (NSArray*) enforcedSessionControls
70+
{
71+
if([[NSNull null] isEqual:self.dictionary[@"enforcedSessionControls"]])
72+
{
73+
return nil;
74+
}
75+
return self.dictionary[@"enforcedSessionControls"];
76+
}
77+
78+
- (void) setEnforcedSessionControls: (NSArray*) val
79+
{
80+
self.dictionary[@"enforcedSessionControls"] = val;
81+
}
82+
83+
- (MSGraphAppliedConditionalAccessPolicyResult*) result
84+
{
85+
if(!_result){
86+
_result = [self.dictionary[@"result"] toMSGraphAppliedConditionalAccessPolicyResult];
87+
}
88+
return _result;
89+
}
90+
91+
- (void) setResult: (MSGraphAppliedConditionalAccessPolicyResult*) val
92+
{
93+
_result = val;
94+
self.dictionary[@"result"] = val;
95+
}
96+
97+
@end
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
2+
3+
4+
5+
#include <Foundation/Foundation.h>
6+
7+
typedef NS_ENUM(NSInteger, MSGraphAppliedConditionalAccessPolicyResultValue){
8+
9+
MSGraphAppliedConditionalAccessPolicyResultSuccess = 0,
10+
MSGraphAppliedConditionalAccessPolicyResultFailure = 1,
11+
MSGraphAppliedConditionalAccessPolicyResultNotApplied = 2,
12+
MSGraphAppliedConditionalAccessPolicyResultNotEnabled = 3,
13+
MSGraphAppliedConditionalAccessPolicyResultUnknown = 4,
14+
MSGraphAppliedConditionalAccessPolicyResultUnknownFutureValue = 5,
15+
MSGraphAppliedConditionalAccessPolicyResultEndOfEnum
16+
};
17+
18+
@interface MSGraphAppliedConditionalAccessPolicyResult : NSObject
19+
20+
+(MSGraphAppliedConditionalAccessPolicyResult*) success;
21+
+(MSGraphAppliedConditionalAccessPolicyResult*) failure;
22+
+(MSGraphAppliedConditionalAccessPolicyResult*) notApplied;
23+
+(MSGraphAppliedConditionalAccessPolicyResult*) notEnabled;
24+
+(MSGraphAppliedConditionalAccessPolicyResult*) unknown;
25+
+(MSGraphAppliedConditionalAccessPolicyResult*) unknownFutureValue;
26+
27+
+(MSGraphAppliedConditionalAccessPolicyResult*) UnknownEnumValue;
28+
29+
+(MSGraphAppliedConditionalAccessPolicyResult*) appliedConditionalAccessPolicyResultWithEnumValue:(MSGraphAppliedConditionalAccessPolicyResultValue)val;
30+
-(NSString*) ms_toString;
31+
32+
@property (nonatomic, readonly) MSGraphAppliedConditionalAccessPolicyResultValue enumValue;
33+
34+
@end
35+
36+
37+
@interface NSString (MSGraphAppliedConditionalAccessPolicyResult)
38+
39+
- (MSGraphAppliedConditionalAccessPolicyResult*) toMSGraphAppliedConditionalAccessPolicyResult;
40+
41+
@end

0 commit comments

Comments
 (0)