Skip to content

Commit 1a5d100

Browse files
remove _response from response types (Azure#16019)
1 parent b729674 commit 1a5d100

File tree

4 files changed

+59
-601
lines changed

4 files changed

+59
-601
lines changed

sdk/metricsadvisor/ai-metrics-advisor/review/ai-metrics-advisor.api.md

Lines changed: 6 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
```ts
66

7-
import * as coreHttp from '@azure/core-http';
87
import { OperationOptions } from '@azure/core-http';
98
import { PagedAsyncIterableIterator } from '@azure/core-paging';
109
import { PipelineOptions } from '@azure/core-http';
@@ -13,10 +12,6 @@ import { TokenCredential } from '@azure/core-auth';
1312

1413
// @public
1514
export interface AlertConfigurationsPageResponse extends Array<AnomalyAlertConfiguration> {
16-
_response: coreHttp.HttpResponse & {
17-
bodyAsText: string;
18-
parsedBody: any;
19-
};
2015
}
2116

2217
// @public
@@ -25,19 +20,11 @@ export type AlertQueryTimeMode = "AnomalyTime" | "CreatedTime" | "ModifiedTime";
2520
// @public
2621
export interface AlertsPageResponse extends Array<AnomalyAlert> {
2722
continuationToken?: string;
28-
_response: coreHttp.HttpResponse & {
29-
bodyAsText: string;
30-
parsedBody: any;
31-
};
3223
}
3324

3425
// @public
3526
export interface AnomaliesPageResponse extends Array<DataPointAnomaly> {
3627
continuationToken?: string;
37-
_response: coreHttp.HttpResponse & {
38-
bodyAsText: string;
39-
parsedBody: any;
40-
};
4128
}
4229

4330
// @public
@@ -232,10 +219,6 @@ export interface CreateDataFeedOptions extends OperationOptions {
232219
// @public
233220
export interface CredentialsPageResponse extends Array<DataSourceCredentialEntityUnion> {
234221
continuationToken?: string;
235-
_response: coreHttp.HttpResponse & {
236-
bodyAsText: string;
237-
parsedBody: any;
238-
};
239222
}
240223

241224
// @public
@@ -344,10 +327,6 @@ export type DataFeedSourcePatch = Partial<DataFeedSource> & {
344327
// @public
345328
export interface DataFeedsPageResponse extends Array<MetricsAdvisorDataFeed> {
346329
continuationToken?: string;
347-
_response: coreHttp.HttpResponse & {
348-
bodyAsText: string;
349-
parsedBody: any;
350-
};
351330
}
352331

353332
// @public
@@ -504,10 +483,6 @@ export interface DetectionConditionsCommonPatch {
504483

505484
// @public
506485
export interface DetectionConfigurationsPageResponse extends Array<AnomalyDetectionConfiguration> {
507-
_response: coreHttp.HttpResponse & {
508-
bodyAsText: string;
509-
parsedBody: any;
510-
};
511486
}
512487

513488
// @public
@@ -516,10 +491,6 @@ export type DimensionKey = Record<string, string>;
516491
// @public
517492
export interface DimensionValuesPageResponse extends Array<string> {
518493
continuationToken?: string;
519-
_response: coreHttp.HttpResponse & {
520-
bodyAsText: string;
521-
parsedBody: any;
522-
};
523494
}
524495

525496
// @public
@@ -553,71 +524,32 @@ export type FeedbackQueryTimeMode = "MetricTimestamp" | "FeedbackCreatedTime";
553524
export type FeedbackType = "Anomaly" | "ChangePoint" | "Period" | "Comment";
554525

555526
// @public
556-
export type GetAlertConfigResponse = AnomalyAlertConfiguration & {
557-
_response: coreHttp.HttpResponse & {
558-
bodyAsText: string;
559-
parsedBody: any;
560-
};
561-
};
527+
export type GetAlertConfigResponse = AnomalyAlertConfiguration;
562528

563529
// @public
564-
export type GetDataFeedResponse = MetricsAdvisorDataFeed & {
565-
_response: coreHttp.HttpResponse & {
566-
bodyAsText: string;
567-
parsedBody: any;
568-
};
569-
};
530+
export type GetDataFeedResponse = MetricsAdvisorDataFeed;
570531

571532
// @public
572-
export type GetDataSourceCredentialEntityResponse = DataSourceCredentialEntityUnion & {
573-
_response: coreHttp.HttpResponse & {
574-
bodyAsText: string;
575-
parsedBody: any;
576-
};
577-
};
533+
export type GetDataSourceCredentialEntityResponse = DataSourceCredentialEntityUnion;
578534

579535
// @public
580-
export type GetDetectionConfigResponse = AnomalyDetectionConfiguration & {
581-
_response: coreHttp.HttpResponse & {
582-
bodyAsText: string;
583-
parsedBody: any;
584-
};
585-
};
536+
export type GetDetectionConfigResponse = AnomalyDetectionConfiguration;
586537

587538
// @public
588-
export type GetFeedbackResponse = MetricFeedbackUnion & {
589-
_response: coreHttp.HttpResponse & {
590-
bodyAsText: string;
591-
parsedBody: any;
592-
};
593-
};
539+
export type GetFeedbackResponse = MetricFeedbackUnion;
594540

595541
// @public
596-
export type GetHookResponse = NotificationHookUnion & {
597-
_response: coreHttp.HttpResponse & {
598-
bodyAsText: string;
599-
parsedBody: any;
600-
};
601-
};
542+
export type GetHookResponse = NotificationHookUnion;
602543

603544
// @public
604545
export type GetIncidentRootCauseResponse = {
605546
rootCauses: IncidentRootCause[];
606-
_response: coreHttp.HttpResponse & {
607-
bodyAsText: string;
608-
parsedBody: any;
609-
};
610547
};
611548

612549
// @public
613550
export type GetIngestionProgressResponse = {
614551
readonly latestSuccessTimestamp?: number;
615552
readonly latestActiveTimestamp?: number;
616-
} & {
617-
_response: coreHttp.HttpResponse & {
618-
bodyAsText: string;
619-
parsedBody: any;
620-
};
621553
};
622554

623555
// @public
@@ -626,10 +558,6 @@ export interface GetMetricEnrichedSeriesDataOptions extends OperationOptions {
626558

627559
// @public
628560
export interface GetMetricEnrichedSeriesDataResponse extends Array<MetricEnrichedSeriesData> {
629-
_response: coreHttp.HttpResponse & {
630-
bodyAsText: string;
631-
parsedBody: any;
632-
};
633561
}
634562

635563
// @public
@@ -639,10 +567,6 @@ export interface GetMetricSeriesDataOptions extends OperationOptions {
639567
// @public
640568
export interface GetMetricSeriesDataResponse extends Array<MetricSeriesData> {
641569
continuationToken?: string;
642-
_response: coreHttp.HttpResponse & {
643-
bodyAsText: string;
644-
parsedBody: any;
645-
};
646570
}
647571

648572
// @public
@@ -664,10 +588,6 @@ export type HardThresholdConditionUnion = {
664588
// @public
665589
export interface HooksPageResponse extends Array<NotificationHookUnion> {
666590
continuationToken?: string;
667-
_response: coreHttp.HttpResponse & {
668-
bodyAsText: string;
669-
parsedBody: any;
670-
};
671591
}
672592

673593
// @public
@@ -681,10 +601,6 @@ export interface IncidentRootCause {
681601
// @public
682602
export interface IncidentsPageResponse extends Array<AnomalyIncident> {
683603
continuationToken?: string;
684-
_response: coreHttp.HttpResponse & {
685-
bodyAsText: string;
686-
parsedBody: any;
687-
};
688604
}
689605

690606
// @public
@@ -708,10 +624,6 @@ export interface IngestionStatus {
708624
// @public
709625
export interface IngestionStatusPageResponse extends Array<IngestionStatus> {
710626
continuationToken?: string;
711-
_response: coreHttp.HttpResponse & {
712-
bodyAsText: string;
713-
parsedBody: any;
714-
};
715627
}
716628

717629
// @public
@@ -928,10 +840,6 @@ export interface MetricEnrichedSeriesData {
928840
// @public
929841
export interface MetricEnrichmentStatusPageResponse extends Array<EnrichmentStatus> {
930842
continuationToken?: string;
931-
_response: coreHttp.HttpResponse & {
932-
bodyAsText: string;
933-
parsedBody: any;
934-
};
935843
}
936844

937845
// @public
@@ -946,10 +854,6 @@ export interface MetricFeedbackCommon {
946854
// @public
947855
export interface MetricFeedbackPageResponse extends Array<MetricFeedbackUnion> {
948856
continuationToken?: string;
949-
_response: coreHttp.HttpResponse & {
950-
bodyAsText: string;
951-
parsedBody: any;
952-
};
953857
}
954858

955859
// @public
@@ -1082,10 +986,6 @@ export type MetricSeriesGroupDetectionCondition = DetectionConditionsCommon & {
1082986
// @public
1083987
export interface MetricSeriesPageResponse extends Array<MetricSeriesDefinition> {
1084988
continuationToken?: string;
1085-
_response: coreHttp.HttpResponse & {
1086-
bodyAsText: string;
1087-
parsedBody: any;
1088-
};
1089989
}
1090990

1091991
// @public

0 commit comments

Comments
 (0)