Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-peering] Add 2020-04-01 API specification for Microsoft.Peering #1200

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 134 additions & 5 deletions sdk/peering/arm-peering/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export interface Operation {
export interface ContactDetail {
/**
* The role of the contact. Possible values include: 'Noc', 'Policy', 'Technical', 'Service',
* 'Other'
* 'Escalation', 'Other'
*/
role?: Role;
/**
Expand Down Expand Up @@ -576,6 +576,47 @@ export interface ResourceTags {
tags?: { [propertyName: string]: string };
}

/**
* The properties that define a received route.
*/
export interface PeeringReceivedRoute {
/**
* The prefix.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly prefix?: string;
/**
* The next hop for the prefix.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly nextHop?: string;
/**
* The AS path for the prefix.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly asPath?: string;
/**
* The origin AS change information for the prefix.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly originAsValidationState?: string;
/**
* The RPKI validation state for the prefix and origin AS that's listed in the AS path.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly rpkiValidationState?: string;
/**
* The authority which holds the Route Origin Authorization record for the prefix, if any.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly trustAnchor?: string;
/**
* The received timestamp associated with the prefix.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly receivedTimestamp?: string;
}

/**
* The peering service country.
*/
Expand Down Expand Up @@ -725,9 +766,9 @@ export interface PeeringService extends Resource {
}

/**
* The error response that indicates why an operation has failed.
* The error detail that describes why an operation has failed.
*/
export interface ErrorResponse {
export interface ErrorDetail {
/**
* The error code.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand All @@ -740,6 +781,16 @@ export interface ErrorResponse {
readonly message?: string;
}

/**
* The error response that indicates why an operation has failed.
*/
export interface ErrorResponse {
/**
* The error detail that describes why an operation has failed.
*/
error?: ErrorDetail;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -805,6 +856,32 @@ export interface PeeringsUpdateOptionalParams extends msRest.RequestOptionsBase
tags?: { [propertyName: string]: string };
}

/**
* Optional Parameters.
*/
export interface ReceivedRoutesListByPeeringOptionalParams extends msRest.RequestOptionsBase {
/**
* The optional prefix that can be used to filter the routes.
*/
prefix?: string;
/**
* The optional AS path that can be used to filter the routes.
*/
asPath?: string;
/**
* The optional origin AS validation state that can be used to filter the routes.
*/
originAsValidationState?: string;
/**
* The optional RPKI validation state that can be used to filter the routes.
*/
rpkiValidationState?: string;
/**
* The optional page continuation token that is used in the event of paginated result.
*/
skipToken?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -938,6 +1015,18 @@ export interface PeeringRegisteredPrefixListResult extends Array<PeeringRegister
nextLink?: string;
}

/**
* @interface
* The paginated list of received routes for the peering.
* @extends Array<PeeringReceivedRoute>
*/
export interface PeeringReceivedRouteListResult extends Array<PeeringReceivedRoute> {
/**
* The link to fetch the next page of received routes for the peering.
*/
nextLink?: string;
}

/**
* @interface
* The paginated list of peering service countries.
Expand Down Expand Up @@ -1083,11 +1172,11 @@ export type ProvisioningState = 'Succeeded' | 'Updating' | 'Deleting' | 'Failed'

/**
* Defines values for Role.
* Possible values include: 'Noc', 'Policy', 'Technical', 'Service', 'Other'
* Possible values include: 'Noc', 'Policy', 'Technical', 'Service', 'Escalation', 'Other'
* @readonly
* @enum {string}
*/
export type Role = 'Noc' | 'Policy' | 'Technical' | 'Service' | 'Other';
export type Role = 'Noc' | 'Policy' | 'Technical' | 'Service' | 'Escalation' | 'Other';

/**
* Defines values for ValidationState.
Expand Down Expand Up @@ -1671,6 +1760,46 @@ export type PeeringsListBySubscriptionNextResponse = PeeringListResult & {
};
};

/**
* Contains response data for the listByPeering operation.
*/
export type ReceivedRoutesListByPeeringResponse = PeeringReceivedRouteListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: PeeringReceivedRouteListResult;
};
};

/**
* Contains response data for the listByPeeringNext operation.
*/
export type ReceivedRoutesListByPeeringNextResponse = PeeringReceivedRouteListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: PeeringReceivedRouteListResult;
};
};

/**
* Contains response data for the list operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export {
ContactDetail,
DirectConnection,
DirectPeeringFacility,
ErrorDetail,
ErrorResponse,
ExchangeConnection,
ExchangePeeringFacility,
Expand Down
110 changes: 107 additions & 3 deletions sdk/peering/arm-peering/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,65 @@ export const ResourceTags: msRest.CompositeMapper = {
}
};

export const PeeringReceivedRoute: msRest.CompositeMapper = {
serializedName: "PeeringReceivedRoute",
type: {
name: "Composite",
className: "PeeringReceivedRoute",
modelProperties: {
prefix: {
readOnly: true,
serializedName: "prefix",
type: {
name: "String"
}
},
nextHop: {
readOnly: true,
serializedName: "nextHop",
type: {
name: "String"
}
},
asPath: {
readOnly: true,
serializedName: "asPath",
type: {
name: "String"
}
},
originAsValidationState: {
readOnly: true,
serializedName: "originAsValidationState",
type: {
name: "String"
}
},
rpkiValidationState: {
readOnly: true,
serializedName: "rpkiValidationState",
type: {
name: "String"
}
},
trustAnchor: {
readOnly: true,
serializedName: "trustAnchor",
type: {
name: "String"
}
},
receivedTimestamp: {
readOnly: true,
serializedName: "receivedTimestamp",
type: {
name: "String"
}
}
}
}
};

export const PeeringServiceCountry: msRest.CompositeMapper = {
serializedName: "PeeringServiceCountry",
type: {
Expand Down Expand Up @@ -1145,11 +1204,11 @@ export const PeeringService: msRest.CompositeMapper = {
}
};

export const ErrorResponse: msRest.CompositeMapper = {
serializedName: "ErrorResponse",
export const ErrorDetail: msRest.CompositeMapper = {
serializedName: "ErrorDetail",
type: {
name: "Composite",
className: "ErrorResponse",
className: "ErrorDetail",
modelProperties: {
code: {
readOnly: true,
Expand All @@ -1169,6 +1228,23 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};

export const ErrorResponse: msRest.CompositeMapper = {
serializedName: "ErrorResponse",
type: {
name: "Composite",
className: "ErrorResponse",
modelProperties: {
error: {
serializedName: "error",
type: {
name: "Composite",
className: "ErrorDetail"
}
}
}
}
};

export const PeeringListResult: msRest.CompositeMapper = {
serializedName: "PeeringListResult",
type: {
Expand Down Expand Up @@ -1337,6 +1413,34 @@ export const PeeringRegisteredPrefixListResult: msRest.CompositeMapper = {
}
};

export const PeeringReceivedRouteListResult: msRest.CompositeMapper = {
serializedName: "PeeringReceivedRouteListResult",
type: {
name: "Composite",
className: "PeeringReceivedRouteListResult",
modelProperties: {
value: {
serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PeeringReceivedRoute"
}
}
}
},
nextLink: {
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
};

export const PeeringServiceCountryListResult: msRest.CompositeMapper = {
serializedName: "PeeringServiceCountryListResult",
type: {
Expand Down
1 change: 1 addition & 0 deletions sdk/peering/arm-peering/src/models/operationsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

export {
ErrorDetail,
ErrorResponse,
Operation,
OperationDisplayInfo,
Expand Down
Loading