From 2b1b78fa966c1e638cffa4fd0a5687de14bcf4ab Mon Sep 17 00:00:00 2001 From: Andy Davidoff Date: Thu, 13 Feb 2020 14:54:55 -0500 Subject: [PATCH] 2618.0.0: Update AWS APIs to v2.618 --- atoz.nimble | 2 +- src/atoz/mediapackage_vod_20181107.nim | 1495 ++++++++++++------------ 2 files changed, 734 insertions(+), 763 deletions(-) diff --git a/atoz.nimble b/atoz.nimble index e656c69..56e37a8 100644 --- a/atoz.nimble +++ b/atoz.nimble @@ -1,4 +1,4 @@ -version = "2617.0.0" +version = "2618.0.0" author = "disruptek" description = "Amazon Web Services (AWS) APIs" license = "MIT" diff --git a/src/atoz/mediapackage_vod_20181107.nim b/src/atoz/mediapackage_vod_20181107.nim index ae5376f..76fb6ec 100644 --- a/src/atoz/mediapackage_vod_20181107.nim +++ b/src/atoz/mediapackage_vod_20181107.nim @@ -29,18 +29,17 @@ type url*: proc (protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri - OpenApiRestCall_612658 = ref object of OpenApiRestCall + OpenApiRestCall_610658 = ref object of OpenApiRestCall proc hash(scheme: Scheme): Hash {.used.} = result = hash(ord(scheme)) -proc clone[T: OpenApiRestCall_612658](t: T): T {.used.} = +proc clone[T: OpenApiRestCall_610658](t: T): T {.used.} = result = T(name: t.name, meth: t.meth, host: t.host, base: t.base, route: t.route, schemes: t.schemes, validator: t.validator, url: t.url) -proc pickScheme(t: OpenApiRestCall_612658): Option[Scheme] {.used.} = +proc pickScheme(t: OpenApiRestCall_610658): Option[Scheme] {.used.} = ## select a supported scheme from a set of candidates - for scheme in Scheme.low .. - Scheme.high: + for scheme in Scheme.low .. Scheme.high: if scheme notin t.schemes: continue if scheme in [Scheme.Https, Scheme.Wss]: @@ -54,20 +53,16 @@ proc validateParameter(js: JsonNode; kind: JsonNodeKind; required: bool; default: JsonNode = nil): JsonNode = ## ensure an input is of the correct json type and yield ## a suitable default value when appropriate - if js == - nil: + if js == nil: if default != nil: return validateParameter(default, kind, required = required) result = js - if result == - nil: + if result == nil: assert not required, $kind & " expected; received nil" if required: result = newJNull() else: - assert js.kind == - kind, $kind & " expected; received " & - $js.kind + assert js.kind == kind, $kind & " expected; received " & $js.kind type KeyVal {.used.} = tuple[key: string, val: string] @@ -134,20 +129,18 @@ const awsServiceName = "mediapackage-vod" method atozHook(call: OpenApiRestCall; url: Uri; input: JsonNode): Recallable {.base.} type - Call_CreateAsset_613256 = ref object of OpenApiRestCall_612658 -proc url_CreateAsset_613258(protocol: Scheme; host: string; base: string; + Call_CreateAsset_611256 = ref object of OpenApiRestCall_610658 +proc url_CreateAsset_611258(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreateAsset_613257(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_CreateAsset_611257(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Creates a new MediaPackage VOD Asset resource. ## @@ -166,41 +159,41 @@ proc validate_CreateAsset_613257(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613259 = header.getOrDefault("X-Amz-Signature") - valid_613259 = validateParameter(valid_613259, JString, required = false, - default = nil) - if valid_613259 != nil: - section.add "X-Amz-Signature", valid_613259 - var valid_613260 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613260 = validateParameter(valid_613260, JString, required = false, - default = nil) - if valid_613260 != nil: - section.add "X-Amz-Content-Sha256", valid_613260 - var valid_613261 = header.getOrDefault("X-Amz-Date") - valid_613261 = validateParameter(valid_613261, JString, required = false, - default = nil) - if valid_613261 != nil: - section.add "X-Amz-Date", valid_613261 - var valid_613262 = header.getOrDefault("X-Amz-Credential") - valid_613262 = validateParameter(valid_613262, JString, required = false, - default = nil) - if valid_613262 != nil: - section.add "X-Amz-Credential", valid_613262 - var valid_613263 = header.getOrDefault("X-Amz-Security-Token") - valid_613263 = validateParameter(valid_613263, JString, required = false, - default = nil) - if valid_613263 != nil: - section.add "X-Amz-Security-Token", valid_613263 - var valid_613264 = header.getOrDefault("X-Amz-Algorithm") - valid_613264 = validateParameter(valid_613264, JString, required = false, - default = nil) - if valid_613264 != nil: - section.add "X-Amz-Algorithm", valid_613264 - var valid_613265 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613265 = validateParameter(valid_613265, JString, required = false, - default = nil) - if valid_613265 != nil: - section.add "X-Amz-SignedHeaders", valid_613265 + var valid_611259 = header.getOrDefault("X-Amz-Signature") + valid_611259 = validateParameter(valid_611259, JString, required = false, + default = nil) + if valid_611259 != nil: + section.add "X-Amz-Signature", valid_611259 + var valid_611260 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611260 = validateParameter(valid_611260, JString, required = false, + default = nil) + if valid_611260 != nil: + section.add "X-Amz-Content-Sha256", valid_611260 + var valid_611261 = header.getOrDefault("X-Amz-Date") + valid_611261 = validateParameter(valid_611261, JString, required = false, + default = nil) + if valid_611261 != nil: + section.add "X-Amz-Date", valid_611261 + var valid_611262 = header.getOrDefault("X-Amz-Credential") + valid_611262 = validateParameter(valid_611262, JString, required = false, + default = nil) + if valid_611262 != nil: + section.add "X-Amz-Credential", valid_611262 + var valid_611263 = header.getOrDefault("X-Amz-Security-Token") + valid_611263 = validateParameter(valid_611263, JString, required = false, + default = nil) + if valid_611263 != nil: + section.add "X-Amz-Security-Token", valid_611263 + var valid_611264 = header.getOrDefault("X-Amz-Algorithm") + valid_611264 = validateParameter(valid_611264, JString, required = false, + default = nil) + if valid_611264 != nil: + section.add "X-Amz-Algorithm", valid_611264 + var valid_611265 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611265 = validateParameter(valid_611265, JString, required = false, + default = nil) + if valid_611265 != nil: + section.add "X-Amz-SignedHeaders", valid_611265 result.add "header", section section = newJObject() result.add "formData", section @@ -211,50 +204,48 @@ proc validate_CreateAsset_613257(path: JsonNode; query: JsonNode; header: JsonNo if body != nil: result.add "body", body -proc call*(call_613267: Call_CreateAsset_613256; path: JsonNode; query: JsonNode; +proc call*(call_611267: Call_CreateAsset_611256; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Creates a new MediaPackage VOD Asset resource. ## - let valid = call_613267.validator(path, query, header, formData, body) - let scheme = call_613267.pickScheme + let valid = call_611267.validator(path, query, header, formData, body) + let scheme = call_611267.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613267.url(scheme.get, call_613267.host, call_613267.base, - call_613267.route, valid.getOrDefault("path"), + let url = call_611267.url(scheme.get, call_611267.host, call_611267.base, + call_611267.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613267, url, valid) + result = atozHook(call_611267, url, valid) -proc call*(call_613268: Call_CreateAsset_613256; body: JsonNode): Recallable = +proc call*(call_611268: Call_CreateAsset_611256; body: JsonNode): Recallable = ## createAsset ## Creates a new MediaPackage VOD Asset resource. ## body: JObject (required) - var body_613269 = newJObject() + var body_611269 = newJObject() if body != nil: - body_613269 = body - result = call_613268.call(nil, nil, nil, nil, body_613269) + body_611269 = body + result = call_611268.call(nil, nil, nil, nil, body_611269) -var createAsset* = Call_CreateAsset_613256(name: "createAsset", +var createAsset* = Call_CreateAsset_611256(name: "createAsset", meth: HttpMethod.HttpPost, host: "mediapackage-vod.amazonaws.com", route: "/assets", - validator: validate_CreateAsset_613257, - base: "/", url: url_CreateAsset_613258, + validator: validate_CreateAsset_611257, + base: "/", url: url_CreateAsset_611258, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListAssets_612996 = ref object of OpenApiRestCall_612658 -proc url_ListAssets_612998(protocol: Scheme; host: string; base: string; route: string; + Call_ListAssets_610996 = ref object of OpenApiRestCall_610658 +proc url_ListAssets_610998(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListAssets_612997(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_ListAssets_610997(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a collection of MediaPackage VOD Asset resources. ## @@ -274,30 +265,30 @@ proc validate_ListAssets_612997(path: JsonNode; query: JsonNode; header: JsonNod ## maxResults: JInt ## : Upper bound on number of records to return. section = newJObject() - var valid_613110 = query.getOrDefault("nextToken") - valid_613110 = validateParameter(valid_613110, JString, required = false, - default = nil) - if valid_613110 != nil: - section.add "nextToken", valid_613110 - var valid_613111 = query.getOrDefault("MaxResults") - valid_613111 = validateParameter(valid_613111, JString, required = false, - default = nil) - if valid_613111 != nil: - section.add "MaxResults", valid_613111 - var valid_613112 = query.getOrDefault("NextToken") - valid_613112 = validateParameter(valid_613112, JString, required = false, - default = nil) - if valid_613112 != nil: - section.add "NextToken", valid_613112 - var valid_613113 = query.getOrDefault("packagingGroupId") - valid_613113 = validateParameter(valid_613113, JString, required = false, - default = nil) - if valid_613113 != nil: - section.add "packagingGroupId", valid_613113 - var valid_613114 = query.getOrDefault("maxResults") - valid_613114 = validateParameter(valid_613114, JInt, required = false, default = nil) - if valid_613114 != nil: - section.add "maxResults", valid_613114 + var valid_611110 = query.getOrDefault("nextToken") + valid_611110 = validateParameter(valid_611110, JString, required = false, + default = nil) + if valid_611110 != nil: + section.add "nextToken", valid_611110 + var valid_611111 = query.getOrDefault("MaxResults") + valid_611111 = validateParameter(valid_611111, JString, required = false, + default = nil) + if valid_611111 != nil: + section.add "MaxResults", valid_611111 + var valid_611112 = query.getOrDefault("NextToken") + valid_611112 = validateParameter(valid_611112, JString, required = false, + default = nil) + if valid_611112 != nil: + section.add "NextToken", valid_611112 + var valid_611113 = query.getOrDefault("packagingGroupId") + valid_611113 = validateParameter(valid_611113, JString, required = false, + default = nil) + if valid_611113 != nil: + section.add "packagingGroupId", valid_611113 + var valid_611114 = query.getOrDefault("maxResults") + valid_611114 = validateParameter(valid_611114, JInt, required = false, default = nil) + if valid_611114 != nil: + section.add "maxResults", valid_611114 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -308,61 +299,61 @@ proc validate_ListAssets_612997(path: JsonNode; query: JsonNode; header: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613115 = header.getOrDefault("X-Amz-Signature") - valid_613115 = validateParameter(valid_613115, JString, required = false, - default = nil) - if valid_613115 != nil: - section.add "X-Amz-Signature", valid_613115 - var valid_613116 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613116 = validateParameter(valid_613116, JString, required = false, - default = nil) - if valid_613116 != nil: - section.add "X-Amz-Content-Sha256", valid_613116 - var valid_613117 = header.getOrDefault("X-Amz-Date") - valid_613117 = validateParameter(valid_613117, JString, required = false, - default = nil) - if valid_613117 != nil: - section.add "X-Amz-Date", valid_613117 - var valid_613118 = header.getOrDefault("X-Amz-Credential") - valid_613118 = validateParameter(valid_613118, JString, required = false, - default = nil) - if valid_613118 != nil: - section.add "X-Amz-Credential", valid_613118 - var valid_613119 = header.getOrDefault("X-Amz-Security-Token") - valid_613119 = validateParameter(valid_613119, JString, required = false, - default = nil) - if valid_613119 != nil: - section.add "X-Amz-Security-Token", valid_613119 - var valid_613120 = header.getOrDefault("X-Amz-Algorithm") - valid_613120 = validateParameter(valid_613120, JString, required = false, - default = nil) - if valid_613120 != nil: - section.add "X-Amz-Algorithm", valid_613120 - var valid_613121 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613121 = validateParameter(valid_613121, JString, required = false, - default = nil) - if valid_613121 != nil: - section.add "X-Amz-SignedHeaders", valid_613121 + var valid_611115 = header.getOrDefault("X-Amz-Signature") + valid_611115 = validateParameter(valid_611115, JString, required = false, + default = nil) + if valid_611115 != nil: + section.add "X-Amz-Signature", valid_611115 + var valid_611116 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611116 = validateParameter(valid_611116, JString, required = false, + default = nil) + if valid_611116 != nil: + section.add "X-Amz-Content-Sha256", valid_611116 + var valid_611117 = header.getOrDefault("X-Amz-Date") + valid_611117 = validateParameter(valid_611117, JString, required = false, + default = nil) + if valid_611117 != nil: + section.add "X-Amz-Date", valid_611117 + var valid_611118 = header.getOrDefault("X-Amz-Credential") + valid_611118 = validateParameter(valid_611118, JString, required = false, + default = nil) + if valid_611118 != nil: + section.add "X-Amz-Credential", valid_611118 + var valid_611119 = header.getOrDefault("X-Amz-Security-Token") + valid_611119 = validateParameter(valid_611119, JString, required = false, + default = nil) + if valid_611119 != nil: + section.add "X-Amz-Security-Token", valid_611119 + var valid_611120 = header.getOrDefault("X-Amz-Algorithm") + valid_611120 = validateParameter(valid_611120, JString, required = false, + default = nil) + if valid_611120 != nil: + section.add "X-Amz-Algorithm", valid_611120 + var valid_611121 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611121 = validateParameter(valid_611121, JString, required = false, + default = nil) + if valid_611121 != nil: + section.add "X-Amz-SignedHeaders", valid_611121 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613144: Call_ListAssets_612996; path: JsonNode; query: JsonNode; +proc call*(call_611144: Call_ListAssets_610996; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a collection of MediaPackage VOD Asset resources. ## - let valid = call_613144.validator(path, query, header, formData, body) - let scheme = call_613144.pickScheme + let valid = call_611144.validator(path, query, header, formData, body) + let scheme = call_611144.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613144.url(scheme.get, call_613144.host, call_613144.base, - call_613144.route, valid.getOrDefault("path"), + let url = call_611144.url(scheme.get, call_611144.host, call_611144.base, + call_611144.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613144, url, valid) + result = atozHook(call_611144, url, valid) -proc call*(call_613215: Call_ListAssets_612996; nextToken: string = ""; +proc call*(call_611215: Call_ListAssets_610996; nextToken: string = ""; MaxResults: string = ""; NextToken: string = ""; packagingGroupId: string = ""; maxResults: int = 0): Recallable = ## listAssets @@ -377,36 +368,34 @@ proc call*(call_613215: Call_ListAssets_612996; nextToken: string = ""; ## : Returns Assets associated with the specified PackagingGroup. ## maxResults: int ## : Upper bound on number of records to return. - var query_613216 = newJObject() - add(query_613216, "nextToken", newJString(nextToken)) - add(query_613216, "MaxResults", newJString(MaxResults)) - add(query_613216, "NextToken", newJString(NextToken)) - add(query_613216, "packagingGroupId", newJString(packagingGroupId)) - add(query_613216, "maxResults", newJInt(maxResults)) - result = call_613215.call(nil, query_613216, nil, nil, nil) + var query_611216 = newJObject() + add(query_611216, "nextToken", newJString(nextToken)) + add(query_611216, "MaxResults", newJString(MaxResults)) + add(query_611216, "NextToken", newJString(NextToken)) + add(query_611216, "packagingGroupId", newJString(packagingGroupId)) + add(query_611216, "maxResults", newJInt(maxResults)) + result = call_611215.call(nil, query_611216, nil, nil, nil) -var listAssets* = Call_ListAssets_612996(name: "listAssets", +var listAssets* = Call_ListAssets_610996(name: "listAssets", meth: HttpMethod.HttpGet, host: "mediapackage-vod.amazonaws.com", route: "/assets", - validator: validate_ListAssets_612997, - base: "/", url: url_ListAssets_612998, + validator: validate_ListAssets_610997, + base: "/", url: url_ListAssets_610998, schemes: {Scheme.Https, Scheme.Http}) type - Call_CreatePackagingConfiguration_613288 = ref object of OpenApiRestCall_612658 -proc url_CreatePackagingConfiguration_613290(protocol: Scheme; host: string; + Call_CreatePackagingConfiguration_611288 = ref object of OpenApiRestCall_610658 +proc url_CreatePackagingConfiguration_611290(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreatePackagingConfiguration_613289(path: JsonNode; query: JsonNode; +proc validate_CreatePackagingConfiguration_611289(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Creates a new MediaPackage VOD PackagingConfiguration resource. ## @@ -425,41 +414,41 @@ proc validate_CreatePackagingConfiguration_613289(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613291 = header.getOrDefault("X-Amz-Signature") - valid_613291 = validateParameter(valid_613291, JString, required = false, - default = nil) - if valid_613291 != nil: - section.add "X-Amz-Signature", valid_613291 - var valid_613292 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613292 = validateParameter(valid_613292, JString, required = false, - default = nil) - if valid_613292 != nil: - section.add "X-Amz-Content-Sha256", valid_613292 - var valid_613293 = header.getOrDefault("X-Amz-Date") - valid_613293 = validateParameter(valid_613293, JString, required = false, - default = nil) - if valid_613293 != nil: - section.add "X-Amz-Date", valid_613293 - var valid_613294 = header.getOrDefault("X-Amz-Credential") - valid_613294 = validateParameter(valid_613294, JString, required = false, - default = nil) - if valid_613294 != nil: - section.add "X-Amz-Credential", valid_613294 - var valid_613295 = header.getOrDefault("X-Amz-Security-Token") - valid_613295 = validateParameter(valid_613295, JString, required = false, - default = nil) - if valid_613295 != nil: - section.add "X-Amz-Security-Token", valid_613295 - var valid_613296 = header.getOrDefault("X-Amz-Algorithm") - valid_613296 = validateParameter(valid_613296, JString, required = false, - default = nil) - if valid_613296 != nil: - section.add "X-Amz-Algorithm", valid_613296 - var valid_613297 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613297 = validateParameter(valid_613297, JString, required = false, - default = nil) - if valid_613297 != nil: - section.add "X-Amz-SignedHeaders", valid_613297 + var valid_611291 = header.getOrDefault("X-Amz-Signature") + valid_611291 = validateParameter(valid_611291, JString, required = false, + default = nil) + if valid_611291 != nil: + section.add "X-Amz-Signature", valid_611291 + var valid_611292 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611292 = validateParameter(valid_611292, JString, required = false, + default = nil) + if valid_611292 != nil: + section.add "X-Amz-Content-Sha256", valid_611292 + var valid_611293 = header.getOrDefault("X-Amz-Date") + valid_611293 = validateParameter(valid_611293, JString, required = false, + default = nil) + if valid_611293 != nil: + section.add "X-Amz-Date", valid_611293 + var valid_611294 = header.getOrDefault("X-Amz-Credential") + valid_611294 = validateParameter(valid_611294, JString, required = false, + default = nil) + if valid_611294 != nil: + section.add "X-Amz-Credential", valid_611294 + var valid_611295 = header.getOrDefault("X-Amz-Security-Token") + valid_611295 = validateParameter(valid_611295, JString, required = false, + default = nil) + if valid_611295 != nil: + section.add "X-Amz-Security-Token", valid_611295 + var valid_611296 = header.getOrDefault("X-Amz-Algorithm") + valid_611296 = validateParameter(valid_611296, JString, required = false, + default = nil) + if valid_611296 != nil: + section.add "X-Amz-Algorithm", valid_611296 + var valid_611297 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611297 = validateParameter(valid_611297, JString, required = false, + default = nil) + if valid_611297 != nil: + section.add "X-Amz-SignedHeaders", valid_611297 result.add "header", section section = newJObject() result.add "formData", section @@ -470,49 +459,47 @@ proc validate_CreatePackagingConfiguration_613289(path: JsonNode; query: JsonNod if body != nil: result.add "body", body -proc call*(call_613299: Call_CreatePackagingConfiguration_613288; path: JsonNode; +proc call*(call_611299: Call_CreatePackagingConfiguration_611288; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Creates a new MediaPackage VOD PackagingConfiguration resource. ## - let valid = call_613299.validator(path, query, header, formData, body) - let scheme = call_613299.pickScheme + let valid = call_611299.validator(path, query, header, formData, body) + let scheme = call_611299.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613299.url(scheme.get, call_613299.host, call_613299.base, - call_613299.route, valid.getOrDefault("path"), + let url = call_611299.url(scheme.get, call_611299.host, call_611299.base, + call_611299.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613299, url, valid) + result = atozHook(call_611299, url, valid) -proc call*(call_613300: Call_CreatePackagingConfiguration_613288; body: JsonNode): Recallable = +proc call*(call_611300: Call_CreatePackagingConfiguration_611288; body: JsonNode): Recallable = ## createPackagingConfiguration ## Creates a new MediaPackage VOD PackagingConfiguration resource. ## body: JObject (required) - var body_613301 = newJObject() + var body_611301 = newJObject() if body != nil: - body_613301 = body - result = call_613300.call(nil, nil, nil, nil, body_613301) + body_611301 = body + result = call_611300.call(nil, nil, nil, nil, body_611301) -var createPackagingConfiguration* = Call_CreatePackagingConfiguration_613288( +var createPackagingConfiguration* = Call_CreatePackagingConfiguration_611288( name: "createPackagingConfiguration", meth: HttpMethod.HttpPost, host: "mediapackage-vod.amazonaws.com", route: "/packaging_configurations", - validator: validate_CreatePackagingConfiguration_613289, base: "/", - url: url_CreatePackagingConfiguration_613290, + validator: validate_CreatePackagingConfiguration_611289, base: "/", + url: url_CreatePackagingConfiguration_611290, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListPackagingConfigurations_613270 = ref object of OpenApiRestCall_612658 -proc url_ListPackagingConfigurations_613272(protocol: Scheme; host: string; + Call_ListPackagingConfigurations_611270 = ref object of OpenApiRestCall_610658 +proc url_ListPackagingConfigurations_611272(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListPackagingConfigurations_613271(path: JsonNode; query: JsonNode; +proc validate_ListPackagingConfigurations_611271(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a collection of MediaPackage VOD PackagingConfiguration resources. ## @@ -532,30 +519,30 @@ proc validate_ListPackagingConfigurations_613271(path: JsonNode; query: JsonNode ## maxResults: JInt ## : Upper bound on number of records to return. section = newJObject() - var valid_613273 = query.getOrDefault("nextToken") - valid_613273 = validateParameter(valid_613273, JString, required = false, - default = nil) - if valid_613273 != nil: - section.add "nextToken", valid_613273 - var valid_613274 = query.getOrDefault("MaxResults") - valid_613274 = validateParameter(valid_613274, JString, required = false, - default = nil) - if valid_613274 != nil: - section.add "MaxResults", valid_613274 - var valid_613275 = query.getOrDefault("NextToken") - valid_613275 = validateParameter(valid_613275, JString, required = false, - default = nil) - if valid_613275 != nil: - section.add "NextToken", valid_613275 - var valid_613276 = query.getOrDefault("packagingGroupId") - valid_613276 = validateParameter(valid_613276, JString, required = false, - default = nil) - if valid_613276 != nil: - section.add "packagingGroupId", valid_613276 - var valid_613277 = query.getOrDefault("maxResults") - valid_613277 = validateParameter(valid_613277, JInt, required = false, default = nil) - if valid_613277 != nil: - section.add "maxResults", valid_613277 + var valid_611273 = query.getOrDefault("nextToken") + valid_611273 = validateParameter(valid_611273, JString, required = false, + default = nil) + if valid_611273 != nil: + section.add "nextToken", valid_611273 + var valid_611274 = query.getOrDefault("MaxResults") + valid_611274 = validateParameter(valid_611274, JString, required = false, + default = nil) + if valid_611274 != nil: + section.add "MaxResults", valid_611274 + var valid_611275 = query.getOrDefault("NextToken") + valid_611275 = validateParameter(valid_611275, JString, required = false, + default = nil) + if valid_611275 != nil: + section.add "NextToken", valid_611275 + var valid_611276 = query.getOrDefault("packagingGroupId") + valid_611276 = validateParameter(valid_611276, JString, required = false, + default = nil) + if valid_611276 != nil: + section.add "packagingGroupId", valid_611276 + var valid_611277 = query.getOrDefault("maxResults") + valid_611277 = validateParameter(valid_611277, JInt, required = false, default = nil) + if valid_611277 != nil: + section.add "maxResults", valid_611277 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -566,61 +553,61 @@ proc validate_ListPackagingConfigurations_613271(path: JsonNode; query: JsonNode ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613278 = header.getOrDefault("X-Amz-Signature") - valid_613278 = validateParameter(valid_613278, JString, required = false, - default = nil) - if valid_613278 != nil: - section.add "X-Amz-Signature", valid_613278 - var valid_613279 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613279 = validateParameter(valid_613279, JString, required = false, - default = nil) - if valid_613279 != nil: - section.add "X-Amz-Content-Sha256", valid_613279 - var valid_613280 = header.getOrDefault("X-Amz-Date") - valid_613280 = validateParameter(valid_613280, JString, required = false, - default = nil) - if valid_613280 != nil: - section.add "X-Amz-Date", valid_613280 - var valid_613281 = header.getOrDefault("X-Amz-Credential") - valid_613281 = validateParameter(valid_613281, JString, required = false, - default = nil) - if valid_613281 != nil: - section.add "X-Amz-Credential", valid_613281 - var valid_613282 = header.getOrDefault("X-Amz-Security-Token") - valid_613282 = validateParameter(valid_613282, JString, required = false, - default = nil) - if valid_613282 != nil: - section.add "X-Amz-Security-Token", valid_613282 - var valid_613283 = header.getOrDefault("X-Amz-Algorithm") - valid_613283 = validateParameter(valid_613283, JString, required = false, - default = nil) - if valid_613283 != nil: - section.add "X-Amz-Algorithm", valid_613283 - var valid_613284 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613284 = validateParameter(valid_613284, JString, required = false, - default = nil) - if valid_613284 != nil: - section.add "X-Amz-SignedHeaders", valid_613284 + var valid_611278 = header.getOrDefault("X-Amz-Signature") + valid_611278 = validateParameter(valid_611278, JString, required = false, + default = nil) + if valid_611278 != nil: + section.add "X-Amz-Signature", valid_611278 + var valid_611279 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611279 = validateParameter(valid_611279, JString, required = false, + default = nil) + if valid_611279 != nil: + section.add "X-Amz-Content-Sha256", valid_611279 + var valid_611280 = header.getOrDefault("X-Amz-Date") + valid_611280 = validateParameter(valid_611280, JString, required = false, + default = nil) + if valid_611280 != nil: + section.add "X-Amz-Date", valid_611280 + var valid_611281 = header.getOrDefault("X-Amz-Credential") + valid_611281 = validateParameter(valid_611281, JString, required = false, + default = nil) + if valid_611281 != nil: + section.add "X-Amz-Credential", valid_611281 + var valid_611282 = header.getOrDefault("X-Amz-Security-Token") + valid_611282 = validateParameter(valid_611282, JString, required = false, + default = nil) + if valid_611282 != nil: + section.add "X-Amz-Security-Token", valid_611282 + var valid_611283 = header.getOrDefault("X-Amz-Algorithm") + valid_611283 = validateParameter(valid_611283, JString, required = false, + default = nil) + if valid_611283 != nil: + section.add "X-Amz-Algorithm", valid_611283 + var valid_611284 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611284 = validateParameter(valid_611284, JString, required = false, + default = nil) + if valid_611284 != nil: + section.add "X-Amz-SignedHeaders", valid_611284 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613285: Call_ListPackagingConfigurations_613270; path: JsonNode; +proc call*(call_611285: Call_ListPackagingConfigurations_611270; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a collection of MediaPackage VOD PackagingConfiguration resources. ## - let valid = call_613285.validator(path, query, header, formData, body) - let scheme = call_613285.pickScheme + let valid = call_611285.validator(path, query, header, formData, body) + let scheme = call_611285.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613285.url(scheme.get, call_613285.host, call_613285.base, - call_613285.route, valid.getOrDefault("path"), + let url = call_611285.url(scheme.get, call_611285.host, call_611285.base, + call_611285.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613285, url, valid) + result = atozHook(call_611285, url, valid) -proc call*(call_613286: Call_ListPackagingConfigurations_613270; +proc call*(call_611286: Call_ListPackagingConfigurations_611270; nextToken: string = ""; MaxResults: string = ""; NextToken: string = ""; packagingGroupId: string = ""; maxResults: int = 0): Recallable = ## listPackagingConfigurations @@ -635,35 +622,33 @@ proc call*(call_613286: Call_ListPackagingConfigurations_613270; ## : Returns MediaPackage VOD PackagingConfigurations associated with the specified PackagingGroup. ## maxResults: int ## : Upper bound on number of records to return. - var query_613287 = newJObject() - add(query_613287, "nextToken", newJString(nextToken)) - add(query_613287, "MaxResults", newJString(MaxResults)) - add(query_613287, "NextToken", newJString(NextToken)) - add(query_613287, "packagingGroupId", newJString(packagingGroupId)) - add(query_613287, "maxResults", newJInt(maxResults)) - result = call_613286.call(nil, query_613287, nil, nil, nil) + var query_611287 = newJObject() + add(query_611287, "nextToken", newJString(nextToken)) + add(query_611287, "MaxResults", newJString(MaxResults)) + add(query_611287, "NextToken", newJString(NextToken)) + add(query_611287, "packagingGroupId", newJString(packagingGroupId)) + add(query_611287, "maxResults", newJInt(maxResults)) + result = call_611286.call(nil, query_611287, nil, nil, nil) -var listPackagingConfigurations* = Call_ListPackagingConfigurations_613270( +var listPackagingConfigurations* = Call_ListPackagingConfigurations_611270( name: "listPackagingConfigurations", meth: HttpMethod.HttpGet, host: "mediapackage-vod.amazonaws.com", route: "/packaging_configurations", - validator: validate_ListPackagingConfigurations_613271, base: "/", - url: url_ListPackagingConfigurations_613272, + validator: validate_ListPackagingConfigurations_611271, base: "/", + url: url_ListPackagingConfigurations_611272, schemes: {Scheme.Https, Scheme.Http}) type - Call_CreatePackagingGroup_613319 = ref object of OpenApiRestCall_612658 -proc url_CreatePackagingGroup_613321(protocol: Scheme; host: string; base: string; + Call_CreatePackagingGroup_611319 = ref object of OpenApiRestCall_610658 +proc url_CreatePackagingGroup_611321(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_CreatePackagingGroup_613320(path: JsonNode; query: JsonNode; +proc validate_CreatePackagingGroup_611320(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Creates a new MediaPackage VOD PackagingGroup resource. ## @@ -682,41 +667,41 @@ proc validate_CreatePackagingGroup_613320(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613322 = header.getOrDefault("X-Amz-Signature") - valid_613322 = validateParameter(valid_613322, JString, required = false, - default = nil) - if valid_613322 != nil: - section.add "X-Amz-Signature", valid_613322 - var valid_613323 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613323 = validateParameter(valid_613323, JString, required = false, - default = nil) - if valid_613323 != nil: - section.add "X-Amz-Content-Sha256", valid_613323 - var valid_613324 = header.getOrDefault("X-Amz-Date") - valid_613324 = validateParameter(valid_613324, JString, required = false, - default = nil) - if valid_613324 != nil: - section.add "X-Amz-Date", valid_613324 - var valid_613325 = header.getOrDefault("X-Amz-Credential") - valid_613325 = validateParameter(valid_613325, JString, required = false, - default = nil) - if valid_613325 != nil: - section.add "X-Amz-Credential", valid_613325 - var valid_613326 = header.getOrDefault("X-Amz-Security-Token") - valid_613326 = validateParameter(valid_613326, JString, required = false, - default = nil) - if valid_613326 != nil: - section.add "X-Amz-Security-Token", valid_613326 - var valid_613327 = header.getOrDefault("X-Amz-Algorithm") - valid_613327 = validateParameter(valid_613327, JString, required = false, - default = nil) - if valid_613327 != nil: - section.add "X-Amz-Algorithm", valid_613327 - var valid_613328 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613328 = validateParameter(valid_613328, JString, required = false, - default = nil) - if valid_613328 != nil: - section.add "X-Amz-SignedHeaders", valid_613328 + var valid_611322 = header.getOrDefault("X-Amz-Signature") + valid_611322 = validateParameter(valid_611322, JString, required = false, + default = nil) + if valid_611322 != nil: + section.add "X-Amz-Signature", valid_611322 + var valid_611323 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611323 = validateParameter(valid_611323, JString, required = false, + default = nil) + if valid_611323 != nil: + section.add "X-Amz-Content-Sha256", valid_611323 + var valid_611324 = header.getOrDefault("X-Amz-Date") + valid_611324 = validateParameter(valid_611324, JString, required = false, + default = nil) + if valid_611324 != nil: + section.add "X-Amz-Date", valid_611324 + var valid_611325 = header.getOrDefault("X-Amz-Credential") + valid_611325 = validateParameter(valid_611325, JString, required = false, + default = nil) + if valid_611325 != nil: + section.add "X-Amz-Credential", valid_611325 + var valid_611326 = header.getOrDefault("X-Amz-Security-Token") + valid_611326 = validateParameter(valid_611326, JString, required = false, + default = nil) + if valid_611326 != nil: + section.add "X-Amz-Security-Token", valid_611326 + var valid_611327 = header.getOrDefault("X-Amz-Algorithm") + valid_611327 = validateParameter(valid_611327, JString, required = false, + default = nil) + if valid_611327 != nil: + section.add "X-Amz-Algorithm", valid_611327 + var valid_611328 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611328 = validateParameter(valid_611328, JString, required = false, + default = nil) + if valid_611328 != nil: + section.add "X-Amz-SignedHeaders", valid_611328 result.add "header", section section = newJObject() result.add "formData", section @@ -727,48 +712,46 @@ proc validate_CreatePackagingGroup_613320(path: JsonNode; query: JsonNode; if body != nil: result.add "body", body -proc call*(call_613330: Call_CreatePackagingGroup_613319; path: JsonNode; +proc call*(call_611330: Call_CreatePackagingGroup_611319; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Creates a new MediaPackage VOD PackagingGroup resource. ## - let valid = call_613330.validator(path, query, header, formData, body) - let scheme = call_613330.pickScheme + let valid = call_611330.validator(path, query, header, formData, body) + let scheme = call_611330.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613330.url(scheme.get, call_613330.host, call_613330.base, - call_613330.route, valid.getOrDefault("path"), + let url = call_611330.url(scheme.get, call_611330.host, call_611330.base, + call_611330.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613330, url, valid) + result = atozHook(call_611330, url, valid) -proc call*(call_613331: Call_CreatePackagingGroup_613319; body: JsonNode): Recallable = +proc call*(call_611331: Call_CreatePackagingGroup_611319; body: JsonNode): Recallable = ## createPackagingGroup ## Creates a new MediaPackage VOD PackagingGroup resource. ## body: JObject (required) - var body_613332 = newJObject() + var body_611332 = newJObject() if body != nil: - body_613332 = body - result = call_613331.call(nil, nil, nil, nil, body_613332) + body_611332 = body + result = call_611331.call(nil, nil, nil, nil, body_611332) -var createPackagingGroup* = Call_CreatePackagingGroup_613319( +var createPackagingGroup* = Call_CreatePackagingGroup_611319( name: "createPackagingGroup", meth: HttpMethod.HttpPost, host: "mediapackage-vod.amazonaws.com", route: "/packaging_groups", - validator: validate_CreatePackagingGroup_613320, base: "/", - url: url_CreatePackagingGroup_613321, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_CreatePackagingGroup_611320, base: "/", + url: url_CreatePackagingGroup_611321, schemes: {Scheme.Https, Scheme.Http}) type - Call_ListPackagingGroups_613302 = ref object of OpenApiRestCall_612658 -proc url_ListPackagingGroups_613304(protocol: Scheme; host: string; base: string; + Call_ListPackagingGroups_611302 = ref object of OpenApiRestCall_610658 +proc url_ListPackagingGroups_611304(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host result.query = $queryString(query) - if base == - "/" and - route.startsWith "/": + if base == "/" and route.startsWith "/": result.path = route else: result.path = base & route -proc validate_ListPackagingGroups_613303(path: JsonNode; query: JsonNode; +proc validate_ListPackagingGroups_611303(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a collection of MediaPackage VOD PackagingGroup resources. @@ -787,25 +770,25 @@ proc validate_ListPackagingGroups_613303(path: JsonNode; query: JsonNode; ## maxResults: JInt ## : Upper bound on number of records to return. section = newJObject() - var valid_613305 = query.getOrDefault("nextToken") - valid_613305 = validateParameter(valid_613305, JString, required = false, - default = nil) - if valid_613305 != nil: - section.add "nextToken", valid_613305 - var valid_613306 = query.getOrDefault("MaxResults") - valid_613306 = validateParameter(valid_613306, JString, required = false, - default = nil) - if valid_613306 != nil: - section.add "MaxResults", valid_613306 - var valid_613307 = query.getOrDefault("NextToken") - valid_613307 = validateParameter(valid_613307, JString, required = false, - default = nil) - if valid_613307 != nil: - section.add "NextToken", valid_613307 - var valid_613308 = query.getOrDefault("maxResults") - valid_613308 = validateParameter(valid_613308, JInt, required = false, default = nil) - if valid_613308 != nil: - section.add "maxResults", valid_613308 + var valid_611305 = query.getOrDefault("nextToken") + valid_611305 = validateParameter(valid_611305, JString, required = false, + default = nil) + if valid_611305 != nil: + section.add "nextToken", valid_611305 + var valid_611306 = query.getOrDefault("MaxResults") + valid_611306 = validateParameter(valid_611306, JString, required = false, + default = nil) + if valid_611306 != nil: + section.add "MaxResults", valid_611306 + var valid_611307 = query.getOrDefault("NextToken") + valid_611307 = validateParameter(valid_611307, JString, required = false, + default = nil) + if valid_611307 != nil: + section.add "NextToken", valid_611307 + var valid_611308 = query.getOrDefault("maxResults") + valid_611308 = validateParameter(valid_611308, JInt, required = false, default = nil) + if valid_611308 != nil: + section.add "maxResults", valid_611308 result.add "query", section ## parameters in `header` object: ## X-Amz-Signature: JString @@ -816,61 +799,61 @@ proc validate_ListPackagingGroups_613303(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613309 = header.getOrDefault("X-Amz-Signature") - valid_613309 = validateParameter(valid_613309, JString, required = false, - default = nil) - if valid_613309 != nil: - section.add "X-Amz-Signature", valid_613309 - var valid_613310 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613310 = validateParameter(valid_613310, JString, required = false, - default = nil) - if valid_613310 != nil: - section.add "X-Amz-Content-Sha256", valid_613310 - var valid_613311 = header.getOrDefault("X-Amz-Date") - valid_613311 = validateParameter(valid_613311, JString, required = false, - default = nil) - if valid_613311 != nil: - section.add "X-Amz-Date", valid_613311 - var valid_613312 = header.getOrDefault("X-Amz-Credential") - valid_613312 = validateParameter(valid_613312, JString, required = false, - default = nil) - if valid_613312 != nil: - section.add "X-Amz-Credential", valid_613312 - var valid_613313 = header.getOrDefault("X-Amz-Security-Token") - valid_613313 = validateParameter(valid_613313, JString, required = false, - default = nil) - if valid_613313 != nil: - section.add "X-Amz-Security-Token", valid_613313 - var valid_613314 = header.getOrDefault("X-Amz-Algorithm") - valid_613314 = validateParameter(valid_613314, JString, required = false, - default = nil) - if valid_613314 != nil: - section.add "X-Amz-Algorithm", valid_613314 - var valid_613315 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613315 = validateParameter(valid_613315, JString, required = false, - default = nil) - if valid_613315 != nil: - section.add "X-Amz-SignedHeaders", valid_613315 + var valid_611309 = header.getOrDefault("X-Amz-Signature") + valid_611309 = validateParameter(valid_611309, JString, required = false, + default = nil) + if valid_611309 != nil: + section.add "X-Amz-Signature", valid_611309 + var valid_611310 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611310 = validateParameter(valid_611310, JString, required = false, + default = nil) + if valid_611310 != nil: + section.add "X-Amz-Content-Sha256", valid_611310 + var valid_611311 = header.getOrDefault("X-Amz-Date") + valid_611311 = validateParameter(valid_611311, JString, required = false, + default = nil) + if valid_611311 != nil: + section.add "X-Amz-Date", valid_611311 + var valid_611312 = header.getOrDefault("X-Amz-Credential") + valid_611312 = validateParameter(valid_611312, JString, required = false, + default = nil) + if valid_611312 != nil: + section.add "X-Amz-Credential", valid_611312 + var valid_611313 = header.getOrDefault("X-Amz-Security-Token") + valid_611313 = validateParameter(valid_611313, JString, required = false, + default = nil) + if valid_611313 != nil: + section.add "X-Amz-Security-Token", valid_611313 + var valid_611314 = header.getOrDefault("X-Amz-Algorithm") + valid_611314 = validateParameter(valid_611314, JString, required = false, + default = nil) + if valid_611314 != nil: + section.add "X-Amz-Algorithm", valid_611314 + var valid_611315 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611315 = validateParameter(valid_611315, JString, required = false, + default = nil) + if valid_611315 != nil: + section.add "X-Amz-SignedHeaders", valid_611315 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613316: Call_ListPackagingGroups_613302; path: JsonNode; +proc call*(call_611316: Call_ListPackagingGroups_611302; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a collection of MediaPackage VOD PackagingGroup resources. ## - let valid = call_613316.validator(path, query, header, formData, body) - let scheme = call_613316.pickScheme + let valid = call_611316.validator(path, query, header, formData, body) + let scheme = call_611316.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613316.url(scheme.get, call_613316.host, call_613316.base, - call_613316.route, valid.getOrDefault("path"), + let url = call_611316.url(scheme.get, call_611316.host, call_611316.base, + call_611316.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613316, url, valid) + result = atozHook(call_611316, url, valid) -proc call*(call_613317: Call_ListPackagingGroups_613302; nextToken: string = ""; +proc call*(call_611317: Call_ListPackagingGroups_611302; nextToken: string = ""; MaxResults: string = ""; NextToken: string = ""; maxResults: int = 0): Recallable = ## listPackagingGroups ## Returns a collection of MediaPackage VOD PackagingGroup resources. @@ -882,21 +865,21 @@ proc call*(call_613317: Call_ListPackagingGroups_613302; nextToken: string = ""; ## : Pagination token ## maxResults: int ## : Upper bound on number of records to return. - var query_613318 = newJObject() - add(query_613318, "nextToken", newJString(nextToken)) - add(query_613318, "MaxResults", newJString(MaxResults)) - add(query_613318, "NextToken", newJString(NextToken)) - add(query_613318, "maxResults", newJInt(maxResults)) - result = call_613317.call(nil, query_613318, nil, nil, nil) + var query_611318 = newJObject() + add(query_611318, "nextToken", newJString(nextToken)) + add(query_611318, "MaxResults", newJString(MaxResults)) + add(query_611318, "NextToken", newJString(NextToken)) + add(query_611318, "maxResults", newJInt(maxResults)) + result = call_611317.call(nil, query_611318, nil, nil, nil) -var listPackagingGroups* = Call_ListPackagingGroups_613302( +var listPackagingGroups* = Call_ListPackagingGroups_611302( name: "listPackagingGroups", meth: HttpMethod.HttpGet, host: "mediapackage-vod.amazonaws.com", route: "/packaging_groups", - validator: validate_ListPackagingGroups_613303, base: "/", - url: url_ListPackagingGroups_613304, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_ListPackagingGroups_611303, base: "/", + url: url_ListPackagingGroups_611304, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribeAsset_613333 = ref object of OpenApiRestCall_612658 -proc url_DescribeAsset_613335(protocol: Scheme; host: string; base: string; + Call_DescribeAsset_611333 = ref object of OpenApiRestCall_610658 +proc url_DescribeAsset_611335(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -909,14 +892,12 @@ proc url_DescribeAsset_613335(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DescribeAsset_613334(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_DescribeAsset_611334(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a description of a MediaPackage VOD Asset resource. ## @@ -927,11 +908,11 @@ proc validate_DescribeAsset_613334(path: JsonNode; query: JsonNode; header: Json ## : The ID of an MediaPackage VOD Asset resource. section = newJObject() assert path != nil, "path argument is necessary due to required `id` field" - var valid_613350 = path.getOrDefault("id") - valid_613350 = validateParameter(valid_613350, JString, required = true, + var valid_611350 = path.getOrDefault("id") + valid_611350 = validateParameter(valid_611350, JString, required = true, default = nil) - if valid_613350 != nil: - section.add "id", valid_613350 + if valid_611350 != nil: + section.add "id", valid_611350 result.add "path", section section = newJObject() result.add "query", section @@ -944,76 +925,76 @@ proc validate_DescribeAsset_613334(path: JsonNode; query: JsonNode; header: Json ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613351 = header.getOrDefault("X-Amz-Signature") - valid_613351 = validateParameter(valid_613351, JString, required = false, - default = nil) - if valid_613351 != nil: - section.add "X-Amz-Signature", valid_613351 - var valid_613352 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613352 = validateParameter(valid_613352, JString, required = false, - default = nil) - if valid_613352 != nil: - section.add "X-Amz-Content-Sha256", valid_613352 - var valid_613353 = header.getOrDefault("X-Amz-Date") - valid_613353 = validateParameter(valid_613353, JString, required = false, - default = nil) - if valid_613353 != nil: - section.add "X-Amz-Date", valid_613353 - var valid_613354 = header.getOrDefault("X-Amz-Credential") - valid_613354 = validateParameter(valid_613354, JString, required = false, - default = nil) - if valid_613354 != nil: - section.add "X-Amz-Credential", valid_613354 - var valid_613355 = header.getOrDefault("X-Amz-Security-Token") - valid_613355 = validateParameter(valid_613355, JString, required = false, - default = nil) - if valid_613355 != nil: - section.add "X-Amz-Security-Token", valid_613355 - var valid_613356 = header.getOrDefault("X-Amz-Algorithm") - valid_613356 = validateParameter(valid_613356, JString, required = false, - default = nil) - if valid_613356 != nil: - section.add "X-Amz-Algorithm", valid_613356 - var valid_613357 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613357 = validateParameter(valid_613357, JString, required = false, - default = nil) - if valid_613357 != nil: - section.add "X-Amz-SignedHeaders", valid_613357 + var valid_611351 = header.getOrDefault("X-Amz-Signature") + valid_611351 = validateParameter(valid_611351, JString, required = false, + default = nil) + if valid_611351 != nil: + section.add "X-Amz-Signature", valid_611351 + var valid_611352 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611352 = validateParameter(valid_611352, JString, required = false, + default = nil) + if valid_611352 != nil: + section.add "X-Amz-Content-Sha256", valid_611352 + var valid_611353 = header.getOrDefault("X-Amz-Date") + valid_611353 = validateParameter(valid_611353, JString, required = false, + default = nil) + if valid_611353 != nil: + section.add "X-Amz-Date", valid_611353 + var valid_611354 = header.getOrDefault("X-Amz-Credential") + valid_611354 = validateParameter(valid_611354, JString, required = false, + default = nil) + if valid_611354 != nil: + section.add "X-Amz-Credential", valid_611354 + var valid_611355 = header.getOrDefault("X-Amz-Security-Token") + valid_611355 = validateParameter(valid_611355, JString, required = false, + default = nil) + if valid_611355 != nil: + section.add "X-Amz-Security-Token", valid_611355 + var valid_611356 = header.getOrDefault("X-Amz-Algorithm") + valid_611356 = validateParameter(valid_611356, JString, required = false, + default = nil) + if valid_611356 != nil: + section.add "X-Amz-Algorithm", valid_611356 + var valid_611357 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611357 = validateParameter(valid_611357, JString, required = false, + default = nil) + if valid_611357 != nil: + section.add "X-Amz-SignedHeaders", valid_611357 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613358: Call_DescribeAsset_613333; path: JsonNode; query: JsonNode; +proc call*(call_611358: Call_DescribeAsset_611333; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a description of a MediaPackage VOD Asset resource. ## - let valid = call_613358.validator(path, query, header, formData, body) - let scheme = call_613358.pickScheme + let valid = call_611358.validator(path, query, header, formData, body) + let scheme = call_611358.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613358.url(scheme.get, call_613358.host, call_613358.base, - call_613358.route, valid.getOrDefault("path"), + let url = call_611358.url(scheme.get, call_611358.host, call_611358.base, + call_611358.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613358, url, valid) + result = atozHook(call_611358, url, valid) -proc call*(call_613359: Call_DescribeAsset_613333; id: string): Recallable = +proc call*(call_611359: Call_DescribeAsset_611333; id: string): Recallable = ## describeAsset ## Returns a description of a MediaPackage VOD Asset resource. ## id: string (required) ## : The ID of an MediaPackage VOD Asset resource. - var path_613360 = newJObject() - add(path_613360, "id", newJString(id)) - result = call_613359.call(path_613360, nil, nil, nil, nil) + var path_611360 = newJObject() + add(path_611360, "id", newJString(id)) + result = call_611359.call(path_611360, nil, nil, nil, nil) -var describeAsset* = Call_DescribeAsset_613333(name: "describeAsset", +var describeAsset* = Call_DescribeAsset_611333(name: "describeAsset", meth: HttpMethod.HttpGet, host: "mediapackage-vod.amazonaws.com", - route: "/assets/{id}", validator: validate_DescribeAsset_613334, base: "/", - url: url_DescribeAsset_613335, schemes: {Scheme.Https, Scheme.Http}) + route: "/assets/{id}", validator: validate_DescribeAsset_611334, base: "/", + url: url_DescribeAsset_611335, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeleteAsset_613361 = ref object of OpenApiRestCall_612658 -proc url_DeleteAsset_613363(protocol: Scheme; host: string; base: string; + Call_DeleteAsset_611361 = ref object of OpenApiRestCall_610658 +proc url_DeleteAsset_611363(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1026,14 +1007,12 @@ proc url_DeleteAsset_613363(protocol: Scheme; host: string; base: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DeleteAsset_613362(path: JsonNode; query: JsonNode; header: JsonNode; +proc validate_DeleteAsset_611362(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes an existing MediaPackage VOD Asset resource. ## @@ -1044,11 +1023,11 @@ proc validate_DeleteAsset_613362(path: JsonNode; query: JsonNode; header: JsonNo ## : The ID of the MediaPackage VOD Asset resource to delete. section = newJObject() assert path != nil, "path argument is necessary due to required `id` field" - var valid_613364 = path.getOrDefault("id") - valid_613364 = validateParameter(valid_613364, JString, required = true, + var valid_611364 = path.getOrDefault("id") + valid_611364 = validateParameter(valid_611364, JString, required = true, default = nil) - if valid_613364 != nil: - section.add "id", valid_613364 + if valid_611364 != nil: + section.add "id", valid_611364 result.add "path", section section = newJObject() result.add "query", section @@ -1061,79 +1040,79 @@ proc validate_DeleteAsset_613362(path: JsonNode; query: JsonNode; header: JsonNo ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613365 = header.getOrDefault("X-Amz-Signature") - valid_613365 = validateParameter(valid_613365, JString, required = false, - default = nil) - if valid_613365 != nil: - section.add "X-Amz-Signature", valid_613365 - var valid_613366 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613366 = validateParameter(valid_613366, JString, required = false, - default = nil) - if valid_613366 != nil: - section.add "X-Amz-Content-Sha256", valid_613366 - var valid_613367 = header.getOrDefault("X-Amz-Date") - valid_613367 = validateParameter(valid_613367, JString, required = false, - default = nil) - if valid_613367 != nil: - section.add "X-Amz-Date", valid_613367 - var valid_613368 = header.getOrDefault("X-Amz-Credential") - valid_613368 = validateParameter(valid_613368, JString, required = false, - default = nil) - if valid_613368 != nil: - section.add "X-Amz-Credential", valid_613368 - var valid_613369 = header.getOrDefault("X-Amz-Security-Token") - valid_613369 = validateParameter(valid_613369, JString, required = false, - default = nil) - if valid_613369 != nil: - section.add "X-Amz-Security-Token", valid_613369 - var valid_613370 = header.getOrDefault("X-Amz-Algorithm") - valid_613370 = validateParameter(valid_613370, JString, required = false, - default = nil) - if valid_613370 != nil: - section.add "X-Amz-Algorithm", valid_613370 - var valid_613371 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613371 = validateParameter(valid_613371, JString, required = false, - default = nil) - if valid_613371 != nil: - section.add "X-Amz-SignedHeaders", valid_613371 + var valid_611365 = header.getOrDefault("X-Amz-Signature") + valid_611365 = validateParameter(valid_611365, JString, required = false, + default = nil) + if valid_611365 != nil: + section.add "X-Amz-Signature", valid_611365 + var valid_611366 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611366 = validateParameter(valid_611366, JString, required = false, + default = nil) + if valid_611366 != nil: + section.add "X-Amz-Content-Sha256", valid_611366 + var valid_611367 = header.getOrDefault("X-Amz-Date") + valid_611367 = validateParameter(valid_611367, JString, required = false, + default = nil) + if valid_611367 != nil: + section.add "X-Amz-Date", valid_611367 + var valid_611368 = header.getOrDefault("X-Amz-Credential") + valid_611368 = validateParameter(valid_611368, JString, required = false, + default = nil) + if valid_611368 != nil: + section.add "X-Amz-Credential", valid_611368 + var valid_611369 = header.getOrDefault("X-Amz-Security-Token") + valid_611369 = validateParameter(valid_611369, JString, required = false, + default = nil) + if valid_611369 != nil: + section.add "X-Amz-Security-Token", valid_611369 + var valid_611370 = header.getOrDefault("X-Amz-Algorithm") + valid_611370 = validateParameter(valid_611370, JString, required = false, + default = nil) + if valid_611370 != nil: + section.add "X-Amz-Algorithm", valid_611370 + var valid_611371 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611371 = validateParameter(valid_611371, JString, required = false, + default = nil) + if valid_611371 != nil: + section.add "X-Amz-SignedHeaders", valid_611371 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613372: Call_DeleteAsset_613361; path: JsonNode; query: JsonNode; +proc call*(call_611372: Call_DeleteAsset_611361; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes an existing MediaPackage VOD Asset resource. ## - let valid = call_613372.validator(path, query, header, formData, body) - let scheme = call_613372.pickScheme + let valid = call_611372.validator(path, query, header, formData, body) + let scheme = call_611372.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613372.url(scheme.get, call_613372.host, call_613372.base, - call_613372.route, valid.getOrDefault("path"), + let url = call_611372.url(scheme.get, call_611372.host, call_611372.base, + call_611372.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613372, url, valid) + result = atozHook(call_611372, url, valid) -proc call*(call_613373: Call_DeleteAsset_613361; id: string): Recallable = +proc call*(call_611373: Call_DeleteAsset_611361; id: string): Recallable = ## deleteAsset ## Deletes an existing MediaPackage VOD Asset resource. ## id: string (required) ## : The ID of the MediaPackage VOD Asset resource to delete. - var path_613374 = newJObject() - add(path_613374, "id", newJString(id)) - result = call_613373.call(path_613374, nil, nil, nil, nil) + var path_611374 = newJObject() + add(path_611374, "id", newJString(id)) + result = call_611373.call(path_611374, nil, nil, nil, nil) -var deleteAsset* = Call_DeleteAsset_613361(name: "deleteAsset", +var deleteAsset* = Call_DeleteAsset_611361(name: "deleteAsset", meth: HttpMethod.HttpDelete, host: "mediapackage-vod.amazonaws.com", route: "/assets/{id}", - validator: validate_DeleteAsset_613362, - base: "/", url: url_DeleteAsset_613363, + validator: validate_DeleteAsset_611362, + base: "/", url: url_DeleteAsset_611363, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribePackagingConfiguration_613375 = ref object of OpenApiRestCall_612658 -proc url_DescribePackagingConfiguration_613377(protocol: Scheme; host: string; + Call_DescribePackagingConfiguration_611375 = ref object of OpenApiRestCall_610658 +proc url_DescribePackagingConfiguration_611377(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1146,14 +1125,12 @@ proc url_DescribePackagingConfiguration_613377(protocol: Scheme; host: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DescribePackagingConfiguration_613376(path: JsonNode; +proc validate_DescribePackagingConfiguration_611376(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a description of a MediaPackage VOD PackagingConfiguration resource. ## @@ -1164,11 +1141,11 @@ proc validate_DescribePackagingConfiguration_613376(path: JsonNode; ## : The ID of a MediaPackage VOD PackagingConfiguration resource. section = newJObject() assert path != nil, "path argument is necessary due to required `id` field" - var valid_613378 = path.getOrDefault("id") - valid_613378 = validateParameter(valid_613378, JString, required = true, + var valid_611378 = path.getOrDefault("id") + valid_611378 = validateParameter(valid_611378, JString, required = true, default = nil) - if valid_613378 != nil: - section.add "id", valid_613378 + if valid_611378 != nil: + section.add "id", valid_611378 result.add "path", section section = newJObject() result.add "query", section @@ -1181,79 +1158,79 @@ proc validate_DescribePackagingConfiguration_613376(path: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613379 = header.getOrDefault("X-Amz-Signature") - valid_613379 = validateParameter(valid_613379, JString, required = false, - default = nil) - if valid_613379 != nil: - section.add "X-Amz-Signature", valid_613379 - var valid_613380 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613380 = validateParameter(valid_613380, JString, required = false, - default = nil) - if valid_613380 != nil: - section.add "X-Amz-Content-Sha256", valid_613380 - var valid_613381 = header.getOrDefault("X-Amz-Date") - valid_613381 = validateParameter(valid_613381, JString, required = false, - default = nil) - if valid_613381 != nil: - section.add "X-Amz-Date", valid_613381 - var valid_613382 = header.getOrDefault("X-Amz-Credential") - valid_613382 = validateParameter(valid_613382, JString, required = false, - default = nil) - if valid_613382 != nil: - section.add "X-Amz-Credential", valid_613382 - var valid_613383 = header.getOrDefault("X-Amz-Security-Token") - valid_613383 = validateParameter(valid_613383, JString, required = false, - default = nil) - if valid_613383 != nil: - section.add "X-Amz-Security-Token", valid_613383 - var valid_613384 = header.getOrDefault("X-Amz-Algorithm") - valid_613384 = validateParameter(valid_613384, JString, required = false, - default = nil) - if valid_613384 != nil: - section.add "X-Amz-Algorithm", valid_613384 - var valid_613385 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613385 = validateParameter(valid_613385, JString, required = false, - default = nil) - if valid_613385 != nil: - section.add "X-Amz-SignedHeaders", valid_613385 + var valid_611379 = header.getOrDefault("X-Amz-Signature") + valid_611379 = validateParameter(valid_611379, JString, required = false, + default = nil) + if valid_611379 != nil: + section.add "X-Amz-Signature", valid_611379 + var valid_611380 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611380 = validateParameter(valid_611380, JString, required = false, + default = nil) + if valid_611380 != nil: + section.add "X-Amz-Content-Sha256", valid_611380 + var valid_611381 = header.getOrDefault("X-Amz-Date") + valid_611381 = validateParameter(valid_611381, JString, required = false, + default = nil) + if valid_611381 != nil: + section.add "X-Amz-Date", valid_611381 + var valid_611382 = header.getOrDefault("X-Amz-Credential") + valid_611382 = validateParameter(valid_611382, JString, required = false, + default = nil) + if valid_611382 != nil: + section.add "X-Amz-Credential", valid_611382 + var valid_611383 = header.getOrDefault("X-Amz-Security-Token") + valid_611383 = validateParameter(valid_611383, JString, required = false, + default = nil) + if valid_611383 != nil: + section.add "X-Amz-Security-Token", valid_611383 + var valid_611384 = header.getOrDefault("X-Amz-Algorithm") + valid_611384 = validateParameter(valid_611384, JString, required = false, + default = nil) + if valid_611384 != nil: + section.add "X-Amz-Algorithm", valid_611384 + var valid_611385 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611385 = validateParameter(valid_611385, JString, required = false, + default = nil) + if valid_611385 != nil: + section.add "X-Amz-SignedHeaders", valid_611385 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613386: Call_DescribePackagingConfiguration_613375; path: JsonNode; +proc call*(call_611386: Call_DescribePackagingConfiguration_611375; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a description of a MediaPackage VOD PackagingConfiguration resource. ## - let valid = call_613386.validator(path, query, header, formData, body) - let scheme = call_613386.pickScheme + let valid = call_611386.validator(path, query, header, formData, body) + let scheme = call_611386.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613386.url(scheme.get, call_613386.host, call_613386.base, - call_613386.route, valid.getOrDefault("path"), + let url = call_611386.url(scheme.get, call_611386.host, call_611386.base, + call_611386.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613386, url, valid) + result = atozHook(call_611386, url, valid) -proc call*(call_613387: Call_DescribePackagingConfiguration_613375; id: string): Recallable = +proc call*(call_611387: Call_DescribePackagingConfiguration_611375; id: string): Recallable = ## describePackagingConfiguration ## Returns a description of a MediaPackage VOD PackagingConfiguration resource. ## id: string (required) ## : The ID of a MediaPackage VOD PackagingConfiguration resource. - var path_613388 = newJObject() - add(path_613388, "id", newJString(id)) - result = call_613387.call(path_613388, nil, nil, nil, nil) + var path_611388 = newJObject() + add(path_611388, "id", newJString(id)) + result = call_611387.call(path_611388, nil, nil, nil, nil) -var describePackagingConfiguration* = Call_DescribePackagingConfiguration_613375( +var describePackagingConfiguration* = Call_DescribePackagingConfiguration_611375( name: "describePackagingConfiguration", meth: HttpMethod.HttpGet, host: "mediapackage-vod.amazonaws.com", route: "/packaging_configurations/{id}", - validator: validate_DescribePackagingConfiguration_613376, base: "/", - url: url_DescribePackagingConfiguration_613377, + validator: validate_DescribePackagingConfiguration_611376, base: "/", + url: url_DescribePackagingConfiguration_611377, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeletePackagingConfiguration_613389 = ref object of OpenApiRestCall_612658 -proc url_DeletePackagingConfiguration_613391(protocol: Scheme; host: string; + Call_DeletePackagingConfiguration_611389 = ref object of OpenApiRestCall_610658 +proc url_DeletePackagingConfiguration_611391(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1266,14 +1243,12 @@ proc url_DeletePackagingConfiguration_613391(protocol: Scheme; host: string; var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DeletePackagingConfiguration_613390(path: JsonNode; query: JsonNode; +proc validate_DeletePackagingConfiguration_611390(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a MediaPackage VOD PackagingConfiguration resource. ## @@ -1284,11 +1259,11 @@ proc validate_DeletePackagingConfiguration_613390(path: JsonNode; query: JsonNod ## : The ID of the MediaPackage VOD PackagingConfiguration resource to delete. section = newJObject() assert path != nil, "path argument is necessary due to required `id` field" - var valid_613392 = path.getOrDefault("id") - valid_613392 = validateParameter(valid_613392, JString, required = true, + var valid_611392 = path.getOrDefault("id") + valid_611392 = validateParameter(valid_611392, JString, required = true, default = nil) - if valid_613392 != nil: - section.add "id", valid_613392 + if valid_611392 != nil: + section.add "id", valid_611392 result.add "path", section section = newJObject() result.add "query", section @@ -1301,79 +1276,79 @@ proc validate_DeletePackagingConfiguration_613390(path: JsonNode; query: JsonNod ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613393 = header.getOrDefault("X-Amz-Signature") - valid_613393 = validateParameter(valid_613393, JString, required = false, - default = nil) - if valid_613393 != nil: - section.add "X-Amz-Signature", valid_613393 - var valid_613394 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613394 = validateParameter(valid_613394, JString, required = false, - default = nil) - if valid_613394 != nil: - section.add "X-Amz-Content-Sha256", valid_613394 - var valid_613395 = header.getOrDefault("X-Amz-Date") - valid_613395 = validateParameter(valid_613395, JString, required = false, - default = nil) - if valid_613395 != nil: - section.add "X-Amz-Date", valid_613395 - var valid_613396 = header.getOrDefault("X-Amz-Credential") - valid_613396 = validateParameter(valid_613396, JString, required = false, - default = nil) - if valid_613396 != nil: - section.add "X-Amz-Credential", valid_613396 - var valid_613397 = header.getOrDefault("X-Amz-Security-Token") - valid_613397 = validateParameter(valid_613397, JString, required = false, - default = nil) - if valid_613397 != nil: - section.add "X-Amz-Security-Token", valid_613397 - var valid_613398 = header.getOrDefault("X-Amz-Algorithm") - valid_613398 = validateParameter(valid_613398, JString, required = false, - default = nil) - if valid_613398 != nil: - section.add "X-Amz-Algorithm", valid_613398 - var valid_613399 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613399 = validateParameter(valid_613399, JString, required = false, - default = nil) - if valid_613399 != nil: - section.add "X-Amz-SignedHeaders", valid_613399 + var valid_611393 = header.getOrDefault("X-Amz-Signature") + valid_611393 = validateParameter(valid_611393, JString, required = false, + default = nil) + if valid_611393 != nil: + section.add "X-Amz-Signature", valid_611393 + var valid_611394 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611394 = validateParameter(valid_611394, JString, required = false, + default = nil) + if valid_611394 != nil: + section.add "X-Amz-Content-Sha256", valid_611394 + var valid_611395 = header.getOrDefault("X-Amz-Date") + valid_611395 = validateParameter(valid_611395, JString, required = false, + default = nil) + if valid_611395 != nil: + section.add "X-Amz-Date", valid_611395 + var valid_611396 = header.getOrDefault("X-Amz-Credential") + valid_611396 = validateParameter(valid_611396, JString, required = false, + default = nil) + if valid_611396 != nil: + section.add "X-Amz-Credential", valid_611396 + var valid_611397 = header.getOrDefault("X-Amz-Security-Token") + valid_611397 = validateParameter(valid_611397, JString, required = false, + default = nil) + if valid_611397 != nil: + section.add "X-Amz-Security-Token", valid_611397 + var valid_611398 = header.getOrDefault("X-Amz-Algorithm") + valid_611398 = validateParameter(valid_611398, JString, required = false, + default = nil) + if valid_611398 != nil: + section.add "X-Amz-Algorithm", valid_611398 + var valid_611399 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611399 = validateParameter(valid_611399, JString, required = false, + default = nil) + if valid_611399 != nil: + section.add "X-Amz-SignedHeaders", valid_611399 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613400: Call_DeletePackagingConfiguration_613389; path: JsonNode; +proc call*(call_611400: Call_DeletePackagingConfiguration_611389; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a MediaPackage VOD PackagingConfiguration resource. ## - let valid = call_613400.validator(path, query, header, formData, body) - let scheme = call_613400.pickScheme + let valid = call_611400.validator(path, query, header, formData, body) + let scheme = call_611400.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613400.url(scheme.get, call_613400.host, call_613400.base, - call_613400.route, valid.getOrDefault("path"), + let url = call_611400.url(scheme.get, call_611400.host, call_611400.base, + call_611400.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613400, url, valid) + result = atozHook(call_611400, url, valid) -proc call*(call_613401: Call_DeletePackagingConfiguration_613389; id: string): Recallable = +proc call*(call_611401: Call_DeletePackagingConfiguration_611389; id: string): Recallable = ## deletePackagingConfiguration ## Deletes a MediaPackage VOD PackagingConfiguration resource. ## id: string (required) ## : The ID of the MediaPackage VOD PackagingConfiguration resource to delete. - var path_613402 = newJObject() - add(path_613402, "id", newJString(id)) - result = call_613401.call(path_613402, nil, nil, nil, nil) + var path_611402 = newJObject() + add(path_611402, "id", newJString(id)) + result = call_611401.call(path_611402, nil, nil, nil, nil) -var deletePackagingConfiguration* = Call_DeletePackagingConfiguration_613389( +var deletePackagingConfiguration* = Call_DeletePackagingConfiguration_611389( name: "deletePackagingConfiguration", meth: HttpMethod.HttpDelete, host: "mediapackage-vod.amazonaws.com", route: "/packaging_configurations/{id}", - validator: validate_DeletePackagingConfiguration_613390, base: "/", - url: url_DeletePackagingConfiguration_613391, + validator: validate_DeletePackagingConfiguration_611390, base: "/", + url: url_DeletePackagingConfiguration_611391, schemes: {Scheme.Https, Scheme.Http}) type - Call_DescribePackagingGroup_613403 = ref object of OpenApiRestCall_612658 -proc url_DescribePackagingGroup_613405(protocol: Scheme; host: string; base: string; + Call_DescribePackagingGroup_611403 = ref object of OpenApiRestCall_610658 +proc url_DescribePackagingGroup_611405(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1386,14 +1361,12 @@ proc url_DescribePackagingGroup_613405(protocol: Scheme; host: string; base: str var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DescribePackagingGroup_613404(path: JsonNode; query: JsonNode; +proc validate_DescribePackagingGroup_611404(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Returns a description of a MediaPackage VOD PackagingGroup resource. ## @@ -1404,11 +1377,11 @@ proc validate_DescribePackagingGroup_613404(path: JsonNode; query: JsonNode; ## : The ID of a MediaPackage VOD PackagingGroup resource. section = newJObject() assert path != nil, "path argument is necessary due to required `id` field" - var valid_613406 = path.getOrDefault("id") - valid_613406 = validateParameter(valid_613406, JString, required = true, + var valid_611406 = path.getOrDefault("id") + valid_611406 = validateParameter(valid_611406, JString, required = true, default = nil) - if valid_613406 != nil: - section.add "id", valid_613406 + if valid_611406 != nil: + section.add "id", valid_611406 result.add "path", section section = newJObject() result.add "query", section @@ -1421,77 +1394,77 @@ proc validate_DescribePackagingGroup_613404(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613407 = header.getOrDefault("X-Amz-Signature") - valid_613407 = validateParameter(valid_613407, JString, required = false, - default = nil) - if valid_613407 != nil: - section.add "X-Amz-Signature", valid_613407 - var valid_613408 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613408 = validateParameter(valid_613408, JString, required = false, - default = nil) - if valid_613408 != nil: - section.add "X-Amz-Content-Sha256", valid_613408 - var valid_613409 = header.getOrDefault("X-Amz-Date") - valid_613409 = validateParameter(valid_613409, JString, required = false, - default = nil) - if valid_613409 != nil: - section.add "X-Amz-Date", valid_613409 - var valid_613410 = header.getOrDefault("X-Amz-Credential") - valid_613410 = validateParameter(valid_613410, JString, required = false, - default = nil) - if valid_613410 != nil: - section.add "X-Amz-Credential", valid_613410 - var valid_613411 = header.getOrDefault("X-Amz-Security-Token") - valid_613411 = validateParameter(valid_613411, JString, required = false, - default = nil) - if valid_613411 != nil: - section.add "X-Amz-Security-Token", valid_613411 - var valid_613412 = header.getOrDefault("X-Amz-Algorithm") - valid_613412 = validateParameter(valid_613412, JString, required = false, - default = nil) - if valid_613412 != nil: - section.add "X-Amz-Algorithm", valid_613412 - var valid_613413 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613413 = validateParameter(valid_613413, JString, required = false, - default = nil) - if valid_613413 != nil: - section.add "X-Amz-SignedHeaders", valid_613413 + var valid_611407 = header.getOrDefault("X-Amz-Signature") + valid_611407 = validateParameter(valid_611407, JString, required = false, + default = nil) + if valid_611407 != nil: + section.add "X-Amz-Signature", valid_611407 + var valid_611408 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611408 = validateParameter(valid_611408, JString, required = false, + default = nil) + if valid_611408 != nil: + section.add "X-Amz-Content-Sha256", valid_611408 + var valid_611409 = header.getOrDefault("X-Amz-Date") + valid_611409 = validateParameter(valid_611409, JString, required = false, + default = nil) + if valid_611409 != nil: + section.add "X-Amz-Date", valid_611409 + var valid_611410 = header.getOrDefault("X-Amz-Credential") + valid_611410 = validateParameter(valid_611410, JString, required = false, + default = nil) + if valid_611410 != nil: + section.add "X-Amz-Credential", valid_611410 + var valid_611411 = header.getOrDefault("X-Amz-Security-Token") + valid_611411 = validateParameter(valid_611411, JString, required = false, + default = nil) + if valid_611411 != nil: + section.add "X-Amz-Security-Token", valid_611411 + var valid_611412 = header.getOrDefault("X-Amz-Algorithm") + valid_611412 = validateParameter(valid_611412, JString, required = false, + default = nil) + if valid_611412 != nil: + section.add "X-Amz-Algorithm", valid_611412 + var valid_611413 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611413 = validateParameter(valid_611413, JString, required = false, + default = nil) + if valid_611413 != nil: + section.add "X-Amz-SignedHeaders", valid_611413 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613414: Call_DescribePackagingGroup_613403; path: JsonNode; +proc call*(call_611414: Call_DescribePackagingGroup_611403; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Returns a description of a MediaPackage VOD PackagingGroup resource. ## - let valid = call_613414.validator(path, query, header, formData, body) - let scheme = call_613414.pickScheme + let valid = call_611414.validator(path, query, header, formData, body) + let scheme = call_611414.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613414.url(scheme.get, call_613414.host, call_613414.base, - call_613414.route, valid.getOrDefault("path"), + let url = call_611414.url(scheme.get, call_611414.host, call_611414.base, + call_611414.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613414, url, valid) + result = atozHook(call_611414, url, valid) -proc call*(call_613415: Call_DescribePackagingGroup_613403; id: string): Recallable = +proc call*(call_611415: Call_DescribePackagingGroup_611403; id: string): Recallable = ## describePackagingGroup ## Returns a description of a MediaPackage VOD PackagingGroup resource. ## id: string (required) ## : The ID of a MediaPackage VOD PackagingGroup resource. - var path_613416 = newJObject() - add(path_613416, "id", newJString(id)) - result = call_613415.call(path_613416, nil, nil, nil, nil) + var path_611416 = newJObject() + add(path_611416, "id", newJString(id)) + result = call_611415.call(path_611416, nil, nil, nil, nil) -var describePackagingGroup* = Call_DescribePackagingGroup_613403( +var describePackagingGroup* = Call_DescribePackagingGroup_611403( name: "describePackagingGroup", meth: HttpMethod.HttpGet, host: "mediapackage-vod.amazonaws.com", route: "/packaging_groups/{id}", - validator: validate_DescribePackagingGroup_613404, base: "/", - url: url_DescribePackagingGroup_613405, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DescribePackagingGroup_611404, base: "/", + url: url_DescribePackagingGroup_611405, schemes: {Scheme.Https, Scheme.Http}) type - Call_DeletePackagingGroup_613417 = ref object of OpenApiRestCall_612658 -proc url_DeletePackagingGroup_613419(protocol: Scheme; host: string; base: string; + Call_DeletePackagingGroup_611417 = ref object of OpenApiRestCall_610658 +proc url_DeletePackagingGroup_611419(protocol: Scheme; host: string; base: string; route: string; path: JsonNode; query: JsonNode): Uri = result.scheme = $protocol result.hostname = host @@ -1504,14 +1477,12 @@ proc url_DeletePackagingGroup_613419(protocol: Scheme; host: string; base: strin var hydrated = hydratePath(path, segments) if hydrated.isNone: raise newException(ValueError, "unable to fully hydrate path") - if base == - "/" and - hydrated.get.startsWith "/": + if base == "/" and hydrated.get.startsWith "/": result.path = hydrated.get else: result.path = base & hydrated.get -proc validate_DeletePackagingGroup_613418(path: JsonNode; query: JsonNode; +proc validate_DeletePackagingGroup_611418(path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): JsonNode = ## Deletes a MediaPackage VOD PackagingGroup resource. ## @@ -1522,11 +1493,11 @@ proc validate_DeletePackagingGroup_613418(path: JsonNode; query: JsonNode; ## : The ID of the MediaPackage VOD PackagingGroup resource to delete. section = newJObject() assert path != nil, "path argument is necessary due to required `id` field" - var valid_613420 = path.getOrDefault("id") - valid_613420 = validateParameter(valid_613420, JString, required = true, + var valid_611420 = path.getOrDefault("id") + valid_611420 = validateParameter(valid_611420, JString, required = true, default = nil) - if valid_613420 != nil: - section.add "id", valid_613420 + if valid_611420 != nil: + section.add "id", valid_611420 result.add "path", section section = newJObject() result.add "query", section @@ -1539,74 +1510,74 @@ proc validate_DeletePackagingGroup_613418(path: JsonNode; query: JsonNode; ## X-Amz-Algorithm: JString ## X-Amz-SignedHeaders: JString section = newJObject() - var valid_613421 = header.getOrDefault("X-Amz-Signature") - valid_613421 = validateParameter(valid_613421, JString, required = false, - default = nil) - if valid_613421 != nil: - section.add "X-Amz-Signature", valid_613421 - var valid_613422 = header.getOrDefault("X-Amz-Content-Sha256") - valid_613422 = validateParameter(valid_613422, JString, required = false, - default = nil) - if valid_613422 != nil: - section.add "X-Amz-Content-Sha256", valid_613422 - var valid_613423 = header.getOrDefault("X-Amz-Date") - valid_613423 = validateParameter(valid_613423, JString, required = false, - default = nil) - if valid_613423 != nil: - section.add "X-Amz-Date", valid_613423 - var valid_613424 = header.getOrDefault("X-Amz-Credential") - valid_613424 = validateParameter(valid_613424, JString, required = false, - default = nil) - if valid_613424 != nil: - section.add "X-Amz-Credential", valid_613424 - var valid_613425 = header.getOrDefault("X-Amz-Security-Token") - valid_613425 = validateParameter(valid_613425, JString, required = false, - default = nil) - if valid_613425 != nil: - section.add "X-Amz-Security-Token", valid_613425 - var valid_613426 = header.getOrDefault("X-Amz-Algorithm") - valid_613426 = validateParameter(valid_613426, JString, required = false, - default = nil) - if valid_613426 != nil: - section.add "X-Amz-Algorithm", valid_613426 - var valid_613427 = header.getOrDefault("X-Amz-SignedHeaders") - valid_613427 = validateParameter(valid_613427, JString, required = false, - default = nil) - if valid_613427 != nil: - section.add "X-Amz-SignedHeaders", valid_613427 + var valid_611421 = header.getOrDefault("X-Amz-Signature") + valid_611421 = validateParameter(valid_611421, JString, required = false, + default = nil) + if valid_611421 != nil: + section.add "X-Amz-Signature", valid_611421 + var valid_611422 = header.getOrDefault("X-Amz-Content-Sha256") + valid_611422 = validateParameter(valid_611422, JString, required = false, + default = nil) + if valid_611422 != nil: + section.add "X-Amz-Content-Sha256", valid_611422 + var valid_611423 = header.getOrDefault("X-Amz-Date") + valid_611423 = validateParameter(valid_611423, JString, required = false, + default = nil) + if valid_611423 != nil: + section.add "X-Amz-Date", valid_611423 + var valid_611424 = header.getOrDefault("X-Amz-Credential") + valid_611424 = validateParameter(valid_611424, JString, required = false, + default = nil) + if valid_611424 != nil: + section.add "X-Amz-Credential", valid_611424 + var valid_611425 = header.getOrDefault("X-Amz-Security-Token") + valid_611425 = validateParameter(valid_611425, JString, required = false, + default = nil) + if valid_611425 != nil: + section.add "X-Amz-Security-Token", valid_611425 + var valid_611426 = header.getOrDefault("X-Amz-Algorithm") + valid_611426 = validateParameter(valid_611426, JString, required = false, + default = nil) + if valid_611426 != nil: + section.add "X-Amz-Algorithm", valid_611426 + var valid_611427 = header.getOrDefault("X-Amz-SignedHeaders") + valid_611427 = validateParameter(valid_611427, JString, required = false, + default = nil) + if valid_611427 != nil: + section.add "X-Amz-SignedHeaders", valid_611427 result.add "header", section section = newJObject() result.add "formData", section if body != nil: result.add "body", body -proc call*(call_613428: Call_DeletePackagingGroup_613417; path: JsonNode; +proc call*(call_611428: Call_DeletePackagingGroup_611417; path: JsonNode; query: JsonNode; header: JsonNode; formData: JsonNode; body: JsonNode): Recallable = ## Deletes a MediaPackage VOD PackagingGroup resource. ## - let valid = call_613428.validator(path, query, header, formData, body) - let scheme = call_613428.pickScheme + let valid = call_611428.validator(path, query, header, formData, body) + let scheme = call_611428.pickScheme if scheme.isNone: raise newException(IOError, "unable to find a supported scheme") - let url = call_613428.url(scheme.get, call_613428.host, call_613428.base, - call_613428.route, valid.getOrDefault("path"), + let url = call_611428.url(scheme.get, call_611428.host, call_611428.base, + call_611428.route, valid.getOrDefault("path"), valid.getOrDefault("query")) - result = atozHook(call_613428, url, valid) + result = atozHook(call_611428, url, valid) -proc call*(call_613429: Call_DeletePackagingGroup_613417; id: string): Recallable = +proc call*(call_611429: Call_DeletePackagingGroup_611417; id: string): Recallable = ## deletePackagingGroup ## Deletes a MediaPackage VOD PackagingGroup resource. ## id: string (required) ## : The ID of the MediaPackage VOD PackagingGroup resource to delete. - var path_613430 = newJObject() - add(path_613430, "id", newJString(id)) - result = call_613429.call(path_613430, nil, nil, nil, nil) + var path_611430 = newJObject() + add(path_611430, "id", newJString(id)) + result = call_611429.call(path_611430, nil, nil, nil, nil) -var deletePackagingGroup* = Call_DeletePackagingGroup_613417( +var deletePackagingGroup* = Call_DeletePackagingGroup_611417( name: "deletePackagingGroup", meth: HttpMethod.HttpDelete, host: "mediapackage-vod.amazonaws.com", route: "/packaging_groups/{id}", - validator: validate_DeletePackagingGroup_613418, base: "/", - url: url_DeletePackagingGroup_613419, schemes: {Scheme.Https, Scheme.Http}) + validator: validate_DeletePackagingGroup_611418, base: "/", + url: url_DeletePackagingGroup_611419, schemes: {Scheme.Https, Scheme.Http}) export rest