Skip to content

Commit

Permalink
Merge pull request #37 from noppoMan/date-type-to-string
Browse files Browse the repository at this point in the history
Date type to String
  • Loading branch information
noppoMan authored May 25, 2017
2 parents 117bc4f + 34f1539 commit 942c00e
Show file tree
Hide file tree
Showing 80 changed files with 1,986 additions and 1,986 deletions.
26 changes: 13 additions & 13 deletions Sources/AWSSDKSwift/Services/acm/Acm_Shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -635,11 +635,11 @@ extension Acm {
/// The reason the certificate request failed. This value exists only when the certificate status is FAILED. For more information, see Certificate Request Failed in the AWS Certificate Manager User Guide.
public let failureReason: FailureReason?
/// The time at which the certificate was issued. This value exists only when the certificate type is AMAZON_ISSUED.
public let issuedAt: Date?
public let issuedAt: String?
/// The date and time at which the certificate was imported. This value exists only when the certificate type is IMPORTED.
public let importedAt: Date?
public let importedAt: String?
/// The time at which the certificate was revoked. This value exists only when the certificate status is REVOKED.
public let revokedAt: Date?
public let revokedAt: String?
/// Contains information about the status of ACM's managed renewal for the certificate. This field exists only when the certificate type is AMAZON_ISSUED.
public let renewalSummary: RenewalSummary?
/// The algorithm that was used to sign the certificate.
Expand All @@ -649,13 +649,13 @@ extension Acm {
/// The reason the certificate was revoked. This value exists only when the certificate status is REVOKED.
public let revocationReason: RevocationReason?
/// The time after which the certificate is not valid.
public let notAfter: Date?
public let notAfter: String?
/// The status of the certificate.
public let status: CertificateStatus?
/// The time at which the certificate was requested. This value exists only when the certificate type is AMAZON_ISSUED.
public let createdAt: Date?
public let createdAt: String?
/// The time before which the certificate is not valid.
public let notBefore: Date?
public let notBefore: String?
/// One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.
public let subjectAlternativeNames: [String]?
/// Contains information about the initial validation of each domain name that occurs as a result of the RequestCertificate request. This field exists only when the certificate type is AMAZON_ISSUED.
Expand All @@ -675,7 +675,7 @@ extension Acm {
/// The name of the entity that is associated with the public key contained in the certificate.
public let subject: String?

public init(failureReason: FailureReason? = nil, issuedAt: Date? = nil, importedAt: Date? = nil, revokedAt: Date? = nil, renewalSummary: RenewalSummary? = nil, signatureAlgorithm: String? = nil, serial: String? = nil, revocationReason: RevocationReason? = nil, notAfter: Date? = nil, status: CertificateStatus? = nil, createdAt: Date? = nil, notBefore: Date? = nil, subjectAlternativeNames: [String]? = nil, domainValidationOptions: [DomainValidation]? = nil, keyAlgorithm: KeyAlgorithm? = nil, certificateArn: String? = nil, domainName: String? = nil, type: CertificateType? = nil, inUseBy: [String]? = nil, issuer: String? = nil, subject: String? = nil) {
public init(failureReason: FailureReason? = nil, issuedAt: String? = nil, importedAt: String? = nil, revokedAt: String? = nil, renewalSummary: RenewalSummary? = nil, signatureAlgorithm: String? = nil, serial: String? = nil, revocationReason: RevocationReason? = nil, notAfter: String? = nil, status: CertificateStatus? = nil, createdAt: String? = nil, notBefore: String? = nil, subjectAlternativeNames: [String]? = nil, domainValidationOptions: [DomainValidation]? = nil, keyAlgorithm: KeyAlgorithm? = nil, certificateArn: String? = nil, domainName: String? = nil, type: CertificateType? = nil, inUseBy: [String]? = nil, issuer: String? = nil, subject: String? = nil) {
self.failureReason = failureReason
self.issuedAt = issuedAt
self.importedAt = importedAt
Expand All @@ -701,17 +701,17 @@ extension Acm {

public init(dictionary: [String: Any]) throws {
if let failureReason = dictionary["FailureReason"] as? String { self.failureReason = FailureReason(rawValue: failureReason) } else { self.failureReason = nil }
self.issuedAt = dictionary["IssuedAt"] as? Date
self.importedAt = dictionary["ImportedAt"] as? Date
self.revokedAt = dictionary["RevokedAt"] as? Date
self.issuedAt = dictionary["IssuedAt"] as? String
self.importedAt = dictionary["ImportedAt"] as? String
self.revokedAt = dictionary["RevokedAt"] as? String
if let renewalSummary = dictionary["RenewalSummary"] as? [String: Any] { self.renewalSummary = try Acm.RenewalSummary(dictionary: renewalSummary) } else { self.renewalSummary = nil }
self.signatureAlgorithm = dictionary["SignatureAlgorithm"] as? String
self.serial = dictionary["Serial"] as? String
if let revocationReason = dictionary["RevocationReason"] as? String { self.revocationReason = RevocationReason(rawValue: revocationReason) } else { self.revocationReason = nil }
self.notAfter = dictionary["NotAfter"] as? Date
self.notAfter = dictionary["NotAfter"] as? String
if let status = dictionary["Status"] as? String { self.status = CertificateStatus(rawValue: status) } else { self.status = nil }
self.createdAt = dictionary["CreatedAt"] as? Date
self.notBefore = dictionary["NotBefore"] as? Date
self.createdAt = dictionary["CreatedAt"] as? String
self.notBefore = dictionary["NotBefore"] as? String
self.subjectAlternativeNames = dictionary["SubjectAlternativeNames"] as? [String]
if let domainValidationOptions = dictionary["DomainValidationOptions"] as? [[String: Any]] {
self.domainValidationOptions = try domainValidationOptions.map({ try DomainValidation(dictionary: $0) })
Expand Down
54 changes: 27 additions & 27 deletions Sources/AWSSDKSwift/Services/apigateway/Apigateway_Shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ extension Apigateway {
/// A map that defines the stage variables for a Stage resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
public let variables: [String: String]?
/// The timestamp when the stage was created.
public let createdDate: Date?
public let createdDate: String?
/// The stage's description.
public let description: String?
/// The identifier of the Deployment that the stage points to.
Expand All @@ -934,13 +934,13 @@ extension Apigateway {
/// A map that defines the method settings for a Stage resource. Keys (designated as /{method_setting_key below) are method paths defined as {resource_path}/{http_method} for an individual method override, or /\*/\* for overriding all methods in the stage.
public let methodSettings: [String: MethodSetting]?
/// The timestamp when the stage last updated.
public let lastUpdatedDate: Date?
public let lastUpdatedDate: String?
/// The name of the stage is the first path segment in the Uniform Resource Identifier (URI) of a call to Amazon API Gateway.
public let stageName: String?
/// Specifies whether a cache cluster is enabled for the stage.
public let cacheClusterEnabled: Bool?

public init(documentationVersion: String? = nil, cacheClusterStatus: CacheClusterStatus? = nil, cacheClusterSize: CacheClusterSize? = nil, variables: [String: String]? = nil, createdDate: Date? = nil, description: String? = nil, deploymentId: String? = nil, clientCertificateId: String? = nil, methodSettings: [String: MethodSetting]? = nil, lastUpdatedDate: Date? = nil, stageName: String? = nil, cacheClusterEnabled: Bool? = nil) {
public init(documentationVersion: String? = nil, cacheClusterStatus: CacheClusterStatus? = nil, cacheClusterSize: CacheClusterSize? = nil, variables: [String: String]? = nil, createdDate: String? = nil, description: String? = nil, deploymentId: String? = nil, clientCertificateId: String? = nil, methodSettings: [String: MethodSetting]? = nil, lastUpdatedDate: String? = nil, stageName: String? = nil, cacheClusterEnabled: Bool? = nil) {
self.documentationVersion = documentationVersion
self.cacheClusterStatus = cacheClusterStatus
self.cacheClusterSize = cacheClusterSize
Expand All @@ -964,7 +964,7 @@ extension Apigateway {
} else {
self.variables = nil
}
self.createdDate = dictionary["createdDate"] as? Date
self.createdDate = dictionary["createdDate"] as? String
self.description = dictionary["description"] as? String
self.deploymentId = dictionary["deploymentId"] as? String
self.clientCertificateId = dictionary["clientCertificateId"] as? String
Expand All @@ -978,7 +978,7 @@ extension Apigateway {
} else {
self.methodSettings = nil
}
self.lastUpdatedDate = dictionary["lastUpdatedDate"] as? Date
self.lastUpdatedDate = dictionary["lastUpdatedDate"] as? String
self.stageName = dictionary["stageName"] as? String
self.cacheClusterEnabled = dictionary["cacheClusterEnabled"] as? Bool
}
Expand Down Expand Up @@ -1936,19 +1936,19 @@ extension Apigateway {
/// The identifier of the API Key.
public let id: String?
/// The timestamp when the API Key was created.
public let createdDate: Date?
public let createdDate: String?
/// The description of the API Key.
public let description: String?
/// A list of Stage resources that are associated with the ApiKey resource.
public let stageKeys: [String]?
/// Specifies whether the API Key can be used by callers.
public let enabled: Bool?
/// The timestamp when the API Key was last updated.
public let lastUpdatedDate: Date?
public let lastUpdatedDate: String?
/// An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
public let customerId: String?

public init(name: String? = nil, value: String? = nil, id: String? = nil, createdDate: Date? = nil, description: String? = nil, stageKeys: [String]? = nil, enabled: Bool? = nil, lastUpdatedDate: Date? = nil, customerId: String? = nil) {
public init(name: String? = nil, value: String? = nil, id: String? = nil, createdDate: String? = nil, description: String? = nil, stageKeys: [String]? = nil, enabled: Bool? = nil, lastUpdatedDate: String? = nil, customerId: String? = nil) {
self.name = name
self.value = value
self.id = id
Expand All @@ -1964,11 +1964,11 @@ extension Apigateway {
self.name = dictionary["name"] as? String
self.value = dictionary["value"] as? String
self.id = dictionary["id"] as? String
self.createdDate = dictionary["createdDate"] as? Date
self.createdDate = dictionary["createdDate"] as? String
self.description = dictionary["description"] as? String
self.stageKeys = dictionary["stageKeys"] as? [String]
self.enabled = dictionary["enabled"] as? Bool
self.lastUpdatedDate = dictionary["lastUpdatedDate"] as? Date
self.lastUpdatedDate = dictionary["lastUpdatedDate"] as? String
self.customerId = dictionary["customerId"] as? String
}
}
Expand Down Expand Up @@ -2149,11 +2149,11 @@ extension Apigateway {
/// The reference to an AWS-managed certificate. AWS Certificate Manager is the only supported source.
public let certificateArn: String?
/// The timestamp when the certificate was uploaded.
public let certificateUploadDate: Date?
public let certificateUploadDate: String?
/// The domain name of the Amazon CloudFront distribution. For more information, see the Amazon CloudFront documentation.
public let distributionDomainName: String?

public init(certificateName: String? = nil, domainName: String? = nil, certificateArn: String? = nil, certificateUploadDate: Date? = nil, distributionDomainName: String? = nil) {
public init(certificateName: String? = nil, domainName: String? = nil, certificateArn: String? = nil, certificateUploadDate: String? = nil, distributionDomainName: String? = nil) {
self.certificateName = certificateName
self.domainName = domainName
self.certificateArn = certificateArn
Expand All @@ -2165,7 +2165,7 @@ extension Apigateway {
self.certificateName = dictionary["certificateName"] as? String
self.domainName = dictionary["domainName"] as? String
self.certificateArn = dictionary["certificateArn"] as? String
self.certificateUploadDate = dictionary["certificateUploadDate"] as? Date
self.certificateUploadDate = dictionary["certificateUploadDate"] as? String
self.distributionDomainName = dictionary["distributionDomainName"] as? String
}
}
Expand Down Expand Up @@ -2835,9 +2835,9 @@ extension Apigateway {
/// The identifier for the deployment resource.
public let id: String?
/// The date and time that the deployment resource was created.
public let createdDate: Date?
public let createdDate: String?

public init(description: String? = nil, apiSummary: [String: [String: MethodSnapshot]]? = nil, id: String? = nil, createdDate: Date? = nil) {
public init(description: String? = nil, apiSummary: [String: [String: MethodSnapshot]]? = nil, id: String? = nil, createdDate: String? = nil) {
self.description = description
self.apiSummary = apiSummary
self.id = id
Expand All @@ -2861,7 +2861,7 @@ extension Apigateway {
self.apiSummary = nil
}
self.id = dictionary["id"] as? String
self.createdDate = dictionary["createdDate"] as? Date
self.createdDate = dictionary["createdDate"] as? String
}
}

Expand Down Expand Up @@ -2915,13 +2915,13 @@ extension Apigateway {
/// The description of the client certificate.
public let description: String?
/// The timestamp when the client certificate will expire.
public let expirationDate: Date?
public let expirationDate: String?
/// The PEM-encoded public key of the client certificate, which can be used to configure certificate authentication in the integration endpoint .
public let pemEncodedCertificate: String?
/// The timestamp when the client certificate was created.
public let createdDate: Date?
public let createdDate: String?

public init(clientCertificateId: String? = nil, description: String? = nil, expirationDate: Date? = nil, pemEncodedCertificate: String? = nil, createdDate: Date? = nil) {
public init(clientCertificateId: String? = nil, description: String? = nil, expirationDate: String? = nil, pemEncodedCertificate: String? = nil, createdDate: String? = nil) {
self.clientCertificateId = clientCertificateId
self.description = description
self.expirationDate = expirationDate
Expand All @@ -2932,9 +2932,9 @@ extension Apigateway {
public init(dictionary: [String: Any]) throws {
self.clientCertificateId = dictionary["clientCertificateId"] as? String
self.description = dictionary["description"] as? String
self.expirationDate = dictionary["expirationDate"] as? Date
self.expirationDate = dictionary["expirationDate"] as? String
self.pemEncodedCertificate = dictionary["pemEncodedCertificate"] as? String
self.createdDate = dictionary["createdDate"] as? Date
self.createdDate = dictionary["createdDate"] as? String
}
}

Expand Down Expand Up @@ -2977,9 +2977,9 @@ extension Apigateway {
/// The version identifier of the API documentation snapshot.
public let version: String?
/// The date when the API documentation snapshot is created.
public let createdDate: Date?
public let createdDate: String?

public init(description: String? = nil, version: String? = nil, createdDate: Date? = nil) {
public init(description: String? = nil, version: String? = nil, createdDate: String? = nil) {
self.description = description
self.version = version
self.createdDate = createdDate
Expand All @@ -2988,7 +2988,7 @@ extension Apigateway {
public init(dictionary: [String: Any]) throws {
self.description = dictionary["description"] as? String
self.version = dictionary["version"] as? String
self.createdDate = dictionary["createdDate"] as? Date
self.createdDate = dictionary["createdDate"] as? String
}
}

Expand Down Expand Up @@ -3741,15 +3741,15 @@ extension Apigateway {
/// The API's identifier. This identifier is unique across all of your APIs in Amazon API Gateway.
public let id: String?
/// The timestamp when the API was created.
public let createdDate: Date?
public let createdDate: String?
/// The API's description.
public let description: String?
/// A version identifier for the API.
public let version: String?
/// The warning messages reported when failonwarnings is turned on during API import.
public let warnings: [String]?

public init(binaryMediaTypes: [String]? = nil, name: String? = nil, id: String? = nil, createdDate: Date? = nil, description: String? = nil, version: String? = nil, warnings: [String]? = nil) {
public init(binaryMediaTypes: [String]? = nil, name: String? = nil, id: String? = nil, createdDate: String? = nil, description: String? = nil, version: String? = nil, warnings: [String]? = nil) {
self.binaryMediaTypes = binaryMediaTypes
self.name = name
self.id = id
Expand All @@ -3763,7 +3763,7 @@ extension Apigateway {
self.binaryMediaTypes = dictionary["binaryMediaTypes"] as? [String]
self.name = dictionary["name"] as? String
self.id = dictionary["id"] as? String
self.createdDate = dictionary["createdDate"] as? Date
self.createdDate = dictionary["createdDate"] as? String
self.description = dictionary["description"] as? String
self.version = dictionary["version"] as? String
self.warnings = dictionary["warnings"] as? [String]
Expand Down
Loading

0 comments on commit 942c00e

Please sign in to comment.