Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWSCloudWatchLogs Update models to latest #5117

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 184 additions & 4 deletions AWSLogs/AWSLogsModel.h

Large diffs are not rendered by default.

134 changes: 134 additions & 0 deletions AWSLogs/AWSLogsModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -2304,6 +2304,80 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {

@end

@implementation AWSLogsLiveTailSessionLogEvent

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"ingestionTime" : @"ingestionTime",
@"logGroupIdentifier" : @"logGroupIdentifier",
@"logStreamName" : @"logStreamName",
@"message" : @"message",
@"timestamp" : @"timestamp",
};
}

@end

@implementation AWSLogsLiveTailSessionMetadata

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"sampled" : @"sampled",
};
}

@end

@implementation AWSLogsLiveTailSessionStart

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"logEventFilterPattern" : @"logEventFilterPattern",
@"logGroupIdentifiers" : @"logGroupIdentifiers",
@"logStreamNamePrefixes" : @"logStreamNamePrefixes",
@"logStreamNames" : @"logStreamNames",
@"requestId" : @"requestId",
@"sessionId" : @"sessionId",
};
}

@end

@implementation AWSLogsLiveTailSessionUpdate

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"sessionMetadata" : @"sessionMetadata",
@"sessionResults" : @"sessionResults",
};
}

+ (NSValueTransformer *)sessionMetadataJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSLogsLiveTailSessionMetadata class]];
}

+ (NSValueTransformer *)sessionResultsJSONTransformer {
return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSLogsLiveTailSessionLogEvent class]];
}

@end

@implementation AWSLogsLogGroup

+ (BOOL)supportsSecureCoding {
Expand Down Expand Up @@ -3332,6 +3406,66 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey {

@end

@implementation AWSLogsStartLiveTailRequest

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"logEventFilterPattern" : @"logEventFilterPattern",
@"logGroupIdentifiers" : @"logGroupIdentifiers",
@"logStreamNamePrefixes" : @"logStreamNamePrefixes",
@"logStreamNames" : @"logStreamNames",
};
}

@end

@implementation AWSLogsStartLiveTailResponse

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"responseStream" : @"responseStream",
};
}

+ (NSValueTransformer *)responseStreamJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSLogsStartLiveTailResponseStream class]];
}

@end

@implementation AWSLogsStartLiveTailResponseStream

+ (BOOL)supportsSecureCoding {
return YES;
}

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
return @{
@"sessionStreamingException" : @"SessionStreamingException",
@"sessionTimeoutException" : @"SessionTimeoutException",
@"sessionStart" : @"sessionStart",
@"sessionUpdate" : @"sessionUpdate",
};
}

+ (NSValueTransformer *)sessionStartJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSLogsLiveTailSessionStart class]];
}

+ (NSValueTransformer *)sessionUpdateJSONTransformer {
return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSLogsLiveTailSessionUpdate class]];
}

@end

@implementation AWSLogsStartQueryRequest

+ (BOOL)supportsSecureCoding {
Expand Down
207 changes: 199 additions & 8 deletions AWSLogs/AWSLogsResources.m

Large diffs are not rendered by default.

Loading
Loading