Skip to content

Commit

Permalink
update bicep types to a915acab5788d890aed774ec818535b44311d16d (#262)
Browse files Browse the repository at this point in the history
* update bicep types to a915acab5788d890aed774ec818535b44311d16d

* fix failed testcases
  • Loading branch information
ms-henglu authored Feb 28, 2023
1 parent 5bbb376 commit bddbe36
Show file tree
Hide file tree
Showing 89 changed files with 93 additions and 50 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v1.4.0 (unreleased)
## v1.4.0
FEATURES:
- `azapi`: Support `default_name`, `default_naming_prefix` and `defualt_naming_suffix` features.
- Update bicep types to https://github.com/ms-henglu/bicep-types-az/commit/a915acab5788d890aed774ec818535b44311d16d

ENHANCEMENTS:

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"default"}},{"5":{"Elements":[8,4]}},{"6":{"Value":"Microsoft.Advisor/configurations"}},{"6":{"Value":"2022-10-01"}},{"2":{"Name":"Microsoft.Advisor/configurations","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":9,"Flags":9,"Description":"The resource name"},"type":{"Type":10,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":11,"Flags":10,"Description":"The resource api version"},"properties":{"Type":13,"Flags":0,"Description":"The Advisor configuration data structure."},"systemData":{"Type":38,"Flags":2,"Description":"Azure Resource Manager metadata containing createdBy and modifiedBy information."}}}},{"2":{"Name":"ConfigDataProperties","Properties":{"exclude":{"Type":2,"Flags":0,"Description":"Exclude the resource from Advisor evaluations. Valid values: False (default) or True."},"lowCpuThreshold":{"Type":18,"Flags":0,"Description":"Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 5 (default), 10, 15 or 20."},"duration":{"Type":25,"Flags":0,"Description":"Minimum duration for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values: 7 (default), 14, 21, 30, 60 or 90."},"digests":{"Type":37,"Flags":0,"Description":"Advisor digest configuration. Valid only for subscriptions"}}}},{"6":{"Value":"5"}},{"6":{"Value":"10"}},{"6":{"Value":"15"}},{"6":{"Value":"20"}},{"5":{"Elements":[14,15,16,17,4]}},{"6":{"Value":"7"}},{"6":{"Value":"14"}},{"6":{"Value":"21"}},{"6":{"Value":"30"}},{"6":{"Value":"60"}},{"6":{"Value":"90"}},{"5":{"Elements":[19,20,21,22,23,24,4]}},{"2":{"Name":"DigestConfig","Properties":{"name":{"Type":4,"Flags":0,"Description":"Name of digest configuration. Value is case-insensitive and must be unique within a subscription."},"actionGroupResourceId":{"Type":4,"Flags":0,"Description":"Action group resource id used by digest."},"frequency":{"Type":3,"Flags":0,"Description":"Frequency that digest will be triggered, in days. Value must be between 7 and 30 days inclusive."},"categories":{"Type":33,"Flags":0,"Description":"Categories to send digest for. If categories are not provided, then digest will be sent for all categories."},"language":{"Type":4,"Flags":0,"Description":"Language for digest content body. Value must be ISO 639-1 code for one of Azure portal supported languages. Otherwise, it will be converted into one. Default value is English (en)."},"state":{"Type":36,"Flags":0,"Description":"State of digest configuration."}}}},{"6":{"Value":"HighAvailability"}},{"6":{"Value":"Security"}},{"6":{"Value":"Performance"}},{"6":{"Value":"Cost"}},{"6":{"Value":"OperationalExcellence"}},{"5":{"Elements":[27,28,29,30,31,4]}},{"3":{"ItemType":32}},{"6":{"Value":"Active"}},{"6":{"Value":"Disabled"}},{"5":{"Elements":[34,35,4]}},{"3":{"ItemType":26}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":43,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":48,"Flags":0,"Description":"The type of identity that last modified the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[39,40,41,42,4]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[44,45,46,47,4]}},{"4":{"Name":"Microsoft.Advisor/configurations@2022-10-01","ScopeType":12,"Body":12,"Flags":0}},{"6":{"Value":"Microsoft.Advisor/recommendations/suppressions"}},{"6":{"Value":"2022-10-01"}},{"2":{"Name":"Microsoft.Advisor/recommendations/suppressions","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":50,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":51,"Flags":10,"Description":"The resource api version"},"properties":{"Type":53,"Flags":0,"Description":"The properties of the suppression."},"systemData":{"Type":38,"Flags":2,"Description":"Azure Resource Manager metadata containing createdBy and modifiedBy information."}}}},{"2":{"Name":"SuppressionProperties","Properties":{"suppressionId":{"Type":4,"Flags":0,"Description":"The GUID of the suppression."},"ttl":{"Type":4,"Flags":0,"Description":"The duration for which the suppression is valid."},"expirationTimeStamp":{"Type":4,"Flags":2,"Description":"Gets or sets the expiration time stamp."}}}},{"4":{"Name":"Microsoft.Advisor/recommendations/suppressions@2022-10-01","ScopeType":0,"Body":52,"Flags":0}},{"6":{"Value":"Microsoft.Advisor/recommendations"}},{"6":{"Value":"2022-10-01"}},{"2":{"Name":"Microsoft.Advisor/recommendations","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":55,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":56,"Flags":10,"Description":"The resource api version"},"properties":{"Type":58,"Flags":2,"Description":"The properties of the recommendation."},"systemData":{"Type":38,"Flags":2,"Description":"Azure Resource Manager metadata containing createdBy and modifiedBy information."}}}},{"2":{"Name":"RecommendationProperties","Properties":{"category":{"Type":64,"Flags":0,"Description":"The category of the recommendation."},"impact":{"Type":68,"Flags":0,"Description":"The business impact of the recommendation."},"impactedField":{"Type":4,"Flags":0,"Description":"The resource type identified by Advisor."},"impactedValue":{"Type":4,"Flags":0,"Description":"The resource identified by Advisor."},"lastUpdated":{"Type":4,"Flags":0,"Description":"The most recent time that Advisor checked the validity of the recommendation."},"metadata":{"Type":69,"Flags":0,"Description":"The recommendation metadata."},"recommendationTypeId":{"Type":4,"Flags":0,"Description":"The recommendation-type GUID."},"risk":{"Type":73,"Flags":0,"Description":"The potential risk of not implementing the recommendation."},"shortDescription":{"Type":74,"Flags":0,"Description":"A summary of the recommendation."},"suppressionIds":{"Type":75,"Flags":0,"Description":"The list of snoozed and dismissed rules for the recommendation."},"extendedProperties":{"Type":76,"Flags":0,"Description":"Extended properties"},"resourceMetadata":{"Type":77,"Flags":0,"Description":"Metadata of resource that was assessed"},"description":{"Type":4,"Flags":0,"Description":"The detailed description of recommendation."},"label":{"Type":4,"Flags":0,"Description":"The label of recommendation."},"learnMoreLink":{"Type":4,"Flags":0,"Description":"The link to learn more about recommendation and generation logic."},"potentialBenefits":{"Type":4,"Flags":0,"Description":"The potential benefit of implementing recommendation."},"actions":{"Type":80,"Flags":0,"Description":"The list of recommended actions to implement recommendation."},"remediation":{"Type":81,"Flags":0,"Description":"The automated way to apply recommendation."},"exposedMetadataProperties":{"Type":82,"Flags":0,"Description":"The recommendation metadata properties exposed to customer to provide additional information."}}}},{"6":{"Value":"HighAvailability"}},{"6":{"Value":"Security"}},{"6":{"Value":"Performance"}},{"6":{"Value":"Cost"}},{"6":{"Value":"OperationalExcellence"}},{"5":{"Elements":[59,60,61,62,63,4]}},{"6":{"Value":"High"}},{"6":{"Value":"Medium"}},{"6":{"Value":"Low"}},{"5":{"Elements":[65,66,67,4]}},{"2":{"Name":"RecommendationPropertiesMetadata","Properties":{},"AdditionalProperties":0}},{"6":{"Value":"Error"}},{"6":{"Value":"Warning"}},{"6":{"Value":"None"}},{"5":{"Elements":[70,71,72,4]}},{"2":{"Name":"ShortDescription","Properties":{"problem":{"Type":4,"Flags":0,"Description":"The issue or opportunity identified by the recommendation and proposed solution."},"solution":{"Type":4,"Flags":0,"Description":"The issue or opportunity identified by the recommendation and proposed solution."}}}},{"3":{"ItemType":4}},{"2":{"Name":"RecommendationPropertiesExtendedProperties","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"ResourceMetadata","Properties":{"resourceId":{"Type":4,"Flags":0,"Description":"Azure resource Id of the assessed resource"},"source":{"Type":4,"Flags":0,"Description":"Source from which recommendation is generated"},"action":{"Type":78,"Flags":0,"Description":"The action to view resource."},"singular":{"Type":4,"Flags":0,"Description":"The singular user friendly name of resource type. eg: virtual machine"},"plural":{"Type":4,"Flags":0,"Description":"The plural user friendly name of resource type. eg: virtual machines"}}}},{"2":{"Name":"ResourceMetadataAction","Properties":{},"AdditionalProperties":0}},{"2":{"Name":"RecommendationPropertiesActionsItem","Properties":{},"AdditionalProperties":0}},{"3":{"ItemType":79}},{"2":{"Name":"RecommendationPropertiesRemediation","Properties":{},"AdditionalProperties":0}},{"2":{"Name":"RecommendationPropertiesExposedMetadataProperties","Properties":{},"AdditionalProperties":0}},{"4":{"Name":"Microsoft.Advisor/recommendations@2022-10-01","ScopeType":0,"Body":57,"Flags":1}},{"6":{"Value":"Microsoft.Advisor/advisorScore"}},{"6":{"Value":"2022-10-01"}},{"2":{"Name":"Microsoft.Advisor/advisorScore","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":84,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":85,"Flags":10,"Description":"The resource api version"},"properties":{"Type":87,"Flags":2,"Description":"The Advisor score data."},"systemData":{"Type":38,"Flags":2,"Description":"Azure Resource Manager metadata containing createdBy and modifiedBy information."}}}},{"2":{"Name":"AdvisorScoreEntityProperties","Properties":{"lastRefreshedScore":{"Type":88,"Flags":0,"Description":"The details of latest available score."},"timeSeries":{"Type":95,"Flags":0,"Description":"The historic Advisor score data."}}}},{"2":{"Name":"ScoreEntity","Properties":{"date":{"Type":4,"Flags":0,"Description":"The date score was calculated."},"score":{"Type":3,"Flags":0,"Description":"The percentage score."},"consumptionUnits":{"Type":3,"Flags":0,"Description":"The consumption units for the score."},"impactedResourceCount":{"Type":3,"Flags":0,"Description":"The number of impacted resources."},"potentialScoreIncrease":{"Type":3,"Flags":0,"Description":"The potential percentage increase in overall score at subscription level once all recommendations in this scope are implemented."},"categoryCount":{"Type":3,"Flags":2,"Description":"The count of impacted categories."}}}},{"2":{"Name":"TimeSeriesEntityItem","Properties":{"aggregationLevel":{"Type":93,"Flags":0,"Description":"The aggregation level of the score."},"scoreHistory":{"Type":94,"Flags":0,"Description":"The past score data"}}}},{"6":{"Value":"week"}},{"6":{"Value":"day"}},{"6":{"Value":"month"}},{"5":{"Elements":[90,91,92,4]}},{"3":{"ItemType":88}},{"3":{"ItemType":89}},{"4":{"Name":"Microsoft.Advisor/advisorScore@2022-10-01","ScopeType":4,"Body":86,"Flags":1}}]

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"1":{"Kind":1}},{"1":{"Kind":2}},{"1":{"Kind":3}},{"1":{"Kind":4}},{"1":{"Kind":5}},{"1":{"Kind":6}},{"1":{"Kind":7}},{"1":{"Kind":8}},{"6":{"Value":"Microsoft.ConfidentialLedger/ledgers"}},{"6":{"Value":"2023-01-26-preview"}},{"2":{"Name":"Microsoft.ConfidentialLedger/ledgers","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":8,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":9,"Flags":10,"Description":"The resource api version"},"runningState":{"Type":16,"Flags":0,"Description":"Object representing RunningState for Ledger."},"properties":{"Type":17,"Flags":0,"Description":"Properties of Confidential Ledger Resource."},"tags":{"Type":42,"Flags":0,"Description":"Additional tags for Confidential Ledger"},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":43,"Flags":2,"Description":"Azure Resource Manager metadata containing createdBy and modifiedBy information."}}}},{"6":{"Value":"Active"}},{"6":{"Value":"Paused"}},{"6":{"Value":"Unknown"}},{"6":{"Value":"Pausing"}},{"6":{"Value":"Resuming"}},{"5":{"Elements":[11,12,13,14,15,4]}},{"2":{"Name":"LedgerProperties","Properties":{"ledgerName":{"Type":4,"Flags":2,"Description":"Unique name for the Confidential Ledger."},"ledgerUri":{"Type":4,"Flags":2,"Description":"Endpoint for calling Ledger Service."},"identityServiceUri":{"Type":4,"Flags":2,"Description":"Endpoint for accessing network identity."},"ledgerInternalNamespace":{"Type":4,"Flags":2,"Description":"Internal namespace for the Ledger"},"ledgerType":{"Type":21,"Flags":0,"Description":"Type of Confidential Ledger"},"provisioningState":{"Type":29,"Flags":2,"Description":"Provisioning state of Ledger Resource"},"aadBasedSecurityPrincipals":{"Type":35,"Flags":0,"Description":"Array of all AAD based Security Principals."},"certBasedSecurityPrincipals":{"Type":41,"Flags":0,"Description":"Array of all cert based Security Principals."}}}},{"6":{"Value":"Unknown"}},{"6":{"Value":"Public"}},{"6":{"Value":"Private"}},{"5":{"Elements":[18,19,20,4]}},{"6":{"Value":"Unknown"}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Creating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Updating"}},{"5":{"Elements":[22,23,24,25,26,27,28,4]}},{"2":{"Name":"AADBasedSecurityPrincipal","Properties":{"principalId":{"Type":4,"Flags":0,"Description":"UUID/GUID based Principal Id of the Security Principal"},"tenantId":{"Type":4,"Flags":0,"Description":"UUID/GUID based Tenant Id of the Security Principal"},"ledgerRoleName":{"Type":34,"Flags":0,"Description":"LedgerRole associated with the Security Principal of Ledger"}}}},{"6":{"Value":"Reader"}},{"6":{"Value":"Contributor"}},{"6":{"Value":"Administrator"}},{"5":{"Elements":[31,32,33,4]}},{"3":{"ItemType":30}},{"2":{"Name":"CertBasedSecurityPrincipal","Properties":{"cert":{"Type":4,"Flags":0,"Description":"Public key of the user cert (.pem or .cer)"},"ledgerRoleName":{"Type":40,"Flags":0,"Description":"LedgerRole associated with the Security Principal of Ledger"}}}},{"6":{"Value":"Reader"}},{"6":{"Value":"Contributor"}},{"6":{"Value":"Administrator"}},{"5":{"Elements":[37,38,39,4]}},{"3":{"ItemType":36}},{"2":{"Name":"Tags","Properties":{},"AdditionalProperties":4}},{"2":{"Name":"SystemData","Properties":{"createdBy":{"Type":4,"Flags":0,"Description":"The identity that created the resource."},"createdByType":{"Type":48,"Flags":0,"Description":"The type of identity that created the resource."},"createdAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource creation (UTC)."},"lastModifiedBy":{"Type":4,"Flags":0,"Description":"The identity that last modified the resource."},"lastModifiedByType":{"Type":53,"Flags":0,"Description":"The type of identity that last modified the resource."},"lastModifiedAt":{"Type":4,"Flags":0,"Description":"The timestamp of resource last modification (UTC)"}}}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[44,45,46,47,4]}},{"6":{"Value":"User"}},{"6":{"Value":"Application"}},{"6":{"Value":"ManagedIdentity"}},{"6":{"Value":"Key"}},{"5":{"Elements":[49,50,51,52,4]}},{"4":{"Name":"Microsoft.ConfidentialLedger/ledgers@2023-01-26-preview","ScopeType":8,"Body":10,"Flags":0}},{"6":{"Value":"Microsoft.ConfidentialLedger/managedCCFs"}},{"6":{"Value":"2023-01-26-preview"}},{"2":{"Name":"Microsoft.ConfidentialLedger/managedCCFs","Properties":{"id":{"Type":4,"Flags":10,"Description":"The resource id"},"name":{"Type":4,"Flags":9,"Description":"The resource name"},"type":{"Type":55,"Flags":10,"Description":"The resource type"},"apiVersion":{"Type":56,"Flags":10,"Description":"The resource api version"},"properties":{"Type":58,"Flags":0,"Description":"Properties of Managed CCF Resource."},"tags":{"Type":73,"Flags":0,"Description":"Resource tags."},"location":{"Type":4,"Flags":1,"Description":"The geo-location where the resource lives"},"systemData":{"Type":43,"Flags":2,"Description":"Azure Resource Manager metadata containing createdBy and modifiedBy information."}}}},{"2":{"Name":"ManagedCCFProperties","Properties":{"appName":{"Type":4,"Flags":2,"Description":"Unique name for the Managed CCF."},"appUri":{"Type":4,"Flags":2,"Description":"Endpoint for calling Managed CCF Service."},"identityServiceUri":{"Type":4,"Flags":2,"Description":"Endpoint for accessing network identity."},"memberIdentityCertificates":{"Type":60,"Flags":0,"Description":"List of member identity certificates for Managed CCF"},"deploymentType":{"Type":61,"Flags":0,"Description":"Deployment Type of Managed CCF"},"provisioningState":{"Type":72,"Flags":2,"Description":"Provisioning state of Ledger Resource"},"nodeCount":{"Type":3,"Flags":0,"Description":"Number of CCF nodes in the Managed CCF."}}}},{"2":{"Name":"MemberIdentityCertificate","Properties":{"certificate":{"Type":4,"Flags":0,"Description":"Member Identity Certificate"},"encryptionkey":{"Type":4,"Flags":0,"Description":"Member Identity Certificate Encryption Key"},"tags":{"Type":0,"Flags":0,"Description":"Anything"}}}},{"3":{"ItemType":59}},{"2":{"Name":"DeploymentType","Properties":{"languageRuntime":{"Type":64,"Flags":0,"Description":"Unique name for the Managed CCF."},"appSourceUri":{"Type":4,"Flags":0,"Description":"Source Uri containing ManagedCCF code"}}}},{"6":{"Value":"CPP"}},{"6":{"Value":"JS"}},{"5":{"Elements":[62,63,4]}},{"6":{"Value":"Unknown"}},{"6":{"Value":"Succeeded"}},{"6":{"Value":"Failed"}},{"6":{"Value":"Canceled"}},{"6":{"Value":"Creating"}},{"6":{"Value":"Deleting"}},{"6":{"Value":"Updating"}},{"5":{"Elements":[65,66,67,68,69,70,71,4]}},{"2":{"Name":"TrackedResourceTags","Properties":{},"AdditionalProperties":4}},{"4":{"Name":"Microsoft.ConfidentialLedger/managedCCFs@2023-01-26-preview","ScopeType":8,"Body":57,"Flags":0}}]

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit bddbe36

Please sign in to comment.