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-policy] [DeploymentScripts] New stable api-version #1879

Closed
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
658 changes: 649 additions & 9 deletions sdk/policy/arm-policy/src/models/index.ts

Large diffs are not rendered by default.

256 changes: 252 additions & 4 deletions sdk/policy/arm-policy/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ export const ErrorAdditionalInfo: msRest.CompositeMapper = {
}
};

export const ErrorResponse: msRest.CompositeMapper = {
serializedName: "ErrorResponse",
export const CloudErrorError: msRest.CompositeMapper = {
serializedName: "CloudError_error",
type: {
name: "Composite",
className: "ErrorResponse",
className: "CloudErrorError",
modelProperties: {
code: {
readOnly: true,
Expand Down Expand Up @@ -71,7 +71,7 @@ export const ErrorResponse: msRest.CompositeMapper = {
element: {
type: {
name: "Composite",
className: "ErrorResponse"
className: "CloudError"
}
}
}
Expand All @@ -93,6 +93,23 @@ export const ErrorResponse: msRest.CompositeMapper = {
}
};

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

export const ParameterValuesValue: msRest.CompositeMapper = {
serializedName: "ParameterValuesValue",
type: {
Expand Down Expand Up @@ -606,6 +623,208 @@ export const PolicySetDefinition: msRest.CompositeMapper = {
}
};

export const SystemData: msRest.CompositeMapper = {
serializedName: "systemData",
type: {
name: "Composite",
className: "SystemData",
modelProperties: {
createdBy: {
serializedName: "createdBy",
type: {
name: "String"
}
},
createdByType: {
serializedName: "createdByType",
type: {
name: "String"
}
},
createdAt: {
serializedName: "createdAt",
type: {
name: "DateTime"
}
},
lastModifiedBy: {
serializedName: "lastModifiedBy",
type: {
name: "String"
}
},
lastModifiedByType: {
serializedName: "lastModifiedByType",
type: {
name: "String"
}
},
lastModifiedAt: {
serializedName: "lastModifiedAt",
type: {
name: "DateTime"
}
}
}
}
};

export const PolicyExemption: msRest.CompositeMapper = {
serializedName: "PolicyExemption",
type: {
name: "Composite",
className: "PolicyExemption",
modelProperties: {
policyAssignmentId: {
required: true,
serializedName: "properties.policyAssignmentId",
type: {
name: "String"
}
},
policyDefinitionReferenceIds: {
serializedName: "properties.policyDefinitionReferenceIds",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
exemptionCategory: {
required: true,
serializedName: "properties.exemptionCategory",
type: {
name: "String"
}
},
expiresOn: {
serializedName: "properties.expiresOn",
type: {
name: "DateTime"
}
},
displayName: {
serializedName: "properties.displayName",
type: {
name: "String"
}
},
description: {
serializedName: "properties.description",
type: {
name: "String"
}
},
metadata: {
serializedName: "properties.metadata",
type: {
name: "Object"
}
},
systemData: {
readOnly: true,
serializedName: "systemData",
type: {
name: "Composite",
className: "SystemData"
}
}
}
}
};

export const Resource: msRest.CompositeMapper = {
serializedName: "Resource",
type: {
name: "Composite",
className: "Resource",
modelProperties: {
id: {
readOnly: true,
serializedName: "id",
type: {
name: "String"
}
},
name: {
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
type: {
readOnly: true,
serializedName: "type",
type: {
name: "String"
}
}
}
}
};

export const TrackedResource: msRest.CompositeMapper = {
serializedName: "TrackedResource",
type: {
name: "Composite",
className: "TrackedResource",
modelProperties: {
...Resource.type.modelProperties,
tags: {
serializedName: "tags",
type: {
name: "Dictionary",
value: {
type: {
name: "String"
}
}
}
},
location: {
required: true,
serializedName: "location",
type: {
name: "String"
}
}
}
}
};

export const AzureEntityResource: msRest.CompositeMapper = {
serializedName: "AzureEntityResource",
type: {
name: "Composite",
className: "AzureEntityResource",
modelProperties: {
...Resource.type.modelProperties,
etag: {
readOnly: true,
serializedName: "etag",
type: {
name: "String"
}
}
}
}
};

export const ProxyResource: msRest.CompositeMapper = {
serializedName: "ProxyResource",
type: {
name: "Composite",
className: "ProxyResource",
modelProperties: {
...Resource.type.modelProperties
}
}
};

export const PolicyAssignmentListResult: msRest.CompositeMapper = {
serializedName: "PolicyAssignmentListResult",
type: {
Expand Down Expand Up @@ -689,3 +908,32 @@ export const PolicySetDefinitionListResult: msRest.CompositeMapper = {
}
}
};

export const PolicyExemptionListResult: msRest.CompositeMapper = {
serializedName: "PolicyExemptionListResult",
type: {
name: "Composite",
className: "PolicyExemptionListResult",
modelProperties: {
value: {
serializedName: "",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "PolicyExemption"
}
}
}
},
nextLink: {
readOnly: true,
serializedName: "nextLink",
type: {
name: "String"
}
}
}
}
};
57 changes: 37 additions & 20 deletions sdk/policy/arm-policy/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,31 @@ export const acceptLanguage: msRest.OperationParameter = {
}
}
};
export const apiVersion: msRest.OperationQueryParameter = {
export const apiVersion0: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-03-01',
type: {
name: "String"
}
}
};
export const filter0: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"filter"
],
export const apiVersion1: msRest.OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
serializedName: "$filter",
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-07-01-preview',
type: {
name: "String"
}
},
skipEncoding: true
}
};
export const filter1: msRest.OperationQueryParameter = {
export const filter: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"filter"
Expand All @@ -53,16 +54,6 @@ export const filter1: msRest.OperationQueryParameter = {
type: {
name: "String"
}
}
};
export const filter2: msRest.OperationQueryParameter = {
parameterPath: "filter",
mapper: {
required: true,
serializedName: "$filter",
type: {
name: "String"
}
},
skipEncoding: true
};
Expand Down Expand Up @@ -129,6 +120,16 @@ export const policyDefinitionName: msRest.OperationURLParameter = {
}
}
};
export const policyExemptionName: msRest.OperationURLParameter = {
parameterPath: "policyExemptionName",
mapper: {
required: true,
serializedName: "policyExemptionName",
type: {
name: "String"
}
}
};
export const policySetDefinitionName: msRest.OperationURLParameter = {
parameterPath: "policySetDefinitionName",
mapper: {
Expand Down Expand Up @@ -206,3 +207,19 @@ export const subscriptionId: msRest.OperationURLParameter = {
}
}
};
export const top: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"top"
],
mapper: {
serializedName: "$top",
constraints: {
InclusiveMaximum: 1000,
InclusiveMinimum: 1
},
type: {
name: "Number"
}
}
};
Loading