@aws-sdk/client-servicediscovery 3.28.0 → 3.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -160,7 +160,14 @@ import {
160
160
  HttpResponse as __HttpResponse,
161
161
  isValidHostname as __isValidHostname,
162
162
  } from "@aws-sdk/protocol-http";
163
- import { expectInt as __expectInt, expectString as __expectString } from "@aws-sdk/smithy-client";
163
+ import {
164
+ expectInt32 as __expectInt32,
165
+ expectLong as __expectLong,
166
+ expectNonNull as __expectNonNull,
167
+ expectNumber as __expectNumber,
168
+ expectString as __expectString,
169
+ parseEpochTimestamp as __parseEpochTimestamp,
170
+ } from "@aws-sdk/smithy-client";
164
171
  import {
165
172
  Endpoint as __Endpoint,
166
173
  HeaderBag as __HeaderBag,
@@ -3286,7 +3293,7 @@ const deserializeAws_json1_1DnsProperties = (output: any, context: __SerdeContex
3286
3293
 
3287
3294
  const deserializeAws_json1_1DnsRecord = (output: any, context: __SerdeContext): DnsRecord => {
3288
3295
  return {
3289
- TTL: __expectInt(output.TTL),
3296
+ TTL: __expectLong(output.TTL),
3290
3297
  Type: __expectString(output.Type),
3291
3298
  } as any;
3292
3299
  };
@@ -3360,7 +3367,7 @@ const deserializeAws_json1_1GetServiceResponse = (output: any, context: __SerdeC
3360
3367
 
3361
3368
  const deserializeAws_json1_1HealthCheckConfig = (output: any, context: __SerdeContext): HealthCheckConfig => {
3362
3369
  return {
3363
- FailureThreshold: __expectInt(output.FailureThreshold),
3370
+ FailureThreshold: __expectInt32(output.FailureThreshold),
3364
3371
  ResourcePath: __expectString(output.ResourcePath),
3365
3372
  Type: __expectString(output.Type),
3366
3373
  } as any;
@@ -3371,7 +3378,7 @@ const deserializeAws_json1_1HealthCheckCustomConfig = (
3371
3378
  context: __SerdeContext
3372
3379
  ): HealthCheckCustomConfig => {
3373
3380
  return {
3374
- FailureThreshold: __expectInt(output.FailureThreshold),
3381
+ FailureThreshold: __expectInt32(output.FailureThreshold),
3375
3382
  } as any;
3376
3383
  };
3377
3384
 
@@ -3521,7 +3528,7 @@ const deserializeAws_json1_1Namespace = (output: any, context: __SerdeContext):
3521
3528
  Arn: __expectString(output.Arn),
3522
3529
  CreateDate:
3523
3530
  output.CreateDate !== undefined && output.CreateDate !== null
3524
- ? new Date(Math.round(output.CreateDate * 1000))
3531
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
3525
3532
  : undefined,
3526
3533
  CreatorRequestId: __expectString(output.CreatorRequestId),
3527
3534
  Description: __expectString(output.Description),
@@ -3531,7 +3538,7 @@ const deserializeAws_json1_1Namespace = (output: any, context: __SerdeContext):
3531
3538
  output.Properties !== undefined && output.Properties !== null
3532
3539
  ? deserializeAws_json1_1NamespaceProperties(output.Properties, context)
3533
3540
  : undefined,
3534
- ServiceCount: __expectInt(output.ServiceCount),
3541
+ ServiceCount: __expectInt32(output.ServiceCount),
3535
3542
  Type: __expectString(output.Type),
3536
3543
  } as any;
3537
3544
  };
@@ -3579,7 +3586,7 @@ const deserializeAws_json1_1NamespaceSummary = (output: any, context: __SerdeCon
3579
3586
  Arn: __expectString(output.Arn),
3580
3587
  CreateDate:
3581
3588
  output.CreateDate !== undefined && output.CreateDate !== null
3582
- ? new Date(Math.round(output.CreateDate * 1000))
3589
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
3583
3590
  : undefined,
3584
3591
  Description: __expectString(output.Description),
3585
3592
  Id: __expectString(output.Id),
@@ -3588,7 +3595,7 @@ const deserializeAws_json1_1NamespaceSummary = (output: any, context: __SerdeCon
3588
3595
  output.Properties !== undefined && output.Properties !== null
3589
3596
  ? deserializeAws_json1_1NamespaceProperties(output.Properties, context)
3590
3597
  : undefined,
3591
- ServiceCount: __expectInt(output.ServiceCount),
3598
+ ServiceCount: __expectInt32(output.ServiceCount),
3592
3599
  Type: __expectString(output.Type),
3593
3600
  } as any;
3594
3601
  };
@@ -3597,7 +3604,7 @@ const deserializeAws_json1_1Operation = (output: any, context: __SerdeContext):
3597
3604
  return {
3598
3605
  CreateDate:
3599
3606
  output.CreateDate !== undefined && output.CreateDate !== null
3600
- ? new Date(Math.round(output.CreateDate * 1000))
3607
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
3601
3608
  : undefined,
3602
3609
  ErrorCode: __expectString(output.ErrorCode),
3603
3610
  ErrorMessage: __expectString(output.ErrorMessage),
@@ -3610,7 +3617,7 @@ const deserializeAws_json1_1Operation = (output: any, context: __SerdeContext):
3610
3617
  Type: __expectString(output.Type),
3611
3618
  UpdateDate:
3612
3619
  output.UpdateDate !== undefined && output.UpdateDate !== null
3613
- ? new Date(Math.round(output.UpdateDate * 1000))
3620
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdateDate)))
3614
3621
  : undefined,
3615
3622
  } as any;
3616
3623
  };
@@ -3695,7 +3702,7 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se
3695
3702
  Arn: __expectString(output.Arn),
3696
3703
  CreateDate:
3697
3704
  output.CreateDate !== undefined && output.CreateDate !== null
3698
- ? new Date(Math.round(output.CreateDate * 1000))
3705
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
3699
3706
  : undefined,
3700
3707
  CreatorRequestId: __expectString(output.CreatorRequestId),
3701
3708
  Description: __expectString(output.Description),
@@ -3712,7 +3719,7 @@ const deserializeAws_json1_1Service = (output: any, context: __SerdeContext): Se
3712
3719
  ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context)
3713
3720
  : undefined,
3714
3721
  Id: __expectString(output.Id),
3715
- InstanceCount: __expectInt(output.InstanceCount),
3722
+ InstanceCount: __expectInt32(output.InstanceCount),
3716
3723
  Name: __expectString(output.Name),
3717
3724
  NamespaceId: __expectString(output.NamespaceId),
3718
3725
  Type: __expectString(output.Type),
@@ -3749,7 +3756,7 @@ const deserializeAws_json1_1ServiceSummary = (output: any, context: __SerdeConte
3749
3756
  Arn: __expectString(output.Arn),
3750
3757
  CreateDate:
3751
3758
  output.CreateDate !== undefined && output.CreateDate !== null
3752
- ? new Date(Math.round(output.CreateDate * 1000))
3759
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
3753
3760
  : undefined,
3754
3761
  Description: __expectString(output.Description),
3755
3762
  DnsConfig:
@@ -3765,7 +3772,7 @@ const deserializeAws_json1_1ServiceSummary = (output: any, context: __SerdeConte
3765
3772
  ? deserializeAws_json1_1HealthCheckCustomConfig(output.HealthCheckCustomConfig, context)
3766
3773
  : undefined,
3767
3774
  Id: __expectString(output.Id),
3768
- InstanceCount: __expectInt(output.InstanceCount),
3775
+ InstanceCount: __expectInt32(output.InstanceCount),
3769
3776
  Name: __expectString(output.Name),
3770
3777
  Type: __expectString(output.Type),
3771
3778
  } as any;
@@ -3773,7 +3780,7 @@ const deserializeAws_json1_1ServiceSummary = (output: any, context: __SerdeConte
3773
3780
 
3774
3781
  const deserializeAws_json1_1SOA = (output: any, context: __SerdeContext): SOA => {
3775
3782
  return {
3776
- TTL: __expectInt(output.TTL),
3783
+ TTL: __expectLong(output.TTL),
3777
3784
  } as any;
3778
3785
  };
3779
3786