|
| 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 |
0 commit comments